/* =====================================================================
   KYRTLE DESIGN SYSTEM — derived from the "Kyrtle / Solve to Grow" logo
   ---------------------------------------------------------------------
   Logo analysis
   - Wordmark: heavy geometric sans, square/flat terminals, crisp 45° cuts.
   - Mark: navy vertical stem + gold arrow rising at exactly 45°, with a
     darker gold bevel face (subtle depth, no gloss).
   - Tagline: wide-tracked uppercase geometric sans in muted slate.
   Design consequences
   - Angular geometry → small, crisp radii (2–10px), no pill shapes.
   - 45° diagonal is the signature motif (section ticks, hover arrows).
   - Navy carries structure/text, gold is a scarce growth signal.
   - Depth via soft navy-tinted shadows, never glows.
   Sampled colors: navy #123559 · gold face #E9A010 · gold bevel #D18F0A
   · slate tagline #606F88
   ===================================================================== */

:root {
  /* ---- Brand palette ---- */
  --navy-950: #071426;
  --navy-900: #0b2240;
  --navy-800: #123559; /* PRIMARY — logo wordmark */
  --navy-700: #1b4774;
  --navy-600: #275a8f;
  --navy-100: #dfe7f1;
  --navy-50: #eef3f8;

  --gold-500: #e9a010; /* SECONDARY / ACCENT — logo arrow face */
  --gold-600: #d18f0a; /* logo arrow bevel */
  --gold-700: #8f5f00; /* gold text on light (5.5:1 on #fff) */
  --gold-100: #fbecc8;
  --gold-50: #fdf7e9;

  --slate-700: #3b4a62;
  --slate-500: #606f88; /* logo tagline — 5.1:1 on #fff */
  --slate-400: #8391a6;
  --slate-300: #b7c1d0;
  --slate-200: #dde3eb;
  --slate-100: #edf1f6;
  --slate-50: #f6f8fb;

  /* ---- Semantic tokens (light — default) ---- */
  --bg: #ffffff;
  --bg-subtle: var(--slate-50);
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-hover: #fbfcfd;
  --surface-inverse: var(--navy-800);

  --text: var(--navy-900);           /* 15.2:1 */
  --text-strong: var(--navy-800);
  --muted: var(--slate-500);         /* 5.1:1  */
  --dim: var(--slate-500);           /* kept AA for small mono labels */
  --placeholder: var(--slate-400);

  --primary: var(--navy-800);
  --primary-hover: var(--navy-700);
  --on-primary: #ffffff;             /* 12.5:1 */
  --accent: var(--gold-500);
  --accent-strong: var(--gold-600);
  --accent-ink: var(--gold-700);     /* gold used as text */
  --on-accent: var(--navy-900);      /* 6.3:1 on gold */
  --accent-soft: var(--gold-50);

  --border: var(--slate-200);
  --border-strong: var(--slate-300);
  --border-active: var(--navy-800);

  --grid-line: rgba(18, 53, 91, 0.06);
  --spotlight: rgba(18, 53, 91, 0.045);
  --header-bg: rgba(255, 255, 255, 0.86);
  --overlay: rgba(7, 20, 38, 0.48);

  /* ---- Shape: crisp, angular like the wordmark ---- */
  --radius-xs: 2px;   /* tags, ticks */
  --radius-sm: 4px;   /* buttons, inputs */
  --radius-md: 6px;   /* small tiles */
  --radius: 10px;     /* cards, panels, dialog */
  --radius-lg: 14px;  /* hero visual frame */

  /* ---- Elevation: soft, navy-tinted, low spread ---- */
  --shadow-xs: 0 1px 2px rgba(11, 34, 64, 0.06);
  --shadow-sm: 0 1px 2px rgba(11, 34, 64, 0.05), 0 2px 6px -2px rgba(11, 34, 64, 0.08);
  --shadow-md: 0 2px 4px rgba(11, 34, 64, 0.04), 0 12px 28px -10px rgba(11, 34, 64, 0.18);
  --shadow-lg: 0 4px 8px rgba(11, 34, 64, 0.05), 0 28px 60px -18px rgba(11, 34, 64, 0.28);
  --ring: 0 0 0 3px rgba(233, 160, 16, 0.35);

  /* ---- Type ---- */
  --font-display: 'Montserrat', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* ---- Layout & motion ---- */
  --max-width: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
}

