:root {
  --bg: #0a0f1c;
  --bg-alt: #0d1424;
  --surface: #111a2e;
  --surface-2: #16213a;
  --text: #e6ebf3;
  --muted: #94a3b8;
  --line: #1f2b45;
  --brand: #38bdf8;
  --brand-strong: #0ea5e9;
  --ok: #34d399;
  --radius: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 16px 40px rgba(0, 0, 0, .35);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #001018; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .8rem; }
.accent { background: linear-gradient(90deg, var(--brand), #818cf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 56ch; }
.sub { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--brand); color: #00131d; font: inherit; font-weight: 650;
  padding: .7rem 1.2rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; background: #7dd3fc; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(56, 189, 248, .25); }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem .95rem; font-size: .93rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--brand); box-shadow: none; }
.btn-light { background: #fff; color: #0a0f1c; }
.btn-light:hover { background: #e0f2fe; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 15, 28, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand strong { color: var(--brand); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .96rem; }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(56, 189, 248, .16), transparent 60%),
    radial-gradient(700px 420px at -5% 10%, rgba(129, 140, 248, .12), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.6rem; }
.assurances { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); font-size: .95rem; }
.assurances li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: .45rem; }

.hero-panel { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 650; font-size: .95rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.ok-dot { font-size: .78rem; font-weight: 600; color: var(--ok); display: inline-flex; align-items: center; gap: .4rem; }
.ok-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.health { list-style: none; padding: 0; margin: .4rem 0 0; }
.health li { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; color: var(--muted); }
.health li:last-child { border-bottom: 0; }
.health b { color: var(--text); font-family: var(--mono); font-weight: 500; font-size: .85rem; text-align: right; }
.health b.ok { color: var(--ok); }
.panel-foot { margin: .8rem 0 0; font-size: .76rem; color: #64748b; text-align: right; }

/* Platforms strip */
.platforms { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.platforms p { text-align: center; color: #64748b; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.platforms ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.4rem; }
.platforms li { color: #8a9ab3; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 2.8rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: rgba(56, 189, 248, .45); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .25); margin-bottom: 1.1rem; }
.icon svg { width: 23px; height: 23px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2rem 1.8rem; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 50px rgba(56, 189, 248, .15); }
.badge { position: absolute; top: -12px; left: 1.8rem; background: var(--brand); color: #00131d; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; margin: 0; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: .3rem 0 0; }
.price span { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-right: .2rem; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan-desc { color: var(--muted); font-size: .9rem; margin-bottom: 1.3rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.8rem; flex: 1; }
.plan li { padding: .45rem 0 .45rem 1.6rem; position: relative; color: #cbd5e1; font-size: .96rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan .btn { width: 100%; }
.note { text-align: center; color: var(--muted); margin: 2rem 0 0; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.why { border-left: 2px solid var(--brand); padding-left: 1.2rem; }
.why p { color: var(--muted); margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.steps span { display: block; font-family: var(--mono); font-size: .9rem; color: var(--brand); margin-bottom: .8rem; }
.steps p { color: var(--muted); margin: 0; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.work { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.work-thumb { height: 170px; display: grid; place-items: center; color: #fff; font-weight: 600; }
.work-thumb span { font-family: var(--mono); font-size: .85rem; font-weight: 500; background: rgba(0, 0, 0, .35); padding: .35rem .85rem; border-radius: 999px; }
.t1 { background: linear-gradient(135deg, #115e59, #1e3a5f); }
.t2 { background: linear-gradient(135deg, #1e3a8a, #0e7490); }
.work-body { padding: 1.4rem 1.6rem 1.7rem; }
.work-body p { color: var(--muted); }
.tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand) !important; margin-bottom: .45rem; }
.work.placeholder { border-style: dashed; background: transparent; justify-content: center; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: .8rem 0 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #0369a1, #4338ca); padding: 3.2rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .3rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-inner p { margin: 0; color: #dbeafe; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: .1rem; color: var(--text); }
.contact-list span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #64748b; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .92rem; }
.form em { font-style: normal; font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: .8rem .9rem; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.form-note { margin: 0; font-size: .92rem; color: var(--muted); min-height: 1.4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #080c17; padding: 3.5rem 0 1.5rem; color: var(--muted); font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid p { margin: .9rem 0 0; max-width: 34ch; }
.foot-grid h4 { color: var(--text); font-size: .9rem; margin-bottom: .9rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-grid a:not(.brand) { color: var(--muted); }
.foot-grid a:not(.brand):hover { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .86rem; }
.foot-bottom p { margin: 0; }

/* Grid children can shrink */
.hero-grid > *, .contact > *, .faq-wrap > * { min-width: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .cards, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans, .work-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .hero-grid, .contact, .faq-wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; }
  .nav-links .btn { margin-top: .5rem; }
  .cards, .why-grid, .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* Blinking terminal cursor */
.cursor { display: inline-block; width: .5em; height: .9em; margin-left: .12em; background: var(--brand); vertical-align: -.06em; border-radius: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.price.quote { font-size: 1.6rem; color: var(--brand); }

/* Hero terminal */
.term { background: #050912; color: #cbd5e1; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #0b1222; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: #f87171; } .term-bar i:nth-child(2) { background: #fbbf24; } .term-bar i:nth-child(3) { background: #34d399; }
.term-bar span { margin-left: auto; font: 500 .75rem var(--mono); color: #64748b; }
.term pre { margin: 0; padding: 1.4rem 1.5rem 1.7rem; font: 500 .9rem/1.9 var(--mono); overflow-x: auto; }
.term .c { color: var(--brand); } .term .ok { color: var(--ok); }
.term-cursor { width: .55em; height: 1.05em; margin-left: .1em; vertical-align: -.2em; }
.term .ln { display: block; opacity: 0; animation: ln-in .3s ease forwards; animation-delay: var(--d); }
@keyframes ln-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .term .ln { opacity: 1; animation: none; } }
