:root {
    --bg: #09090b;
    --bg-raised: #0f0f12;
    --bg-card: #141417;
    --bg-term: #0b0b0d;
    --border: #1e1e24;
    --border-hi: #2a2a32;
    --text: #e2e2e8;
    --text-2: #9898a6;
    --text-3: #5a5a6a;
    --orange: #f97316;
    --orange-lo: rgba(249,115,22,0.12);
    --orange-hi: #fb923c;
    --green: #22c55e;
    --cyan: #06b6d4;
    --purple: #a78bfa;
    --yellow: #eab308;
    --mono: 'JetBrains Mono', 'SF Mono', monospace;
    --sans: 'DM Sans', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Grain texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

code { font-family: var(--mono); font-size: 0.9em; }
.cta code { font-size: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ──────────────────────────────────── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 14px 0;
    background: rgba(9,9,11,0.82);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-right { display: flex; align-items: center; gap: 16px; position: relative; }
.logo { font-family: var(--mono); font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); text-decoration: none; transition: color 0.2s; letter-spacing: 0.3px; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px; background: var(--orange); transform: scaleX(0); transition: transform 0.2s; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.btn-sm { color: var(--bg); }
.nav-links a.btn-sm:hover { color: var(--bg); }
.nav-links a.btn-sm::after { display: none; }
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 28px;
    padding: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.nav-hamburger:hover { opacity: 0.8; }
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn-sm {
    font-family: var(--mono); font-size: 12px; font-weight: 600;
    padding: 7px 14px; background: var(--orange); color: var(--bg);
    border: none; border-radius: 5px; cursor: pointer; text-decoration: none;
    transition: all 0.2s;
}
.btn-sm:hover { background: var(--orange-hi); box-shadow: 0 0 20px var(--orange-lo); }
.btn-sm-outline {
    background: transparent;
    border: 1px solid var(--orange);
    color: var(--orange);
}
.btn-sm-outline:hover { background: var(--orange-lo); color: var(--orange-hi); }
.nav-links a.btn-sm-outline { color: var(--orange); }
.nav-links a.btn-sm-outline:hover { color: var(--orange-hi); background: var(--orange-lo); }
.nav-try.btn-sm {
    box-shadow: 0 0 12px var(--orange-lo), 0 0 24px rgba(249, 115, 22, 0.35), 0 0 40px rgba(249, 115, 22, 0.15);
}
.nav-try.btn-sm:hover {
    box-shadow: 0 0 18px var(--orange-lo), 0 0 36px rgba(249, 115, 22, 0.4), 0 0 56px rgba(249, 115, 22, 0.2);
}

/* ── Hero ─────────────────────────────────── */
.hero { padding: 150px 0 80px; position: relative; }
.hero::before {
    content: ''; position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 550px;
    background: radial-gradient(ellipse, rgba(249,115,22,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 11px; color: var(--orange);
    background: var(--orange-lo); border: 1px solid rgba(249,115,22,0.2);
    padding: 5px 14px; border-radius: 100px; margin-bottom: 28px;
    animation: fadeUp 0.5s ease both;
}
.badge::before { content: ''; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; animation: pulse 2s infinite; }
h1 {
    font-family: var(--sans); font-size: clamp(40px, 5.5vw, 68px); font-weight: 700;
    line-height: 1.06; letter-spacing: -2.5px; margin-bottom: 20px;
    animation: fadeUp 0.5s ease 0.05s both;
}
h1 em { color: var(--orange); font-style: normal; }
.hero-sub {
    font-size: 17px; color: var(--text-2); max-width: 520px; margin-bottom: 44px;
    animation: fadeUp 0.5s ease 0.1s both;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; animation: fadeUp 0.5s ease 0.15s both; }

.cmd-box {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 7px;
    padding: 11px 16px; font-family: var(--mono); font-size: 13px;
    cursor: pointer; transition: all 0.2s; position: relative; user-select: none;
}
.cmd-box:hover { border-color: var(--border-hi); background: var(--bg-raised); }
.cmd-box .ps { color: var(--orange); user-select: none; }
.cmd-box .tip {
    position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: var(--bg); font-size: 10px; font-weight: 600;
    padding: 3px 10px; border-radius: 4px; opacity: 0; transition: opacity 0.2s;
    pointer-events: none; white-space: nowrap;
}
.cmd-box .tip.show { opacity: 1; }
.gh-link {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--mono); font-size: 12px; color: var(--text-2); text-decoration: none;
    padding: 11px 16px; border: 1px solid var(--border); border-radius: 7px; transition: all 0.2s;
}
.gh-link:hover { border-color: var(--border-hi); color: var(--text); }

/* ── Terminal ─────────────────────────────── */
.term {
    background: var(--bg-term); border: 1px solid var(--border); border-radius: 11px;
    overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.45);
    animation: fadeUp 0.5s ease 0.2s both;
}
.term-bar {
    display: flex; align-items: center; gap: 7px; padding: 12px 16px;
    background: var(--bg-raised); border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.term-title { flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.term-body { padding: 22px; font-family: var(--mono); font-size: 12.5px; line-height: 1.85; overflow-x: auto; color: var(--text); }
.term-body .ln { white-space: pre; opacity: 0; animation: termLn 0.4s ease-out forwards; }
.term-body .ln:first-of-type { background: rgba(249,115,22,0.06); border-left: 3px solid var(--orange); margin: 0 -22px; padding: 4px 22px; margin-bottom: 2px; }
.term-body .ps { color: var(--orange); }
.term-body .cm { color: var(--text); font-weight: 600; }
.term-body .fl { color: var(--cyan); }
.term-body .st { color: var(--green); }
.term-body .tg { color: var(--purple); }
.term-body .co { color: var(--text-3); font-style: italic; }
.term-body .ou { color: var(--text-2); }
.term-body .hi { color: var(--yellow); }
.blink { display: inline-block; width: 7px; height: 15px; background: var(--orange); vertical-align: middle; animation: blink 1s step-end infinite; }

/* ── Section commons ──────────────────────── */
section { padding: 100px 0; }
.label { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 14px; }
h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 14px; }
.sec-desc { color: var(--text-2); font-size: 15px; max-width: 500px; margin-bottom: 56px; }

/* ── Why section ──────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.why-card { background: var(--bg-card); padding: 36px 32px; transition: background 0.25s; }
.why-card:hover { background: var(--bg-raised); }
.why-card .num { font-family: var(--mono); font-size: 42px; font-weight: 700; color: var(--orange); opacity: 0.25; line-height: 1; margin-bottom: 16px; }
.why-card h3 { font-family: var(--mono); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.why-card p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.why-card .price { font-family: var(--mono); font-size: 12px; color: var(--orange); margin-top: 10px; display: inline-block; background: var(--orange-lo); padding: 3px 10px; border-radius: 4px; }
.why-card .verified-badge { font-size: 12px; font-weight: 600; padding: 4px 12px; border: 1px solid rgba(249,115,22,0.35); letter-spacing: 0.3px; }

/* ── How it works ─────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; }
.step::after {
    content: '→'; position: absolute; right: -18px; top: 42px;
    color: var(--text-3); font-size: 20px;
}
.step:last-child::after { display: none; }
.step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--orange-lo); border: 1px solid rgba(249,115,22,0.25);
    font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--orange);
    margin-bottom: 16px;
}
.step h3 { font-family: var(--mono); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 13px; line-height: 1.5; }

/* ── Features grid ────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.feat { background: var(--bg-card); padding: 32px 28px; transition: background 0.25s; }
.feat-grid .feat:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.feat:hover { background: var(--bg-raised); }
.feat-ico { font-size: 26px; margin-bottom: 16px; display: block; }
.feat h3 { font-family: var(--mono); font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.feat p { color: var(--text-2); font-size: 13px; line-height: 1.55; }

/* ── Piping / Integrations ────────────────── */
.pipes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.pipe-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    padding: 24px 28px; transition: all 0.2s;
}
.pipe-card:hover { border-color: var(--border-hi); }
.pipe-card h3 { font-family: var(--mono); font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.pipe-card pre {
    font-family: var(--mono); font-size: 12px; line-height: 1.7;
    color: var(--text-2); background: var(--bg-term); border: 1px solid var(--border);
    border-radius: 6px; padding: 14px 16px; overflow-x: auto;
}
.pipe-card pre .ps { color: var(--orange); }
.pipe-card pre .co { color: var(--text-3); }
.pipe-card p { color: var(--text-2); font-size: 13px; margin-top: 10px; line-height: 1.5; }

/* ── Pricing / Cost comparison ────────────── */
.cost-table {
    width: 100%; border-collapse: collapse; margin-top: 48px;
    font-family: var(--mono); font-size: 12px;
}
.cost-table th {
    text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border);
    color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 10px;
}
.cost-table td {
    padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-2);
}
.cost-table tbody tr:hover td { background: var(--bg-card); }
.cost-table tbody tr:hover td:first-child { border-left: 2px solid var(--orange); padding-left: 14px; }
.cost-table .savings { color: var(--green); font-weight: 600; }
.cost-table .waste { color: var(--text-3); text-decoration: line-through; }

/* ── Annual projection ────────────────────── */
.cost-footnote { color: var(--text-3); font-size: 12px; font-family: var(--mono); margin-top: 16px; }
.cost-note { color: var(--text-3); font-size: 12px; margin-top: 8px; max-width: 560px; }
.annual-projection { margin-top: 48px; }
.annual-heading { font-size: 1.15rem; margin-bottom: 12px; color: var(--text-2); }
.annual-desc { color: var(--text-3); font-size: 14px; margin-bottom: 24px; max-width: 560px; }
.annual-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.annual-col { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; text-align: center; }
.annual-tier { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.annual-usage { font-family: var(--mono); font-size: 15px; color: var(--text-2); margin-bottom: 4px; }
.annual-amount { font-size: 24px; font-weight: 700; color: var(--green); }
.annual-amount-lg { font-size: 32px; font-weight: 800; }
.annual-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.annual-cta { font-size: 15px; font-weight: 600; color: var(--text); max-width: 520px; }

/* ── CTA ──────────────────────────────────── */
.cta { text-align: center; padding: 100px 0; position: relative; }
.cta::before {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, rgba(249,115,22,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.cta .wrap {
    display: flex; flex-direction: column; align-items: center;
    max-width: 520px; margin-left: auto; margin-right: auto;
}
.cta h2 { margin-bottom: 20px; text-align: center; }
.cta p { color: var(--text-2); font-size: 15px; margin-bottom: 36px; text-align: center; }
.cta-download-desc { font-size: 12px; color: var(--text-3); margin-bottom: 12px; text-align: center; }
.cta-code {
    font-family: var(--mono); font-size: 14px; background: var(--bg-card);
    border: 1px solid var(--border); padding: 16px 28px; border-radius: 8px;
    display: block; margin: 0 0 16px; position: relative;
    width: 100%; box-sizing: border-box;
}
.cta-code .ps { color: var(--orange); }
.cta-code .tip {
    position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: var(--bg); font-size: 10px; font-weight: 600;
    padding: 3px 10px; border-radius: 4px; opacity: 0; transition: opacity 0.2s;
    pointer-events: none; white-space: nowrap;
}
.cta-code .tip.show { opacity: 1; }
.cta-sub {
    font-size: 13px; color: var(--text-3);
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px;
    text-align: center; width: 100%;
}
.cta-sub a { color: var(--orange); text-decoration: none; }
.cta-sub a.cta-mac-app { font-weight: 600; }
.cta-sub a.cta-mac-app-nowrap { white-space: nowrap; }
.cta-sub a.cta-mac-app:hover { text-decoration: underline; }

/* ── Try layout (split screen) ─────────────── */
.try-layout { display: flex; min-height: 100vh; }
.main-content { flex: 1; min-width: 0; }
.try-panel {
    position: relative;
    width: 0; overflow: hidden; flex-shrink: 0;
    display: flex; flex-direction: column;
    background: var(--bg-raised); border-left: none;
    transition: width 0.2s ease;
}
.try-layout.try-panel-open .try-panel { width: min(420px, 45vw); border-left: 1px solid var(--border); }
.try-layout.try-panel-collapsed .try-panel { width: 48px; overflow: visible; }
.try-layout.try-panel-collapsed .try-panel-header .try-panel-title,
.try-layout.try-panel-collapsed .try-panel-actions,
.try-layout.try-panel-collapsed .try-panel-body { display: none !important; }
.try-layout.try-panel-collapsed .try-panel-tab { display: flex !important; width: 48px; min-width: 48px; box-sizing: border-box; z-index: 2; cursor: pointer; }
.try-panel-header {
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text);
    position: relative; z-index: 1;
}
.try-panel-actions { display: flex; gap: 8px; align-items: center; }
.try-panel-btn {
    padding: 0; border: none; border-radius: 5px;
    background: transparent; color: var(--text-3); cursor: pointer;
    font-size: 13px; line-height: 1; transition: color 0.2s, background 0.2s;
    font-family: var(--mono);
}
.try-panel-btn:hover { color: var(--text); background: var(--bg-card); }
.try-panel-btn-label { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; cursor: pointer; }
.try-panel-btn-icon { font-size: 14px; line-height: 1; }
.try-panel-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.try-panel-body { flex: 1; overflow-y: auto; padding: 20px; min-height: 0; }
.try-panel-tab {
    display: none; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    writing-mode: vertical-rl; text-orientation: mixed; padding: 12px 8px;
    font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--orange);
    background: var(--bg-card); border: 1px solid var(--border); border-right: none;
    border-radius: 8px 0 0 8px; cursor: pointer;
}
.try-panel-tab:hover { background: var(--orange-lo); }
/* ── Try playground ───────────────────────── */
.try-playground { position: relative; }
.try-playground::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 800px; height: 500px;
    background: radial-gradient(ellipse, rgba(249,115,22,0.06) 0%, transparent 65%);
    pointer-events: none;
}
.try-playground-box {
    background: var(--bg-term); border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(249,115,22,0.06);
    max-width: 700px;
    transition: box-shadow 0.3s;
}
.try-playground-box:focus-within {
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(249,115,22,0.15), 0 0 40px rgba(249,115,22,0.05);
}
.try-playground-header {
    display: flex; align-items: center; gap: 7px; padding: 12px 16px;
    background: var(--bg-raised); border-bottom: 1px solid var(--border);
}
.try-playground-dots { display: flex; gap: 7px; }
.try-playground-label { flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.try-playground-body { padding: 24px; }
.try-playground-input-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
    font-family: var(--mono); font-size: 13px;
}
.try-playground-ps { color: var(--orange); font-weight: 600; }
.try-playground-cmd { color: var(--text); font-weight: 600; }
.try-playground-hint { color: var(--text-3); font-size: 11px; margin-left: auto; }
.try-playground-action { display: flex; gap: 12px; align-items: flex-start; }
.try-playground-textarea {
    flex: 1; min-height: 56px; padding: 14px 16px;
    font-family: var(--mono); font-size: 13px; line-height: 1.5;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); resize: vertical; transition: border-color 0.2s;
}
.try-playground-textarea::placeholder { color: var(--text-3); }
.try-playground-textarea:focus { outline: none; border-color: var(--orange); }
.try-playground-submit {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    font-family: var(--mono); font-size: 13px; font-weight: 600;
    padding: 14px 20px; background: var(--orange); color: var(--bg);
    border: none; border-radius: 8px; cursor: pointer;
    transition: all 0.2s; white-space: nowrap;
    box-shadow: 0 0 20px rgba(249,115,22,0.2), 0 0 40px rgba(249,115,22,0.1);
}
.try-playground-submit:hover {
    background: var(--orange-hi);
    box-shadow: 0 0 30px rgba(249,115,22,0.3), 0 0 60px rgba(249,115,22,0.15);
    transform: translateY(-1px);
}
.try-playground-meta {
    display: flex; gap: 8px; align-items: center; margin-top: 16px;
    font-family: var(--mono); font-size: 11px; color: var(--text-3);
}
.try-playground-sep { color: var(--border-hi); }

