/* ============================================================
   CANYO.net — Theme & Design System
   ============================================================ */

:root {
  --accent: #ff5c1a;
  --accent-soft: rgba(255, 92, 26, 0.12);
  --accent-glow: rgba(255, 92, 26, 0.35);
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- DARK (default) ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0e;
  --bg-alt: #0f0f15;
  --surface: #14141c;
  --surface-2: #1a1a24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f2f5;
  --text-dim: #9a9aa8;
  --text-faint: #62626f;
  --grid-line: rgba(255, 255, 255, 0.045);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --nav-bg: rgba(10, 10, 14, 0.75);
}

/* ---------- LIGHT ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f8;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0f4;
  --border: rgba(15, 15, 25, 0.10);
  --border-strong: rgba(15, 15, 25, 0.18);
  --text: #14141c;
  --text-dim: #55555f;
  --text-faint: #8a8a94;
  --grid-line: rgba(15, 15, 25, 0.06);
  --shadow: 0 20px 60px rgba(20, 20, 40, 0.12);
  --nav-bg: rgba(246, 246, 248, 0.78);
  --accent-soft: rgba(255, 92, 26, 0.10);
  --accent-glow: rgba(255, 92, 26, 0.22);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

.container { width: min(1140px, 92%); margin-inline: auto; }
.container--narrow { width: min(780px, 92%); }
.mono { font-family: var(--font-mono); letter-spacing: 0.06em; }
.accent { color: var(--accent); }

h1 { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.035em; line-height: 1.06; }
h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.028em; line-height: 1.1; }

::selection { background: var(--accent); color: #fff; }

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

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background-color var(--transition);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 0 22px var(--accent-glow);
}
.brand__tld { color: var(--text-faint); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--text-dim); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 9px 18px; border-radius: 99px;
  background: var(--accent); color: #fff !important; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow); }

.nav__controls { display: flex; align-items: center; gap: 14px; }

/* Theme toggle */
.theme-toggle {
  position: relative;
  width: 58px; height: 30px; border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  cursor: pointer; display: grid; place-items: center;
  transition: background var(--transition), border-color var(--transition);
}
.theme-toggle::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: transform var(--transition);
}
[data-theme="light"] .theme-toggle::after { transform: translateX(28px); }
.theme-toggle .icon {
  position: absolute; width: 14px; height: 14px; z-index: 1;
  color: var(--text-dim); transition: opacity var(--transition), color var(--transition);
}
.theme-toggle .icon--moon { left: 7px; }
.theme-toggle .icon--sun  { right: 7px; }
[data-theme="dark"]  .theme-toggle .icon--moon { color: #fff; }
[data-theme="light"] .theme-toggle .icon--sun  { color: #fff; }
[data-theme="dark"]  .theme-toggle .icon--sun,
[data-theme="light"] .theme-toggle .icon--moon { opacity: 0.45; }

/* Burger (mobile) */
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: calc(var(--nav-h) + 90px) 0 110px; overflow: hidden; }

.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

.hero__glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: min(760px, 90vw); height: 520px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  filter: blur(40px); pointer-events: none;
}
.hero__glow--contact { top: auto; bottom: -260px; }

.hero__inner { position: relative; text-align: center; }

.hero__status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.72rem; color: var(--text-dim);
  margin-bottom: 34px;
}

.pulse-dot {
  display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.hero__title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin-bottom: 26px; }

.hero__sub { font-weight: 300;
  max-width: 640px; margin: 0 auto 40px;
  font-size: 1.12rem; color: var(--text-dim);
}

.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 72px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; max-width: 860px; margin-inline: auto;
  padding: 28px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: 1.7rem; font-weight: 700; color: var(--accent); }
.stat__label { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 32px; border-radius: 99px;
  font-weight: 600; font-size: 0.98rem; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background var(--transition), border-color var(--transition);
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px var(--accent-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--accent-glow); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--border);
  padding: 18px 0; overflow: hidden;
  background: var(--bg-alt);
  transition: background-color var(--transition);
}
.marquee__track {
  display: flex; align-items: center;
  gap: 38px; width: max-content;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.28em; color: var(--text-faint);
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { white-space: nowrap; }
.dotsep { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); transition: background-color var(--transition); }
.section--contact { overflow: hidden; }

.kicker { color: var(--accent); font-size: 0.78rem; font-weight: 700; margin-bottom: 18px; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 54px; }
.section__sub { color: var(--text-dim); max-width: 560px; margin: -30px 0 44px; font-weight: 300; font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; padding: 34px 30px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background-color var(--transition);
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--accent-soft); color: var(--accent);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--text-dim); margin-bottom: 20px; font-weight: 300; }
.card__tag { font-size: 0.66rem; font-weight: 700; color: var(--accent); letter-spacing: 0.16em; }

