/* ==========================================================================
   Teknidoc — Design System
   Premium B2B documentation consultancy
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Color — deep blues, slate grays, white, restrained accent */
  --navy-950: #060d1c;
  --navy-900: #0a1428;
  --navy-850: #0e1b36;
  --navy-800: #122244;
  --navy-700: #1b2f5c;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white: #ffffff;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --teal-400: #2dd4bf;
  --amber-400: #fbbf24;
  --green-500: #10b981;
  --red-400: #f87171;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3rem;
  --text-5xl: 3.75rem;

  /* Layout */
  --container: 1160px;
  --container-wide: 1280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 2px 6px rgba(15, 23, 42, 0.06), 0 16px 40px rgba(15, 23, 42, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.5s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--slate-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

::selection { background: var(--blue-300); color: var(--navy-900); }

/* Focus visibility for accessibility */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 1000;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--wide { max-width: var(--container-wide); }

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--alt { background: var(--slate-50); }

.section--dark {
  background: var(--navy-900);
  color: var(--slate-300);
}
.section--dark h2, .section--dark h3 { color: var(--white); }

/* Section headers */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--blue-400); }
.section--dark .eyebrow::before, .section--dark .eyebrow::after { background: var(--blue-400); }

.section-title {
  font-size: clamp(1.85rem, 4vw, var(--text-3xl));
  margin-bottom: 1.1rem;
}

.section-lede {
  font-size: var(--text-md);
  color: var(--slate-600);
  line-height: 1.7;
}
.section--dark .section-lede { color: var(--slate-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; transition: transform 0.22s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3), 0 4px 14px rgba(37, 99, 235, 0.22);
}
.btn--primary:hover {
  background: #1d4fd7;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3), 0 8px 22px rgba(37, 99, 235, 0.3);
}

.btn--secondary {
  background: var(--white);
  color: var(--slate-800);
  border-color: var(--slate-300);
}
.btn--secondary:hover {
  border-color: var(--slate-400);
  background: var(--slate-50);
  transform: translateY(-1px);
}

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}
.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn--lg { padding: 1rem 2rem; font-size: var(--text-base); border-radius: 12px; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--accent);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.22s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--slate-200);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-900);
}
.brand:hover { color: var(--slate-900); }
.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.brand-suffix { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover { color: var(--slate-900); background: var(--slate-100); }
.nav-links a[aria-current="page"] { color: var(--slate-900); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta .btn { padding: 0.6rem 1.25rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--slate-800);
}
.nav-toggle:hover { background: var(--slate-100); }

/* Mobile nav */
@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s var(--ease-out);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a { padding: 0.85rem 1rem; font-size: var(--text-base); }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn--secondary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(170deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-850) 100%);
  color: var(--slate-300);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 90%, rgba(45, 212, 191, 0.06), transparent 60%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(5rem, 10vw, 8.5rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-300);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-bottom: 1.75rem;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 8px var(--teal-400);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.4vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero h1 .accent-line {
  background: linear-gradient(90deg, var(--blue-400), var(--teal-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, var(--text-md));
  color: var(--slate-400);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.75rem; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.hero-proof-item { font-size: var(--text-sm); color: var(--slate-400); display: flex; align-items: center; gap: 0.55rem; }
.hero-proof-item svg { width: 17px; height: 17px; color: var(--teal-400); flex-shrink: 0; }

/* Hero visual — documentation lifecycle panel */
.hero-visual { position: relative; }

.doc-panel {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.doc-panel-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.doc-panel-bar .dots { display: flex; gap: 6px; }
.doc-panel-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(148, 163, 184, 0.25); }
.doc-panel-bar .title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-500);
  letter-spacing: 0.03em;
}

.doc-panel-body { padding: 1.4rem 1.25rem 1.5rem; display: grid; gap: 0.8rem; }

.doc-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  opacity: 0;
  transform: translateY(10px);
  animation: docRowIn 0.6s var(--ease-out) forwards;
}
.doc-row:nth-child(1) { animation-delay: 0.25s; }
.doc-row:nth-child(2) { animation-delay: 0.45s; }
.doc-row:nth-child(3) { animation-delay: 0.65s; }
.doc-row:nth-child(4) { animation-delay: 0.85s; }
.doc-row:nth-child(5) { animation-delay: 1.05s; }

@keyframes docRowIn {
  to { opacity: 1; transform: translateY(0); }
}

.doc-row-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.16);
  color: var(--blue-300);
}
.doc-row-icon svg { width: 17px; height: 17px; }