/* ── Try promptctl ─────────────────────────── */
.try-panel-body .try-app { max-width: 100%; }
.try-cta { margin-bottom: 0; }
.try-open-btn { font-size: 14px; padding: 10px 20px; }
.try-form-wrap { margin-top: 0; }
.try-form-header { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.try-exit-btn {
    font-family: var(--mono); font-size: 11px; padding: 6px 12px;
    background: transparent; border: 1px solid var(--border); border-radius: 5px;
    color: var(--text-3); cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.try-exit-btn:hover { border-color: var(--border-hi); color: var(--text-2); }
.try-intent-area { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.try-textarea {
    width: 100%; min-height: 88px; padding: 14px 16px;
    font-family: var(--mono); font-size: 13px; line-height: 1.5;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); resize: vertical;
}
.try-textarea::placeholder { color: var(--text-3); }
.try-textarea:focus { outline: none; border-color: var(--orange); }
.try-submit { align-self: flex-start; }
.try-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.try-thinking {
    display: flex; align-items: center; gap: 10px; padding: 24px 0;
    font-family: var(--mono); font-size: 13px; color: var(--text-2);
}
.try-thinking[hidden] {
    display: none !important;
}
.try-thinking-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
    animation: tryThinking 1.2s ease-in-out infinite both;
}
.try-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.try-thinking-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes tryThinking { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
.try-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.try-modal[hidden] {
    display: none !important;
    pointer-events: none;
    visibility: hidden;
}
.try-modal-inner {
    position: relative; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 28px 32px; max-width: 400px; width: 90%;
}
.try-modal-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.try-modal-desc { color: var(--text-2); font-size: 13px; margin-bottom: 20px; line-height: 1.5; }
.try-modal-no-config { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-bottom: 12px; }
.try-modal-no-config code { font-size: 10px; background: var(--bg-raised); padding: 1px 4px; border-radius: 3px; }
.try-signin-buttons { display: flex; flex-direction: column; gap: 10px; }
.try-signin-btn {
    font-family: var(--mono); font-size: 13px; padding: 12px 16px;
    background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.try-signin-btn:hover { border-color: var(--orange); background: var(--orange-lo); }
.try-signin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.try-signin-btn:disabled:hover { border-color: var(--border); background: var(--bg-raised); }
.try-modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border: none; background: transparent;
    color: var(--text-3); font-size: 22px; line-height: 1; cursor: pointer;
    border-radius: 6px; transition: color 0.2s, background 0.2s;
}
.try-modal-close:hover { color: var(--text); background: var(--bg-raised); }
.try-logged-in {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-bottom: 16px; font-family: var(--mono); font-size: 12px;
}
.try-logged-in[hidden] { display: none !important; }
.try-user-email { color: var(--text-2); }
.try-quota { color: var(--orange); background: var(--orange-lo); padding: 3px 10px; border-radius: 4px; }
.try-remove-account {
    font-family: var(--mono); font-size: 11px; color: var(--text-3);
    background: transparent; border: none; cursor: pointer; text-decoration: underline;
    transition: color 0.2s;
}
.try-remove-account:hover { color: var(--text-2); }
.try-result { margin-top: 20px; }
.try-result-quota { font-family: var(--mono); font-size: 12px; color: var(--orange); margin-bottom: 12px; }
.try-textarea--mumbo { border-color: rgba(239,68,68,0.6); box-shadow: 0 0 0 1px rgba(239,68,68,0.2); }
.try-mumbo-wrap {
    margin-top: 10px; padding: 10px 12px;
    background: rgba(239,68,68,0.08); border: 1px dashed rgba(239,68,68,0.4);
    border-radius: 8px; font-family: var(--mono); font-size: 12px;
}
.try-mumbo-wrap[hidden] { display: none !important; }
.try-mumbo-msg { color: var(--text-2); margin: 0 0 8px 0; }
.try-mumbo-dismiss { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 11px; cursor: pointer; }
.try-mumbo-dismiss input { cursor: pointer; }
.try-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.try-result-share { margin-bottom: 16px; }
.try-share-heading { font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 2px 0; }
.try-share-sub { font-size: 12px; color: var(--text-3); margin: 0 0 10px 0; }
.try-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.try-share-btn {
    font-family: var(--mono); font-size: 12px; padding: 8px 14px;
    background: var(--bg-raised); border: 1px solid var(--border); border-radius: 6px;
    color: var(--text-2); cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.try-share-btn { display: inline-flex; align-items: center; gap: 6px; }
.try-share-btn .try-share-icon { flex-shrink: 0; }
.try-share-btn:hover { border-color: var(--border-hi); color: var(--text); background: var(--bg-card); }
.try-share-community { color: var(--orange); text-decoration: none; }
.try-share-community:hover { text-decoration: underline; }
.try-share-banner { font-size: 11px; color: var(--text-3); margin: 10px 0 0 0; }
.try-share-btn-primary {
    background: var(--orange); border-color: var(--orange); color: #fff;
}
.try-share-btn-primary:hover { background: var(--orange-hi, #fb923c); border-color: var(--orange-hi, #fb923c); color: #fff; }
.try-action-btn {
    font-family: var(--mono); font-size: 11px; padding: 6px 12px;
    background: var(--bg-raised); border: 1px solid var(--border); border-radius: 5px;
    color: var(--text-2); cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.try-action-btn:hover { border-color: var(--border-hi); color: var(--text); }
.try-yaml-output {
    font-family: var(--mono); font-size: 12px; line-height: 1.6;
    background: var(--bg-term); border: 1px solid var(--border); border-radius: 8px;
    padding: 16px; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
    color: var(--text-2); max-height: 400px; overflow-y: auto;
}
.try-error {
    margin-top: 12px; padding: 12px 16px;
    font-family: var(--mono); font-size: 12px; color: var(--orange);
    background: var(--orange-lo); border: 1px solid rgba(249,115,22,0.25); border-radius: 8px;
}
.try-limit-actions {
    margin-top: 12px; padding: 12px 16px;
    font-size: 13px; color: var(--text-2);
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px;
}
.try-limit-heading { font-weight: 600; margin: 0 0 6px 0; color: var(--text); }
.try-limit-heading-sm { margin-top: 14px; margin-bottom: 6px; font-size: 12px; }
.try-limit-sub { margin: 0 0 12px 0; font-size: 12px; color: var(--text-3); }
.try-limit-sub-sm { margin: 0 0 8px 0; font-size: 11px; color: var(--text-3); }
.try-limit-get-more { margin-bottom: 4px; }
.try-limit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.try-limit-row:last-of-type { margin-bottom: 0; }
.try-limit-label { font-size: 12px; color: var(--text-3); min-width: 52px; }
.try-limit-btn {
    display: inline-block; padding: 6px 12px; font-size: 12px; font-family: var(--mono);
    color: var(--orange); background: var(--orange-lo); border: 1px solid rgba(249,115,22,0.3);
    border-radius: 6px; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.try-limit-btn:hover { background: rgba(249,115,22,0.2); border-color: var(--orange); }
.try-limit-list { margin: 0; padding-left: 20px; }
.try-limit-list li { margin-bottom: 6px; }
.try-limit-list li:last-child { margin-bottom: 0; }
.try-limit-link {
    color: var(--orange); text-decoration: none; background: none; border: none;
    font: inherit; cursor: pointer; padding: 0;
}
.try-limit-link:hover { text-decoration: underline; }

/* ── Try panel: examples grid ────────────── */
.try-examples { margin-bottom: 20px; }
.try-examples-label {
    font-family: var(--mono); font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-3);
    margin-bottom: 10px;
}
.try-examples-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.try-example {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 7px; cursor: pointer; transition: all 0.2s;
    text-align: left; font-family: var(--mono); font-size: 11px; color: var(--text-2);
}
.try-example:hover { border-color: var(--orange); background: var(--orange-lo); color: var(--text); }
.try-example-ico { font-size: 14px; flex-shrink: 0; line-height: 1; }
.try-example-text { line-height: 1.3; }

/* ── Try panel: cost estimate widget ─────── */
.try-cost-widget {
    margin-bottom: 16px; padding: 14px 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
}
.try-cost-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text-2);
}
.try-cost-ico { font-size: 14px; }
.try-cost-comparison { display: flex; flex-direction: column; gap: 6px; }
.try-cost-row {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono); font-size: 12px;
}
.try-cost-row-label { color: var(--text-3); }
.try-cost-row-value { font-weight: 600; }
.try-cost-structured { color: var(--green); }
.try-cost-unstructured { color: var(--text-3); text-decoration: line-through; }
.try-cost-savings { color: var(--green); }
.try-cost-savings-row {
    margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border);
}
.try-cost-note {
    font-family: var(--mono); font-size: 10px; color: var(--text-3);
    margin-top: 10px; opacity: 0.7;
}

/* ── Try panel: rotating tips ────────────── */
.try-tips {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; background: rgba(249,115,22,0.04);
    border: 1px solid rgba(249,115,22,0.1); border-radius: 8px;
    margin-bottom: 16px;
}
.try-tips-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.try-tips-text {
    font-family: var(--mono); font-size: 11px; line-height: 1.5;
    color: var(--text-2); margin: 0;
    transition: opacity 0.3s;
}

/* ── Footer ───────────────────────────────── */
footer { padding: 36px 0; border-top: 1px solid var(--border); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer p, footer a { font-family: var(--mono); font-size: 11px; color: var(--text-3); text-decoration: none; }
footer a:hover { color: var(--text-2); }
.footer-badges { display: flex; gap: 12px; align-items: center; flex-basis: 100%; margin-bottom: 8px; flex-wrap: wrap; }
.footer-badges a { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-height: 28px; max-height: 28px; flex-shrink: 0; }
.footer-badges a:hover { opacity: 0.9; }
.footer-badges img { display: block; height: 28px; max-height: 28px; width: auto; max-width: 100px; object-fit: contain; object-position: center; }
.footer-donate-desc { font-size: 12px; color: var(--text-3); margin: 4px 0 8px 0; }
.footer-share-banner { margin: 4px 0 8px 0; }
.footer-share-banner a { color: var(--orange); }
.footer-share-banner a:hover { color: var(--text-2); }
.footer-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-links svg { width: 16px; height: 16px; fill: var(--text-3); transition: fill 0.2s; }
.footer-links a:hover svg { fill: var(--text-2); }
.footer-donate-bmc { display: inline-flex; align-items: center; gap: 5px; }
.footer-icon-bmc { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Cookie consent ──────────────────────── */
.cookie-consent {
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: auto;
    max-width: 360px;
    z-index: 1000;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 14px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transform: translateX(calc(100% + 24px));
    transition: transform 0.3s ease;
}
.cookie-consent.show {
    transform: translateX(0);
}
.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-consent-text {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-2);
    margin: 0;
}
.cookie-consent-actions { display: flex; gap: 10px; }
.cookie-consent-reject,
.cookie-consent-accept {
    font-family: var(--mono);
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-2);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.cookie-consent-reject:hover {
    color: var(--text);
    border-color: var(--border-hi);
}
.cookie-consent-accept {
    background: var(--orange);
    color: var(--bg);
    border-color: var(--orange);
}
.cookie-consent-accept:hover { background: var(--orange-hi); }

/* ── Version toast ───────────────────────── */
.version-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,140,50,0.08);
    overflow: hidden;
}
.version-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.version-toast-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s;
}
.version-toast-inner:hover {
    background: rgba(255,255,255,0.04);
}
.version-toast-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--orange);
    color: var(--bg);
}
.version-toast-text { color: var(--text-2); }
.version-toast-arrow {
    color: var(--orange);
    font-size: 15px;
    transition: transform 0.2s;
}
.version-toast-inner:hover .version-toast-arrow {
    transform: translateX(3px);
}
.version-toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 100%;
    min-height: 40px;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text-3);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.version-toast-close:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
}