/* ---- Dark mode: deep navy canvas, logo switches to inverse asset ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1729;
    --bg-subtle: #0d1d33;
    --surface: #10223b;
    --surface-card: #0e1f36;
    --surface-hover: #132842;
    --surface-inverse: #132a47;

    --text: #eef2f7;
    --text-strong: #ffffff;
    --muted: #a3b0c4;          /* 7.6:1 on bg */
    --dim: #93a1b7;
    --placeholder: #6d7d96;

    --primary: var(--gold-500);
    --primary-hover: #f2b236;
    --on-primary: var(--navy-950);
    --accent: var(--gold-500);
    --accent-strong: #f2b236;
    --accent-ink: #f0b23a;     /* 8.9:1 on bg */
    --on-accent: var(--navy-950);
    --accent-soft: rgba(233, 160, 16, 0.1);

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --border-active: var(--gold-500);

    --grid-line: rgba(255, 255, 255, 0.04);
    --spotlight: rgba(233, 160, 16, 0.06);
    --header-bg: rgba(10, 23, 41, 0.82);
    --overlay: rgba(3, 9, 18, 0.72);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 14px 32px -12px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  }
}

/* ===== BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  color-scheme: light dark;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(90%, var(--max-width));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ===== SITE HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}

nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: opacity var(--dur-fast) var(--ease);
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: 38px;
  width: auto;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.nav-cta:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}

.nav-cta:active {
  transform: scale(0.98);
}

/* ===== POINTER SPOTLIGHT (driven by contact-modal.js) ===== */
.card, .pill, .contact-panel {
  position: relative;
}

.card::after, .pill::after, .contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), var(--spotlight), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  z-index: 0;
}

.card:hover::after, .pill:hover::after, .contact-panel:hover::after {
  opacity: 1;
}

.card > *, .pill > *, .contact-panel > * {
  position: relative;
  z-index: 1;
}

/* ===== HERO ===== */
.hero {
  min-height: min(calc(100vh - var(--header-h)), 880px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 72px;
  padding: 96px 0 112px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* 45° tick — echoes the logo arrow */
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  transform: rotate(-45deg);
}

h1 {
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.6vw, 6.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--text-strong);
}

.h1-accent {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

/* gold underline bar with a 45° cut — same geometry as the arrow shaft */
.h1-accent::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.18em;
  bottom: 0.02em;
  height: 0.09em;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.09em) 100%, 0 100%);
  transform-origin: left;
  animation: draw-bar 900ms var(--ease) 200ms both;
}

@keyframes draw-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-copy {
  max-width: 560px;
  margin-top: 32px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
}

/* Hero brand visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

.hv-grid {
  stroke: var(--grid-line);
  stroke-width: 1;
}

.hv-guide {
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.hv-guide--soft {
  stroke: var(--border);
}

.hv-rail {
  stroke: var(--border-strong);
  stroke-width: 1;
}

.hv-stem { fill: var(--navy-800); }
.hv-arrow { fill: var(--gold-500); }
.hv-leg { fill: var(--gold-600); }

.hv-mark {
  animation: rise 1100ms var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translate(28px, 68px) scale(6); }
  to { opacity: 1; transform: translate(48px, 48px) scale(6); }
}

.hv-nodes circle {
  fill: var(--bg-subtle);
  stroke: var(--slate-400);
  stroke-width: 1.5;
}

.hv-nodes .hv-node--accent {
  fill: var(--accent);
  stroke: var(--accent);
}

.hv-nodes text {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

@media (prefers-color-scheme: dark) {
  .hv-stem { fill: #ffffff; }
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur-fast) var(--ease);
  position: relative;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.985);
  box-shadow: none;
}

.button-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}

/* 45° arrow glyph that nudges on hover */
.button-primary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform var(--dur) var(--ease);
}

.button-primary:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.button-primary:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.button-secondary {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--text);
  background: var(--surface);
}

/* ===== SECTIONS ===== */
section:not(.hero) {
  padding: 128px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.section-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}

.section-label-col {
  position: relative;
}

.section-label,
.contact-panel .section-label,
.contact-dialog .section-label-col {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-label {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.section-label::before,
.contact-dialog .section-label-col::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--accent);
  transform: rotate(-45deg);
}

h2 {
  max-width: 780px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--text-strong);
}

.lead {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ===== PRINCIPLES ===== */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
  overflow: hidden;
}

.pill {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 168px;
  padding: 28px 24px;
  border-left: 1px solid var(--border);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--dur) var(--ease);
}

.pill:first-child {
  border-left: 0;
}

/* top bar that grows on hover — the "growth" signal */
.pill::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-ink);
  letter-spacing: 0.1em;
  padding-top: 14px;
  background: linear-gradient(var(--accent), var(--accent)) top left / 24px 2px no-repeat;
  transition: background-size var(--dur) var(--ease);
}

