/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --ink: #0b1220;
  --ink-2: #3b4454;
  --muted: #626c7a;
  --line: #e4e8ef;
  --brand: #2566d8;
  --brand-light: #2f7bff;
  --brand-2: #19c6e6;
  --brand-ink: #0b1220;
  --dark: #0b1220;
  --dark-2: #121b2e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --max: 1140px;
  --card: #ffffff;
  --header-bg: rgba(255,255,255,.85);
  --link: #2566d8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Dark mode: follows the device unless the visitor picks one ---------- */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b1220; --bg-alt: #0f1828; --card: #131d31; --header-bg: rgba(11,18,32,.85);
  --ink: #e8edf7; --ink-2: #b9c4d8; --muted: #8e9bb3; --line: #24324f;
  --link: #8ab4ff; --dark: #060a14; --dark-2: #0e1626; --shadow: 0 10px 30px rgba(0,0,0,.4);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0b1220; --bg-alt: #0f1828; --card: #131d31; --header-bg: rgba(11,18,32,.85);
  --ink: #e8edf7; --ink-2: #b9c4d8; --muted: #8e9bb3; --line: #24324f;
  --link: #8ab4ff; --dark: #060a14; --dark-2: #0e1626; --shadow: 0 10px 30px rgba(0,0,0,.4);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700;
  color: var(--link); margin-bottom: .8rem;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36rem; }
.sub { color: var(--muted); max-width: 40rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--brand); color: #fff; font-weight: 650; padding: .85rem 1.5rem;
  border-radius: 999px; border: 2px solid var(--brand); cursor: pointer; font-size: 1rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: #1d5bc4; border-color: #1d5bc4; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(47,123,255,.3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--line); color: var(--ink); box-shadow: none; }
.btn-small { padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-size: 1.25rem; font-weight: 500; }
.brand:hover { text-decoration: none; }
.brand strong { font-weight: 800; }
.brand-mark { width: 34px; height: 34px; color: var(--brand-light); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--ink-2); font-weight: 550; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav .btn { color: #fff; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Theme toggle */
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: var(--link); }
.theme-toggle svg { width: 18px; height: 18px; display: none; }
:root[data-theme="light"] .theme-toggle .i-light, :root[data-theme="dark"] .theme-toggle .i-dark, :root:not([data-theme]) .theme-toggle .i-auto, :root[data-theme="auto"] .theme-toggle .i-auto { display: block; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(25,198,230,.18), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(47,123,255,.14), transparent 60%),
    var(--bg);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
.hero-points { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--ink-2); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--link); font-weight: 800; margin-right: .4rem; }

.card-stack { display: grid; gap: .9rem; max-width: 380px; margin-left: auto; }
.mini-card {
  display: flex; align-items: center; gap: .9rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow);
  transform: translateX(var(--shift, 0));
}
.mini-card:nth-child(2) { --shift: 28px; }
.mini-card:nth-child(3) { --shift: 56px; }
.mini-card:nth-child(4) { --shift: 28px; }
.mini-card strong { display: block; font-size: 1rem; }
.mini-card small { color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgba(0,0,0,.04); }
.dot-green { background: #22c55e; }
.dot-blue { background: var(--brand-light); }
.dot-amber { background: #f59e0b; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #d7deea; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--brand-2); }
.section-head { max-width: 44rem; margin-bottom: 2.8rem; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }

/* Services */
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-2)); color: #fff;
}
.service-icon svg { width: 26px; height: 26px; fill: currentColor; }
.service p { color: var(--ink-2); font-size: .97rem; }
.service ul { padding-left: 1.1em; margin: 0; color: var(--muted); font-size: .92rem; }
.service li { margin-bottom: .3rem; }

