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

:root {
    --color-bg: #0a0a0f;
    --color-bg-alt: #111115;
    --color-surface: #1a1a1f;
    --color-surface-hover: #242428;
    --color-border: #2a2a30;
    --color-text: #ffffff;
    --color-text-muted: #a0a0b0;
    --color-text-dim: #606070;
    --color-accent: #FFD60A;
    --color-accent-light: #FFE44D;
    --color-accent-glow: rgba(255, 214, 10, 0.25);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --maxw: 1200px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); line-height: 1.6; overflow-x: hidden; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ===== NAV ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10,10,15,.85); backdrop-filter: blur(20px); border-bottom-color: var(--color-border); }
.nav-container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.nav-logo-icon { width: 32px; height: 32px; color: var(--color-accent); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--color-text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--color-text); }
.nav-links a.btn-primary { color: #000; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); margin: 5px 0; transition: .3s; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; border: none; cursor: pointer; transition: all .25s; border-radius: var(--radius-sm); white-space: nowrap; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 15px; border-radius: var(--radius-md); }
.btn-primary { background: var(--color-accent); color: #000; box-shadow: 0 4px 24px var(--color-accent-glow); }
.btn-primary:hover { background: var(--color-accent-light); transform: translateY(-1px); box-shadow: 0 6px 32px var(--color-accent-glow); }
.btn-ghost { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border); }
.btn-ghost:hover { color: var(--color-text); border-color: var(--color-text-dim); background: var(--color-surface); }

/* ===== HERO ===== */
.hero { position: relative; padding: 160px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-gradient { position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 900px; height: 900px; max-width: 130vw; background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 60%); opacity: .5; }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; max-width: 1140px; text-align: left; }
.hero-copy { min-width: 0; }
.hero-badge { display: inline-block; padding: 8px 18px; border: 1px solid var(--color-border); border-radius: 100px; background: var(--color-surface); font-size: 13px; font-weight: 500; color: var(--color-text-muted); margin-bottom: 24px; }
.hero-title { font-size: clamp(40px, 6.6vw, 72px); font-weight: 800; line-height: 1.03; letter-spacing: -.03em; margin-bottom: 22px; }
.hero-subtitle { font-size: clamp(16px, 2.1vw, 19px); color: var(--color-text-muted); max-width: 520px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
.hero-phone { display: flex; justify-content: center; position: relative; }
.hero-phone::before { content: ""; position: absolute; inset: -8% -4%; background: radial-gradient(circle, var(--color-accent-glow), transparent 62%); opacity: .5; z-index: -1; }

/* ===== iPHONE 14 PRO MAX FRAME ===== */
.device { position: relative; width: 300px; max-width: 74vw; aspect-ratio: 1180 / 2556; margin: 0 auto; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #45454c, #1a1a1f 42%, #2c2c32); box-shadow: 0 34px 80px rgba(0,0,0,.6), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.device::after { content: ""; position: absolute; top: 22%; left: -3px; width: 3px; height: 8%; background: #3a3a40; border-radius: 3px 0 0 3px; box-shadow: 0 14% 0 #3a3a40, 0 24% 0 #3a3a40; }
.device-frame { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #000; }
.device-screen { width: 100%; height: 100%; object-fit: cover; display: block; }
.device-island { position: absolute; top: 3.4%; left: 50%; transform: translateX(-50%); width: 32%; height: 3.1%; min-height: 18px; background: #000; border-radius: 100px; z-index: 3; }

/* Inside-the-app row of phones */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.device-item { text-align: center; }
.device-item .device { width: 100%; max-width: 250px; }
.device-item h3 { margin-top: 26px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.device-item p { color: var(--color-text-muted); font-size: 14px; margin-top: 6px; }

/* ===== BEFORE / AFTER SLIDER ===== */
.ba { position: relative; }
.ba-hero .ba-stage { box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px var(--color-border); }
.ba-stage {
    position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-lg);
    overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
    background: var(--color-surface);
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); will-change: clip-path; }
.ba-tag { position: absolute; bottom: 16px; z-index: 3; padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff; pointer-events: none; }
.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; color: var(--color-accent); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: rgba(255,255,255,.9); transform: translateX(-1px); z-index: 4; pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.4); }
.ba-handle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 46px; height: 46px; border-radius: 50%; background: var(--color-accent); color: #000;
    display: flex; align-items: center; justify-content: center; pointer-events: auto; cursor: ew-resize;
    box-shadow: 0 4px 16px rgba(0,0,0,.4); transition: transform .15s;
}
.ba-handle:hover { transform: translate(-50%,-50%) scale(1.08); }
.ba-handle:focus-visible { outline: 3px solid var(--color-accent-light); outline-offset: 3px; }
.ba-handle svg { width: 22px; height: 22px; }
.ba-main { max-width: 900px; margin: 0 auto; }
.ba-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.ba-tab { padding: 9px 20px; border-radius: 100px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.ba-tab:hover { color: var(--color-text); border-color: var(--color-text-dim); }
.ba-tab.is-active { background: var(--color-accent); color: #000; border-color: var(--color-accent); }

/* ===== Landscape (rotated) phone frame ===== */
.device.landscape,
.ba-device.is-landscape { aspect-ratio: 2556 / 1180; }
.device.landscape .device-island,
.ba-device.is-landscape .device-island {
    top: 50%; left: auto; right: 3.4%; transform: translateY(-50%);
    width: 3%; height: 30%; min-width: 16px; min-height: 0;
}
.device.landscape::after,
.ba-device.is-landscape::after { display: none; }

/* ===== Before / after inside an iPhone frame (rotates with the example) ===== */
.ba-main .ba-device { width: 300px; max-width: 82vw; margin: 0 auto;
    transition: aspect-ratio .45s cubic-bezier(.4,0,.2,1), width .45s cubic-bezier(.4,0,.2,1); }
.ba-main .ba-device.is-landscape { width: 640px; max-width: 94vw; }
.ba-device .ba-stage {
    position: absolute; inset: 0; width: 100%; height: 100%;
    aspect-ratio: auto; border-radius: 0; box-shadow: none;
    background: #000; cursor: ew-resize; touch-action: pan-y;
}
.ba-device .ba-img { object-fit: contain; background: #000; }

/* ===== Inside the app: feature split ===== */
.inside-feature {
    display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 72px);
    align-items: center; max-width: 900px; margin: 0 auto;
}
.inside-phone .device { width: 300px; max-width: 74vw; }
.inside-list { list-style: none; display: flex; flex-direction: column; gap: 30px; }
.inside-list li { display: flex; gap: 18px; align-items: flex-start; }
.inside-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-accent); }
.inside-ic svg { width: 24px; height: 24px; }
.inside-list h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.inside-list p { color: var(--color-text-muted); font-size: 14.5px; margin-top: 5px; line-height: 1.55; }

