/* Unwrap AI Landing Page - Minimal Swedish Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --border: rgba(255, 255, 255, 0.06);
    --text: #fafafa;
    --text-muted: #71717a;
    --accent: #fbbf24;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
}

.logo svg {
    color: var(--text-muted);
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text);
}

/* Main */
main {
    padding: 80px 0;
}

/* Headline */
.headline {
    text-align: center;
    margin-bottom: 80px;
}

.headline h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    padding: 14px 28px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: border-color 0.2s;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Showcase - Two Panel Layout */
.showcase {
    margin-top: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.showcase-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
}

.showcase-card {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.showcase-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.showcase-header svg {
    color: var(--text-muted);
}

.showcase-header .version {
    margin-left: auto;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--surface);
    padding: 4px 8px;
    border-radius: 6px;
}

.showcase-warning {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #fbbf24;
    margin-bottom: 16px;
}

.showcase-info,
.showcase-meta {
    margin-bottom: 16px;
}

.showcase-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.showcase-row:last-child {
    border-bottom: none;
}

.showcase-row span:first-child {
    color: var(--text-muted);
}

.showcase-row .accent {
    color: var(--accent);
    font-weight: 500;
}

.showcase-row .link {
    color: #60a5fa;
}

.showcase-prompt {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.showcase-prompt-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.showcase-prompt-text {
    font-size: 12px;
    color: var(--text);
    font-family: monospace;
    line-height: 1.5;
}

.showcase-actions {
    display: flex;
    gap: 12px;
}

.showcase-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.showcase-btn.primary {
    background: var(--text);
    color: var(--bg);
}

.showcase-btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.showcase-tagline {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.showcase-stats {
    background: var(--surface);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}

.stat-big {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.stat-big .stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #4ade80;
}

.stat-big .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.stat-grid {
    display: flex;
    gap: 16px;
}

.stat-small {
    flex: 1;
    text-align: center;
}

.stat-small .num {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.stat-small .lbl {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .showcase {
        grid-template-columns: 1fr;
    }
}

/* Demo Alert (real UnwrapAlert mockup) */
.demo-alert {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    width: 200px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.demo-alert:hover {
    transform: translateY(-4px) rotate(-1deg);
}

.demo-alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.demo-alert-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.demo-alert-logo svg {
    color: var(--text-muted);
}

.demo-alert-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 10px;
    color: #fbbf24;
    margin-bottom: 12px;
}

.demo-alert-warning svg {
    flex-shrink: 0;
}

.demo-alert-info {
    margin-bottom: 12px;
}

.demo-alert-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.demo-alert-row:last-child {
    border-bottom: none;
}

.demo-alert-row .label {
    color: var(--text-muted);
}

.demo-alert-row .value {
    color: var(--text);
    font-weight: 500;
}

.demo-alert-row .value.highlight {
    color: var(--accent);
}

.demo-alert-row .value.link {
    color: #60a5fa;
}

.demo-alert-btn {
    background: var(--text);
    color: var(--bg);
    font-size: 10px;
    font-weight: 600;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

/* Demo Popup (real toolbar popup mockup) */
.demo-popup {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    width: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.demo-popup:hover {
    transform: translateY(-4px);
}

.demo-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.demo-popup-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-popup-logo svg {
    color: var(--text-muted);
}

.demo-popup-title {
    font-size: 14px;
    font-weight: 600;
}

.demo-popup-version {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--surface);
    padding: 3px 8px;
    border-radius: 6px;
}

.demo-popup-tagline {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.demo-stats-grid {
    margin-bottom: 16px;
}

.demo-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-stat-primary {
    margin-bottom: 10px;
}

.demo-stat-primary .demo-stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-stat-primary .demo-stat-icon svg {
    color: #4ade80;
}

.demo-stat-primary .demo-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #4ade80;
}

.demo-stat-primary .demo-stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.demo-stat-row {
    display: flex;
    gap: 10px;
}

.demo-stat-small {
    flex: 1;
    padding: 12px;
}

.demo-stat-small .demo-stat-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-stat-small .demo-stat-icon svg {
    color: var(--text-muted);
}

.demo-stat-small .demo-stat-value {
    font-size: 16px;
    font-weight: 600;
}

.demo-stat-small .demo-stat-label {
    font-size: 10px;
    color: var(--text-muted);
}

.demo-popup-info {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-bottom: 12px;
}

.demo-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.demo-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.demo-info-label svg {
    color: var(--text-muted);
}

.demo-info-value {
    font-size: 12px;
    color: var(--text);
}

.demo-popup-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.demo-popup-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: var(--text);
    color: var(--bg);
    transition: opacity 0.2s;
}

.demo-popup-btn:hover {
    opacity: 0.9;
}

.demo-popup-btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.demo-popup-footer {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
}

/* Doodle Annotations */
.showcase-card-wrapper {
    position: relative;
}

.doodle {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Comic Sans MS', 'Patrick Hand', cursive;
    font-size: 12px;
    z-index: 10;
    pointer-events: none;
}

.doodle-arrow {
    width: 50px;
    height: 25px;
}

.doodle-text {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.doodle-warning {
    top: -45px;
    left: -30px;
    flex-direction: row;
}

.doodle-free {
    right: -80px;
    top: 45%;
    transform: translateY(-50%);
    flex-direction: row-reverse;
}

.doodle-savings {
    top: -45px;
    right: -30px;
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .doodle {
        display: none;
    }
}

.demo-popup-stats {
    background: var(--surface);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.demo-stat-main {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.demo-stat-main svg {
    color: var(--accent);
}

.demo-stat-content {
    display: flex;
    flex-direction: column;
}

.demo-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.demo-stat-label {
    font-size: 9px;
    color: var(--text-muted);
}

.demo-stat-row {
    display: flex;
    gap: 10px;
}

.demo-stat-small {
    flex: 1;
    text-align: center;
}

.demo-stat-small .num {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.demo-stat-small .lbl {
    font-size: 8px;
    color: var(--text-muted);
}

.demo-popup-info {
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.demo-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

.browser-frame {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 600px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.browser-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.browser-bar {
    background: #252525;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3a3a3a;
}

.browser-dots span:first-child {
    background: #ff5f57;
}

.browser-dots span:nth-child(2) {
    background: #febc2e;
}

.browser-dots span:nth-child(3) {
    background: #28c840;
}

.browser-url {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
}

.browser-url svg {
    color: #28c840;
}

.browser-content {
    position: relative;
    height: 200px;
    background: #0f0f0f;
    overflow: hidden;
}

/* Fake page background */
.fake-page {
    padding: 24px;
    filter: blur(2px);
    opacity: 0.4;
}

.fake-header {
    height: 24px;
    width: 180px;
    background: #2a2a2a;
    border-radius: 4px;
    margin-bottom: 16px;
}

.fake-text {
    height: 12px;
    width: 100%;
    background: #222;
    border-radius: 3px;
    margin-bottom: 10px;
}

.fake-text.short {
    width: 70%;
}

/* Demo Toast */
.demo-toast {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: toast-slide-in 0.5s ease 0.5s both;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.demo-toast:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.demo-toast-icon {
    width: 32px;
    height: 32px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.demo-toast-content {
    flex: 1;
}

.demo-toast-title {
    font-size: 12px;
    font-weight: 500;
    color: #e4e4e7;
    margin-bottom: 2px;
}

.demo-toast-subtitle {
    font-size: 11px;
    color: #71717a;
}

.demo-toast-arrow {
    color: #52525b;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.demo-toast:hover .demo-toast-arrow {
    transform: translateX(3px);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature:hover .feature-icon {
    transform: translateY(-4px);
    background: rgba(251, 191, 36, 0.12);
}

.feature-icon svg {
    color: var(--accent);
}

.feature h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* How it works */
.how-it-works {
    margin-bottom: 80px;
}

.how-it-works h2 {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 24px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 16px;
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 80px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Contribute */
.contribute {
    text-align: center;
    padding: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.contribute h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contribute p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Footer */
footer {
    text-align: center;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

footer p {
    font-size: 14px;
    color: var(--text-muted);
}

footer a {
    color: var(--text);
    text-decoration: none;
}

footer .tagline {
    margin-top: 8px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    header.hero {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    nav {
        gap: 16px;
    }

    main {
        padding: 40px 0;
    }

    .headline {
        margin-bottom: 40px;
    }

    .headline h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 15px;
    }

    .cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Showcase - stack vertically on mobile */
    .showcase {
        grid-template-columns: 1fr;
        margin-top: 40px;
        gap: 24px;
    }

    .showcase-card {
        padding: 20px;
    }

    .showcase-actions {
        flex-direction: column;
        gap: 10px;
    }

    .showcase-btn {
        width: 100%;
    }

    .stat-big .stat-value {
        font-size: 28px;
    }

    /* Features - single column */
    .features {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .feature {
        padding: 24px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    /* How it works */
    .how-it-works {
        margin-bottom: 40px;
    }

    .how-it-works h2 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .steps {
        flex-direction: column;
        gap: 8px;
    }

    .step {
        padding: 16px;
    }

    /* Stats */
    .stats {
        flex-direction: column;
        gap: 24px;
        padding: 32px 0;
        margin-bottom: 40px;
    }

    .stat-value {
        font-size: 28px;
    }

    /* Contribute */
    .contribute {
        padding: 32px 20px;
    }

    .contribute h2 {
        font-size: 20px;
    }

    /* Footer */
    footer {
        padding: 32px 0;
        margin-top: 40px;
    }
}