/* Store-ready strip */
.store-strip { margin-top: 1.6rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; background: var(--dark); color: #d7deea; border-radius: var(--radius); padding: 1.2rem 1.5rem; }
.store-strip strong { color: #fff; display: block; margin-bottom: .15rem; }
.store-strip p { margin: 0; font-size: .95rem; }
.store-badges { display: flex; gap: .6rem; flex-wrap: wrap; }
.store-badges span { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .4rem .9rem; font-size: .82rem; font-weight: 650; color: #fff; white-space: nowrap; }
.store-badges svg { width: 16px; height: 16px; fill: currentColor; }
.store-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-light), var(--brand-2)); }
.store-icon svg { width: 24px; height: 24px; fill: #fff; }
@media (max-width: 760px) { .store-strip { grid-template-columns: 1fr; } }

/* Case studies */
.case { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.case-preview { padding: 1.2rem 1.2rem 0; }
.case-12hire { background: linear-gradient(135deg, #1f2a44, #2f7bff); }
.case-weav { background: linear-gradient(135deg, #1a1a1a, #6b21a8); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 0 0 .7rem; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); }
.bar-url { margin-left: .6rem; font-size: .75rem; color: rgba(255,255,255,.9); background: rgba(255,255,255,.15); padding: .15rem .7rem; border-radius: 999px; }
.bar-url:hover { background: rgba(255,255,255,.25); text-decoration: none; }
.bar-open { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.18); padding: .25rem .7rem; border-radius: 999px; line-height: 1; }
.bar-open-icon { width: 11px; height: 11px; }
.bar-open:hover { background: rgba(255,255,255,.3); text-decoration: none; }
.case-screen { position: relative; display: block; background: #fff; border-radius: 10px 10px 0 0; overflow: hidden; aspect-ratio: 16 / 10; }
.case-shot { display: block; width: 100%; height: 100%; }
.case-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.case:hover .case-shot img { transform: scale(1.03); }
.case-screen iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; background: #fff; }
.case-screen.is-live .case-shot { display: none; }
.case-body { padding: 1.5rem; }
.case-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.case-tags span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--bg-alt); color: var(--ink-2); padding: .25rem .6rem; border-radius: 999px; }
.case-tagline { color: var(--muted); font-style: italic; margin-bottom: .6rem; }
.case-body p { color: var(--ink-2); }
.link { font-weight: 650; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.steps li { position: relative; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 800; margin-bottom: 1rem;
}
.steps p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.4rem; }
.stat strong { display: block; font-size: 2rem; color: #fff; font-weight: 800; line-height: 1; margin-bottom: .4rem; }
.stat span { font-size: .9rem; color: #9aa6ba; }

/* FAQ */
.faq-wrap { max-width: 50rem; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: .7rem; padding: 0 1.2rem; }
.faq-list summary { cursor: pointer; font-weight: 650; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--link); font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 1.1rem; color: var(--ink-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-line { font-size: 1.15rem; font-weight: 650; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field textarea { resize: vertical; }
.form-note { margin: .9rem 0 0; font-size: .9rem; color: var(--muted); }
.form-note.error { color: #dc2626; }
.form-note.ok { color: #16a34a; }

/* Footer */
.site-footer { background: var(--dark); color: #9aa6ba; padding: 3.5rem 0 1.5rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { color: var(--brand-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid p { margin-top: .8rem; font-size: .95rem; }
.footer-grid .footer-heading { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.footer-grid a { display: block; color: #9aa6ba; margin-bottom: .45rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid .brand { display: inline-flex; margin: 0; }
.footer-bottom { padding-top: 1.4rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .card-stack { margin: 1rem 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-4, .grid-2, .steps, .stats, .footer-grid { grid-template-columns: 1fr; }
  .mini-card { --shift: 0 !important; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch;
    background: var(--card); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.4rem; gap: .9rem;
  }
  .site-nav.open { display: flex; }
  .site-nav .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service, .mini-card, .nav-toggle span { transition: none; }
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.case-msb { background: linear-gradient(135deg, #5e7378, #9fb3b8); }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(3, 1fr); } .work-grid .case-body p:not(.case-tagline) { font-size: .95rem; } }

/* Hosting section */
.hosting-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.rack-wrap { position: relative; max-width: 380px; margin-inline: auto; }
.rack { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(11,18,32,.25)); }
.rack-frame { fill: #0e1628; stroke: #24324f; stroke-width: 2; }
.ru { fill: #17223a; stroke: #2a3a5c; stroke-width: 1; }
.ru-slot { fill: #0b1220; }
.led { animation: blink 1.6s ease-in-out infinite; }
.led-g { fill: #22c55e; } .led-b { fill: #2f7bff; } .led-a { fill: #f59e0b; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .led { animation: none; } }
.rack-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.rack-badges span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; color: var(--ink-2); }
.rack-badges b { color: var(--ink); }
.host-features { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.host-features li { display: flex; gap: .8rem; align-items: flex-start; }
.host-features strong { display: block; margin-bottom: .15rem; }
.host-features span:not(.hf-icon) { color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.hf-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-light), var(--brand-2)); color: #fff; }
.hf-icon svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 960px) { .hosting-grid { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 640px) { .host-features { grid-template-columns: 1fr; } }

/* Service pages */
.service .learn { display: inline-block; margin-top: 1rem; font-weight: 650; font-size: .95rem; }
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-hero .lead { max-width: 44rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--link); }
.svc-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.svc-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 2rem; } .svc-body h2:first-child { margin-top: 0; }
.svc-body p { color: var(--ink-2); font-size: 1.05rem; }
.card-lite { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.card-lite h2 { font-size: 1.2rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; } .ticks li { padding: .35rem 0 .35rem 1.7rem; position: relative; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--link); font-weight: 800; }
.more-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.more-card { display: flex; flex-direction: column; gap: .4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; color: var(--ink); }
.more-card:hover { border-color: var(--link); text-decoration: none; } .more-card span { color: var(--ink-2); font-size: .95rem; } .more-card em { font-style: normal; color: var(--link); font-weight: 650; margin-top: auto; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; } .cta-inner h2 { margin-bottom: .3rem; } .cta-inner p { margin: 0; color: #b9c4d8; }
@media (max-width: 900px) { .svc-grid, .more-links { grid-template-columns: 1fr; } .card-lite { position: static; } }
