:root {
    --bg-color: #05060a;
    --text-color: #f8fafc;
    --muted: #94a3b8;
    --primary: #E8730A;
    --primary-hover: #D66A09;
    --primary-dim: rgba(232, 115, 10, 0.15);
    --primary-border: rgba(232, 115, 10, 0.3);
    --glass-bg: rgba(13, 15, 23, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
    --code-bg: rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── Blobs ── */
.blob {
    position: fixed;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.35;
    animation: none;
    pointer-events: none;
}
.blob-1 { top: -5%; left: -10%; width: 55vw; height: 55vw; background: var(--bg-color); }
.blob-2 { bottom: -10%; right: -10%; width: 45vw; height: 45vw; background: var(--bg-color); animation-delay: -6s; }
.blob-3 { top: 45%; left: 35%; width: 35vw; height: 35vw; background: var(--bg-color); animation-delay: -12s; opacity: 0.12; }

@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 70px) scale(1.12); }
}

/* ── Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── Glass ── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 5%; }
.section { padding: 7rem 5%; max-width: 1160px; margin: 0 auto; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    text-align: center;
    margin-bottom: 1rem;
}
.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 4rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    color: var(--text-color);
}
@keyframes gradientFlow { to { background-position: 200% center; } }

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1.1rem;
    border-radius: 20px;
    background: var(--primary-dim);
    color: #FFB77A;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary-border);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.badge.pulse { animation: none; }
@keyframes pulseGlow {
    0%   { box-shadow: none; }
    70%  { box-shadow: none; }
    100% { box-shadow: none; }
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: none; }
.btn-ghost { background: transparent; border: 1px solid var(--glass-border); color: var(--text-color); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn-github {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-github:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-glow { box-shadow: none; }
.btn-glow:hover { box-shadow: none; }

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 0.9rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
}
.logo {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
}
.logo .z { color: #E8730A; }
.logo .ikra { color: #7A3A0A; }

.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}
.nav-links a:hover { color: var(--text-color); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--primary); background: var(--primary-dim); }

.nav-actions { display: flex; gap: 0.75rem; align-items: center; }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10rem 5% 5rem;
    background: var(--bg-color);
}
.hero-title { font-size: clamp(2.8rem, 5.5vw, 5rem); margin-bottom: 1.5rem; letter-spacing: -1.5px; }
.hero-sub { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2.5rem; color: var(--muted); line-height: 1.8; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; margin-bottom: 4.5rem; flex-wrap: wrap; }

/* Inner page hero (shorter) */
.hero-inner {
    padding: 9rem 5% 4rem;
    text-align: center;
}
.hero-inner .hero-title { font-size: clamp(2.4rem, 4.5vw, 4rem); }

