/* ==========================================================================
   TeckAid — Design System
   A warm, editorial "AI-native" aesthetic: off-white paper, near-black ink,
   and a signature green accent. Mirror of the reference brand language.
   ========================================================================== */

:root {
  /* Brand colors (RGB triplets, used as rgb(var(--x) / alpha)) */
  --accent: 16 163 127;        /* #10A37F — TeckAid green */
  --accent-hover: 5 140 107;   /* #058C6B */
  --accent-text: 10 122 94;    /* #0A7A5E */
  --bg: 250 250 248;           /* #FAFAF8 — paper */
  --border: 228 228 222;       /* #E4E4DE */
  --faint: 116 116 125;        /* #74747D */
  --live: 16 185 129;          /* #10B981 — emerald live dot */
  --muted: 107 107 115;        /* #6B6B73 */
  --surface: 255 255 255;      /* #FFFFFF */
  --surface-up: 243 243 240;   /* #F3F3F0 */
  --text: 17 17 16;            /* #111110 — ink */

  /* Typography */
  --font-display: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: rgb(var(--text));
  background: rgb(var(--bg));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }

::selection { background: rgb(var(--accent) / 0.18); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: rgb(var(--text));
}

/* ----------------------------- Layout ---------------------------------- */
.container {
  max-width: 80rem; /* 1280px */
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
}

.section { padding-block: 4.5rem; }
@media (min-width: 768px) { .section { padding-block: 6.5rem; } }

.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------------------------- Typography -------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgb(var(--muted));
  margin-bottom: 1rem;
}

.display-xl {
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.display-lg {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.display-md {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.display-sm {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-accent { color: rgb(var(--accent-text)); }
.text-muted { color: rgb(var(--muted)); }
.lead { font-size: 1.125rem; color: rgb(var(--muted)); }
@media (min-width: 768px) { .lead { font-size: 1.2rem; } }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  border-radius: 0.55rem;
  padding: 0.72rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s var(--ease);
}
.btn svg { width: 1rem; height: 1rem; }

.btn-primary {
  background: rgb(var(--accent));
  color: #fff;
  box-shadow: 0 1px 2px rgb(var(--text) / 0.08);
}
.btn-primary:hover { background: rgb(var(--accent-hover)); }

.btn-ghost {
  border: 1px solid rgb(var(--border));
  color: rgb(var(--text));
  background: rgb(var(--surface) / 0.5);
}
.btn-ghost:hover { border-color: rgb(var(--accent) / 0.5); color: rgb(var(--accent-text)); }

.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }

.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shine 3.5s var(--ease) infinite;
}
@keyframes shine {
  0% { transform: translateX(-100%); }
  45%, 100% { transform: translateX(100%); }
}

/* ------------------------------ Badges ---------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--bg));
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--faint));
}

.live-dot {
  position: relative;
  display: inline-flex;
  width: 0.55rem;
  height: 0.55rem;
}
.live-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgb(var(--live));
  animation: ping 1.6s cubic-bezier(0,0,0.2,1) infinite;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgb(var(--live));
}
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

/* --------------------------- Backgrounds -------------------------------- */
.grid-pattern {
  background-image:
    linear-gradient(rgb(var(--text) / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--text) / 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}
.orb-green { background: rgb(var(--accent) / 0.16); }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgb(var(--bg) / 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgb(var(--border) / 0.7);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}
@media (min-width: 1024px) { .nav-inner { height: 5rem; } }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-mark { width: 2.4rem; height: 2.4rem; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(var(--muted));
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: rgb(var(--text)); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 1.5px;
  background: rgb(var(--accent));
  transition: width 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta { display: none; }
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: rgb(var(--text));
}
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgb(var(--border) / 0.7);
  background: rgb(var(--bg));
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid rgb(var(--border) / 0.6);
}

/* -------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 3.5rem;
  width: 100%;
  padding-top: 7rem;
  padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 5rem; }
}
.hero h1 { margin-bottom: 1.25rem; max-width: 40rem; }
.hero .lead { max-width: 34rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface) / 0.7);
  border-radius: 0.75rem;
  padding: 1rem 1.35rem;
}
.stat b { display: block; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.02em; }
.stat span { font-size: 0.8rem; color: rgb(var(--muted)); }

.hero-panel {
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 20px 60px -30px rgb(var(--text) / 0.25);
  position: relative;
  overflow: hidden;
}
.hero-panel h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.hero-panel .pill { margin-bottom: 1rem; }

/* --------------------------- Trusted strip ------------------------------ */
.trusted { border-top: 1px solid rgb(var(--border)); border-bottom: 1px solid rgb(var(--border)); padding-block: 2.5rem; }
.trusted .lead { text-align: center; font-size: 0.95rem; margin-bottom: 1.5rem; }
.industry-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.industry-pill {
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgb(var(--muted));
  transition: all 0.2s var(--ease);
}
.industry-pill:hover { color: rgb(var(--accent-text)); border-color: rgb(var(--accent) / 0.4); }

/* ------------------------------ Cards ----------------------------------- */
.card {
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  border-radius: 1rem;
  overflow: hidden;
}
.card-pad { padding: 1.75rem; }
.card-hover { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgb(var(--accent) / 0.35);
  box-shadow: 0 18px 50px -28px rgb(var(--text) / 0.3);
}

/* Results */
.results-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .results-grid { grid-template-columns: 1fr 1fr; } }
.result-card { display: flex; flex-direction: column; gap: 1rem; }
.result-big {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgb(var(--accent-text));
}
.result-card .tag { font-size: 0.78rem; color: rgb(var(--muted)); }
.result-card blockquote {
  margin-top: auto;
  padding-left: 0.9rem;
  border-left: 2px solid rgb(var(--accent));
  color: rgb(var(--muted));
  font-style: italic;
}

