/* Kovitu — styling shared with the Avitu design system ("Service Course Tech"). */

:root {
  /* Avitu palette */
  --service-white: #F8FAFC;
  --carbon-matte: #111827;
  --chassis-grey: #64748B;
  --glycogen-red: #EF5B5B;
  --myo-blue: #227C9D;
  --lipid-gold: #FFBA49;
  --biome-teal: #20A39E;

  --glycogen-red-light: rgba(239, 91, 91, 0.10);
  --glycogen-red-dark: #8B1A1A;
  --myo-blue-light: rgba(34, 124, 157, 0.10);
  --myo-blue-dark: #0E3D51;
  --lipid-gold-light: rgba(255, 186, 73, 0.10);
  --lipid-gold-dark: #7A5200;
  --biome-teal-light: rgba(32, 163, 158, 0.10);
  --biome-teal-dark: #0D6B67;

  --border: #E5E7EB;
  --border-soft: #F3F4F6;
  --surface: #FFFFFF;
  --surface-alt: #F9FAFB;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 4px;
  --content: 800px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--service-white);
  color: var(--carbon-matte);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.container { max-width: var(--content); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography helpers ---------- */
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--chassis-grey);
}
.muted { color: var(--chassis-grey); }
.accent-red { color: var(--glycogen-red); }

/* ---------- Buttons ---------- */
.btn, .btn-outline {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius);
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.15s;
  border: 1px solid var(--carbon-matte);
}
.btn { background: var(--carbon-matte); color: var(--service-white); }
.btn:hover { opacity: 0.85; }
.btn-outline { background: transparent; color: var(--carbon-matte); }
.btn-outline:hover { opacity: 0.7; }
.btn-light { background: var(--service-white); color: var(--carbon-matte); border-color: var(--service-white); }
.btn-outline-light { background: transparent; color: var(--service-white); border-color: #4B5563; }

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

/* ---------- Toggle / blob (AvituToggle) ---------- */
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius);
  display: inline-block;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-blue { background: var(--myo-blue-light); color: var(--myo-blue-dark); }
.tag-red  { background: var(--glycogen-red-light); color: var(--glycogen-red-dark); }
.tag-gold { background: var(--lipid-gold-light); color: var(--lipid-gold-dark); }
.tag-teal { background: var(--biome-teal-light); color: var(--biome-teal-dark); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--service-white);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 24px;
  max-width: 1100px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 28px; width: auto; }
.brand span { font-family: var(--font-mono); font-weight: 700; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--chassis-grey); text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--carbon-matte); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-border { border-top: 1px solid var(--border-soft); }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border-soft); }
.section-dark { background: var(--carbon-matte); color: var(--service-white); }

.section-title {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(26px, 5vw, 36px); line-height: 1.2;
  margin: 16px 0 24px;
}
.lead { font-size: 16px; color: var(--chassis-grey); max-width: 560px; }
.section-dark .lead { color: #9CA3AF; }

/* Decorative macro-decomposition accent bar */
.decomp { display: flex; height: 6px; width: 112px; overflow: hidden; margin-bottom: 32px; }
.decomp span { height: 100%; }
.decomp .b { background: var(--myo-blue); width: 28%; }
.decomp .r { background: var(--glycogen-red); width: 44%; }
.decomp .g { background: var(--lipid-gold); width: 20%; }
.decomp .t { background: var(--biome-teal); width: 8%; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 112px; }
.hero-grid { display: flex; align-items: center; gap: 56px; }
.hero-copy { flex: 3; display: grid; gap: 32px; }
.hero-mark { flex: 2; display: flex; justify-content: center; animation: fadeInUp 0.6s ease 0.2s both; }
.hero-mark img { width: 100%; max-width: 240px; }
.hero h1 {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(34px, 7vw, 48px); line-height: 1.15; letter-spacing: -0.02em;
}
.hero p.lead { max-width: 420px; }

@media (max-width: 760px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { display: block; }
  .hero-mark { display: none; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Branch overview (two pillars) ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; padding-top: 40px; border-top: 1px solid #1F2937; }
.pillar h3 { font-family: var(--font-mono); font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; color: var(--service-white); }
.pillar p { font-family: var(--font-mono); font-size: 12px; color: var(--chassis-grey); line-height: 1.7; }
.pillar a { color: var(--service-white); }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid; gap: 14px; align-content: start;
}
.card .bar { width: 32px; height: 4px; border-radius: var(--radius); }
.card .num { font-family: var(--font-mono); font-size: 10px; color: var(--chassis-grey); text-transform: uppercase; letter-spacing: 0.1em; }
.card h3 { font-family: var(--font-mono); font-weight: 700; font-size: 14px; text-transform: uppercase; line-height: 1.4; }
.card p { font-size: 13px; color: var(--chassis-grey); line-height: 1.7; }
.bg-red { background: var(--glycogen-red); }
.bg-blue { background: var(--myo-blue); }
.bg-gold { background: var(--lipid-gold); }
.bg-teal { background: var(--biome-teal); }

/* ---------- Approach list ---------- */
.steps { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--border); }
.steps li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.steps .k { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.steps .v { font-size: 14px; color: var(--chassis-grey); }
@media (max-width: 560px) { .steps li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Product feature ---------- */
.product {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr 260px;
  overflow: hidden;
}
.product-body { padding: 32px; display: grid; gap: 20px; align-content: start; }
.product-head { display: flex; align-items: center; gap: 12px; }
.product-head img { width: 36px; height: 36px; border-radius: var(--radius); }
.product-head h3 { font-family: var(--font-mono); font-size: 22px; font-weight: 700; }
.product-tagline { font-family: var(--font-mono); font-size: 15px; font-weight: 700; line-height: 1.5; }
.product-body p { font-size: 14px; color: var(--chassis-grey); }
.product-shot { background: var(--surface-alt); border-left: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: center; padding: 24px 24px 0; }
.product-shot img { width: 100%; max-width: 220px; border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
.telemetry { font-family: var(--font-mono); font-size: 11px; color: var(--chassis-grey); text-transform: uppercase; letter-spacing: 0.06em; }
.telemetry b { color: var(--carbon-matte); }

.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--biome-teal); }

@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .product-body { padding: 24px; }
  .product-shot { border-left: none; border-top: 1px solid var(--border); }
}

.pipeline { margin-top: 24px; border: 1px dashed #CBD5E1; border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: center; }
.pipeline p { font-size: 13px; color: var(--chassis-grey); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; padding-top: 40px; border-top: 1px solid #1F2937; }
.contact-grid dt { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--chassis-grey); margin-bottom: 6px; }
.contact-grid dd { margin: 0 0 20px; font-family: var(--font-mono); font-size: 14px; }
.contact-grid a { color: var(--service-white); text-decoration: none; border-bottom: 1px solid #4B5563; }
.contact-grid a:hover { border-color: var(--service-white); }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
footer { background: var(--surface-alt); border-top: 1px solid var(--border); padding: 56px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-grid .label { font-family: var(--font-mono); font-size: 10px; color: var(--chassis-grey); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.footer-grid a { display: block; font-size: 14px; color: var(--chassis-grey); text-decoration: none; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--carbon-matte); }
.footer-grid a.brand { display: flex; margin-bottom: 0; }
.footer-grid .tagline { font-family: var(--font-mono); font-size: 12px; color: var(--chassis-grey); margin-top: 12px; }
.legal { padding-top: 32px; font-size: 12px; color: var(--chassis-grey); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: left; }
