/* =============================================================
   Keres AI — stylesheet
   Sections: tokens, reset, a11y, layout, nav, hero, trust,
             sections, buttons, cards, forms, calendar, modal,
             chatbot, footer, utilities, responsive, motion
============================================================= */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --orange: #E85D04;
  --orange-light: #F48C06;
  --orange-dark: #B84700;

  /* Light theme (default) */
  --bg: #f8f6f2;
  --bg-alt: #eeebe4;
  --bg-card: #ffffff;
  --bg-inverse: #0f0f0f;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --text-dim: #888;
  --text-on-dark: rgba(255, 255, 255, 0.72);
  --text-on-dark-muted: rgba(255, 255, 255, 0.48);
  --border: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.18);
  --border-dark: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 4vw, 48px);

  --nav-h: 68px;

  --t-fast: 0.15s ease;
  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --bg-card: #1a1a1a;
  --bg-inverse: #f8f6f2;
  --surface: #1a1a1a;
  --text: #f1f1f1;
  --text-muted: #b5b5b5;
  --text-dim: #888;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-dark: rgba(255, 255, 255, 0.08);
  --shadow: 0 2px 10px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.6);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.7);
}

/* Honor system preference when user hasn't chosen */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0a0a0a;
    --bg-alt: #121212;
    --bg-card: #1a1a1a;
    --bg-inverse: #f8f6f2;
    --surface: #1a1a1a;
    --text: #f1f1f1;
    --text-muted: #b5b5b5;
    --text-dim: #888;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
  }
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t), color var(--t);
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select, button { font: inherit; color: inherit; }

/* ─── Accessibility ─────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--orange); color: #fff; padding: 10px 16px;
  z-index: 10000; border-radius: 0 0 var(--radius) 0;
  font-weight: 500;
  display: none;
}
.skip-link:focus { display: block; top: 0; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible, a:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline-offset: 2px;
}

/* ─── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); }

main { display: block; }

section { padding-block: clamp(72px, 10vw, 112px); position: relative; }
/* .dark stays dark in BOTH themes — value cards + stats read on dark */
section.dark { background: #0a0a0a; color: #fff; }
section.alt { background: var(--bg-alt); }

.section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px;
  text-align: center;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 auto 16px;
  text-align: center;
  max-width: 900px;
}
section.dark .section-title { color: #fff; }
.section-title .accent { color: var(--orange); font-style: italic; }
.section-body {
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
  text-align: center;
  margin-inline: auto;
}
section.dark .section-body { color: var(--text-on-dark); }

/* About section keeps left-aligned layout (two-column grid) */
.about-grid .section-label,
.about-grid .section-title,
.about-grid .section-body { text-align: left; margin-inline: 0; max-width: none; }

/* ─── Navigation ───────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav-inner {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.nav-inner > .logo { justify-self: start; }
.nav-inner > nav[aria-label="Primary"] { justify-self: center; }
.nav-inner > .nav-actions { justify-self: end; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 18px; font-weight: 600;
  color: var(--text); letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-img {
  width: 52px; height: 52px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
.logo-text { display: none; }
.logo-text span { color: var(--orange); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color var(--t-fast);
  position: relative; padding: 6px 2px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  min-width: 38px; height: 38px; border-radius: 8px;
  padding-inline: 8px;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text); display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { background: var(--bg-alt); border-color: var(--orange); color: var(--orange); }
.icon-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

#lang-trigger { min-width: 62px; padding-inline: 10px; }
.lang-label { font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }

.lang-switch { position: relative; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 160px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-4px); transition: all var(--t);
  z-index: 120;
}
.lang-switch[aria-expanded="true"] .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 9px 12px; border-radius: 6px; font-size: 14px;
  color: var(--text); display: flex; align-items: center; gap: 10px;
}
.lang-menu button:hover, .lang-menu button[aria-current="true"] {
  background: var(--bg-alt); color: var(--orange);
}
.lang-menu .flag { width: 20px; text-align: center; }

/* Hamburger */
.hamburger {
  display: none;
  width: 38px; height: 38px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text); padding: 0;
  place-items: center;
}
.hamburger span {
  display: block; width: 18px; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform var(--t), opacity var(--t);
}
.hamburger span + span { margin-top: 4px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile sheet */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  transform: translateX(100%);
  transition: transform var(--t);
  padding: 28px var(--gutter);
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu a {
  display: block; padding: 16px 4px;
  font-size: 20px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .mobile-cta {
  margin-top: 20px; display: flex; flex-direction: column; gap: 12px;
}

/* ─── Hero ─────────────────────────────────────────────── */
#hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  position: relative; overflow: hidden;
}
.hero-orb, .hero-orb-2 { position: absolute; pointer-events: none; }
.hero-orb {
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(232,93,4,0.22) 0%, rgba(232,93,4,0.06) 45%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -62%);
}
.hero-orb-2 {
  width: 360px; height: 160px; border-radius: 50%;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  bottom: 12%; left: 50%; transform: translateX(-50%);
  filter: blur(24px);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--orange) 10%, transparent);
  color: var(--orange);
  border: 1px solid color-mix(in srgb, var(--orange) 25%, transparent);
  padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em;
  margin-bottom: 24px; position: relative; z-index: 1;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(232,93,4, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,93,4, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(232,93,4, 0); }
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--text); font-weight: 400;
  position: relative; z-index: 1;
  max-width: 14ch;
}
.hero-title .accent { color: var(--orange); font-style: italic; }
.hero-sub {
  margin-top: 28px; max-width: 580px;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 300;
  color: var(--text-muted); line-height: 1.7;
  position: relative; z-index: 1;
}
.hero-ctas {
  margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 1;
}
.hero-meta {
  margin-top: 36px; display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
  color: var(--text-dim); font-size: 13px;
  position: relative; z-index: 1;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--orange); }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; font-size: 14.5px; font-weight: 500;
  border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: all var(--t-fast); white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 4px 16px rgba(232,93,4,0.25);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,93,4,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--text); transform: translateY(-1px); }