.doc-row-text { flex: 1; min-width: 0; }
.doc-row-text .label { font-size: 0.82rem; font-weight: 600; color: var(--slate-200); line-height: 1.3; }
.doc-row-text .meta { font-size: 0.7rem; font-family: var(--font-mono); color: var(--slate-500); }

.doc-status {
  font-size: 0.66rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.doc-status--live { background: rgba(16, 185, 129, 0.14); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.doc-status--review { background: rgba(251, 191, 36, 0.12); color: var(--amber-400); border: 1px solid rgba(251, 191, 36, 0.28); }
.doc-status--progress { background: rgba(59, 130, 246, 0.13); color: var(--blue-300); border: 1px solid rgba(59, 130, 246, 0.3); }

.doc-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-500);
}
.doc-panel-footer .ok { color: #34d399; display: inline-flex; align-items: center; gap: 0.4rem; }
.doc-panel-footer .ok::before { content: "●"; font-size: 0.6rem; }

/* Floating chips around the panel */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--slate-300);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(6px);
  animation: floatY 5s ease-in-out infinite;
}
.float-chip svg { width: 14px; height: 14px; color: var(--teal-400); }
.float-chip--tl { top: 8px; right: 14px; left: auto; z-index: 2; animation-delay: 0s; }
.float-chip--br { bottom: -16px; right: -14px; animation-delay: 2.2s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 4.5rem 5.5rem; }
  .hero-visual { max-width: 520px; }
  .float-chip--tl { right: 0; left: auto; }
  .float-chip--br { right: 0; }
}

/* ---------- Trust / Infrastructure section ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 920px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .benefit-grid { grid-template-columns: 1fr; } }

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.benefit-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.benefit-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.benefit-icon svg { width: 20px; height: 20px; }
.benefit-card h3 { font-size: var(--text-base); margin-bottom: 0.3rem; }
.benefit-card p { font-size: var(--text-sm); color: var(--slate-600); line-height: 1.6; }

/* Infrastructure statement band */
.statement-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
@media (max-width: 920px) { .statement-band { grid-template-columns: 1fr; } }

.statement-quote {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--slate-800);
}
.statement-quote strong { color: var(--accent); font-weight: 700; }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.75rem 1.75rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.3s var(--ease-out);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-400));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.service-card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 { font-size: var(--text-lg); margin-bottom: 0.6rem; letter-spacing: -0.015em; }
.service-card > p { font-size: var(--text-sm); color: var(--slate-600); line-height: 1.65; margin-bottom: 1.1rem; flex: 1; }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.service-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-500);
  background: var(--slate-100);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

/* Service detail rows (services page) */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}
.service-detail + .service-detail { border-top: 1px solid var(--slate-200); }
@media (max-width: 880px) { .service-detail { grid-template-columns: 1fr; gap: 1.75rem; } }

.service-detail h3 { font-size: var(--text-xl); margin-bottom: 0.85rem; }
.service-detail .kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}
.service-detail p { color: var(--slate-600); margin-bottom: 1rem; }

.check-list { display: grid; gap: 0.7rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--text-sm);
  color: var(--slate-700);
  line-height: 1.55;
}
.check-list li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