.pill:hover {
  background: var(--surface-hover);
}

.pill:hover::before {
  background-size: 100% 2px;
}

.pill-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== PRODUCTS ===== */
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.card {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  overflow: hidden;
}

/* gold accent line with 45° end, grows on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 32px;
  height: 3px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
  transition: width var(--dur) var(--ease);
  z-index: 2;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  width: calc(100% - 56px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-ink);
  letter-spacing: 0.06em;
}

.card-status-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-transform: uppercase;
  text-align: right;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.36rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  line-height: 1.25;
}

.card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.card-features {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--slate-700);
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .feature-tag { color: var(--muted); }
}

.card-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}

.card-link:hover {
  color: var(--accent-ink);
  transform: translateX(3px);
}

/* ===== CONTACT ===== */
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  padding: 64px;
  border-radius: var(--radius);
  background: var(--surface-inverse);
  color: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  --spotlight: rgba(233, 160, 16, 0.1);
}

/* oversized 45° arrow watermark from the logo */
.contact-panel::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  background:
    linear-gradient(45deg, transparent 47%, rgba(233, 160, 16, 0.1) 47%, rgba(233, 160, 16, 0.1) 53%, transparent 53%);
  pointer-events: none;
}

.contact-panel .section-label {
  color: var(--gold-500);
  position: static;
  margin-bottom: 18px;
}

.contact-panel h2 {
  color: #ffffff;
}

.contact-panel p {
  max-width: 560px;
  margin-top: 16px;
  color: #c3cedc; /* 8.4:1 on navy */
  font-size: 1.08rem;
}

.contact-panel .button-primary {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--navy-950);
}

.contact-panel .button-primary:hover {
  border-color: #f2b236;
  background: #f2b236;
}

.contact-panel-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  flex-shrink: 0;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.contact-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c3cedc;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.contact-direct-link:hover {
  color: var(--gold-500);
  transform: translateX(-2px);
}

.contact-direct-label {
  font-size: 0.68rem;
  color: var(--slate-400);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-direct-value {
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.contact-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== FOOTER ===== */
footer.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo--footer .logo-img {
  height: 30px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.footer-nav a {
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease);
}

.footer-nav a:hover {
  color: var(--text);
}

footer.container > span,
.footer-meta {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.footer-phone {
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: color var(--dur-fast) var(--ease);
}

.footer-phone:hover {
  color: var(--accent-ink);
}

.footer-divider {
  color: var(--border-strong);
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== CONTACT MODAL ===== */
button.button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-dialog {
  width: min(100%, 580px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform 260ms var(--ease);
  position: relative;
}

.contact-modal.is-open .contact-dialog {
  transform: translateY(0);
}

.contact-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.contact-dialog h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-top: 10px;
}

.contact-dialog__intro {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.dialog-link {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease);
}

.dialog-link:hover {
  color: var(--text-strong);
}

.modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.modal-close:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-subtle);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.field input:hover,
.field textarea:hover {
  border-color: var(--slate-400);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--border-active);
  box-shadow: var(--ring);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--placeholder);
}

.form-note {
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.contact-form .button {
  width: 100%;
  margin-top: 4px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px 16px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-strong);
}

.form-success p {
  margin-top: 10px;
  color: var(--muted);
}

.contact-dialog.is-sent .contact-form {
  display: none;
}

.contact-dialog.is-sent .form-success {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-label {
    position: static;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 72px 0 88px;
    min-height: auto;
  }

  .hero-visual {
    justify-self: start;
    max-width: 420px;
  }

  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .pill:nth-child(3) {
    border-left: 0;
  }

  .pill:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 44px 32px;
    gap: 32px;
  }

  .contact-panel-actions {
    align-items: flex-start;
    width: 100%;
  }

  .contact-panel-actions .button {
    width: 100%;
  }

  .contact-direct {
    align-items: flex-start;
    width: 100%;
  }

  .contact-direct-link:hover {
    transform: translateX(2px);
  }

  footer.container {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  section:not(.hero) {
    padding: 96px 0;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .logo-img {
    height: 32px;
  }

  .nav-brand .brand-badge {
    display: none;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .nav-cta {
    padding: 0 14px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .pill {
    border-left: 0;
    min-height: auto;
  }

  .pill:nth-child(n + 2) {
    border-top: 1px solid var(--border);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-dialog {
    padding: 28px 20px;
  }

  footer.container,
  .footer-brand,
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-divider {
    display: none;
  }
}

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

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