/* ── Terminal ── */
.terminal {
    width: 100%;
    max-width: 820px;
    border-radius: 14px;
    text-align: left;
    margin: 0 auto;
}
.terminal-header {
    background: rgba(0,0,0,0.5);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 14px 14px 0 0;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.terminal-label { color: var(--muted); font-size: 0.82rem; font-family: 'JetBrains Mono', monospace; margin: 0 auto; }
.terminal-body {
    padding: 1.75rem 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 2;
}
.prompt { color: var(--primary); margin-right: 0.4rem; }
.t-out { color: var(--muted); display: block; }
.t-success { color: #4ade80; display: block; }
.t-dim { color: #475569; display: block; margin-top: 0.5rem; }
.t-stat { color: #FFB77A; display: block; }

/* Float animation for terminal */
.float {
    animation: none;
}
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* ── Cards ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1.5rem; }

.card {
    padding: 2rem 2.2rem;
    border-radius: 16px;
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--primary-border); }
.card-icon { font-size: 2.2rem; margin-bottom: 1.25rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.card p { color: var(--muted); font-size: 0.975rem; }

/* ── Feature row ── */
.feature-row {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 6rem;
}
.feature-row.flip { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-visual { flex: 1; position: relative; }
.feature-text h3 { font-size: 1.9rem; margin-bottom: 0.85rem; }
.feature-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.step-tag {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    background: var(--primary-dim);
    color: #FFB77A;
    border: 1px solid var(--primary-border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.check-list { list-style: none; }
.check-list li {
    padding: 0.4rem 0;
    color: #e2e8f0;
    font-size: 0.975rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.check-list li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ── Code block ── */
.code-block {
    background: var(--code-bg);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #e2e8f0;
    line-height: 1.9;
    overflow-x: auto;
}
.code-block .c-prompt { color: var(--primary); }
.code-block .c-comment { color: #475569; }
.code-block .c-key { color: #FFB77A; }
.code-block .c-val { color: #86efac; }
.code-block .c-out { color: var(--muted); }
.code-block .c-success { color: #4ade80; }

/* ── Command table ── */
.cmd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.cmd-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--glass-border);
}
.cmd-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: top;
}
.cmd-table tr:last-child td { border-bottom: none; }
.cmd-table tr:hover td { background: rgba(255,255,255,0.025); }
.cmd-name {
    font-family: 'JetBrains Mono', monospace;
    color: #FFB77A;
    font-size: 0.85rem;
    white-space: nowrap;
}
.cmd-aliases {
    font-family: 'JetBrains Mono', monospace;
    color: var(--muted);
    font-size: 0.78rem;
}
.cmd-desc { color: #cbd5e1; font-size: 0.88rem; }

/* ── Env table ── */
.env-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.env-table th {
    text-align: left;
    padding: 0.65rem 1rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--glass-border);
}
.env-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: top;
}
.env-table tr:last-child td { border-bottom: none; }
.env-name {
    font-family: 'JetBrains Mono', monospace;
    color: #93c5fd;
    font-size: 0.82rem;
    white-space: nowrap;
}
.env-req { color: var(--primary); font-weight: 600; font-size: 0.8rem; }
.env-opt { color: var(--muted); font-size: 0.8rem; }
.env-default { font-family: 'JetBrains Mono', monospace; color: var(--muted); font-size: 0.8rem; }
.env-desc { color: #cbd5e1; }

/* ── Stack pills ── */
.stack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 3.5rem;
}
.stack-pill {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    font-size: 0.82rem;
    color: #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Compare table ── */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.compare-table th {
    padding: 1rem 1.25rem;
    text-align: center;
    font-size: 1rem;
}
.compare-table th:first-child { text-align: left; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.compare-table td {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: center;
}
.compare-table td:first-child { text-align: left; color: #e2e8f0; }
.compare-table .col-lite { color: #FFB77A; font-weight: 700; font-size: 1.1rem; }
.compare-table .col-pro  { color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.tick { color: #4ade80; font-size: 1.1rem; }
.cross { color: #475569; font-size: 1.1rem; }
.partial { color: #fbbf24; font-size: 0.85rem; }

/* ── Architecture diagram (text) ── */
.arch-diagram {
    background: var(--code-bg);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.85;
    color: #94a3b8;
    overflow-x: auto;
}
.arch-diagram .arch-node { color: #FFB77A; }
.arch-diagram .arch-arrow { color: #E8730A; }
.arch-diagram .arch-label { color: #64748b; }
.arch-diagram .arch-ok { color: #4ade80; }

/* ── CTA band ── */
.cta-band {
    text-align: center;
    padding: 5rem 5%;
    max-width: 700px;
    margin: 0 auto;
}
.cta-band h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
.cta-band p { color: var(--muted); margin-bottom: 2.5rem; font-size: 1.05rem; }
.cta-band .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── License page ── */
.license-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 20px;
}
.license-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.85;
    color: #94a3b8;
    white-space: pre-wrap;
    background: var(--code-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}
.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-copy { color: var(--muted); font-size: 0.875rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

/* ── Agent chips / avatars ── */
.agent-chip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
    letter-spacing: -0.3px;
    font-family: 'JetBrains Mono', monospace;
}
.av-human { background: rgba(232,115,10,0.15); border: 2px solid #E8730A;  color: #FFB77A; }
.av-cweb  { background: rgba(139,92,246,0.15);  border: 2px solid #8B5CF6; color: #C4B5FD; }
.av-ccode { background: rgba(74,222,128,0.1);   border: 2px solid #4ade80; color: #4ade80; }
.av-gpt   { background: rgba(52,211,153,0.1);   border: 2px solid #34D399; color: #34D399; }
.av-team  { background: rgba(148,163,184,0.1);  border: 2px solid #64748b; color: #94a3b8; }
.av-sm { width: 34px; height: 34px; font-size: 0.7rem; }
.av-lg { width: 56px; height: 56px; font-size: 1rem; }
.av-xl { width: 72px; height: 72px; font-size: 1.15rem; }

/* ── Before / After panels ── */
.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.ba-panel { border-radius: 16px; padding: 2rem; }
.ba-before { border-color: rgba(248,113,113,0.25) !important; }
.ba-after  { border-color: rgba(74,222,128,0.2)  !important; }
.ba-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 1.5rem;
}
.ba-before .ba-label { color: #f87171; }
.ba-after  .ba-label { color: #4ade80; }

.session-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}
.session-title {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}
.agents-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.agent-line { flex: 1; height: 2px; border-radius: 1px; }
.agent-line.connected { background: linear-gradient(90deg, #E8730A 0%, #4ade80 100%); }
.agent-line.broken    { background: repeating-linear-gradient(90deg, #f87171 0, #f87171 5px, transparent 5px, transparent 10px); }

.session-outputs { display: flex; flex-direction: column; gap: 0.35rem; }
.so-ok  { font-size: 0.82rem; color: #4ade80; font-family: 'JetBrains Mono', monospace; }
.so-err { font-size: 0.82rem; color: #f87171; font-family: 'JetBrains Mono', monospace; }
.session-break {
    text-align: center;
    font-size: 0.73rem;
    color: #475569;
    margin: 0.75rem 0;
    font-family: 'JetBrains Mono', monospace;
}

/* Hub spoke (after panel) */
.hub-spoke { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; height: 100%; justify-content: center; }
.hub-agents { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; }
.hub-agent  { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.hub-agent span { font-size: 0.68rem; color: var(--muted); }
.hub-arrows { color: var(--primary); font-size: 1rem; opacity: 0.7; }
.hub-center {
    padding: 0.85rem 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary);
    background: var(--primary-dim);
    text-align: center;
}
.hub-result { display: flex; flex-direction: column; gap: 0.4rem; width: 100%; }

/* ── Journey Timeline ── */
.journey-timeline {
    display: flex;
    flex-direction: column;
    max-width: 860px;
    margin: 3rem auto 0;
}
.jt-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding-bottom: 2.5rem;
    position: relative;
}
.jt-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 58px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(232,115,10,0.3) 0%, transparent 100%);
}
.jt-avatars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 56px;
}
.jt-content { flex: 1; padding: 1.5rem 1.75rem; border-radius: 14px; }
.jt-content p { color: var(--muted); font-size: 0.975rem; line-height: 1.75; margin-top: 0.75rem; }
.jt-content cite { display: block; margin-top: 0.85rem; font-size: 0.85rem; color: #FFB77A; font-style: normal; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .feature-row, .feature-row.flip { flex-direction: column; gap: 2.5rem; }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { letter-spacing: -0.5px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; max-width: 320px; text-align: center; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .compare-table { font-size: 0.8rem; }
    .compare-table td, .compare-table th { padding: 0.65rem 0.75rem; }
    .before-after { grid-template-columns: 1fr; }
    .jt-step { flex-direction: column; gap: 1rem; }
    .jt-step::before { display: none; }
    .jt-avatars { flex-direction: row; min-width: unset; }
    .hub-agent span { display: none; }
}