/* ---------- Process steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; counter-reset: step; }
.step {
  display: flex; gap: 22px; padding: 30px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.25s, background-color var(--transition);
}
.step:hover { border-color: var(--border-strong); }
.step__num { font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1; padding-top: 4px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--text-dim); }

/* ---------- Pricing ---------- */
.pricing { display: grid; place-items: center; }
.pricing__card {
  width: min(520px, 100%);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 20px; padding: 44px 40px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: background-color var(--transition), border-color var(--transition);
}
.pricing__card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.pricing__badge { font-size: 0.7rem; font-weight: 700; color: var(--accent); letter-spacing: 0.2em; }
.pricing__amount { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 12px; }
.pricing__currency { font-size: 1.4rem; color: var(--text-dim); }
.pricing__value { font-size: 4rem; font-weight: 800; letter-spacing: -0.04em; font-family: var(--font-mono); }
.pricing__per { color: var(--text-faint); }
.pricing__note { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 28px; }
.pricing__list { list-style: none; margin-bottom: 34px; display: grid; gap: 12px; }
.pricing__list li { position: relative; padding-left: 28px; font-size: 0.94rem; }
.pricing__list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color 0.25s, background-color var(--transition);
}
.faq__item[open] { border-color: var(--accent); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 1rem;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev {
  flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.25s;
}
.faq__item[open] .faq__chev { transform: rotate(225deg); }
.faq__item p { padding: 0 24px 22px; color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); }
.form-field input, .form-field textarea {
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color var(--transition);
  width: 100%; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { text-align: center; font-size: 0.68rem; color: var(--text-faint); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); transition: background-color var(--transition); }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding: 64px 0 44px;
}
.footer__brand p { margin-top: 16px; font-size: 0.88rem; color: var(--text-dim); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { font-size: 0.72rem; color: var(--accent); margin-bottom: 6px; letter-spacing: 0.16em; }
.footer__col a { font-size: 0.9rem; color: var(--text-dim); transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 0; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-faint);
}
.footer__status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.7rem; letter-spacing: 0.12em; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed; top: var(--nav-h); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 10px 5%;
    transform: translateY(-130%); transition: transform 0.35s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 6px; border-bottom: 1px solid var(--border); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__cta { text-align: center; margin-top: 10px; }
  .nav__burger { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section { padding: 80px 0; }
}

/* ============================================================
   BRAND LOGO (theme-aware image swap)
   ============================================================ */
.brand__logo { display: block; height: 26px; width: auto; }
.brand__logo--mark { height: 32px; }
[data-theme="dark"]  .logo-light { display: none; }
[data-theme="light"] .logo-dark  { display: none; }
.footer .brand__logo--word { height: 22px; }

/* ============================================================
   COMPLIANCE / REGULATED INDUSTRIES
   ============================================================ */
.section--compliance { padding: 90px 0; }
.compliance {
  display: flex; gap: 36px; align-items: flex-start;
  padding: 44px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  transition: background-color var(--transition), border-color var(--transition);
}
.compliance__icon {
  flex: none; width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.compliance__icon svg { width: 26px; height: 26px; }
.compliance__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 16px; }
.compliance__body p { color: var(--text-dim); margin-bottom: 14px; }
.compliance__body p:last-of-type { margin-bottom: 24px; }
.compliance__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 7px 14px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-glow);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: start;
}
.about__story p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.02rem; }
.about__story strong { color: var(--text); }
.about__values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-card {
  padding: 24px 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s, border-color 0.25s, background-color var(--transition);
}
.value-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.value-card h4 { font-size: 0.95rem; margin-bottom: 6px; color: var(--accent); }
.value-card p { font-size: 0.85rem; color: var(--text-dim); }

/* ============================================================
   STACK / TRUSTED TECHNOLOGY
   ============================================================ */
.stack__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.stack-card {
  display: flex; gap: 26px; align-items: flex-start;
  padding: 34px 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background-color var(--transition);
}
.stack-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.stack-card__logo {
  flex: none; width: 58px; height: 58px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-size: 1.25rem; font-weight: 700;
  box-shadow: 0 0 22px var(--accent-glow);
}
.stack-card__body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.stack-card__body p { font-size: 0.92rem; color: var(--text-dim); margin-bottom: 16px; }

/* ---------- New sections: responsive ---------- */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .stack__grid { grid-template-columns: 1fr; }
  .compliance { flex-direction: column; padding: 32px 26px; }
}
@media (max-width: 640px) {
  .about__values { grid-template-columns: 1fr; }
  .brand__logo--word { display: none !important; } /* mark only on tiny screens */
}

/* ---------- Footer slogan ---------- */
.footer__slogan {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--accent); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.22em;
}

/* ============================================================
   ABOUT — real CANYO story layout
   ============================================================ */
.about__story-card {
  padding: 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  margin-bottom: 60px;
  transition: background-color var(--transition), border-color var(--transition);
}
.about__founder { font-size: 1.5rem; margin: 6px 0 16px; }
.about__story-card p:last-child { color: var(--text-dim); font-weight: 300; font-size: 1.02rem; }
.about__pillars-kicker { margin: 44px 0 22px; }

.pillar__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar-card {
  padding: 30px 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, background-color var(--transition);
}
.pillar-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.pillar-card__num { color: var(--accent); font-size: 0.8rem; font-weight: 700; display: block; margin-bottom: 14px; }
.pillar-card h4 { font-size: 1.02rem; margin-bottom: 10px; }
.pillar-card p { font-size: 0.88rem; color: var(--text-dim); }

.service-lines { list-style: none; display: grid; gap: 14px; counter-reset: line; }
.service-line {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.25s, background-color var(--transition);
}
.service-line:hover { border-color: var(--border-strong); }
.service-line__num { color: var(--accent); font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.service-line h4 { font-size: 1.02rem; margin-bottom: 5px; }
.service-line p { font-size: 0.9rem; color: var(--text-dim); }

.about__boundaries {
  margin-top: 44px; padding: 36px 40px;
  background: var(--accent-soft); border: 1px solid var(--accent-glow);
  border-radius: var(--radius);
}
.about__boundaries p:last-child { color: var(--text); font-size: 1.05rem; }

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

/* ============================================================
   LEGAL / CONTENT PAGES (Privacy, Terms)
   ============================================================ */
.legal { padding: calc(var(--nav-h) + 70px) 0 100px; }
.legal__title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 10px; }
.legal__updated { color: var(--text-faint); font-size: 0.82rem; margin-bottom: 48px; }
.legal__body h2 {
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0;
  margin: 42px 0 14px; color: var(--accent);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { color: var(--text-dim); margin-bottom: 14px; }
.legal__body ul { margin: 0 0 14px 22px; color: var(--text-dim); display: grid; gap: 8px; }
.legal__body a { color: var(--accent); text-decoration: underline; }
.legal__back { margin-bottom: 28px; display: inline-block; color: var(--text-dim); font-size: 0.9rem; }
.legal__back:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE OVERHAUL — every screen size, zero layout breaks
   ============================================================ */

/* ----- Very large displays ----- */
@media (min-width: 1600px) {
  .container { width: min(1240px, 90%); }
  .hero__title { font-size: clamp(2.6rem, 5vw, 5rem); }
}

/* ----- Large laptops / small desktops ----- */
@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pillar__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ----- Tablets (portrait) & small laptops ----- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pillar__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .compliance { padding: 36px 30px; }
}

/* ----- Below tablet: collapse grids, show burger ----- */
@media (max-width: 860px) {
  :root { --nav-h: 64px; }

  /* Nav becomes a slide-down panel */
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 8px 5% 18px;
    transform: translateY(-140%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 15px 6px; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__cta { text-align: center; margin-top: 12px; }
  .nav__burger { display: flex; }

  .cards, .pillar__grid, .steps, .stack__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; padding: 24px 16px; }
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
  .compliance { flex-direction: column; gap: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .hero { padding: calc(var(--nav-h) + 64px) 0 84px; }
}

/* ----- Large phones ----- */
@media (max-width: 600px) {
  .hero__title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero__sub { font-weight: 300; font-size: 1rem; }
  .section__title { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .brand__logo--word { display: none !important; }  /* mark only */
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat__num { font-size: 1.4rem; }
  .pricing__card { padding: 34px 26px; }
  .pricing__value { font-size: 3rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn { width: 100%; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ----- Small phones ----- */
@media (max-width: 420px) {
  .hero__stats { grid-template-columns: 1fr; }
  .nav__inner { gap: 12px; }
  .brand__logo--mark { height: 28px; }
  .theme-toggle { width: 52px; height: 28px; }
  .theme-toggle::after { width: 20px; height: 20px; }
  [data-theme="light"] .theme-toggle::after { transform: translateX(24px); }
  .compliance { padding: 28px 20px; }
  .about__story-card { padding: 28px 20px; }
  .about__boundaries { padding: 26px 20px; }
  .card, .pillar-card { padding: 26px 20px; }
}

/* ----- Landscape phones ----- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: calc(var(--nav-h) + 30px) 0 50px; }
  .section { padding: 56px 0; }
}

/* ----- Touch devices: kill hover-stickiness on cards ----- */
@media (hover: none) {
  .card:hover, .pillar-card:hover, .stack-card:hover { transform: none; }
}

/* ============================================================
   SIGNATURE VISUAL SYSTEM — logo hero, motion, polish
   ============================================================ */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), #ff8c42);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.1s linear;
  pointer-events: none;
}

/* ---------- Hero logo stage ---------- */
.hero__logo-stage {
  position: relative;
  width: 190px; height: 190px;
  margin: 0 auto 42px;
  display: grid; place-items: center;
}
.hero__logo-img {
  width: 132px; height: auto; position: relative; z-index: 2;
  filter: drop-shadow(0 10px 40px var(--accent-glow));
  animation: heroFloat 6s ease-in-out infinite;
}
[data-theme="dark"] .hero__logo-img.logo-light { display: none; }
[data-theme="light"] .hero__logo-img.logo-dark { display: none; }

/* Rotating orbital rings */
.hero__logo-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed var(--border-strong);
  animation: spin 26s linear infinite;
}
.hero__logo-ring::before {
  content: ''; position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.hero__logo-ring--2 {
  inset: 18px; border-style: solid; opacity: 0.4;
  animation: spin 40s linear infinite reverse;
}
.hero__logo-ring--2::before { background: var(--text-faint); box-shadow: none; width: 6px; height: 6px; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ambient hero glow drift ---------- */
.hero__glow { animation: glowDrift 10s ease-in-out infinite; }
@keyframes glowDrift {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50%      { transform: translateX(-50%) scale(1.15); opacity: 0.75; }
}

/* ---------- Staggered hero reveals ---------- */
.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero .reveal:nth-child(3) { transition-delay: 0.2s; }
.hero .reveal:nth-child(4) { transition-delay: 0.28s; }
.hero .reveal:nth-child(5) { transition-delay: 0.36s; }
.hero .reveal:nth-child(6) { transition-delay: 0.44s; }

/* ---------- Card hover: accent top-line sweep ---------- */
.card, .pillar-card, .stack-card, .service-line { position: relative; overflow: hidden; }
.card::after, .pillar-card::after, .stack-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.card:hover::after, .pillar-card:hover::after, .stack-card:hover::after { transform: translateX(0); }

/* ---------- Buttons: subtle sheen sweep on primary ---------- */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::before {
  content: ''; position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn--primary:hover::before { left: 130%; }

/* ---------- Nav link underline grow ---------- */
.nav__links a:not(.nav__cta) { position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.3s ease;
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }

/* ---------- FAQ open animation ---------- */
.faq__item p { animation: faqSlide 0.3s ease; }
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Section title accent bar ---------- */
.section__title { position: relative; padding-left: 0; }
.kicker { display: inline-block; }

/* ---------- Reduce motion for accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__logo-img, .hero__logo-ring, .hero__glow { animation: none !important; }
  .card::after, .pillar-card::after, .stack-card::after { display: none; }
  .btn--primary::before { display: none; }
}

/* ---------- Hero logo scales down on small screens ---------- */
@media (max-width: 600px) {
  .hero__logo-stage { width: 140px; height: 140px; margin-bottom: 30px; }
  .hero__logo-img { width: 96px; }
  .hero__logo-ring--2 { inset: 14px; }
}

/* ============================================================
   EXTRA SPICE — pillar slide, counters, section flair
   ============================================================ */

/* ---------- Core Pillars: staggered slide-up on scroll ---------- */
.pillar__grid .pillar-card:nth-child(1).reveal { transition-delay: 0s; }
.pillar__grid .pillar-card:nth-child(2).reveal { transition-delay: 0.12s; }
.pillar__grid .pillar-card:nth-child(3).reveal { transition-delay: 0.24s; }

/* Number badge pop */
.pillar-card__num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent-glow);
  font-size: 0.95rem; margin-bottom: 18px;
  transition: background 0.3s, transform 0.3s;
}
.pillar-card:hover .pillar-card__num {
  background: var(--accent); color: #fff;
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ---------- Service lines: left accent border that grows ---------- */
.service-line { position: relative; padding-left: 28px; }
.service-line::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 3px; height: 0; border-radius: 3px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height 0.35s ease;
}
.service-line:hover::before { height: 60%; }
.service-line:hover { border-color: var(--accent); }

/* ---------- Stat numbers: pulse on count ---------- */
.stat__num { transition: transform 0.2s; }
.stat:hover .stat__num { transform: scale(1.08); }

/* ---------- Section dividers: thin accent hairlines ---------- */
.section { position: relative; }
.section::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 60px; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

/* ---------- Compliance card: shield pulse ---------- */
.compliance__icon { position: relative; }
.compliance__icon::after {
  content: ''; position: absolute; inset: -1px; border-radius: 14px;
  border: 1px solid var(--accent-glow);
  animation: iconPulse 3s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.06); }
}

/* ---------- Footer brand logo: subtle glow on hover ---------- */
.footer__brand .brand__logo { transition: filter 0.3s, transform 0.3s; }
.footer__brand .brand:hover .brand__logo--mark { filter: drop-shadow(0 4px 16px var(--accent-glow)); transform: translateY(-2px); }

/* ---------- About boundaries card: corner accent brackets ---------- */
.about__boundaries { position: relative; }
.about__boundaries::before,
.about__boundaries::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--accent); opacity: 0.6;
}
.about__boundaries::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.about__boundaries::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }

/* ---------- Section titles: animated underline ---------- */
.section__title { position: relative; display: inline-block; }
.section__title::after {
  content: ''; position: absolute; bottom: -10px; left: 0;
  width: 52px; height: 3px; border-radius: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.section__title.visible::after, .reveal.visible .section__title::after { transform: scaleX(1); }
/* When the title itself is the reveal target */
.section__title.reveal::after { transform: scaleX(0); }
.section__title.reveal.visible::after { transform: scaleX(1); }

/* ---------- Stack cards: connective feel — left logo rail ---------- */
.stack-card { position: relative; }
.stack-card::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 3px;
  background: linear-gradient(var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.stack-card:hover::before { opacity: 1; }

/* ---------- Reduce motion: kill all the new flair too ---------- */
@media (prefers-reduced-motion: reduce) {
  .compliance__icon::after { animation: none !important; }
  .pillar-card:hover .pillar-card__num, .stat:hover .stat__num { transform: none; }
  .section__title::after { display: none; }
  .service-line::before { display: none; }
}

/* ---------- Hero status pill: desktop + mobile fit ---------- */
.hero__status { max-width: 100%; }
.hero__status .status-line { white-space: nowrap; }
.hero__status .status-sep { color: var(--accent); font-weight: 700; }

@media (max-width: 600px) {
  .hero__status {
    flex-wrap: wrap;              /* allow the two lines to wrap cleanly */
    justify-content: center;
    row-gap: 4px; column-gap: 8px;
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 0.6rem; letter-spacing: 0.04em;
    line-height: 1.5; text-align: center;
    max-width: min(94vw, 420px);
  }
  /* dot stays inline, fixed small size, aligned with first text line */
  .hero__status .pulse-dot { width: 7px; height: 7px; align-self: center; }
  .hero__status .status-sep { display: none; }   /* hide separator when stacked */
  .hero__status .status-line { white-space: normal; }
}
@media (max-width: 380px) {
  .hero__status { font-size: 0.6rem; padding: 10px 18px; }
}

/* ============================================================
   MOBILE FIXES — contact note, footer slogan, hero pill
   ============================================================ */

/* Contact note: never break an email/phone mid-token */
.nowrap { white-space: nowrap; }
.form-note { line-height: 2; max-width: 100%; overflow-wrap: break-word; }
.form-note a { color: var(--text-dim); transition: color 0.2s; }
.form-note a:hover { color: var(--accent); }

/* Footer slogan: reduce tracking so it fits cleanly */
.footer__slogan { letter-spacing: 0.12em; font-size: 0.66rem; line-height: 1.7; }

@media (max-width: 600px) {
  /* Stack the contact links — each on its own line, never split */
  .form-note { line-height: 2.1; }
  .form-note .note-sep { display: none; }
  .form-note a.nowrap { display: block; }
  /* Slogan breathes instead of wrapping jaggedly */
  .footer__slogan { letter-spacing: 0.08em; font-size: 0.6rem; word-spacing: 0.1em; }
}

/* ---------- Local SEO elements ---------- */
.about__location {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem; letter-spacing: 0.14em;
  color: var(--text-faint);
}
.footer__loc { font-size: 0.9rem; color: var(--text-faint); }