/* ===== Inside the app: landscape showcase ===== */
.inside-land { max-width: 1000px; margin: clamp(48px, 8vw, 88px) auto 0; text-align: center; }
.inside-land-copy h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.inside-land-copy p { color: var(--color-text-muted); max-width: 560px; margin: 12px auto 0; line-height: 1.6; }
.inside-land-shots { display: flex; gap: clamp(18px, 3vw, 32px); justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.inside-land-shots .device { width: 420px; max-width: 90vw; }

@media (max-width: 720px) {
    .inside-feature { grid-template-columns: 1fr; justify-items: center; text-align: left; gap: 40px; }
    .inside-list { max-width: 440px; }
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-dark { background: var(--color-bg-alt); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 16px; }
.section-header h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.section-desc { font-size: 17px; color: var(--color-text-muted); margin-top: 18px; }

/* ===== VALUE GRID ===== */
.value-grid, .features-grid { display: grid; gap: 20px; }
.value-grid { grid-template-columns: repeat(3, 1fr); }
.value-card, .feature-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; transition: transform .25s, border-color .25s; }
.value-card:hover, .feature-card:hover { transform: translateY(-4px); border-color: var(--color-text-dim); }
.value-icon, .feature-icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--color-accent-glow); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.value-icon svg, .feature-icon svg { width: 28px; height: 28px; }
.value-card h3, .feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.value-card p, .feature-card p { color: var(--color-text-muted); font-size: 15px; }

