/* ===========================
   Base & Reset
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f8f7ff;
    --bg2: #ffffff;
    --bg3: #f0eeff;
    --text: #0f0e17;
    --text2: #5a5578;
    --text3: #9491a7;
    --accent: #6c63ff;
    --accent2: #a78bfa;
    --accent3: #06b6d4;
    --green: #10b981;
    --orange: #f97316;
    --pink: #ec4899;
    --border: rgba(108, 99, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(108,99,255,.08);
    --shadow: 0 8px 30px rgba(108,99,255,.12);
    --shadow-lg: 0 20px 60px rgba(108,99,255,.18);
    --radius: 20px;
    --radius-sm: 12px;
}

[data-theme="dark"] {
    --bg: #0d0c1a;
    --bg2: #15132b;
    --bg3: #1c1a35;
    --text: #f5f3ff;
    --text2: #a09bbf;
    --text3: #6b6785;
    --border: rgba(108, 99, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
    --shadow: 0 8px 30px rgba(0,0,0,.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background .3s, color .3s;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===========================
   Navigation
=========================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: .875rem 1.5rem;
    transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}

.nav.scrolled {
    background: rgba(var(--bg-rgb, 248,247,255), .85);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .nav.scrolled {
    background: rgba(13,12,26,.85);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -.02em;
}

.brand-icon { font-size: 1.5rem; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-size: .95rem;
    font-weight: 500;
    color: var(--text2);
    transition: color .2s;
}

.nav-menu a:hover { color: var(--accent); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.theme-btn {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: background .2s, transform .2s;
}

.theme-btn:hover { transform: rotate(20deg); }

.theme-btn svg {
    width: 18px; height: 18px;
    pointer-events: none;
}

.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

/* ===========================
   Hero
=========================== */
.hero {
    position: relative;
    padding: 9rem 0 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
}

[data-theme="dark"] .blob { opacity: .2; }

.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #6c63ff, #a78bfa);
    top: -200px; left: -100px;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #06b6d4, #3b82f6);
    top: 100px; right: -150px;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

.blob-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #ec4899, #f97316);
    bottom: -100px; left: 40%;
    animation: blobFloat 12s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(.97); }
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: .4rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.pulse-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
    50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .95rem;
    transition: all .25s;
    cursor: pointer;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    box-shadow: 0 4px 20px rgba(108,99,255,.45);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108,99,255,.6);
}

.btn-secondary {
    background: var(--bg2);
    color: var(--text);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow);
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    margin-left: -8px;
}

.avatars img:first-child { margin-left: 0; }

.social-proof p {
    font-size: .875rem;
    color: var(--text2);
}

.social-proof strong { color: var(--text); }

/* Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-shell {
    width: 300px;
    background: var(--bg2);
    border-radius: 40px;
    box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border);
    padding: 1.5rem 1.25rem 1.75rem;
    position: relative;
}

.phone-shell::before {
    content: '';
    position: absolute;
    top: .75rem; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.phone-screen {
    background: var(--bg3);
    border-radius: 24px;
    padding: 1.25rem 1rem;
    overflow: hidden;
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text2);
}

.phone-logo { font-size: 1rem; }

.streak-chip {
    background: rgba(249,115,22,.15);
    color: var(--orange);
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
}

.flip-card-wrap {
    perspective: 1000px;
    margin-bottom: 1rem;
}

.flip-card {
    width: 100%;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
}

.flip-card.flipped { transform: rotateY(180deg); }

.flip-front, .flip-back {
    position: absolute;
    inset: 0;
    background: var(--bg2);
    border-radius: var(--radius-sm);
    padding: 1rem;
    backface-visibility: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-back { transform: rotateY(180deg); }

.card-tag {
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    background: rgba(108,99,255,.1);
    padding: 2px 8px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: .5rem;
    width: fit-content;
}

.card-word {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    margin-bottom: .25rem;
}

.card-hint {
    font-size: .7rem;
    color: var(--text3);
}

.card-def {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .5rem;
}

.card-example {
    font-size: .7rem;
    color: var(--text2);
    font-style: italic;
    line-height: 1.4;
}

.card-dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-bottom: .875rem;
}

.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: background .3s, width .3s;
}

.dot.active {
    background: var(--accent);
    width: 18px;
    border-radius: 3px;
}

.rate-row {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}

.rate-btn {
    flex: 1;
    padding: .4rem;
    border-radius: 8px;
    font-size: .7rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform .15s;
}

.rate-btn:hover { transform: scale(1.05); }

.rate-hard { background: rgba(239,68,68,.15); color: #ef4444; }
.rate-ok { background: rgba(249,115,22,.15); color: var(--orange); }
.rate-easy { background: rgba(16,185,129,.15); color: var(--green); }

.mini-stats {
    display: flex;
    justify-content: space-around;
}

.mini-num {
    font-size: .9rem;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
}

.mini-lbl {
    font-size: .6rem;
    color: var(--text3);
    text-align: center;
}

/* Floating chips */
.float-chip {
    position: absolute;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: .5rem 1rem;
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .4rem;
    box-shadow: var(--shadow);
    animation: floatChip 3s ease-in-out infinite;
}

