/* ============================================
   Geney — Marketing site
   Crimson Text display / DM Sans body / Roboto Mono labels
   Deep purple bg (#2e1240) with geney brand purple (#5C1150)
   ============================================ */

:root {
    /* Background — deep purple (astral galaxy-like, but geney) */
    --bg: #1e0e2e;
    --bg-raised: #271438;
    --bg-surface: #301a42;

    /* Text */
    --fg: #f4f0f6;
    --fg-muted: #a89bb2;
    --fg-faint: #6e5c7a;

    /* Brand purple — warmed geney.ai #5C1150 */
    --purple: #5C1150;
    --purple-mid: #8a2e6e;
    --purple-light: #c44da3;
    --purple-glow: rgba(196, 77, 163, 0.15);

    /* Warm accent */
    --warm: #e8c46a;
    --warm-dim: #c9a44e;

    /* Teal from desktop app */
    --teal: #3bcccc;

    /* Borders */
    --border: #3a2050;
    --border-light: #4a2d62;

    --radius: 6px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    min-height: 100vh;
}

/* ---- Typography ---- */
h1, h2 {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--fg);
}
h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
em {
    font-family: 'Crimson Text', Georgia, serif;
    font-style: italic;
}

/* ---- Layout ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- Mono labels ---- */
.mono-label {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--purple-light);
    margin-bottom: 1.5rem;
}

.section-body {
    color: var(--fg-muted);
    font-size: 1.05rem;
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 4rem;
}

/* ==========================================
   NAV
   ========================================== */
nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 12px 24px;
    background: rgba(30, 14, 46, 0.55);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(92, 17, 80, 0.2);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--fg);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}
.nav-logo .logo-icon { width: 22px; height: 22px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}
.nav-links a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
    background: var(--purple);
    color: var(--fg) !important;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--purple-mid) !important; }

/* ==========================================
   HERO — massive, full-viewport
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Gradient glow */
.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 900px;
    background:
        radial-gradient(ellipse 600px 400px at 35% 40%, rgba(92, 17, 80, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 65% 55%, rgba(59, 204, 204, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 300px 300px at 50% 30%, rgba(196, 77, 163, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Decorative DNA helix */
.dna-helix {
    position: absolute;
    right: 8%;
    top: 5%;
    height: 90%;
    width: 120px;
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    position: relative;
}

.hero h1 {
    font-size: clamp(72px, 12vw, 160px);
    margin-bottom: 60px;
}
.hero-line-1,
.hero-line-2,
.hero-line-3 {
    display: block;
}
.hero-line-3 em {
    background: linear-gradient(135deg, var(--purple-light), var(--teal));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-body {
    max-width: 480px;
}

.hero-description {
    font-size: 1rem;
    color: var(--fg-muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
.hero-aside {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    color: var(--fg-faint);
    margin-bottom: 2.5rem;
    letter-spacing: 0.01em;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    letter-spacing: -0.01em;
}
.btn-primary {
    background: var(--purple);
    color: var(--fg);
    box-shadow: 0 4px 16px rgba(92, 17, 80, 0.35);
}
.btn-primary:hover {
    background: var(--purple-mid);
    box-shadow: 0 4px 24px rgba(92, 17, 80, 0.5);
}
.btn-outline {
    background: transparent;
    color: var(--fg-muted);
    border: 1px solid var(--border-light);
}
.btn-outline:hover {
    color: var(--fg);
    border-color: var(--fg-faint);
    background: rgba(255, 255, 255, 0.03);
}

/* ==========================================
   ENGINE
   ========================================== */
.engine {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}
.engine h2 {
    font-size: clamp(40px, 5vw, 64px);
    margin-bottom: 1.5rem;
}

.engine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.engine-card {
    background: var(--bg-raised);
    padding: 3rem;
    transition: background 0.25s;
}
.engine-card:hover {
    background: var(--bg-surface);
}
.engine-card-full {
    grid-column: 1 / -1;
}

.card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--purple-light);
    background: rgba(196, 77, 163, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(196, 77, 163, 0.12);
}
.card-label {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg-faint);
    margin-bottom: 0.5rem;
}
.engine-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}
.engine-card p {
    font-size: 0.88rem;
    color: var(--fg-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 440px;
}

.code-block {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--fg-faint);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}
.code-prefix {
    color: var(--purple-light);
}
.code-dim {
    color: var(--fg-faint);
}

/* Search flow */
.search-flow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}
.flow-node {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--fg-muted);
    background: var(--bg);
}
.flow-op {
    color: var(--purple-light);
    border-color: rgba(196, 77, 163, 0.25);
    background: rgba(196, 77, 163, 0.05);
}
.flow-goal {
    color: var(--warm);
    border-color: rgba(232, 196, 106, 0.25);
    background: rgba(232, 196, 106, 0.05);
}
.flow-arrow {
    color: var(--fg-faint);
    font-size: 0.85rem;
}

/* ==========================================
   FEATURES — 3-col grid
   ========================================== */
.features {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}
.features h2 {
    font-size: clamp(40px, 5vw, 64px);
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.feature-card {
    background: var(--bg-raised);
    padding: 2.25rem;
    transition: background 0.25s;
}
.feature-card:hover {
    background: var(--bg-surface);
}
.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--purple-light);
    background: rgba(196, 77, 163, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(196, 77, 163, 0.12);
}
.feature-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.84rem;
    color: var(--fg-muted);
    line-height: 1.65;
}

/* ==========================================
   DOWNLOADS
   ========================================== */
.downloads {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.downloads h2 {
    font-size: clamp(48px, 6vw, 80px);
    margin-bottom: 0.75rem;
}
.dl-sub {
    color: var(--fg-faint);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    margin-bottom: 3.5rem;
    letter-spacing: 0.02em;
}
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 640px;
    margin: 0 auto;
}
.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.25s;
    color: var(--fg);
}
.download-card:hover {
    border-color: var(--purple-mid);
    background: var(--bg-surface);
    box-shadow: 0 4px 24px rgba(92, 17, 80, 0.2);
}
.download-card svg {
    color: var(--fg-muted);
    margin-bottom: 0.5rem;
}
.dl-platform {
    font-weight: 600;
    font-size: 0.95rem;
}
.dl-arch {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    color: var(--fg-faint);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}
footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-left {
    font-size: 0.75rem;
    color: var(--fg-faint);
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.footer-links a {
    color: var(--fg-faint);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: clamp(64px, 10vw, 120px);
    }
    .dna-helix {
        opacity: 0.3;
        right: 2%;
    }
}
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    .hero h1 {
        font-size: 64px;
        margin-bottom: 40px;
    }
    .dna-helix { display: none; }
    .engine { padding: 80px 0; }
    .features { padding: 80px 0; }
    .downloads { padding: 80px 0; }
    .engine-grid { grid-template-columns: 1fr; }
    .engine-card-full { grid-column: auto; }
    .feature-grid { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; max-width: 320px; }
    .search-flow { gap: 0.4rem; }
    footer .container { flex-direction: column; gap: 1.5rem; text-align: center; }
    .nav-inner { gap: 1.5rem; padding: 10px 20px; }
    .nav-links { gap: 1rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero h1 { font-size: 52px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .engine h2, .features h2 { font-size: 36px; }
}