section.dark .btn-outline { color: #fff; border-color: rgba(255,255,255,0.25); }
section.dark .btn-outline:hover { border-color: #fff; }
.btn svg { width: 14px; height: 14px; }

/* ─── Trust bar ─────────────────────────────────────── */
.trust {
  padding-block: 40px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.trust-inner {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center;
}
.trust-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600; margin-right: 12px;
}
.trust-logo {
  font-family: var(--serif); font-size: 22px;
  color: var(--text-muted); opacity: 0.75;
  letter-spacing: -0.01em; transition: opacity var(--t-fast), color var(--t-fast);
}
.trust-logo:hover { opacity: 1; color: var(--text); }

.footer-brand {
  display: flex; flex-direction: column; gap: 16px;
}
.footer-brand .logo { margin-bottom: 8px; }
.footer-brand .logo-img { width: 140px; height: 140px; }
.footer-brand p {
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
  max-width: 280px;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.stat-num {
  font-family: var(--serif); font-size: 44px;
  color: var(--orange); font-weight: 400; line-height: 1;
}
.stat-label {
  font-size: 12px; color: var(--text-on-dark-muted);
  margin-top: 8px; letter-spacing: 0.06em; text-transform: uppercase;
}
.values-grid { display: flex; flex-direction: column; gap: 14px; }
.value-card {
  background: color-mix(in srgb, #fff 4%, transparent);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.value-card:hover {
  background: color-mix(in srgb, #fff 6%, transparent);
  border-color: rgba(232,93,4,0.3);
  transform: translateY(-2px);
}
.value-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(232,93,4,0.15); display: grid; place-items: center; flex-shrink: 0;
}
.value-icon svg { width: 18px; height: 18px; stroke: var(--orange); fill: none; stroke-width: 1.8; }
.value-title { font-size: 15px; font-weight: 500; color: #fff; }
.value-desc { font-size: 13.5px; color: rgba(255,255,255,0.58); margin-top: 5px; line-height: 1.65; }

/* ─── Services / Demos ─────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 56px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: color-mix(in srgb, var(--orange) 35%, var(--border));
}
.service-visual {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1a0a 100%);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.service-visual.v1 { background: linear-gradient(135deg, #1a1a1a, #2d1a0a); }
.service-visual.v2 { background: linear-gradient(135deg, #1a1a1a, #0a1a2d); }
.service-visual.v3 { background: linear-gradient(135deg, #1a1a1a, #1a2d0a); }
.service-visual.v4 { background: linear-gradient(135deg, #1a1a1a, #2d0a1a); }
.service-visual.v5 { background: linear-gradient(135deg, #1a1a1a, #0a2d2d); }
.service-visual.v6 { background: linear-gradient(135deg, #1a1a1a, #2d2d0a); }
.service-visual svg { width: 64px; height: 64px; opacity: 0.55; }
.service-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.service-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 8px;
}
.service-name {
  font-family: var(--serif); font-size: 24px;
  font-weight: 400; color: var(--text); line-height: 1.25;
}
.service-desc {
  font-size: 14px; color: var(--text-muted);
  margin-top: 10px; line-height: 1.65; flex: 1;
}
.service-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 13.5px; color: var(--orange); font-weight: 500;
  background: transparent; border: 0; padding: 0; align-self: flex-start;
  transition: gap var(--t-fast);
}
.service-cta:hover { gap: 10px; }
.service-cta svg { width: 14px; height: 14px; }

/* ─── Industries ────────────────────────────────────── */
.industries-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 48px;
}
.industry-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.industry-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 4%, var(--bg-card));
}
.industry-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  display: grid; place-items: center; color: var(--orange);
  margin-bottom: 6px;
}
.industry-icon svg { width: 20px; height: 20px; }
.industry-name { font-size: 15px; font-weight: 600; color: var(--text); }
.industry-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ─── How it works ───────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px; margin-top: 56px; counter-reset: step;
}
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -4px;
  font-family: var(--serif); font-size: 36px;
  color: var(--orange); font-weight: 400; line-height: 1;
}
.step-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ─── Pricing ───────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 56px;
}
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
}
.price-card.featured {
  border-color: var(--orange);
  box-shadow: 0 10px 40px rgba(232,93,4,0.15);
  transform: translateY(-6px);
}
.price-card.featured::before {
  content: attr(data-badge);
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.price-card.featured:hover { transform: translateY(-8px); }
.price-tier { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.price-amount {
  font-family: var(--serif); font-size: 40px; font-weight: 400; color: var(--text);
  margin-top: 12px; line-height: 1;
}
.price-amount .unit { font-size: 15px; color: var(--text-dim); font-family: var(--sans); }
.price-desc { font-size: 14px; color: var(--text-muted); margin-top: 14px; line-height: 1.6; }
.price-features {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.price-features li {
  font-size: 13.5px; color: var(--text-muted);
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.55;
}
.price-features svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { margin-top: 28px; width: 100%; }

/* ─── Testimonials ─────────────────────────────────── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 56px;
}
.testimonial {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 16px; color: var(--orange); }
.testimonial-stars svg { width: 16px; height: 16px; }
.testimonial-text { font-size: 15px; color: var(--text); line-height: 1.7; flex: 1; }
.testimonial-foot {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

/* ─── FAQ ──────────────────────────────────────────── */
.faq-list { margin-top: 40px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 4px; font-size: 16px; font-weight: 500; color: var(--text);
  cursor: pointer; list-style: none; gap: 16px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: ''; flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform var(--t);
}
details[open] .faq-q::after { transform: rotate(-135deg); }
.faq-a { padding: 0 4px 24px; font-size: 14.5px; color: var(--text-muted); line-height: 1.75; }

/* ─── Forms ────────────────────────────────────────── */
.contact-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(232,93,4,0.06) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(232,93,4,0.04) 0%, transparent 50%);
}
.contact-inner { position: relative; z-index: 1; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
  margin-top: 56px;
}
.contact-col-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.contact-col-sub { font-size: 14px; color: var(--text-dim); margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.form-label .req { color: var(--orange); }
.form-input {
  width: 100%; padding: 12px 14px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius); font-size: 14.5px;
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast); outline: none;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:hover { border-color: var(--text-muted); }
.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 18%, transparent);
}
textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-input.invalid { border-color: #c0392b; background: color-mix(in srgb, #c0392b 4%, var(--bg-card)); }
.field-error { font-size: 12.5px; color: #c0392b; margin-top: 6px; min-height: 18px; }
.form-submit { margin-top: 8px; width: 100%; padding: 14px; }
.form-status-ok {
  background: color-mix(in srgb, #16a34a 8%, var(--bg-card));
  border: 1px solid color-mix(in srgb, #16a34a 40%, transparent);
  border-radius: var(--radius); padding: 22px; text-align: center;
}
.form-status-ok-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #16a34a; color: #fff; margin: 0 auto 12px;
  display: grid; place-items: center;
}
.form-status-ok-title { font-weight: 600; color: var(--text); font-size: 15px; }
.form-status-ok-msg { color: var(--text-muted); font-size: 13.5px; margin-top: 6px; }
.form-status-err {
  background: color-mix(in srgb, #c0392b 6%, var(--bg-card));
  border: 1px solid color-mix(in srgb, #c0392b 40%, transparent);
  border-radius: var(--radius); padding: 14px; margin-bottom: 16px;
  font-size: 13.5px; color: #c0392b;
}

/* ─── Calendar ─────────────────────────────────────── */
.cal-wrapper {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-card);
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.cal-month { font-size: 14.5px; font-weight: 600; color: var(--text); }
.cal-nav {
  background: transparent; border: 1px solid var(--border);
  border-radius: 6px; width: 32px; height: 32px;
  color: var(--text-muted); display: grid; place-items: center;
  transition: all var(--t-fast);
}
.cal-nav:hover { color: var(--orange); border-color: var(--orange); }
.cal-nav svg { width: 12px; height: 12px; }
.cal-grid { padding: 14px 16px 18px; }
.cal-weekdays, .cal-days {
  display: grid; grid-template-columns: repeat(7, 1fr);
}
.cal-weekdays {
  text-align: center; font-size: 11px; font-weight: 600;
  color: var(--text-dim); letter-spacing: 0.05em; margin-bottom: 8px;
}
.cal-days { gap: 2px; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: 13.5px; color: var(--text);
  border-radius: 50%; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
}
.cal-day:hover:not(.empty):not(.past) { background: color-mix(in srgb, var(--orange) 12%, transparent); color: var(--orange); }
.cal-day.today { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); font-weight: 600; }
.cal-day.selected { background: var(--orange); color: #fff !important; font-weight: 600; }
.cal-day.past { color: var(--text-dim); opacity: 0.55; cursor: default; }
.cal-day.empty { cursor: default; }
.cal-info { padding: 14px 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-muted); }
.cal-info strong { color: var(--orange); }

/* ─── Modal ────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.modal-backdrop[data-open="true"] { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card); border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; padding: 36px 32px;
  position: relative; max-height: 90vh; overflow-y: auto;
  transform: translateY(12px); transition: transform var(--t);
  border: 1px solid var(--border);
}
.modal-backdrop[data-open="true"] .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-alt); border: 0; color: var(--text);
  display: grid; place-items: center;
}
.modal-close:hover { background: var(--orange); color: #fff; }
.modal-close svg { width: 14px; height: 14px; }
.modal-title { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--text); margin-bottom: 8px; line-height: 1.2; }
.modal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; line-height: 1.6; }
.modal-video {
  aspect-ratio: 16/9; background: #0f0f0f;
  border-radius: var(--radius); display: grid; place-items: center;
  color: rgba(255,255,255,0.6); font-size: 14px;
  margin-bottom: 22px;
  background-image: linear-gradient(135deg, #1a1a1a 0%, #2d1a0a 100%);
  flex-direction: column;
}
.modal-video svg { width: 56px; height: 56px; color: var(--orange); margin-bottom: 10px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── CTA band ─────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff; padding-block: clamp(60px, 8vw, 88px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0, transparent 40%);
  pointer-events: none;
}
.cta-band-inner { position: relative; }
.cta-band h2 {
  font-family: var(--serif); font-size: clamp(32px, 5vw, 52px);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; color: #fff;
}
.cta-band p { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,0.88); max-width: 560px; margin-inline: auto; }
.cta-band .btn { margin-top: 28px; background: #fff; color: var(--orange); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.cta-band .btn:hover { background: #fff; color: var(--orange-dark); transform: translateY(-2px); }

/* ─── Footer ───────────────────────────────────────── */
footer {
  background: #0a0a0a; color: rgba(255,255,255,0.55);
  padding: 72px var(--gutter) 32px;
}
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
}
.footer-brand { max-width: 340px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo span { color: var(--orange); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; color: #fff;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--orange); }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.06); display: grid; place-items: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.footer-socials a:hover { background: var(--orange); color: #fff; }
.footer-socials svg { width: 15px; height: 15px; }

.footer-contact { margin-top: 18px; }
.footer-contact a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.82);
  font-size: 14px; font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.footer-contact a:hover { background: var(--orange); color: #fff; }
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer-bottom {
  max-width: var(--container); margin: 56px auto 0;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 13px; color: rgba(255,255,255,0.4); flex-wrap: wrap;
}

/* ─── Chatbot ──────────────────────────────────────── */
#chat-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--orange); border: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(232,93,4,0.45);
  display: grid; place-items: center;
  transition: transform var(--t), box-shadow var(--t);
}
#chat-btn:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(232,93,4,0.55); }
#chat-btn svg { width: 26px; height: 26px; fill: #fff; }
#chat-badge {
  display: none; position: absolute; top: -2px; right: -2px;
  width: 20px; height: 20px; background: #22c55e; border-radius: 50%;
  border: 2px solid var(--bg); font-size: 11px; font-weight: 700;
  color: #fff; place-items: center;
}
#chat-badge.show { display: grid; }

#chat-box {
  position: fixed; bottom: 98px; right: 24px; z-index: 401;
  width: min(380px, calc(100vw - 48px)); max-height: min(600px, calc(100vh - 140px));
  border-radius: 16px; background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  display: none; flex-direction: column; overflow: hidden;
  font-family: var(--sans);
}
#chat-box[data-open="true"] { display: flex; animation: chatIn 0.3s ease; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
#chat-header {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.22); display: grid; place-items: center;
  font-size: 18px; color: #fff; flex-shrink: 0;
}
#chat-header-text { flex: 1; color: #fff; }
#chat-header-text strong { display: block; font-size: 14px; font-weight: 600; }
#chat-header-text span { font-size: 11.5px; opacity: 0.85; display: flex; align-items: center; gap: 6px; }
#chat-header-text span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.3); }
#chat-close {
  background: none; border: 0; color: rgba(255,255,255,0.9);
  width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center;
}
#chat-close:hover { background: rgba(255,255,255,0.18); color: #fff; }
#chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
.cm-wrap { display: flex; }
.cm-bot { justify-content: flex-start; }
.cm-user { justify-content: flex-end; }
.cm-bubble {
  max-width: 82%; padding: 10px 14px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.55; white-space: pre-wrap;
}
.cm-bot .cm-bubble { background: var(--bg-alt); color: var(--text); border-bottom-left-radius: 4px; }
.cm-user .cm-bubble { background: var(--orange); color: #fff; border-bottom-right-radius: 4px; }
.cm-typing { display: flex; gap: 4px; align-items: center; padding: 12px 16px !important; }
.cm-typing span { width: 7px; height: 7px; background: var(--text-dim); border-radius: 50%; animation: bounce 1.2s infinite; }
.cm-typing span:nth-child(2) { animation-delay: 0.2s; }
.cm-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
#chat-suggestions {
  padding: 0 14px 10px; display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0;
}
.chat-suggestion {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 12px; font-size: 12px; color: var(--text-muted);
  transition: all var(--t-fast);
}
.chat-suggestion:hover { background: color-mix(in srgb, var(--orange) 12%, transparent); color: var(--orange); border-color: var(--orange); }
#chat-footer {
  padding: 12px 14px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; background: var(--bg);
}
#chat-input {
  flex: 1; border: 1px solid var(--border-strong); border-radius: 22px;
  padding: 10px 16px; font-size: 13.5px; outline: none; background: var(--bg-card); color: var(--text);
}
#chat-input:focus { border-color: var(--orange); }
#chat-send {
  width: 38px; height: 38px; border-radius: 50%; background: var(--orange);
  border: 0; display: grid; place-items: center; flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