.chip-ai { top: 20%; right: -20px; animation-delay: 0s; }
.chip-streak { bottom: 25%; left: -20px; animation-delay: 1.5s; }

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

/* ===========================
   Trust / Subjects
=========================== */
.trust {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.trust-label {
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text3);
    margin-bottom: 1.5rem;
}

.subject-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.subject-chips span {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: .4rem .9rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text2);
    transition: all .2s;
}

.subject-chips span:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ===========================
   Sections Shared
=========================== */
.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    background: rgba(108,99,255,.1);
    padding: .3rem .9rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text2);
}

/* ===========================
   Features
=========================== */
.features {
    padding: 6rem 0;
    background: var(--bg2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform .3s, box-shadow .3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-card.card-large {
    grid-column: span 2;
}

.feature-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}

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

.feature-icon-wrap.purple { background: rgba(108,99,255,.15); color: var(--accent); }
.feature-icon-wrap.blue { background: rgba(59,130,246,.15); color: #3b82f6; }
.feature-icon-wrap.green { background: rgba(16,185,129,.15); color: var(--green); }
.feature-icon-wrap.orange { background: rgba(249,115,22,.15); color: var(--orange); }
.feature-icon-wrap.pink { background: rgba(236,72,153,.15); color: var(--pink); }
.feature-icon-wrap.teal { background: rgba(6,182,212,.15); color: var(--accent3); }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}

.feature-card p {
    font-size: .95rem;
    color: var(--text2);
    line-height: 1.65;
}

.feature-demo {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.ai-chip {
    display: inline-block;
    background: rgba(108,99,255,.15);
    color: var(--accent);
    border-radius: 100px;
    padding: 2px 10px;
    font-size: .7rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.ai-example {
    font-size: .85rem;
    font-family: monospace;
    color: var(--text2);
}

.sync-icons {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: 1.25rem;
}

.sync-icons svg { color: var(--text3); }

/* ===========================
   How It Works
=========================== */
.how-it-works {
    padding: 6rem 0;
}

.steps-grid {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step {
    flex: 1;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.step-num {
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}

.step p {
    font-size: .9rem;
    color: var(--text2);
    line-height: 1.65;
}

.step-arrow {
    font-size: 2rem;
    color: var(--accent);
    opacity: .4;
    flex-shrink: 0;
}

/* ===========================
   Stats
=========================== */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-block {
    color: #fff;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -.04em;
    display: inline;
}

.stat-suffix {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    display: inline;
    opacity: .8;
}

.stat-label {
    font-size: .9rem;
    margin-top: .5rem;
    opacity: .8;
    font-weight: 500;
}

/* ===========================
   Testimonials
=========================== */
.testimonials {
    padding: 6rem 0;
    background: var(--bg2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tcard {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform .3s, box-shadow .3s;
}

.tcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.tcard-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: .1em;
}

.tcard p {
    font-size: .95rem;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.tcard-author {
    display: flex;
    align-items: center;
    gap: .875rem;
}

.tcard-author img {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.tcard-author strong {
    display: block;
    font-size: .9rem;
    font-weight: 700;
}

.tcard-author span {
    font-size: .8rem;
    color: var(--text3);
}

/* ===========================
   Download
=========================== */
.download {
    padding: 6rem 0;
}

.download-inner {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    box-shadow: var(--shadow-lg);
}

.download-copy h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.download-copy p {
    font-size: 1.1rem;
    color: var(--text2);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.download-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: .875rem;
    background: var(--text);
    color: var(--bg);
    padding: .875rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all .25s;
    box-shadow: var(--shadow);
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: .9;
}

.store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }

.store-btn small {
    display: block;
    font-size: .7rem;
    opacity: .7;
    font-weight: 400;
}

.store-btn strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.qr-placeholder {
    text-align: center;
    flex-shrink: 0;
}

.qr-inner {
    width: 120px; height: 120px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.qr-inner svg { width: 60px; height: 60px; color: var(--text2); }

.qr-placeholder p {
    font-size: .75rem;
    color: var(--text3);
    margin: 0;
}

/* ===========================
   Footer
=========================== */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .brand { margin-bottom: .875rem; }

.footer-brand p {
    font-size: .95rem;
    color: var(--text2);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-links h4 {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text3);
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    font-size: .9rem;
    color: var(--text2);
    margin-bottom: .625rem;
    transition: color .2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: .85rem;
    color: var(--text3);
}

/* ===========================
   Reveal Animations
=========================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Contact & Privacy Pages
=========================== */
.page-hero {
    padding: 9rem 0 4rem;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -.04em;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--text2);
    max-width: 560px;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    padding: 0 0 6rem;
}

.form-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.form-row { margin-bottom: 1.5rem; }

.form-row label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: .875rem 1rem;
    background: var(--bg3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text);
    font-family: inherit;
    transition: border-color .2s, background .2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg2);
}

.form-row textarea { resize: vertical; min-height: 130px; }

.form-row input.error { border-color: #ef4444; }

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 20px rgba(108,99,255,.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108,99,255,.6);
}

.success-msg {
    display: none;
    text-align: center;
    padding: 3rem;
}

.success-msg .checkmark {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.success-msg h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.success-msg p { color: var(--text2); }

.info-cards { display: flex; flex-direction: column; gap: 1.25rem; }

.info-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform .3s, box-shadow .3s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.info-card-icon { font-size: 2rem; margin-bottom: .875rem; }
.info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.info-card p { font-size: .9rem; color: var(--text2); margin-bottom: .5rem; }
.info-card a { color: var(--accent); font-weight: 600; font-size: .9rem; transition: color .2s; }
.info-card a:hover { color: var(--accent2); }

.faq-section {
    padding: 0 0 6rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -.03em;
}

.faq-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: .875rem;
    overflow: hidden;
}

.faq-q {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    user-select: none;
    transition: background .2s;
}

.faq-q:hover { background: var(--bg3); }

.faq-chevron {
    font-size: 1.25rem;
    color: var(--accent);
    transition: transform .3s;
    flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-a p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text2);
    font-size: .9rem;
    line-height: 1.7;
}

/* Privacy */
.policy-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 0 6rem;
}

.policy-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.policy-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -.02em;
    color: var(--text);
}

.policy-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.25rem 0 .75rem;
}

.policy-card p {
    font-size: .95rem;
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: .875rem;
}

.policy-card ul {
    list-style: none;
    padding: 0;
    margin: .875rem 0;
}

.policy-card ul li {
    position: relative;
    padding-left: 1.25rem;
    font-size: .9rem;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: .5rem;
}

.policy-card ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.policy-card a { color: var(--accent); font-weight: 500; }
.policy-card a:hover { text-decoration: underline; }
.policy-card strong { color: var(--text); font-weight: 600; }

/* ===========================
   Responsive
=========================== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card.card-large { grid-column: span 1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; z-index: 999; }
    .nav-menu.open { display: flex; }
    .nav-menu a { font-size: 1.5rem; }
    .hamburger { display: flex; z-index: 1001; }

    .hero { padding: 8rem 0 4rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .social-proof { justify-content: center; }
    .hero-visual { margin-top: 2rem; }
    .chip-ai, .chip-streak { display: none; }

    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .download-inner { flex-direction: column; padding: 2.5rem 1.5rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-links { grid-template-columns: 1fr; }
    .phone-shell { width: 260px; }
}