/* ---------- Problem / Solution ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 880px) { .compare-grid { grid-template-columns: 1fr; } }

.compare-col {
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem;
  border: 1px solid var(--slate-200);
}
.compare-col--before { background: var(--slate-50); }
.compare-col--after {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-850));
  border-color: var(--navy-700);
  color: var(--slate-300);
}
.compare-col--after h3 { color: var(--white); }

.compare-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.4rem;
}
.compare-col--before .compare-label { background: rgba(248, 113, 113, 0.1); color: #dc2626; border: 1px solid rgba(248, 113, 113, 0.3); }
.compare-col--after .compare-label { background: rgba(45, 212, 191, 0.1); color: var(--teal-400); border: 1px solid rgba(45, 212, 191, 0.3); }

.compare-col h3 { font-size: var(--text-lg); margin-bottom: 1.25rem; }

.compare-list { display: grid; gap: 0.85rem; }
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--text-sm);
  line-height: 1.55;
}
.compare-list li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.compare-col--before .compare-list li svg { color: var(--red-400); }
.compare-col--after .compare-list li svg { color: var(--teal-400); }
.compare-col--before .compare-list li { color: var(--slate-600); }

/* ---------- Process timeline ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}
@media (max-width: 1000px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.6rem;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease-out);
}
.process-step:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-300);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  margin-bottom: 1.15rem;
}

.process-step h3 { font-size: var(--text-lg); margin-bottom: 0.6rem; }
.process-step p { font-size: var(--text-sm); color: var(--slate-400); line-height: 1.65; }

.process-connector {
  position: absolute;
  top: 50px;
  left: calc(100% - 4px);
  width: calc(1.25rem + 8px);
  height: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.15));
  z-index: 1;
}
@media (max-width: 1000px) { .process-connector { display: none; } }

/* ---------- Why Teknidoc ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-card); }
.why-card .why-icon {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}
.why-card .why-icon svg { width: 19px; height: 19px; }
.why-card h3 { font-size: 0.98rem; margin-bottom: 0.4rem; }
.why-card p { font-size: 0.84rem; color: var(--slate-600); line-height: 1.6; }

/* ---------- Industries ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1000px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .industry-grid { grid-template-columns: 1fr; } }

.industry-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.7rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.3s var(--ease-out);
}
.industry-card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.industry-card .industry-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--navy-900);
  color: var(--blue-300);
  margin-bottom: 1.2rem;
}
.industry-card .industry-icon svg { width: 21px; height: 21px; }
.industry-card h3 { font-size: var(--text-md); margin-bottom: 0.55rem; }
.industry-card p { font-size: var(--text-sm); color: var(--slate-600); line-height: 1.65; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1000px) { .testimonial-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.3s var(--ease-out);
}
.testimonial-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }

.testimonial-quote-mark {
  width: 34px; height: 34px;
  color: var(--blue-300);
  margin-bottom: 1rem;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--slate-700);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.85rem; padding-top: 1.25rem; border-top: 1px solid var(--slate-100); }
.testimonial-avatar {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-700), var(--blue-600));
}
.testimonial-author .name { font-weight: 600; font-size: var(--text-sm); color: var(--slate-900); line-height: 1.3; }
.testimonial-author .role { font-size: 0.78rem; color: var(--slate-500); }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}
@media (max-width: 800px) { .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

.stat-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.stat-value .unit { color: var(--blue-400); }
.stat-label { font-size: var(--text-sm); color: var(--slate-400); }

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative;
  background: linear-gradient(165deg, var(--navy-950), var(--navy-850));
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.75rem, 5vw, 4.5rem);
  text-align: center;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 80% at 50% 0%, rgba(37, 99, 235, 0.22), transparent 65%);
  pointer-events: none;
}
.cta-final > * { position: relative; }

.cta-final h2 {
  color: var(--white);
  font-size: clamp(1.85rem, 4vw, var(--text-3xl));
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.cta-final p {
  color: var(--slate-400);
  font-size: var(--text-md);
  max-width: 540px;
  margin: 0 auto 2.25rem;
}
.cta-final .cta-note { font-size: var(--text-sm); color: var(--slate-500); margin: 1.5rem auto 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(170deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-850) 100%);
  color: var(--slate-300);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 80% 10%, rgba(37, 99, 235, 0.14), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, var(--text-4xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  max-width: 760px;
}
.page-hero p { font-size: var(--text-md); color: var(--slate-400); max-width: 640px; line-height: 1.75; }
.page-hero .eyebrow { color: var(--blue-400); }
.page-hero .eyebrow::before { background: var(--blue-400); }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info h2 { font-size: var(--text-2xl); margin-bottom: 1rem; }
.contact-info > p { color: var(--slate-600); margin-bottom: 2rem; }

.contact-points { display: grid; gap: 1.15rem; margin-bottom: 2.25rem; }
.contact-points li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: var(--text-sm); color: var(--slate-700); }
.contact-points li svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-points li strong { display: block; color: var(--slate-900); margin-bottom: 0.1rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.45rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: var(--text-xs); color: var(--slate-500); margin-top: 1rem; }

.form-success {
  display: none;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  color: #047857;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 1rem 1.15rem;
  margin-top: 1.15rem;
}
.form-success.is-visible { display: block; }

/* ---------- About / values ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 880px) { .value-grid { grid-template-columns: 1fr; } }

.prose { max-width: 720px; }
.prose p { margin-bottom: 1.25rem; color: var(--slate-600); font-size: var(--text-md); line-height: 1.8; }
.prose p strong { color: var(--slate-900); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--slate-900);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--slate-400);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item .faq-body { padding: 0 1.35rem 1.25rem; font-size: var(--text-sm); color: var(--slate-600); line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: var(--text-sm); max-width: 300px; line-height: 1.7; margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--slate-300);
  transition: all 0.2s ease;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.footer-social svg { width: 17px; height: 17px; }

.footer-col h4 {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a {
  font-size: var(--text-sm);
  color: var(--slate-400);
  transition: color 0.18s ease;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: var(--text-xs);
  color: var(--slate-500);
}
.footer-bottom .lang { font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }