/* DW Technology LLC — site styles */

:root {
  --bg:            #ffffff;
  --bg-alt:        #f4f8f9;
  --surface:       #ffffff;
  --surface-alt:   #eef4f6;
  --text:          #0e1418;
  --text-muted:    #55666e;
  --text-faint:    #7c8d95;
  --accent:        #0b8ba3;
  --accent-strong: #076f83;
  --accent-soft:   #e3f2f5;
  --node:          #5b8ba3;
  --border:        #dde5e8;
  --border-strong: #c4d2d7;
  --shadow:        0 1px 2px rgba(14, 20, 24, .04), 0 8px 24px -12px rgba(14, 20, 24, .18);
  --shadow-lift:   0 2px 4px rgba(14, 20, 24, .05), 0 18px 40px -18px rgba(14, 20, 24, .28);
  --radius:        14px;
  --radius-sm:     10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --logo-light: block;
  --logo-dark: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0b1014;
    --bg-alt:        #101820;
    --surface:       #121b21;
    --surface-alt:   #17222a;
    --text:          #eaf2f5;
    --text-muted:    #a2b4bc;
    --text-faint:    #7d919a;
    --accent:        #2bb4cd;
    --accent-strong: #55cbe0;
    --accent-soft:   #10313a;
    --node:          #6ea6bf;
    --border:        #22303a;
    --border-strong: #33454f;
    --shadow:        0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
    --shadow-lift:   0 2px 4px rgba(0, 0, 0, .45), 0 18px 40px -18px rgba(0, 0, 0, .85);
    --logo-light: none;
    --logo-dark: block;
  }
}

:root[data-theme="dark"] {
  --bg:            #0b1014;
  --bg-alt:        #101820;
  --surface:       #121b21;
  --surface-alt:   #17222a;
  --text:          #eaf2f5;
  --text-muted:    #a2b4bc;
  --text-faint:    #7d919a;
  --accent:        #2bb4cd;
  --accent-strong: #55cbe0;
  --accent-soft:   #10313a;
  --node:          #6ea6bf;
  --border:        #22303a;
  --border-strong: #33454f;
  --shadow:        0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
  --shadow-lift:   0 2px 4px rgba(0, 0, 0, .45), 0 18px 40px -18px rgba(0, 0, 0, .85);
  --logo-light: none;
  --logo-dark: block;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: auto; }
.brand .logo-light { display: var(--logo-light); }
.brand .logo-dark  { display: var(--logo-dark); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; }
.brand-sub { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-muted); font-size: .93rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
}
.nav a:hover { color: var(--text); background: var(--surface-alt); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

.theme-toggle {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text-muted);
  cursor: pointer; font-size: 1rem; line-height: 1; padding: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }

.nav-toggle {
  display: none; width: 38px; height: 38px; place-items: center;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 12px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 1rem; }
  .header-actions { margin-left: auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-size: .96rem; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.13rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 92px;
  background:
    radial-gradient(900px 420px at 78% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(700px 380px at 6% 108%, color-mix(in srgb, var(--node) 13%, transparent), transparent 68%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero > .wrap { position: relative; }
.hero-inner { max-width: 760px; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { font-size: 1.22rem; max-width: 640px; }
.hero .btn-row { margin-top: 32px; }

.hero-sub {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--border);
  font-size: .88rem; color: var(--text-faint);
}
.hero-sub strong { color: var(--text-muted); font-weight: 600; }

.page-hero {
  padding: 72px 0 60px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero .lead { max-width: 660px; }

.crumbs { font-size: .84rem; color: var(--text-faint); margin-bottom: 18px; }
.crumbs a { color: var(--text-muted); }
.crumbs span { padding: 0 6px; opacity: .6; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-muted); font-size: .97rem; }

a.card, .card-link { color: inherit; text-decoration: none; display: block; }
a.card:hover, .card-link:hover {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: var(--shadow-lift); border-color: var(--border-strong);
}

.card-icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--accent-soft); color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }

.card-tag {
  display: inline-block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .06em; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 10px; margin-bottom: 16px;
}

.card-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-size: .9rem; font-weight: 600; color: var(--accent);
}
a.card:hover .card-more { gap: 10px; }
.card-more::after { content: "→"; transition: transform .16s ease; }

/* ---------- Feature list ---------- */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks strong { color: var(--text); font-weight: 600; }

/* ---------- Split ---------- */

.split { display: grid; gap: 52px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lift); width: 100%; }
.split-media figcaption { margin-top: 12px; font-size: .82rem; color: var(--text-faint); }
figure { margin: 0; }

/* ---------- Steps ---------- */

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  position: relative; padding: 28px 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 18px;
  font-family: var(--mono); font-size: .9rem; font-weight: 700;
  color: #fff; background: var(--accent); border-radius: 9px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- Stats ---------- */

.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat {
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.stat-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--accent); line-height: 1.15; }
.stat-label { font-size: .88rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- Brand row ---------- */

.brandrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.brandchip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); font-weight: 600; font-size: .92rem;
  text-decoration: none;
}
.brandchip:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.brandchip img { width: 22px; height: 22px; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 1.02rem; margin-bottom: .7em; }
.contact-card p, .contact-card address { font-style: normal; color: var(--text-muted); font-size: .97rem; margin: 0; }
.contact-card a { font-weight: 600; }
.contact-big { font-size: 1.08rem; font-weight: 600; }

.cta {
  border: 1px solid var(--border); border-radius: var(--radius);
  background:
    radial-gradient(600px 260px at 88% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%),
    var(--surface-alt);
  padding: 52px 44px; text-align: center;
}
.cta h2 { margin-bottom: .35em; }
.cta .lead { margin-inline: auto; max-width: 560px; }
.cta .btn-row { justify-content: center; margin-top: 30px; }

/* ---------- Prose (legal pages) ---------- */

.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.7em; font-size: 1.13rem; }
.prose ul { color: var(--text-muted); padding-left: 22px; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; width: 34%; }
.prose td { color: var(--text-muted); }
.prose .updated { font-size: .88rem; color: var(--text-faint); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 60px 0 28px; margin-top: 0;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: .93rem; max-width: 320px; }
.footer-col h4 {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 16px; font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: .93rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col address { font-style: normal; color: var(--text-muted); font-size: .93rem; line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: .86rem; color: var(--text-faint);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { color: var(--text-faint); }

/* ---------- 404 ---------- */

.center-page { min-height: 58vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.err-code { font-family: var(--mono); font-size: 4rem; font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -.04em; }

/* ---------- Utilities ---------- */

.mt-sm { margin-top: 10px; }
.mt-lg { margin-top: 30px; }
.center-row { justify-content: center; }
.gap-sm { gap: 18px; }
.subtle { opacity: .85; }
