@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ================================================================
   DESIGN SYSTEM — "Midnight Aurora"
   Deep dark with vivid emerald/cyan accents.
   Horizontal phone galleries & full-bleed showcase.
   ================================================================ */

:root {
    --bg: #050a0e;
    --bg-card: #0c1117;
    --bg-elevated: #111921;
    --border: rgba(255,255,255,0.06);

    --text: #f0f4f8;
    --text-dim: #7a8ba3;
    --text-muted: #3d4f63;

    --accent: #34d399;       /* Emerald */
    --accent-blue: #38bdf8;  /* Sky */
    --accent-purple: #a78bfa; /* Violet */
    --accent-amber: #fbbf24;  /* Amber */
    --accent-rose: #fb7185;   /* Rose */

    --gradient-hero: linear-gradient(160deg, #0f172a 0%, #050a0e 40%, #071a15 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-blue));

    --radius: 24px;
    --radius-sm: 14px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 30px 60px -12px rgba(0,0,0,0.6);
    --glow-accent: 0 0 80px -20px rgba(52, 211, 153, 0.3);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* --- Layout --- */
.wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 120px 0;
    position: relative;
}

/* --- Typography --- */
.headline-xl {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.headline-lg {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.headline-md {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.body-lg {
    font-size: 1.2rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.body-md {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.text-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Pill / Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accent {
    background: var(--gradient-accent);
    color: #050a0e;
    box-shadow: var(--glow-accent);
}

.btn-accent:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 100px -15px rgba(52, 211, 153, 0.5);
}

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

.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

/* --- Store Buttons --- */
.store-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.store-btn {
    display: inline-block;
    transition: var(--transition);
}

.store-btn:hover {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.1);
}

.store-btn img {
    height: 44px;
    width: auto;
    display: block;
}

@media (max-width: 1024px) {
    .store-buttons { justify-content: center; }
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    background: rgba(5, 10, 14, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 36px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

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

.nav-cta .btn { padding: 10px 24px; font-size: 0.9rem; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    padding-top: 100px;
    overflow: hidden;
    position: relative;
}

/* Subtle radial glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08), transparent 70%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text { z-index: 2; }

.hero-text .headline-xl { margin-bottom: 24px; }
.hero-text .body-lg { margin-bottom: 40px; max-width: 500px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero phone cluster */
.hero-phones {
    position: relative;
    display: flex;
    justify-content: center;
    height: 620px;
}

.phone-frame {
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 6px solid #1a2332;
    background: #000;
    flex-shrink: 0;
}

.phone-frame img { width: 100%; height: 100%; object-fit: cover; }

.phone-frame.main {
    width: 280px;
    height: 590px;
    z-index: 3;
    position: relative;
}

.phone-frame.side {
    width: 240px;
    height: 510px;
    position: absolute;
    top: 60px;
    opacity: 0.6;
}

.phone-frame.side-left { left: -30px; transform: rotate(-6deg); z-index: 2; }
.phone-frame.side-right { right: -30px; transform: rotate(6deg); z-index: 2; }

/* ================================================================
   FEATURE SHOWCASE — Alternating left/right
   ================================================================ */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase.flip { direction: rtl; }
.showcase.flip > * { direction: ltr; }

.showcase-text { max-width: 500px; }
.showcase-text .badge { margin-bottom: 20px; }
.showcase-text .headline-lg { margin-bottom: 20px; }
.showcase-text .body-lg { margin-bottom: 32px; }

.check-list { display: flex; flex-direction: column; gap: 14px; }

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 1.05rem;
    color: var(--text-dim);
}

.check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050a0e;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 3px;
}

.showcase-phone {
    display: flex;
    justify-content: center;
}

.showcase-phone .phone-frame.main {
    width: 320px;
    height: 660px;
    box-shadow: var(--shadow), var(--glow-accent);
}

/* ================================================================
   HORIZONTAL PHONE GALLERY — Scrollable row of features
   ================================================================ */
.gallery-section {
    padding: 120px 0;
    overflow: hidden;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-header .headline-lg {
    margin-bottom: 16px;
}

.phone-gallery {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 32px 40px;
    scrollbar-width: none;
}

.phone-gallery::-webkit-scrollbar { display: none; }

.gallery-card {
    flex-shrink: 0;
    width: 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-card .phone-frame {
    width: 280px;
    height: 560px;
    transition: var(--transition);
}

.gallery-card:hover .phone-frame {
    transform: translateY(-8px);
    box-shadow: var(--shadow), var(--glow-accent);
}

.gallery-card-label {
    text-align: center;
}

.gallery-card-label h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.gallery-card-label p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ================================================================
   FEATURE GRID — Icons + text cards
   ================================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.feature-grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
}

.feature-grid-card:hover {
    border-color: rgba(52, 211, 153, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--glow-accent);
}

.fgc-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.fgc-icon.green  { background: rgba(52, 211, 153, 0.15); }
.fgc-icon.blue   { background: rgba(56, 189, 248, 0.15); }
.fgc-icon.purple { background: rgba(167, 139, 250, 0.15); }
.fgc-icon.amber  { background: rgba(251, 191, 36, 0.15); }
.fgc-icon.rose   { background: rgba(251, 113, 133, 0.15); }

.feature-grid-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-grid-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ================================================================
   DUAL PHONE SECTION — Two phones side by side
   ================================================================ */
.dual-phones {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.dual-phones .phone-frame {
    width: 280px;
    height: 580px;
}

.dual-label {
    text-align: center;
    margin-top: 20px;
}

.dual-label h4 { font-size: 1rem; font-weight: 600; }
.dual-label p { font-size: 0.8rem; color: var(--text-muted); }

/* ================================================================
   CTA FOOTER
   ================================================================ */
.cta-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, #071a15 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.06), transparent 70%);
}

.cta-section .headline-lg { margin-bottom: 16px; }
.cta-section .body-lg { margin-bottom: 40px; max-width: 500px; margin-inline: auto; }

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text); }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; text-align: center; }
    .hero-text { display: flex; flex-direction: column; align-items: center; }
    .hero-phones { height: 500px; margin-top: 40px; }
    .phone-frame.side { display: none; }
    .showcase { grid-template-columns: 1fr; text-align: center; }
    .showcase.flip { direction: ltr; }
    .showcase-text { max-width: 100%; margin: 0 auto; }
    .showcase-phone { margin-top: 40px; }
    .dual-phones { flex-wrap: wrap; }
}

@media (max-width: 640px) {
    .wrapper { padding: 0 20px; }
    .section { padding: 80px 0; }
    .hero { min-height: auto; padding: 120px 0 80px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .nav-links { display: none; }
    .phone-frame.main { width: 260px; height: 540px; }
    .showcase-phone .phone-frame.main { width: 280px; height: 580px; }
    .gallery-card { width: 240px; }
    .gallery-card .phone-frame { width: 240px; height: 480px; }
    .headline-xl { font-size: 2.2rem; }
    .nav-inner { padding: 0 16px; }
    .nav-logo { font-size: 1.1rem; gap: 8px; }
    .nav-logo img { height: 28px; }
    .nav-cta .btn { padding: 8px 12px; font-size: 0.8rem; }
    .hero-actions { flex-wrap: nowrap; justify-content: center; gap: 10px; }
    .hero-actions .btn { padding: 12px 20px; font-size: 0.85rem; white-space: nowrap; }
    .store-buttons { justify-content: center; gap: 8px; }
    .feature-grid { grid-template-columns: 1fr; }
}

html { scroll-behavior: smooth; }