:root {
  --bg: #fbfaf7;
  --bg-alt: #f2f0ea;
  --surface: #ffffff;
  --ink: #111827;
  --ink-soft: #4b5563;
  --line: #e5e2da;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-ink: #ffffff;
  --brand-soft: #eef0ff;
  --good: #15803d;
  --bad: #b91c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(17 24 39 / 5%), 0 12px 32px rgb(17 24 39 / 8%);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f17;
    --bg-alt: #121726;
    --surface: #161c2c;
    --ink: #eef1f7;
    --ink-soft: #a7b0c2;
    --line: #262e42;
    --brand: #8b8cff;
    --brand-2: #b18cff;
    --brand-ink: #0c0f17;
    --brand-soft: #1d2242;
    --good: #4ade80;
    --bad: #f87171;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .75rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: .5rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------ buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.35rem; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink);
  font: inherit; font-weight: 650; text-decoration: none; box-shadow: 0 6px 20px rgb(79 70 229 / 25%);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgb(79 70 229 / 32%); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.button.small { padding: .55rem 1rem; font-size: .92rem; }
.button:disabled { opacity: .6; cursor: progress; transform: none; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 4.25rem; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo svg { width: 32px; height: 32px; }
.logo-bg { fill: var(--brand); }
.logo-p { fill: none; stroke: var(--brand-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.logo-dot { fill: var(--brand-ink); }
.site-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: .95rem; }
.site-nav a:hover { color: var(--ink); }

/* ------------------------------------------------------------ hero */
.hero { padding: 4.5rem 0 4rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
.accent { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.ticks { list-style: none; padding: 0; margin: 0; color: var(--ink-soft); font-size: .97rem; }
.ticks li { padding-left: 1.6rem; position: relative; margin: .35rem 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }

/* before/after illustration, pure CSS */
.compare { margin: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; }
.compare figcaption { grid-column: 1 / -1; text-align: center; font-size: .88rem; color: var(--ink-soft); margin-top: .75rem; }
.arrow { font-size: 1.6rem; color: var(--brand); font-weight: 800; }
.browser { border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.browser.new { transform: scale(1.06) rotate(1deg); }
.browser.old { transform: rotate(-2deg); filter: saturate(.7); }
.chrome { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.chrome span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.chrome em { margin-left: 6px; font-style: normal; font-size: .62rem; color: var(--bad); font-weight: 700; white-space: nowrap; overflow: hidden; }
.chrome em.secure { color: var(--good); }
.old-page { padding: 10px; background: #ffffe8; min-height: 200px; font-family: "Times New Roman", serif; }
.old-banner { background: #0000aa; color: #ff0; font-size: .62rem; text-align: center; padding: 6px 2px; font-weight: 700; }
.old-cols { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 4px; margin: 8px 0; }
.old-cols div { height: 58px; background: #c0c0c0; border: 2px outset #eee; }
.old-text { height: 7px; background: #999; margin: 6px 0; }
.old-text.short { width: 60%; }
.old-footer { font-size: .5rem; color: #666; margin-top: 12px; text-align: center; }
.new-page { padding: 12px; min-height: 200px; }
.new-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.new-nav i { width: 38px; height: 10px; border-radius: 4px; background: var(--brand); }
.new-nav b { width: 46px; height: 14px; border-radius: 999px; background: var(--brand-soft); }
.new-h1 { height: 12px; border-radius: 4px; background: var(--ink); opacity: .85; margin-bottom: 7px; width: 85%; }
.new-h1.short { width: 55%; }
.new-btn { width: 70px; height: 18px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin: 12px 0 18px; }
.new-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.new-cards div { height: 44px; border-radius: 8px; background: var(--brand-soft); }

/* ------------------------------------------------------------ sections */
.section { padding: 5rem 0; }
.section.alt, .band { background: var(--bg-alt); }
.band { padding: 4.5rem 0; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 42rem; margin-bottom: 2.25rem; }
.grid { display: grid; gap: 1.25rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.pillar .ticks { color: var(--ink-soft); font-size: .98rem; }
.pillar .ticks li { margin: .6rem 0; }
.pillar strong { color: var(--ink); }
.tag { display: inline-block; vertical-align: middle; margin-left: .35rem; padding: .1rem .5rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.problem, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.problem .icon { font-size: 1.6rem; margin-bottom: .6rem; }
.problem h3, .card h3 { font-size: 1.2rem; }
.problem p, .card p { color: var(--ink-soft); }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .95rem; }
.card li { margin: .3rem 0; }
#services .section-title { margin-bottom: 2rem; }

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); font-weight: 800; margin-bottom: 1rem;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
summary { cursor: pointer; font-weight: 650; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); margin: .75rem 0 0; }

/* ------------------------------------------------------------ contact */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--brand-soft) 100%); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.contact-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 1rem; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .75rem .85rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 400;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.contact-form textarea { resize: vertical; }
.contact-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.contact-form .button { width: 100%; }
.form-note { font-size: .85rem; color: var(--ink-soft); }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--good); }
.form-status.error { color: var(--bad); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .92rem; color: var(--ink-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.25rem; align-items: flex-end; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }

/* ------------------------------------------------------------ simple pages */
.page { padding: 4rem 0 5rem; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.3rem; margin-top: 2rem; }
.page p, .page li { color: var(--ink-soft); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .compare { max-width: 560px; margin: 0 auto; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding: 2.5rem 0 3rem; }
  .section, .band { padding: 3.5rem 0; }
  .steps, .contact-form .two { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .browser.new, .browser.old { transform: none; }
}