#chat-send:hover { background: var(--orange-dark); transform: scale(1.06); }
#chat-send svg { width: 16px; height: 16px; fill: #fff; }

/* ─── Animations ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow, .hero-title, .hero-sub, .hero-ctas, .hero-meta { animation: fadeUp 0.8s cubic-bezier(0.22,0.61,0.36,1) both; }
.hero-eyebrow { animation-delay: 0s; }
.hero-title   { animation-delay: 0.05s; }
.hero-sub     { animation-delay: 0.18s; }
.hero-ctas    { animation-delay: 0.3s; }
.hero-meta    { animation-delay: 0.42s; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .hamburger { display: grid; }
  section { padding-block: 72px; }
  #hero { padding-top: calc(var(--nav-h) + 20px); }
  .hero-meta { gap: 18px; font-size: 12.5px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .trust-inner { gap: 20px; }
  .trust-label { width: 100%; text-align: center; margin: 0 0 4px; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
}
@media (max-width: 480px) {
  .btn { padding: 12px 20px; font-size: 14px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  #chat-btn { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  #chat-box { bottom: 84px; right: 12px; left: 12px; width: auto; }
}

/* ─── Print ────────────────────────────────────────── */
@media print {
  .nav, #chat-btn, #chat-box, .hamburger, .cta-band .btn, footer { display: none !important; }
  section { page-break-inside: avoid; padding: 20px 0; }
  body { color: #000; background: #fff; }
}
