/* ============================================================
   DECA SAAS — DESIGN TOKENS (v2)
   Palette: near-black ink + warm paper, deep teal as the single
   accent — a color enterprise software rarely reaches for, chosen
   to read as trustworthy and considered rather than "startup blue."
   Type: Fraunces for display headlines (an editorial, confident
   serif that signals an established practice, not a template),
   Inter for interface and body copy, IBM Plex Mono held back
   strictly for spec-sheet data — registration numbers, addresses,
   nav labels.
   ============================================================ */

:root {
  --ink: #0e1116;
  --ink-2: #171b22;
  --ink-soft: #667085;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --rule: #e6e4de;
  --rule-soft: #eeece6;

  --accent: #0f7a6c;
  --accent-deep: #0b5a50;
  --accent-bright: #2dd7bd;
  --accent-soft: #e7f3f0;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --measure: 65ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04), 0 1px 1px rgba(14, 17, 22, 0.03);
  --shadow-md: 0 12px 32px -12px rgba(14, 17, 22, 0.16), 0 2px 8px rgba(14, 17, 22, 0.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0;
}

p { margin: 0 0 1rem; max-width: var(--measure); color: var(--ink); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--rule-soft);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}

.wordmark img { height: 26px; width: auto; border-radius: 5px; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }

.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

/* -------- breadcrumb (service pages) -------- */

.breadcrumb {
  padding: 1rem var(--gutter) 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.breadcrumb a { text-decoration: none; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent-deep); }

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

.hero {
  position: relative;
  background: radial-gradient(120% 140% at 78% -10%, #1d3d38 0%, var(--ink-2) 42%, var(--ink) 78%);
  color: var(--paper);
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5) 30%, transparent 85%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.06;
  font-weight: 500;
  color: var(--paper);
  max-width: 17ch;
}

.hero p.lede {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: #c4cbd1;
  margin-top: 1.25rem;
  max-width: 42ch;
}

.hero .meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #8892a0;
  margin-top: 1rem;
}

.hero .meta a { color: #aeb8c2; }

.btn {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--accent-bright);
  border-radius: var(--radius-sm);
  background: var(--accent-bright);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { background: #45e2c9; box-shadow: var(--shadow-sm); transform: translateY(-1px); }

.btn-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-dark:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--paper);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.diagram { width: 100%; height: auto; }

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

section { padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 500;
}

.section-head .count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-bottom: 0.35rem;
}

/* -------- two-column split (about / contact) -------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.split > div {
  padding: 2rem clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.split h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.split .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.6rem;
}

.datasheet { margin-top: 1.25rem; }

.datasheet dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.85rem;
}

.datasheet dd {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin: 0.2rem 0 0;
}

/* -------- capability list -------- */

.cap-list { border-top: 1px solid var(--rule); }

.cap-row {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.5rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.15s ease;
}

.cap-row .index {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.cap-row h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.cap-row a.more {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--accent-deep);
  display: inline-block;
  margin-top: 0.5rem;
}

.cap-row a.more:hover { color: var(--ink); }

/* -------- product grid -------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product-card {
  padding: 1.85rem clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.product-card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.6rem;
}

.product-card h3 { font-size: 1.12rem; font-weight: 500; margin-bottom: 0.5rem; }

.product-card p { font-size: 0.98rem; margin-bottom: 0; }

@media (max-width: 800px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* -------- founder -------- */

.founder {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.founder img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

.founder .role {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.founder h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 0.85rem; }

/* -------- article (service pages) -------- */

article.service h1 {
  font-size: clamp(2.1rem, 4.5vw, 2.85rem);
  font-weight: 500;
  max-width: 20ch;
}

article.service .kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.9rem;
}

article.service .intro {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-top: 1rem;
}

article.service h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 3rem;
  margin-bottom: 0.85rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

article.service .cta-block {
  margin-top: 3rem;
  padding: 2rem clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

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

.site-footer {
  padding: 2.25rem var(--gutter);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer a { color: var(--ink-soft); text-decoration-color: var(--rule); }
.site-footer a:hover { color: var(--accent-deep); text-decoration-color: var(--accent); }

/* -------- responsive -------- */

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .diagram { max-width: 300px; }
  .split { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder img { max-width: 160px; }
  .site-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 62px;
    right: var(--gutter);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem;
    gap: 1rem;
    z-index: 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
