/* FAHEM Landing Page — Liquid Glass MVP matched design */
:root {
    --bg: #000;
    --bg-soft: #090909;
    --panel: rgba(255, 255, 255, 0.055);
    --panel-strong: rgba(18, 18, 18, 0.84);
    --primary: #E1E0CC;
    --accent: #E0FF74;
    --amber: #F2D083;
    --muted: rgba(225, 224, 204, 0.62);
    --muted-2: rgba(255, 255, 255, 0.42);
    --border: rgba(255, 255, 255, 0.11);
    --border-hot: rgba(224, 255, 116, 0.34);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    --radius-xl: 2.5rem;
    --font-ar: 'IBM Plex Sans Arabic', 'Almarai', system-ui, sans-serif;
    --font-tech: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--primary);
    font-family: var(--font-ar);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img, video { max-width: 100%; display: block; }
::selection { background: rgba(224,255,116,.25); color: #fff; }

.site-grain {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .14;
    background-image:
        radial-gradient(circle at 25% 18%, rgba(224,255,116,.08), transparent 25%),
        radial-gradient(circle at 70% 25%, rgba(178,124,255,.08), transparent 26%),
        repeating-radial-gradient(circle at center, rgba(255,255,255,.16) 0 1px, transparent 1px 3px);
    mix-blend-mode: screen;
}
body::before {
    content: '';
    position: fixed;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--mx, 80%) var(--my, 42%), rgba(224,255,116,.12), transparent 20rem),
        radial-gradient(circle at 12% 12%, rgba(255,188,91,.08), transparent 24rem),
        linear-gradient(180deg, rgba(0,0,0,.2), #000 70%);
}
.ambient-orb {
    position: fixed;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    filter: blur(70px);
    opacity: .35;
    pointer-events: none;
    z-index: 0;
    transition: transform .2s ease-out;
}
.orb-a { top: 18%; right: -140px; background: rgba(224,255,116,.22); }
.orb-b { bottom: 18%; left: -110px; background: rgba(118,94,255,.28); }
.orb-c { top: 62%; right: 18%; width: 220px; height: 220px; background: rgba(255,174,80,.12); }

.container-wide { width: min(1180px, calc(100% - 32px)); margin-inline: auto; position: relative; z-index: 1; }
.container-narrow { width: min(860px, calc(100% - 32px)); margin-inline: auto; position: relative; z-index: 1; }
.glass-panel {
    background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 25px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 800;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #070707; box-shadow: 0 12px 34px rgba(225,224,204,.18); }
.btn-primary:hover { background: #fff; box-shadow: 0 18px 42px rgba(224,255,116,.24); }
.btn-soft { background: rgba(255,255,255,.07); border-color: var(--border); color: var(--primary); }
.btn-block { width: 100%; }

/* Navbar */
.navbar {
    position: fixed;
    top: 18px;
    inset-inline: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.nav-pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 4vw, 44px);
    min-width: min(520px, calc(100vw - 36px));
    padding: 12px 30px;
    border-radius: 999px;
    background: rgba(12,12,12,.76);
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 18px 60px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(22px);
}
.nav-pill a { color: rgba(255,255,255,.76); font-size: 13px; font-weight: 800; transition: color .2s; white-space: nowrap; }
.nav-pill a:hover { color: var(--accent); }
.nav-actions { position: absolute; left: 24px; display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.nav-link-cta { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(224,255,116,.12); border: 1px solid rgba(224,255,116,.22); color: var(--primary); font-weight: 800; font-size: 13px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); color: var(--primary); background: rgba(255,255,255,.06); }
.mobile-menu { display: none; position: absolute; top: 58px; left: 16px; right: 16px; padding: 16px; border-radius: 26px; background: rgba(10,10,10,.94); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(20px); pointer-events: auto; }
.mobile-menu.open { display: grid; gap: 10px; }
.mobile-menu a { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); font-weight: 800; }

