/* Divengine Studio website. Plain CSS, no build step. */
:root {
  --brand: #335999;
  --brand-600: #2a4a80;
  --brand-700: #213b66;
  --navy: #142846;
  --navy-900: #0b1830;
  --cyan: #4fd8ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f4f7fb;
  --white: #fff;
  --ok: #15803d;
  --radius: 14px;
  --shadow: 0 24px 60px -24px rgba(15, 30, 60, .35);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: .1em .35em; }
pre { font: 14px/1.6 var(--mono); background: var(--navy-900); color: #d5ecff; border-radius: 12px; padding: 1.1rem 1.25rem; overflow-x: auto; margin: 0 0 1.25rem; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand img { width: 36px; height: 33px; border-radius: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .45rem .7rem; border-radius: 8px; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); background: #eef3fb; }
.nav .btn { margin-left: .5rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 10px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1px solid var(--brand); color: var(--brand); background: var(--white);
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: #eef3fb; color: var(--brand-700); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.btn-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav .btn { padding: .5rem 1rem; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(79, 216, 255, .18), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 70%);
  color: #cfdcf0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 36px 36px; pointer-events: none;
}
.hero .wrap { position: relative; padding: 5.5rem 0 0; }
.hero h1, .hero h2 { color: #fff; }
.hero .lead { font-size: 1.2rem; max-width: 760px; color: #cfdcf0; }
.hero .eyebrow { color: var(--cyan); }
.hero-shot { margin-top: 3.5rem; position: relative; }
.hero-shot .frame { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
.page-hero .wrap { padding: 4.5rem 0 4rem; }
.eyebrow { display: inline-block; font: 600 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Browser frame around screenshots */
.frame { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid rgba(15, 23, 42, .12); box-shadow: var(--shadow); }
.frame::before {
  content: ""; display: block; height: 30px;
  background: #eef1f6 radial-gradient(circle at 16px 15px, #ff6159 5px, transparent 6px) no-repeat,
              radial-gradient(circle at 34px 15px, #ffbd2e 5px, transparent 6px) no-repeat,
              radial-gradient(circle at 52px 15px, #28c941 5px, transparent 6px) no-repeat;
  background-color: #eef1f6; border-bottom: 1px solid #e1e6ee;
}
.frame.dark::before { background-color: #1b2840; border-bottom-color: #23324f; }

/* Sections */
section { padding: 5.5rem 0; }
.alt { background: var(--soft); }
.dark-band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #cfdcf0; }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .eyebrow { color: var(--cyan); }
.dark-band .lead, .dark-band p { color: #b9c9e2; }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3.5rem; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split + .split { margin-top: 6rem; }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 1rem; height: .55rem; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.dark-band .ticks li::before { border-color: var(--cyan); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .4rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: #b8c8e4; box-shadow: 0 18px 40px -24px rgba(20, 40, 70, .45); transform: translateY(-2px); }
.card h3 { margin: .35rem 0 .2rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .more { margin-top: auto; padding-top: .8rem; font-weight: 600; color: var(--brand); font-size: .95rem; }
.icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: #eef3fb; color: var(--brand); }
.icon svg { width: 22px; height: 22px; }
.dark-band .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.dark-band .card p { color: #b9c9e2; }
.dark-band .icon { background: rgba(79, 216, 255, .12); color: var(--cyan); }

.pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.25rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; font-size: .88rem; font-weight: 500; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #e3ecf8; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

/* Flow strip */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; counter-reset: step; }
.flow li { list-style: none; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1rem; }
.flow li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 .85rem/1 var(--font); margin-bottom: .6rem; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -.68rem; top: 50%; transform: translateY(-50%); color: var(--brand); font-weight: 700; background: var(--soft); line-height: 1; }
.flow strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.05rem; }
.flow span { font-size: .88rem; color: var(--muted); }
.flow { padding: 0; margin: 0; }

/* Comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare .card h3 { display: flex; align-items: center; gap: .5rem; }
.compare .no li::before { content: "×"; border: 0; transform: none; top: -.05em; color: #b91c1c; font-weight: 700; font-size: 1.2rem; width: auto; height: auto; }

/* Steps (install) */
.steps { counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps > li { counter-increment: s; position: relative; padding-left: 3.25rem; margin-bottom: 2rem; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 1rem/1 var(--font); }
.steps h3 { margin-bottom: .4rem; }

table.specs { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; font-size: .97rem; }
table.specs th, table.specs td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs th { font: 600 .78rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--soft); }

/* Roadmap */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--brand); }
.timeline li.done::before { background: var(--brand); }
.timeline .tag { display: inline-block; font: 600 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 6px; background: #e7f6ec; color: var(--ok); margin-left: .5rem; vertical-align: middle; }
.timeline .tag.next { background: #eef3fb; color: var(--brand); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; background: var(--white); margin-bottom: .75rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; color: var(--text); }

/* CTA */
.cta { text-align: center; }
.cta .actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--navy-900); color: #9fb2d0; padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #cfdcf0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h2 { font: 600 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid .brand { color: #fff; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }

.breadcrumb { font-size: .88rem; margin-bottom: 1.25rem; color: #9fb2d0; }
.breadcrumb a { color: #cfdcf0; }

/* Reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse > :first-child { order: 0; }
  .cards, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow li:nth-child(3)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: .75rem 16px 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .75rem; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 4rem 0; }
  .hero .wrap { padding-top: 3.5rem; }
  .cards, .cards.two, .cards.four, .compare { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