/* Method layers */
.layer {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem;
  border-bottom: 1px solid rgb(var(--border));
}
.layer:last-child { border-bottom: 0; }
@media (min-width: 1024px) { .layer { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.layer-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgb(var(--accent-text));
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.layer h3 { margin: 0.6rem 0 0.8rem; font-size: 1.6rem; }
.layer .lead { margin-bottom: 1.25rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface-up));
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgb(var(--text));
}
.chip b { font-weight: 700; }

/* Steps */
.steps-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card { position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgb(var(--accent));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step-card .meta { font-family: var(--font-mono); font-size: 0.72rem; color: rgb(var(--accent-text)); margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9rem; color: rgb(var(--muted)); }

/* Team */
.team-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { display: flex; flex-direction: column; gap: 0.75rem; }
.avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgb(var(--accent) / 0.25), rgb(var(--accent) / 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: rgb(var(--accent-text));
  font-size: 1.1rem;
}

.monogram {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgb(var(--accent) / 0.12);
  color: rgb(var(--accent-text));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.team-card h3 { font-size: 1.2rem; }
.team-card .role { font-family: var(--font-mono); font-size: 0.78rem; color: rgb(var(--accent-text)); }
.team-card ul li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: rgb(var(--muted));
  margin-bottom: 0.4rem;
}
.team-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: rgb(var(--accent));
}

/* FAQ */
.faq-item { border: 1px solid rgb(var(--border)); border-radius: 0.75rem; background: rgb(var(--surface)); margin-bottom: 0.75rem; overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.faq-q svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; transition: transform 0.25s var(--ease); color: rgb(var(--muted)); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a-inner { padding: 0 1.35rem 1.25rem; font-size: 0.95rem; color: rgb(var(--muted)); }
.faq-a-inner p + p { margin-top: 0.75rem; }

/* Guarantee band */
.band {
  border-radius: 1.25rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  overflow: hidden;
  position: relative;
}
.band-inner { position: relative; padding: 2.5rem; }
@media (min-width: 768px) { .band-inner { padding: 3.5rem; } }

/* Feature rows */
.feature-list { display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature {
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: border-color 0.2s var(--ease);
}
.feature:hover { border-color: rgb(var(--accent) / 0.4); }
.feature b { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.2rem; }
.feature span { font-size: 0.85rem; color: rgb(var(--muted)); }

/* ------------------------------ Footer ---------------------------------- */
.footer { border-top: 1px solid rgb(var(--border)); position: relative; overflow: hidden; }
.footer-grid {
  display: grid;
  gap: 3rem;
  padding-block: 3.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; } }
.footer h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgb(var(--faint));
  margin-bottom: 1rem;
}
.footer-col a { display: block; font-size: 0.9rem; color: rgb(var(--muted)); padding-block: 0.3rem; transition: color 0.2s; }
.footer-col a:hover { color: rgb(var(--text)); }
.footer .desc { font-size: 0.9rem; color: rgb(var(--muted)); max-width: 22rem; margin-top: 0.75rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgb(var(--border));
  padding-block: 1.5rem;
  font-size: 0.82rem;
  color: rgb(var(--faint));
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: rgb(var(--text)); }

/* Newsletter */
.newsletter {
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  border-radius: 1rem;
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .newsletter { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.field {
  width: 100%;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--bg));
  border-radius: 0.55rem;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus { outline: none; border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / 0.15); }

/* ----------------------------- Reveal ----------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

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

/* ---------------------------- Utilities --------------------------------- */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.wrap { flex-wrap: wrap; }

.cols-3 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