/* Hero */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: center; }
.hero-media, .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .76; }
.hero-image { background: url('../images/hero-bg.jpg') center/cover no-repeat; }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(circle at 62% 46%, transparent 0 18%, rgba(0,0,0,.28) 46%, rgba(0,0,0,.88) 100%), linear-gradient(180deg, rgba(0,0,0,.15), #000 96%); }
.hero-inner { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; min-height: 100svh; padding-top: 90px; gap: 40px; }
.hero-brand { font-family: var(--font-ar); font-size: clamp(92px, 16vw, 220px); line-height: .78; font-weight: 800; letter-spacing: -.08em; color: #fff; text-shadow: 0 10px 70px rgba(255,255,255,.28); justify-self: start; filter: drop-shadow(0 24px 46px rgba(0,0,0,.28)); }
.hero-copy { width: min(430px, 100%); padding: 34px; justify-self: center; text-align: right; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .02em; }
.eyebrow::before, .section-kicker::before { content: ''; width: 32px; height: 1px; background: currentColor; opacity: .65; }
.hero-copy h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.1; margin-bottom: 16px; font-weight: 900; letter-spacing: -.04em; }
.hero-copy p { color: rgba(255,255,255,.76); font-weight: 500; margin-bottom: 24px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* About */
.about { position: relative; padding: 80px 0 90px; }
.big-statement { padding: clamp(34px, 7vw, 78px); text-align: center; }
.big-statement h2 { max-width: 760px; margin: 0 auto 24px; font-size: clamp(34px, 6vw, 62px); line-height: 1.3; letter-spacing: -.05em; }
.big-statement p { max-width: 680px; margin: auto; color: rgba(255,255,255,.48); font-size: clamp(16px, 2.2vw, 22px); }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.stat-card, .partners span { background: rgba(255,255,255,.045); border: 1px solid var(--border); border-radius: 28px; padding: 22px; backdrop-filter: blur(18px); }
.stat-card strong { display: block; font-family: var(--font-tech); font-size: clamp(24px, 4vw, 38px); color: #fff; }
.stat-card span { color: var(--muted-2); font-weight: 700; }
.partners { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.partners span { padding: 12px 20px; color: rgba(255,255,255,.48); font-size: 13px; font-weight: 900; }

.section-heading { margin-bottom: 54px; text-align: right; }
.section-heading h2 { font-size: clamp(28px, 5vw, 52px); line-height: 1.18; letter-spacing: -.04em; max-width: 780px; color: var(--primary); }
.section-heading p { margin-top: 12px; color: rgba(255,255,255,.38); font-size: clamp(18px, 3vw, 34px); font-weight: 700; }
.features, .pricing, .product-demo { padding: 90px 0; position: relative; }
.feature-swap { display: grid; grid-template-columns: 1.12fr repeat(3, 1fr); gap: 14px; }
.feature-card { min-height: 440px; border-radius: var(--radius-xl); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.visual-card { background: #111; }
.visual-card-media { position: absolute; inset: 0; background: url('../images/hero-bg.jpg') center/cover no-repeat; transform: scale(1.06); filter: saturate(1.05); }
.visual-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.74)); }
.visual-card-caption { position: absolute; z-index: 1; bottom: 34px; right: 34px; left: 34px; font-size: 28px; font-weight: 800; color: var(--primary); }
.liquid-card { padding: 30px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid var(--border); backdrop-filter: blur(22px); transition: transform .28s ease, border-color .28s ease; }
.liquid-card:hover { transform: translateY(-8px); border-color: var(--border-hot); }
.liquid-card::before { content: ''; position: absolute; width: 180px; height: 180px; left: -80px; bottom: -80px; border-radius: 999px; background: rgba(224,255,116,.1); filter: blur(30px); opacity: 0; transition: opacity .35s; }
.liquid-card:hover::before { opacity: 1; }
.feature-top { display: flex; justify-content: space-between; align-items: flex-start; }
.feature-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: rgba(255,255,255,.06); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.feature-number { color: rgba(255,255,255,.18); font-family: var(--font-tech); font-weight: 900; }
.feature-card h3 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; color: var(--primary); }
.feature-card p { color: rgba(255,255,255,.44); margin-bottom: 22px; font-size: 14px; }
.feature-card ul, .pricing-card ul { list-style: none; display: grid; gap: 13px; }
.feature-card li, .pricing-card li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.6); font-size: 14px; }
.feature-card li i, .pricing-card li i { color: var(--accent); margin-top: 5px; font-size: 12px; }
.feature-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 900; color: var(--primary); }
.feature-link i { transform: rotate(-45deg); }