/* ===== STEPS ===== */
.steps-grid { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; }
.step { flex: 1; min-width: 240px; max-width: 320px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; text-align: center; position: relative; }
.step-number { position: absolute; top: 20px; right: 24px; font-size: 40px; font-weight: 800; color: var(--color-border); }
.step-icon { width: 64px; height: 64px; margin: 0 auto 20px; color: var(--color-accent); }
.step-icon svg { width: 100%; height: 100%; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--color-text-muted); font-size: 15px; }
.step-connector { display: flex; align-items: center; color: var(--color-text-dim); }
.step-connector svg { width: 60px; height: 20px; }

/* ===== FEATURES ===== */
.features-grid { grid-template-columns: repeat(4, 1fr); }
.feature-card { padding: 26px; }
.feature-icon { width: 46px; height: 46px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; }
.feature-card p { font-size: 14px; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px; }
.pricing-card-pro { border-color: var(--color-accent); box-shadow: 0 0 40px var(--color-accent-glow); position: relative; }
.pricing-tier { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.pricing-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 100px; background: var(--color-accent); color: #000; }
.pricing-headline { color: var(--color-text-muted); font-size: 15px; margin-bottom: 22px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li { position: relative; padding-left: 28px; font-size: 15px; color: var(--color-text); }
.pricing-features li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-accent-glow); }
.pricing-features li::after { content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 3px; border-left: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: rotate(-45deg); }
.pricing-features strong { font-weight: 700; }
.pricing-fineprint { text-align: center; font-size: 13px; color: var(--color-text-dim); margin-top: 32px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ===== CTA ===== */
.section-cta { text-align: center; background: radial-gradient(circle at 50% 0%, rgba(255,214,10,.08), transparent 60%), var(--color-bg); }
.cta-content h2 { font-size: clamp(32px, 6vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.cta-content p { color: var(--color-text-muted); font-size: 18px; margin: 20px auto 32px; max-width: 520px; }
.cta-buttons { display: flex; justify-content: center; margin-bottom: 24px; }
.app-store-badge { display: inline-block; width: 200px; height: 66px; max-width: 100%; overflow: hidden; background: url("https://tools.applemediaservices.com/api/badges/download-on-the-app-store/black/en-us?size=250x83") center / contain no-repeat; transition: transform .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.app-store-badge:hover { transform: scale(1.05); opacity: .9; }
.cta-meta { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: var(--color-text-dim); flex-wrap: wrap; }
.cta-dot { width: 4px; height: 4px; background: var(--color-text-dim); border-radius: 50%; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--color-border); padding: 48px 0; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-logo { width: 28px; height: 28px; color: var(--color-accent); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--color-text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--color-text); }
.footer-copy { font-size: 13px; color: var(--color-text-dim); }

/* ===== LEGAL PAGES ===== */
.legal { padding: 120px 0 80px; }
.legal-container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.legal-container h1 { font-size: clamp(32px, 6vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.legal-updated { color: var(--color-text-dim); font-size: 14px; margin: 8px 0 32px; }
.legal-container h2 { font-size: 21px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -.01em; }
.legal-container p, .legal-container li { color: var(--color-text-muted); font-size: 16px; margin-bottom: 14px; }
.legal-container ul { padding-left: 22px; margin-bottom: 14px; }
.legal-container li { margin-bottom: 8px; }
.legal-container a { color: var(--color-accent); }
.legal-container a:hover { text-decoration: underline; }
.legal-container strong { color: var(--color-text); font-weight: 600; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 12px; max-width: 620px; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-phone { margin-top: 28px; }
    .device-item .device { max-width: 220px; }
}
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .value-grid, .pricing-grid { grid-template-columns: 1fr; }
    .step-connector { display: none; }
    .step { max-width: 460px; }
}
@media (max-width: 640px) {
    .devices { grid-template-columns: 1fr; gap: 40px; max-width: 300px; }
    .device-item .device { max-width: 260px; }
}
@media (max-width: 720px) {
    .nav-links { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(10,10,15,.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--color-border); padding: 8px 24px 20px; transform: translateY(-120%); transition: transform .3s; }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--color-border); }
    .nav-links a.btn-primary { margin-top: 12px; border-bottom: none; text-align: center; padding: 14px; }
    .nav-toggle { display: block; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero { padding: 128px 0 60px; }
    .section { padding: 72px 0; }
    .features-grid { grid-template-columns: 1fr; }
}
