/* ═══════════════════════════════════════════════════════════════
   Siphon — Professional Media Toolkit
   Avirn design system, emerald accent, no emojis.
═══════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --bg: #060a0c;
    --bg2: #0a1014;
    --bg3: #10161d;
    --surface: #161c26;
    --surface2: #1c2430;
    --border: rgba(255, 255, 255, .06);
    --border2: rgba(255, 255, 255, .1);
    --text: #e4e4ec;
    --text2: rgba(255, 255, 255, .6);
    --text3: rgba(255, 255, 255, .35);
    --accent: #10b981;
    --accent2: #06b6d4;
    --accent-glow: rgba(16, 185, 129, .12);
    --green: #22c55e;
    --yellow: #eab308;
    --radius: 12px;
    --radius-lg: 18px;
    --max-w: 1100px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px
}

/* ─── Nav ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(6, 10, 12, .85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border)
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.nav-logo {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text);
    text-decoration: none
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center
}

.nav-links a {
    color: var(--text3);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s
}

.nav-links a:hover {
    color: var(--text)
}

.nav-avirn {
    color: var(--accent) !important;
    font-weight: 600 !important
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text2);
    border-radius: 1px;
    transition: all .2s
}

/* ─── Hero ─── */
.hero {
    padding: 140px 0 80px;
    position: relative;
    text-align: center;
    overflow: hidden
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, .08) 0%, transparent 70%);
    pointer-events: none
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--accent-glow);
    border: 1px solid rgba(16, 185, 129, .2);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 28px
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 60%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--text2);
    margin-bottom: 16px;
    letter-spacing: -.01em
}

.hero-sub {
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
    color: var(--text3);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    border: none
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, .25)
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(16, 185, 129, .35);
    transform: translateY(-2px)
}

.btn-ghost {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border2)
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .03)
}

/* ─── Terminal ─── */
.terminal {
    max-width: 680px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4)
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg3);
    border-bottom: 1px solid var(--border)
}

.terminal-dots {
    display: flex;
    gap: 6px
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.terminal-dots span:first-child {
    background: #ff5f57
}

.terminal-dots span:nth-child(2) {
    background: #ffbd2e
}

.terminal-dots span:last-child {
    background: #28c840
}

.terminal-title {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text3)
}

.terminal-body {
    padding: 20px 22px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text2)
}

.terminal-body pre {
    white-space: pre-wrap;
    word-break: break-word
}

.t-comment {
    color: var(--text3);
    font-style: italic
}

.t-cmd {
    color: #fff;
    font-weight: 500
}

.t-flag {
    color: var(--accent)
}

.t-val {
    color: var(--accent2)
}

.t-tag {
    color: var(--accent);
    font-weight: 500
}

.t-num {
    color: var(--green)
}

.t-arrow {
    color: var(--text3)
}

/* ─── Stats Bar ─── */
.stats-bar {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border)
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center
}

.stat {
    padding: 28px 16px;
    border-right: 1px solid var(--border)
}

.stat:last-child {
    border-right: none
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.5px
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px
}

/* ─── Sections ─── */
.section {
    padding: 80px 0
}

.section-dark {
    background: var(--bg2)
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 12px;
    text-align: center
}

.section-sub {
    font-size: clamp(.9rem, 1.3vw, 1.05rem);
    color: var(--text2);
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: center;
    line-height: 1.7
}

/* ─── Tools Grid (3x3) ─── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: all .2s
}

.tool-card:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .2)
}

.tool-primary {
    border-color: rgba(16, 185, 129, .3);
    background: linear-gradient(135deg, rgba(16, 185, 129, .08), rgba(6, 182, 212, .05))
}

.tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(16, 185, 129, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--accent)
}

.tool-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px
}

.tool-card p {
    font-size: 13px;
    color: var(--text3);
    line-height: 1.55
}

/* ─── Engine Grid ─── */
.engine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.eng-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all .2s
}

.eng-card:hover {
    border-color: var(--border2);
    transform: translateY(-2px)
}

.eng-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px
}

.eng-card p {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6
}

/* ─── Studio Grid ─── */
.studio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px
}

.stu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all .2s
}

.stu-card:hover {
    border-color: var(--border2);
    transform: translateY(-2px)
}

.stu-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px
}

.stu-card p {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6
}

/* ─── Privacy Grid ─── */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px
}

.priv-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px
}

.priv-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px
}

.priv-card p {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6
}

/* ─── CTA ─── */
.cta-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    text-align: center
}

.cta-inner {
    padding: 80px 24px
}

/* ─── Footer ─── */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 40px 0
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px
}

.footer-brand {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text3)
}

.footer-links {
    display: flex;
    gap: 24px
}

.footer-links a {
    color: var(--text3);
    font-size: 13px;
    text-decoration: none;
    transition: color .2s
}

.footer-links a:hover {
    color: var(--text)
}

.footer-copy {
    font-size: 12px;
    color: var(--text3)
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media(max-width:900px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .engine-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:680px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(6, 10, 12, .97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        padding: 12px 0
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        padding: 14px 24px;
        font-size: 14px
    }

    .nav-toggle {
        display: flex
    }

    .hero {
        padding: 110px 0 60px
    }

    .hero-title {
        font-size: clamp(2.4rem, 10vw, 3.2rem)
    }

    .hero-sub {
        font-size: 15px
    }

    .hero-actions {
        flex-direction: column;
        align-items: center
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center
    }

    .hero-glow {
        display: none
    }

    .terminal {
        margin: 0 -8px
    }

    .terminal-body {
        font-size: 11px;
        padding: 16px
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .stat {
        padding: 20px 12px
    }

    .stat-num {
        font-size: 22px
    }

    .section {
        padding: 56px 0
    }

    .tools-grid {
        grid-template-columns: 1fr
    }

    .studio-grid {
        grid-template-columns: 1fr
    }

    .privacy-grid {
        grid-template-columns: 1fr
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center
    }
}