/* Demo Phone */
.demo-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 7vw, 86px); align-items: center; }
.demo-phone-wrap { display: grid; place-items: center; }
.phone-frame { width: min(330px, 88vw); height: 668px; border-radius: 54px; border: 10px solid #1b1b1b; background: #f8f8f8; position: relative; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 80px rgba(224,255,116,.08); direction: rtl; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 116px; height: 28px; background: #1b1b1b; border-radius: 0 0 22px 22px; z-index: 20; }
.phone-screen { position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: translateX(-18px) scale(.98); transition: opacity .32s ease, transform .32s ease; padding: 46px 18px 92px; background: #fafafa; color: #111; overflow: hidden; }
.phone-screen.active { opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }
.app-header, .test-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.app-header button, .test-header button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #333; box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.app-header span { display: block; color: rgba(0,0,0,.48); font-size: 12px; }
.app-header strong, .test-header strong { font-size: 13px; }
.test-header span { font-size: 11px; color: rgba(0,0,0,.38); font-weight: 800; }
.gpa-widget { width: 174px; height: 174px; margin: 6px auto 22px; position: relative; display: grid; place-items: center; }
.gpa-widget svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gpa-widget circle { fill: none; stroke-width: 8; stroke: #eee9dd; }
.gpa-widget circle:nth-child(2) { stroke: #a88b57; stroke-linecap: round; stroke-dasharray: 302; stroke-dashoffset: 12; filter: drop-shadow(0 0 8px rgba(168,139,87,.35)); }
.gpa-widget strong { display: block; font-size: 38px; line-height: 1; }
.gpa-widget span { font-size: 10px; color: rgba(0,0,0,.43); font-weight: 800; }
.quick-actions { display: grid; grid-template-columns: 54px 54px 1fr; gap: 10px; margin-bottom: 12px; }
.quick-actions button { min-height: 52px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.06); font-weight: 900; color: #111; }
.quick-actions button:first-child { background: #ffe5ef; color: #ef4d87; }
.quick-actions .dark { background: #111; color: #fff; }
.assistant-card { width: 100%; height: 48px; border: 0; border-radius: 18px; background: linear-gradient(100deg, #fff6c2, #fff); color: #3a3013; font-weight: 900; margin-bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.subjects-mini { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 11px; color: rgba(0,0,0,.45); }
.subjects-mini article { grid-column: 1 / -1; background: #fff; border: 1px solid rgba(0,0,0,.05); padding: 14px; border-radius: 18px; display: flex; gap: 12px; align-items: center; color: #111; box-shadow: 0 10px 20px rgba(0,0,0,.04); }
.bottom-nav { position: absolute; bottom: 0; left: 0; right: 0; height: 82px; background: rgba(255,255,255,.94); border-top: 1px solid rgba(0,0,0,.06); z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 4px 18px; backdrop-filter: blur(18px); }
.bottom-nav button { border: 0; background: transparent; color: rgba(0,0,0,.38); display: grid; gap: 3px; place-items: center; font-size: 10px; font-weight: 800; }
.bottom-nav button.active { color: #a88b57; }
.timer-pill { width: max-content; margin: 0 auto 18px; background: #111; color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 12px; display: flex; gap: 8px; align-items: center; direction: ltr; }
.phone-screen h3 { font-size: 20px; line-height: 1.4; margin-bottom: 18px; }
.answers { display: grid; gap: 10px; }
.answers button { border: 1px solid rgba(0,0,0,.06); background: #fff; color: #111; min-height: 52px; border-radius: 18px; text-align: right; padding: 0 16px; font-weight: 800; transition: .2s; }
.answers button.success { background: #ddffe8; border-color: #42d574; color: #0f6a2f; }
.answers button.error { background: #ffe5e5; border-color: #ff6e6e; color: #9f2424; }
.explain-card { position: absolute; right: 18px; left: 18px; bottom: 104px; background: linear-gradient(145deg, #fff3ba, #fff8df); color: #3a3013; padding: 16px; border-radius: 22px; font-weight: 800; font-size: 12px; box-shadow: 0 14px 30px rgba(0,0,0,.09); }
.flashcard { height: 330px; perspective: 1000px; cursor: pointer; }
.flash-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.flashcard.flipped .flash-inner { transform: rotateY(180deg); }
.flash-front, .flash-back { position: absolute; inset: 0; border-radius: 30px; padding: 28px; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; gap: 16px; text-align: center; box-shadow: 0 22px 45px rgba(0,0,0,.1); }
.flash-front { background: #111; color: #fff; }
.flash-back { background: #102c5c; color: #fff; transform: rotateY(180deg); }
.flash-front span, .flash-back span { color: var(--accent); font-weight: 900; }
.flash-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.flash-actions button { border: 0; min-height: 42px; border-radius: 999px; background: #fff; font-weight: 900; color: #111; }
.rank-card { background: #111; color: #fff; border-radius: 28px; padding: 22px; margin-bottom: 12px; }
.rank-card span { color: rgba(255,255,255,.55); font-size: 12px; }
.rank-card strong { display: block; font-family: var(--font-tech); font-size: 34px; color: var(--accent); }
.bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bento-grid article { min-height: 110px; padding: 16px; border-radius: 24px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.05); }
.bento-grid strong { display: block; font-family: var(--font-tech); font-size: 26px; }
.bento-grid span { color: rgba(0,0,0,.43); font-size: 11px; font-weight: 900; }
.donut div { width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(#a88b57 0 70%, #ff7676 70% 82%, #eee 82%); margin-bottom: 8px; }
.books-grid { display: grid; gap: 12px; }
.books-grid article { min-height: 125px; border-radius: 26px; padding: 20px; background: linear-gradient(135deg, #111, #53452a); color: #fff; display: flex; flex-direction: column; gap: 8px; justify-content: center; box-shadow: 0 16px 35px rgba(0,0,0,.12); }
.books-grid i { font-size: 26px; color: var(--accent); }
.books-grid span { width: max-content; background: rgba(224,255,116,.16); color: var(--accent); border: 1px solid rgba(224,255,116,.2); padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.demo-copy h2 { font-size: clamp(30px, 4.5vw, 54px); line-height: 1.2; margin-bottom: 26px; letter-spacing: -.04em; }
.demo-tabs { display: grid; gap: 12px; max-width: 520px; }
.demo-tabs button { border: 1px solid transparent; background: rgba(255,255,255,.045); color: rgba(255,255,255,.54); border-radius: 20px; padding: 18px; text-align: right; transition: .25s; cursor: pointer; }
.demo-tabs button strong { display: block; color: rgba(255,255,255,.62); font-size: 18px; margin-bottom: 4px; }
.demo-tabs button span { font-size: 13px; }
.demo-tabs button.active { background: rgba(255,255,255,.09); border-color: rgba(224,255,116,.22); box-shadow: inset -4px 0 0 rgba(224,255,116,.75); color: rgba(255,255,255,.72); }
.demo-tabs button.active strong { color: var(--primary); }

/* Pricing */
.pricing-swap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pricing-card { position: relative; border-radius: var(--radius-xl); padding: 42px 34px; min-height: 560px; background: rgba(255,255,255,.045); border: 1px solid var(--border); backdrop-filter: blur(24px); display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .28s ease, border-color .28s ease; }
.pricing-card:hover { transform: translateY(-8px); }
.pricing-card.popular { background: rgba(224,255,116,.08); border: 1.5px solid var(--border-hot); box-shadow: 0 30px 80px rgba(224,255,116,.08); }
.plan-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; background: var(--primary); color: #090909; padding: 6px 15px; border-radius: 999px; font-size: 11px; font-weight: 900; box-shadow: 0 0 28px rgba(224,255,116,.36); }
.pricing-card h3 { font-size: 22px; margin-bottom: 22px; }
.price-line { min-height: 88px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin-bottom: 24px; }
.price-line strong { font-family: var(--font-tech); font-size: clamp(42px, 5vw, 60px); color: #fff; letter-spacing: -.06em; }
.price-line span { color: rgba(255,255,255,.55); }
.original-price { width: 100%; text-decoration: line-through; text-decoration-color: #ff6f6f; color: rgba(255,255,255,.35) !important; font-weight: 800; }
.pricing-card ul { flex: 1; margin-bottom: 30px; }
.plan-button { min-height: 54px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.09); color: #fff; font-weight: 900; transition: .25s; }
.pricing-card.popular .plan-button { background: var(--primary); color: #000; }
.plan-button:hover { transform: translateY(-2px); background: #fff; color: #000; }

/* Forms / footer */
.cta-section { padding: 80px 0 100px; }
.waitinglist-box { padding: clamp(28px, 6vw, 62px); }
.waitinglist-box h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.16; margin-bottom: 14px; }
.waitinglist-box p { color: rgba(255,255,255,.56); margin-bottom: 28px; font-size: 18px; }
.wl-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field label { font-weight: 900; font-size: 13px; color: rgba(255,255,255,.7); }
.req { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea { min-height: 52px; border-radius: 18px; border: 1px solid var(--border); background: rgba(0,0,0,.3); color: #fff; padding: 0 16px; outline: none; }
.form-field textarea { min-height: 110px; padding-top: 14px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--border-hot); box-shadow: 0 0 0 4px rgba(224,255,116,.08); }
.wl-form .btn, .form-message { grid-column: 1 / -1; }
.form-message { min-height: 24px; font-weight: 900; }
.form-message.success { color: #61e48d; }
.form-message.error { color: #ff7676; }
.store-row { margin-top: 30px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; min-width: 180px; padding: 14px 20px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid var(--border); }
.store-btn i { font-size: 28px; }
.store-btn small { display: block; color: rgba(255,255,255,.45); }
.store-btn strong { display: block; color: #fff; }
.footer { position: relative; z-index: 1; padding: 46px 0; border-top: 1px solid var(--border); background: rgba(0,0,0,.5); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.48); }
.footer-logo { color: #fff; font-size: 30px; font-weight: 900; letter-spacing: -.06em; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; font-weight: 800; }
.footer-links a:hover { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.scrollbar-hide { scrollbar-width: none; }
.feature-swap::-webkit-scrollbar, .pricing-swap::-webkit-scrollbar { display: none; }

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; align-content: center; text-align: center; }
    .hero-brand { justify-self: center; order: -1; }
    .hero-copy { justify-self: center; }
    .feature-swap { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 10px 8vw 24px; margin-inline: -8vw; }
    .feature-card { min-width: min(78vw, 360px); scroll-snap-align: center; }
    .demo-grid { grid-template-columns: 1fr; }
    .demo-copy { order: -1; }
    .pricing-swap { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 20px 8vw 28px; margin-inline: -8vw; }
    .pricing-card { min-width: min(82vw, 380px); scroll-snap-align: center; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .navbar { top: 12px; justify-content: center; padding: 0 12px; }
    .nav-pill { min-width: 0; width: 100%; gap: 0; overflow: hidden; justify-content: space-between; padding: 11px 14px; }
    .nav-pill a { font-size: clamp(10.5px, 3vw, 12px); flex: 1; text-align: center; }
    .nav-actions { display: none; }
    .mobile-menu { display: none !important; }
    .hero-copy { padding: 24px; }
    .hero-buttons .btn { flex: 1; padding-inline: 12px; }
    .hero-brand { font-size: clamp(82px, 34vw, 140px); }
    .about, .features, .pricing, .product-demo { padding: 62px 0; }
    .phone-frame { height: 620px; border-width: 8px; border-radius: 46px; }
    .wl-form { grid-template-columns: 1fr; }
    .footer-inner { justify-content: center; text-align: center; }
}

/* Mobile-first polish inspired by the submitted MVP screens */
.stats-marquee {
    margin-top: 24px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(90deg, rgba(255,255,255,.025), rgba(255,255,255,.065), rgba(255,255,255,.025));
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.stats-loop {
    display: flex;
    width: max-content;
    gap: 12px;
    padding: 10px 12px;
    direction: ltr;
    animation: fahemStatsLoop 28s linear infinite;
}
.stat-chip {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(18,18,18,.72);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.22);
    backdrop-filter: blur(18px);
    direction: rtl;
}
.stat-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: rgba(224,255,116,.08);
    border: 1px solid rgba(224,255,116,.16);
    font-size: 12px;
}
.stat-chip strong {
    color: #fff;
    font-family: var(--font-tech);
    font-size: 17px;
    line-height: 1;
    letter-spacing: -.02em;
}
.stat-chip span:last-child {
    color: rgba(255,255,255,.55);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
@keyframes fahemStatsLoop {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.stats-marquee:hover .stats-loop { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .stats-loop { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
@media (max-width: 720px) {
    :root { --radius-xl: 2rem; }
    body { font-size: 15px; }
    .container-wide, .container-narrow { width: min(100% - 28px, 560px); }
    .hero { min-height: 92svh; align-items: end; padding-bottom: 28px; }
    .hero-inner { min-height: 92svh; padding-top: 76px; gap: 12px; align-content: end; }
    .hero-copy { width: 100%; background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; text-align: right; padding: 0 4px 8px; }
    .hero-copy h1 { font-size: clamp(34px, 11vw, 56px); color: #fff; text-shadow: 0 10px 42px rgba(0,0,0,.8); }
    .hero-copy p { font-size: 15px; line-height: 1.85; color: rgba(255,255,255,.78); max-width: 92%; }
    .hero-brand { order: 0; justify-self: end; font-size: clamp(74px, 25vw, 118px); line-height: .86; margin-bottom: 4px; }
    .hero-buttons { margin-top: 8px; }
    .btn { min-height: 54px; border-radius: 999px; font-size: 14px; }
    .big-statement { padding: 38px 22px; border-radius: 34px; }
    .big-statement h2 { font-size: clamp(27px, 8vw, 42px); line-height: 1.5; letter-spacing: -.035em; }
    .big-statement p { font-size: 16px; line-height: 2; }
    .stats-marquee { width: calc(100% - 22px); margin-top: 22px; }
    .stats-loop { gap: 10px; padding: 9px 10px; animation-duration: 22s; }
    .stat-chip { padding: 8px 11px; gap: 7px; }
    .stat-icon { width: 28px; height: 28px; font-size: 11px; }
    .stat-chip strong { font-size: 15px; }
    .stat-chip span:last-child { font-size: 11px; }
    .partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 60px); gap: 12px; }
    .partners span { text-align: center; padding: 11px 12px; border-radius: 999px; font-size: 12px; }
    .section-heading { text-align: center; margin-bottom: 28px; }
    .section-heading h2 { font-size: clamp(30px, 8vw, 44px); line-height: 1.35; }
    .section-heading p { font-size: clamp(18px, 5.5vw, 28px); }
    .feature-swap { padding: 4px 7vw 22px; margin-inline: -7vw; gap: 16px; }
    .feature-card { min-width: min(80vw, 330px); min-height: 500px; border-radius: 36px; }
    .liquid-card { padding: 26px 24px; justify-content: space-around; }
    .feature-icon { width: 42px; height: 42px; border-radius: 50%; font-size: 14px; }
    .feature-card h3 { font-size: 24px; text-align: right; }
    .feature-card p { font-size: 13px; line-height: 1.8; }
    .feature-card li { font-size: 13px; gap: 9px; justify-content: flex-start; }
    .feature-link { align-self: flex-start; font-size: 13px; }
    .demo-copy { text-align: right; }
    .demo-copy h2 { font-size: clamp(30px, 9vw, 46px); line-height: 1.36; }
    .demo-tabs { gap: 0; background: rgba(255,255,255,.035); border: 1px solid var(--border); border-radius: 28px; padding: 8px; }
    .demo-tabs button { background: transparent; border-radius: 22px; padding: 16px 18px; }
    .demo-tabs button span { display: none; }
    .demo-tabs button.active { box-shadow: inset -4px 0 0 var(--primary); }
    .phone-frame { width: min(350px, 88vw); height: 660px; border-width: 9px; box-shadow: 0 36px 100px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
    .phone-screen { padding: 54px 20px 92px; }
    .app-header strong, .test-header strong { font-size: 18px; }
    .app-header span, .test-header span { font-size: 12px; }
    .gpa-widget { width: 188px; height: 188px; }
    .gpa-widget strong { font-size: 48px; }
    .gpa-widget span { font-size: 13px; }
    .quick-actions { grid-template-columns: 64px 64px 1fr; gap: 12px; }
    .quick-actions button { min-height: 64px; border-radius: 20px; font-size: 16px; }
    .assistant-card { height: 56px; border-radius: 22px; font-size: 18px; }
    .bottom-nav button { font-size: 11px; }
    .bottom-nav i { font-size: 18px; }
    .pricing-swap { padding: 18px 7vw 28px; margin-inline: -7vw; }
    .pricing-card { min-width: min(82vw, 350px); min-height: 520px; padding: 36px 28px; border-radius: 36px; }
    .pricing-card h3 { font-size: 21px; }
    .price-line strong { font-size: 54px; }
    .pricing-card li { font-size: 14px; }
    .waitinglist-box { border-radius: 34px; }
    .footer { padding: 70px 0 40px; }
    .footer-logo { width: 100%; font-size: 46px; }
    .footer-links { justify-content: center; gap: 18px 26px; }
}