/* ── Animations ──────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes termLn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Responsive ──────────────────────────── */
@media (min-width: 1200px) {
    section { padding: 80px 0; }
    .hero { padding: 120px 0 64px; }
}

@media (max-width: 1024px) {
    section { padding: 80px 0; }
    .hero { padding: 120px 0 60px; }
}

@media (max-width: 900px) {
    /* Navigation */
    .nav-hamburger { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 59px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(9,9,11,0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 12px 0;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    }
    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links a {
        width: 100%;
        padding: 14px 24px;
        border-bottom: 1px solid var(--border);
        font-size: 13px;
        color: var(--text-2);
    }
    .nav-links a::after { display: none; }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a:hover { color: var(--text); background: var(--bg-card); }
    .nav-links a.btn-sm {
        margin: 8px 24px 0;
        width: calc(100% - 48px);
        text-align: center;
    }
}

@media (max-width: 768px) {

    /* Playground */
    .try-playground-action { flex-direction: column; }
    .try-playground-submit { width: 100%; justify-content: center; }
    .try-playground-meta { flex-wrap: wrap; }
    .try-playground-hint { display: none; }

    /* Layout */
    .why-grid, .feat-grid { grid-template-columns: 1fr; }
    .feat-grid .feat:last-child:nth-child(3n+1) { grid-column: auto; }
    .steps { grid-template-columns: 1fr 1fr; }
    .step::after { display: none; }
    .pipes { grid-template-columns: 1fr; }
    .try-layout.try-panel-open .try-panel { width: 100%; }
    
    /* Typography & Spacing */
    section { padding: 60px 0; }
    .hero { padding: 100px 0 50px; }
    .hero::before { width: 600px; height: 400px; }
    h1 { font-size: clamp(32px, 8vw, 52px); letter-spacing: -1.5px; }
    .hero-sub { font-size: 16px; }
    h2 { font-size: clamp(24px, 5vw, 32px); }
    
    /* Components */
    .hero-actions { flex-direction: column; align-items: stretch; }
    .cmd-box, .gh-link { width: 100%; justify-content: center; }
    .term-body { padding: 18px; font-size: 11.5px; }
    .cost-table { font-size: 11px; }
    .cost-table th, .cost-table td { padding: 10px 12px; }
    
    /* Footer */
    footer .wrap { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .cookie-consent-inner { flex-direction: column; align-items: flex-start; }
    .version-toast { left: 16px; right: 16px; transform: translateX(0) translateY(20px); }
    .version-toast.show { transform: translateX(0) translateY(0); }
}

@media (max-width: 640px) {
    .wrap { padding: 0 20px; }
    section { padding: 50px 0; }
    .hero { padding: 90px 0 40px; }
    .steps { grid-template-columns: 1fr; }
    .term-body { padding: 16px; font-size: 11px; }
    .cost-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cost-table { min-width: 500px; }
    .annual-cols { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .wrap { padding: 0 16px; }
    section { padding: 40px 0; }
    .hero { padding: 80px 0 30px; }
    h1 { font-size: clamp(28px, 9vw, 40px); margin-bottom: 16px; }
    .hero-sub { font-size: 15px; margin-bottom: 32px; }
    .badge { font-size: 10px; padding: 4px 12px; margin-bottom: 20px; }
    .btn-sm { font-size: 11px; padding: 8px 14px; min-height: 44px; min-width: 44px; }
    .term-body { padding: 14px; font-size: 10.5px; line-height: 1.7; }
    .cta { padding: 60px 0; }
    .cookie-consent { padding: 12px 0; }
    .cookie-consent-text { font-size: 11px; }
    .cookie-consent-actions { width: 100%; }
    .cookie-consent-reject, .cookie-consent-accept { flex: 1; font-size: 11px; padding: 10px; }
}
