/* Divith Technologies — shared stylesheet.
   One system for the company site and the product pages under it. */

:root {
  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface-2: #edf1f8;
  --ink: #0b1220;
  --ink-2: #253148;
  --muted: #5d6d88;
  --line: #dde4ef;
  --line-soft: #e9eef6;

  --accent: #2f5dff;
  --accent-hover: #1f47d6;
  --accent-ink: #ffffff;
  --accent-soft: #ecf1ff;

  --terrain: #1f7a5a;
  --terrain-soft: #e7f4ef;

  --warn-ink: #7a4b00;
  --warn-soft: #fff5e3;
  --warn-line: #f0dcb4;

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1080px;
  --maxw-prose: 720px;

  /* System stack only. The site loads no third-party asset of any kind,
     so a visitor's IP address never reaches a font or CDN host. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e17;
    --surface: #111725;
    --surface-2: #18202f;
    --ink: #e9eef8;
    --ink-2: #c3cddd;
    --muted: #93a1b8;
    --line: #232d3f;
    --line-soft: #1c2534;

    --accent: #6b8dff;
    --accent-hover: #8aa5ff;
    --accent-ink: #08101f;
    --accent-soft: #16203a;

    --terrain: #4fbf95;
    --terrain-soft: #10241d;

    --warn-ink: #f0c98a;
    --warn-soft: #241c0c;
    --warn-line: #3d3016;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img, svg { max-width: 100%; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -.015em;
  font-size: 17px;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .sub {
  color: var(--muted);
  font-weight: 500;
  border-left: 1px solid var(--line);
  padding-left: 10px;
  margin-left: 2px;
  font-size: 15px;
}

.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop a {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 9px;
}
.nav-desktop a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav-desktop a.cta {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 560;
}
.nav-desktop a.cta:hover { background: var(--accent-hover); color: var(--accent-ink); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-2);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--surface); }
.nav-mobile nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.nav-mobile nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 15px;
}
.nav-mobile nav a:hover { background: var(--surface); text-decoration: none; }

@media (max-width: 820px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .brand .sub { display: none; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 420px at 12% -10%, var(--accent-soft), transparent 65%),
    radial-gradient(760px 380px at 92% 8%, var(--terrain-soft), transparent 62%),
    var(--bg);
}
.hero .wrap { padding-top: 84px; padding-bottom: 84px; }
.hero.compact .wrap { padding-top: 56px; padding-bottom: 52px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--muted);
  opacity: .6;
}

h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 17ch;
}
.hero .lede {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 32px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 560;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 560;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.terrain { background: var(--terrain-soft); border-color: transparent; color: var(--terrain); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* --------------------------------------------------------------- sections */

.section { padding: 76px 0; border-bottom: 1px solid var(--line-soft); }
.section.tint { background: var(--surface); }
.section:last-of-type { border-bottom: none; }

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -.024em;
  font-weight: 680;
  margin: 0 0 14px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.section.tint .card { background: var(--bg); }
.card h3 {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -.015em;
  margin: 0 0 10px;
}
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.card .ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.card .ico svg { width: 20px; height: 20px; }

/* featured product card */
.product-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .product-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
}
.product-card h3 {
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -.025em;
  font-weight: 680;
  margin: 14px 0 12px;
}
.product-card .tagline { color: var(--terrain); font-weight: 560; margin: 0 0 16px; }
.product-card p { color: var(--muted); margin: 0 0 20px; }
.product-card ul { margin: 0 0 24px; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.product-card ul li { margin-bottom: 7px; }

.spec {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
}
.spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.spec dt { color: var(--muted); font-size: 14px; font-weight: 550; }
.spec dd { margin: 0; font-size: 14px; font-weight: 550; text-align: right; }

/* feature rows on the product page */
.feature-list { display: grid; gap: 2px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.feature {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 26px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.feature:last-child { border-bottom: none; }
@media (max-width: 720px) {
  .feature { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
}
.feature h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -.015em;
  color: var(--terrain);
}
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* --------------------------------------------------------------- callouts */

.callout {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.callout strong { color: var(--ink); }
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--warn-ink);
}
.callout.warn strong { color: var(--warn-ink); }
.callout.accent { background: var(--accent-soft); border-color: transparent; }

/* ------------------------------------------------------------------ prose */

.doc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 56px 0 88px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 0; padding-top: 36px; } }

.toc { position: sticky; top: 96px; align-self: start; font-size: 14.5px; }
@media (max-width: 900px) {
  .toc {
    position: static;
    margin-bottom: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
  }
}
.toc p {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 620;
  color: var(--muted);
}
.toc a { display: block; padding: 5px 0; color: var(--muted); line-height: 1.4; }
.toc a:hover { color: var(--accent); text-decoration: none; }

.prose { max-width: var(--maxw-prose); }
.prose h1 {
  font-size: clamp(30px, 4.2vw, 42px);
  max-width: none;
  margin-bottom: 12px;
}
.prose .meta {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.prose h2 {
  font-size: 23px;
  font-weight: 660;
  letter-spacing: -.02em;
  margin: 48px 0 14px;
  scroll-margin-top: 92px;
}
.prose h3 {
  font-size: 18px;
  font-weight: 620;
  margin: 32px 0 10px;
  scroll-margin-top: 92px;
}
.prose p { margin: 0 0 16px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; color: var(--ink-2); }
.prose li { margin-bottom: 9px; }
.prose li > ul { margin-top: 9px; }
.prose strong { color: var(--ink); font-weight: 620; }
.prose blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 18px;
}
.prose code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 5px;
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 44px 0; }
.prose .callout { margin: 0 0 22px; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0 0 20px;
}
table.data th, table.data td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
}
table.data th {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom-color: var(--line);
}
table.data td { color: var(--ink-2); }
table.data td.yes { color: var(--terrain); font-weight: 600; }
table.data td.no { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; margin: 0 0 22px; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 560;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { background: var(--surface); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { margin: 0 0 12px; padding-left: 22px; }
.faq .answer li { margin-bottom: 6px; }

/* contact block */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.contact-card h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.022em; font-weight: 680; }
.contact-card p { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 60px 0 36px;
  font-size: 14.5px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-about p { color: var(--muted); margin: 14px 0 0; max-width: 34ch; line-height: 1.6; }
.foot-col h4 {
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 620;
  margin: 0 0 14px;
}
.foot-col a { display: block; padding: 5px 0; color: var(--ink-2); }
.foot-col a:hover { color: var(--accent); text-decoration: none; }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 26px;
  color: var(--muted);
  font-size: 13.5px;
}
.foot-bottom a { color: var(--muted); }

/* --------------------------------------------------------------- utilities */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 404 */
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { margin: 0 auto 18px; max-width: none; }
.notfound p { color: var(--muted); margin: 0 auto 28px; max-width: 48ch; }
