:root {
    --bg: #0d1b2a;
    --bg-2: #1b2a3b;
    --surface: #1e2f42;
    --surface-2: #243444;
    --text: #f5f7fa;
    --text-dim: #9aa7b8;
    --accent: #4a9eff;
    --accent-dim: #2d7dd6;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #7eb7ff;
}

/* Nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
}

.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 500;
}

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

.nav-cta {
    padding: 8px 16px;
    background: var(--accent);
    color: var(--text) !important;
    border-radius: var(--radius-sm);
}

.nav-cta:hover {
    background: var(--accent-dim);
    color: var(--text) !important;
}

/* Hero */

.hero {
    padding: 80px 24px 100px;
    text-align: center;
    overflow: hidden;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero-icon {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    margin-bottom: 32px;
    box-shadow: 0 20px 60px rgba(74, 158, 255, 0.2);
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.accent {
    background: linear-gradient(120deg, var(--accent), #7eb7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    font-size: 21px;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 80px;
}

.hero-meta {
    color: var(--text-dim);
    font-size: 14px;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--text) !important;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
}

.btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(74, 158, 255, 0.4);
    color: var(--text) !important;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Hero visual */

.hero-visual {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.window-big {
    position: relative;
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 10;
}

.window-chrome {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.window-body {
    height: calc(100% - 42px);
    background: linear-gradient(135deg, #2b3f5a 0%, #1e2f42 100%);
}

.window-pip {
    position: absolute;
    right: 5%;
    bottom: 8%;
    width: 32%;
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
    border-radius: 10px;
    border: 2px solid rgba(74, 158, 255, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(74, 158, 255, 0.3);
    overflow: hidden;
    animation: float 4s ease-in-out infinite;
}

.window-pip-chrome {
    height: 20%;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border);
}

.window-pip-body {
    height: 80%;
    background: linear-gradient(135deg, #3d5a7c 0%, #243444 100%);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Features */

.features {
    padding: 100px 24px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 64px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 158, 255, 0.3);
}

.feature-icon {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
    font-family: "SF Mono", Menlo, monospace;
}

.feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

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

kbd {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-family: "SF Mono", Menlo, monospace;
    font-size: 13px;
    color: var(--text);
    border: 1px solid var(--border);
}

/* How it works */

.how {
    padding: 100px 24px;
}

.how-intro {
    font-size: 18px;
    color: var(--text-dim);
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.how-steps {
    max-width: 680px;
    margin: 0 auto;
    list-style: none;
    counter-reset: step;
}

.how-steps li {
    counter-increment: step;
    position: relative;
    padding: 20px 0 20px 64px;
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
    border-bottom: 1px solid var(--border);
}

.how-steps li:last-child {
    border-bottom: none;
}

.how-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 158, 255, 0.12);
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.how-steps strong {
    color: var(--text);
    font-weight: 600;
}

/* Companion app */

.companion {
    padding: 100px 24px;
    border-top: 1px solid var(--border);
}

.companion-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 72px;
    align-items: center;
}

.companion-title {
    text-align: left;
    font-size: 38px;
    margin-bottom: 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(74, 158, 255, 0.14);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border: 1px solid rgba(74, 158, 255, 0.25);
}

.companion-lede {
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 24px;
}

.companion-points {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.companion-points li {
    position: relative;
    padding: 10px 0 10px 28px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
}

.companion-points li:last-child {
    border-bottom: none;
}

.companion-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(74, 158, 255, 0.15);
    border: 1px solid rgba(74, 158, 255, 0.4);
    box-shadow: inset 0 0 0 3px rgba(13, 27, 42, 1), 0 0 0 0 rgba(74, 158, 255, 0.5);
}

.companion-points strong {
    color: var(--text);
    font-weight: 600;
}

.companion-cta-note {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
}

/* Phone illustration */

.companion-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone {
    position: relative;
    width: 230px;
    height: 470px;
    background: #0a1220;
    border-radius: 42px;
    border: 8px solid #000;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 60px rgba(74, 158, 255, 0.15);
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #000;
    border-radius: 14px;
    z-index: 2;
}

.phone-screen {
    position: absolute;
    inset: 0;
    padding: 54px 18px 18px;
    background: linear-gradient(180deg, #0d1b2a 0%, #1b2a3b 100%);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.phone-header {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.phone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.phone-tile {
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
    border-radius: 8px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

.phone-tile span {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3d5a7c 0%, #243444 100%);
}

.phone-tile:nth-child(1) span { background: linear-gradient(135deg, #4a9eff 0%, #2d5a8a 100%); }
.phone-tile:nth-child(2) span { background: linear-gradient(135deg, #6b5cb0 0%, #2d3a5a 100%); }
.phone-tile:nth-child(3) span { background: linear-gradient(135deg, #4aadc5 0%, #244454 100%); }
.phone-tile:nth-child(4) span { background: linear-gradient(135deg, #7ec8e3 0%, #345a7a 100%); }

/* Download */

.download {
    padding: 100px 24px;
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border);
}

.download-meta {
    color: var(--text-dim);
    margin-bottom: 32px;
    font-size: 15px;
}

.download-note {
    color: var(--text-dim);
    font-size: 14px;
    max-width: 560px;
    margin: 32px auto 0;
    line-height: 1.6;
}

/* Footer */

.footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 14px;
}

.footer .section-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.footer-meta {
    font-size: 13px;
}

/* Responsive */

@media (max-width: 720px) {
    .hero {
        padding: 48px 20px 64px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .hero-icon {
        width: 96px;
        height: 96px;
    }

    .section-title {
        font-size: 32px;
    }

    .features,
    .how,
    .companion,
    .download {
        padding: 64px 20px;
    }

    .companion-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .companion-title {
        text-align: center;
        font-size: 28px;
    }

    .companion-copy {
        text-align: center;
    }

    .companion-points {
        text-align: left;
    }

    .phone {
        width: 200px;
        height: 410px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }
}
