/* ============================================
   AIWEB.MA — Moroccan Futurism
   Navy · Saffron · Teal · Morphing patterns
   ============================================ */

/* --- Tokens --- */
:root {
  /* Base colors */
  --bg: #0A0E27;
  --bg-deep: #060920;
  --bg-elev: #111633;
  --bg-elev-2: #1A2048;
  --surface: #0D1129;
  --line: rgba(255, 184, 77, 0.08);
  --line-strong: rgba(255, 184, 77, 0.2);
  --line-cool: rgba(45, 212, 191, 0.12);

  /* Ink */
  --ink: #F8F7F2;
  --ink-soft: #D4D2C8;
  --muted: #7E7B8F;
  --muted-dark: #4A4860;

  /* Accents */
  --saffron: #FFB84D;
  --saffron-dim: rgba(255, 184, 77, 0.14);
  --saffron-glow: rgba(255, 184, 77, 0.45);
  --saffron-deep: #D4933D;
  --teal: #2DD4BF;
  --teal-dim: rgba(45, 212, 191, 0.14);
  --teal-glow: rgba(45, 212, 191, 0.4);
  --terracotta: #E85D3C;

  /* Typography */
  --font-display: 'Clash Display', 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Satoshi', 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Timing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1400px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--saffron); color: var(--bg); }

/* --- Global ambient glow --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 40% 30% at 80% 10%, rgba(255, 184, 77, 0.06), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(45, 212, 191, 0.04), transparent 70%);
}

/* Subtle grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.03;
  color: var(--ink);
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.display-xl .gold { color: var(--saffron); }
.display-xl .teal { color: var(--teal); }
.display-xl .italic { font-style: italic; font-weight: 400; }

.display-l {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.display-l .gold { color: var(--saffron); }
.display-l .teal { color: var(--teal); }
.display-l .italic { font-style: italic; font-weight: 400; }

.display-m {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--saffron);
  box-shadow: 0 0 8px var(--saffron-glow);
}

.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 5;
}
section { padding: clamp(90px, 13vw, 160px) 0; position: relative; }

/* ===========================================
   NAVIGATION
   =========================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.nav-logo .dot {
  width: 8px; height: 8px;
  background: var(--saffron);
  border-radius: 50%;
  margin: 0 4px 4px 2px;
  box-shadow: 0 0 12px var(--saffron-glow);
  animation: logo-pulse 2.5s ease-in-out infinite;
}
.nav-logo .gold { color: var(--saffron); }
@keyframes logo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--saffron); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 100px;
}
.lang-switch button {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: transparent;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active {
  background: var(--saffron);
  color: var(--bg);
}

.nav-cta {
  padding: 12px 22px;
  background: var(--saffron);
  color: var(--bg);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.01em;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--saffron-glow);
}

.nav-burger {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-burger span {
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    position: fixed; inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 200;
  }
  .nav-links.open a { font-family: var(--font-display); font-size: 28px; color: var(--ink); }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--saffron);
  color: var(--bg);
  box-shadow: 0 0 0 rgba(255, 184, 77, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--saffron-glow);
}
.btn-teal {
  background: var(--teal);
  color: var(--bg);
}
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--teal-glow);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}
.btn .arrow { transition: transform 0.3s var(--ease); font-size: 15px; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===========================================
   HERO (with Moroccan geometric pattern + AI flow)
   =========================================== */
.hero {
  min-height: 100vh;
  padding: 140px var(--gutter) 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Layer 1: Animated Moroccan geometric pattern (SVG + CSS) */
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}
.hero-pattern svg {
  width: 100%;
  height: 100%;
  animation: pattern-drift 60s linear infinite;
}
@keyframes pattern-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-120px, -120px); }
}

/* Layer 2: Canvas for AI flow visualization */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

/* Layer 3: Gradient orb glow */
.hero-glow {
  position: absolute;
  top: 50%; right: -10%;
  transform: translateY(-50%);
  width: 60%;
  height: 120%;
  z-index: 2;
  background:
    radial-gradient(circle, rgba(255, 184, 77, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(45, 212, 191, 0.08) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: glow-breathe 8s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-text { max-width: 900px; }

.hero h1 {
  color: var(--ink);
  margin-bottom: 36px;
  font-family: var(--font-display);
  font-weight: 500;
}
.hero h1 .gold { color: var(--saffron); }
.hero h1 .teal { color: var(--teal); }
.hero h1 .italic { font-style: italic; font-weight: 400; }

.hero-lead {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  max-width: 60ch;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 900px;
}
.hero-meta .item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-meta .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
}
.hero-meta .value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ===========================================
   SECTION HEADER
   =========================================== */
.section-header {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 72px;
  align-items: end;
}
.section-header .eyebrow { margin-bottom: 18px; }
@media (max-width: 900px) {
  .section-header { grid-template-columns: 1fr; gap: 24px; }
}

/* ===========================================
   MARQUEE / TICKER
   =========================================== */
.marquee {
  background: var(--saffron);
  color: var(--bg);
  padding: 24px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  transform: rotate(-0.5deg);
  margin: -20px 0;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 38s linear infinite;
  padding-right: 48px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-track span::after {
  content: "✦";
  font-size: 16px;
  opacity: 0.6;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===========================================
   SERVICES — Large feature cards
   =========================================== */
.services-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-feature {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 80px;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: all 0.4s var(--ease);
  position: relative;
}
.service-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--saffron-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-feature:hover::before { opacity: 1; }
.service-feature:hover { padding-left: 20px; padding-right: 20px; }
.service-feature:hover .service-title { color: var(--saffron); }
.service-feature:hover .service-arrow { color: var(--saffron); transform: translate(4px, -4px) rotate(-45deg); }

.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--saffron);
  letter-spacing: 0.18em;
  font-weight: 500;
  position: relative;
  top: 12px;
}
.service-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.04;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.025em;
  transition: color 0.3s var(--ease);
}
.service-title .gold { color: var(--saffron); }
.service-title .teal { color: var(--teal); }
.service-title .italic { font-style: italic; }

.service-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.service-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tech span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 11px;
  background: var(--bg-elev);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.service-arrow {
  font-size: 24px;
  color: var(--muted);
  transition: all 0.4s var(--ease);
  align-self: start;
  padding-top: 4px;
}
@media (max-width: 800px) {
  .service-feature {
    grid-template-columns: 60px 1fr 28px;
    gap: 20px;
    padding: 32px 0;
  }
  .service-feature > :nth-child(3) { display: none; }
}

/* ===========================================
   METRICS
   =========================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}
.metric:last-child { border-right: none; }
.metric::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--saffron);
  box-shadow: 0 0 12px var(--saffron-glow);
}
.metric:nth-child(2)::before { background: var(--teal); box-shadow: 0 0 12px var(--teal-glow); }
.metric:nth-child(4)::before { background: var(--teal); box-shadow: 0 0 12px var(--teal-glow); }

.metric .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--saffron);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
.metric:nth-child(2) .label, .metric:nth-child(4) .label { color: var(--teal); }

.metric .value {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.9;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.metric .value .unit {
  color: var(--saffron);
  font-size: 0.5em;
  margin-left: 4px;
  font-weight: 400;
}
.metric:nth-child(2) .value .unit, .metric:nth-child(4) .value .unit { color: var(--teal); }

.metric p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 500px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: none; }
}

/* ===========================================
   WORK / CASES
   =========================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  min-height: 360px;
}
.case-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.case-card:hover::before { opacity: 1; }
.case-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.case-card .case-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.case-card .case-cat::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--saffron);
}
.case-card:nth-child(even) .case-cat { color: var(--teal); }
.case-card:nth-child(even) .case-cat::before { background: var(--teal); }

.case-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.case-card h3 em { font-style: italic; font-weight: 400; color: var(--saffron); }
.case-card:nth-child(even) h3 em { color: var(--teal); }

.case-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.case-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 11px;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  letter-spacing: 0.04em;
}
@media (max-width: 800px) {
  .cases-grid { grid-template-columns: 1fr; }
}

/* ===========================================
   PRICING
   =========================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: all 0.35s var(--ease);
}
.price-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
.price-card.featured {
  border-color: var(--saffron);
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.05) 0%, transparent 50%), var(--bg-elev);
  box-shadow: 0 0 0 1px var(--saffron-glow), 0 24px 60px rgba(0, 0, 0, 0.4);
}
.price-card .badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--saffron);
  color: var(--bg);
  padding: 5px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.price-card .tier-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
}
.price-card:not(.featured) .tier-label { color: var(--teal); }
.price-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.035em;
  font-weight: 500;
}
.price-card .price small {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
}
.price-card .for {
  color: var(--ink-soft);
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.price-card ul.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin: 6px 0 16px;
}
.price-card ul.features li {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.price-card ul.features li::before {
  content: "◆";
  color: var(--saffron);
  flex-shrink: 0;
  font-size: 10px;
  margin-top: 4px;
}
.price-card:not(.featured) ul.features li::before { color: var(--teal); }
.price-card .btn { justify-content: center; width: 100%; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ===========================================
   CHATBOT DOCK
   =========================================== */
.chatbot-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
}
.chatbot-trigger {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--saffron);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px var(--saffron-glow);
  transition: transform 0.3s var(--ease);
  font-size: 26px;
  position: relative;
  font-weight: 600;
}
.chatbot-trigger::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--saffron);
  opacity: 0.4;
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.chatbot-trigger:hover { transform: scale(1.06); }
.chatbot-panel {
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 540px;
  max-height: calc(100vh - 140px);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  position: absolute;
  bottom: 0; right: 0;
}
.chatbot-panel.open {
  display: flex;
  animation: chatbot-slide 0.3s var(--ease-out);
}
@keyframes chatbot-slide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.chatbot-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}
.chatbot-header h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chatbot-header h4::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--saffron);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--saffron-glow);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.chatbot-close {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transition: color 0.2s;
}
.chatbot-close:hover { color: var(--ink); }
.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
.msg {
  padding: 11px 15px;
  border-radius: 14px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.5;
  animation: msg-in 0.25s var(--ease-out);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.bot {
  background: var(--bg-elev-2);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border: 1px solid var(--line);
}
.msg.user {
  background: var(--saffron);
  color: var(--bg);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}
.msg.typing {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
  align-self: flex-start;
}
.msg.typing span {
  width: 6px; height: 6px;
  background: var(--saffron);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
.chatbot-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 20px 12px;
}
.chatbot-suggestions button {
  font-family: var(--font-body);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 100px;
  background: var(--bg-elev-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: all 0.2s;
}
.chatbot-suggestions button:hover {
  background: var(--saffron);
  color: var(--bg);
  border-color: var(--saffron);
}
.chatbot-input {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  background: var(--surface);
}
.chatbot-input input {
  flex: 1;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.chatbot-input input:focus { border-color: var(--saffron); }
.chatbot-input button {
  width: 38px; height: 38px;
  background: var(--saffron);
  color: var(--bg);
  border-radius: 50%;
  font-size: 16px;
  transition: transform 0.2s;
}
.chatbot-input button:hover { transform: scale(1.05); }
.chatbot-footer {
  padding: 8px 20px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ===========================================
   CTA FINAL
   =========================================== */
.cta-final {
  padding: clamp(90px, 13vw, 160px) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(255, 184, 77, 0.15), transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 20%, rgba(45, 212, 191, 0.08), transparent 60%),
    var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-final .container { position: relative; z-index: 2; }
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 500;
  line-height: 0.95;
  max-width: 18ch;
  margin: 0 auto 40px;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.cta-final h2 .gold { color: var(--saffron); }
.cta-final h2 .teal { color: var(--teal); }
.cta-final h2 .italic { font-style: italic; font-weight: 400; }

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background: var(--bg-deep);
  padding: 80px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.footer-brand h3 .gold { color: var(--saffron); }
.footer-brand p {
  color: var(--muted);
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--saffron);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--ink-soft);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--saffron); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ===========================================
   PAGE HERO (inner pages)
   =========================================== */
.page-hero {
  padding: 200px var(--gutter) 110px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(255, 184, 77, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 30% at 15% 70%, rgba(45, 212, 191, 0.06), transparent 60%);
  z-index: 1;
}
.page-hero-content { max-width: var(--container); margin: 0 auto; position: relative; z-index: 5; }
.page-hero h1 {
  max-width: 18ch;
  margin: 24px 0 32px;
  font-family: var(--font-display);
  font-weight: 500;
}
.page-hero h1 .gold { color: var(--saffron); }
.page-hero h1 .teal { color: var(--teal); }
.page-hero h1 .italic { font-style: italic; font-weight: 400; }

/* ===========================================
   FAQ
   =========================================== */
.faq-list {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  padding: 28px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  transition: color 0.3s var(--ease);
  letter-spacing: -0.015em;
}
.faq-item:hover summary h3 { color: var(--saffron); }
.faq-icon {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--saffron);
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
  font-weight: 300;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 0 28px; animation: faq-open 0.4s var(--ease); }
.faq-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 70ch;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================================
   REVEAL ANIMATIONS
   =========================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ===========================================
   PROCESS STEPS
   =========================================== */
.process-step {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }
.process-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 500;
  color: var(--saffron);
  line-height: 0.85;
  letter-spacing: -0.035em;
  font-style: italic;
}
.process-step:nth-child(even) .process-num { color: var(--teal); }

.process-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.process-content h2 .gold { color: var(--saffron); }
.process-content h2 .italic { font-style: italic; font-weight: 400; }
.process-content p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin-bottom: 20px; }
.process-content h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
  margin: 24px 0 12px;
  font-weight: 500;
}
.process-content ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.process-content ul li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.55; }
.process-content ul li::before { content: "◆"; color: var(--saffron); flex-shrink: 0; font-size: 10px; margin-top: 6px; }
@media (max-width: 700px) {
  .process-step { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
}

/* ===========================================
   VALUES
   =========================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.value {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s var(--ease);
}
.value:hover {
  border-color: var(--saffron);
  transform: translateY(-4px);
}
.value .value-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--saffron);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  display: block;
  font-weight: 500;
}
.value h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.value p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ===========================================
   CONTACT PAGE
   =========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 48px; } }

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.contact-info h2 .gold { color: var(--saffron); }
.contact-info h2 .italic { font-style: italic; font-weight: 400; }
.contact-info p { color: var(--ink-soft); margin-bottom: 36px; max-width: 42ch; font-size: 16px; line-height: 1.6; }

.contact-channels { display: flex; flex-direction: column; gap: 0; }
.contact-channels a {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s var(--ease);
}
.contact-channels a:last-child { border-bottom: 1px solid var(--line); }
.contact-channels a:hover { padding-left: 14px; }
.contact-channels a:hover strong { color: var(--saffron); }
.contact-channels .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
  display: block;
  margin-bottom: 6px;
}
.contact-channels strong {
  display: block;
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  transition: color 0.3s;
  letter-spacing: -0.015em;
}
.contact-channels .arrow { font-size: 20px; color: var(--muted); transition: all 0.3s var(--ease); }
.contact-channels a:hover .arrow {
  transform: translate(4px, -4px) rotate(-45deg);
  color: var(--saffron);
}

.contact-form {
  background: var(--bg-elev);
  padding: 40px 36px;
  border-radius: 24px;
  border: 1px solid var(--line);
}
.form-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.form-section:first-child { padding-top: 0; }
.form-section:last-child { border-bottom: none; padding-bottom: 0; }
.form-section-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.form-section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--saffron);
  line-height: 1;
  padding: 7px 10px;
  border: 1px solid var(--saffron);
  border-radius: 6px;
  background: var(--saffron-dim);
  letter-spacing: 0.1em;
  font-weight: 500;
}
.form-section-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.form-section-header p {
  font-size: 13px;
  color: var(--muted);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: border 0.2s, background 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-dark); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--saffron);
  background: var(--bg-elev-2);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--saffron);
  color: var(--bg);
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
  margin-top: 12px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--saffron-glow);
}
.form-submit .arrow { transition: transform 0.3s var(--ease); }
.form-submit:hover .arrow { transform: translateX(4px); }
.form-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
  letter-spacing: 0.08em;
}
.form-success, .form-error {
  padding: 16px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 14px;
  display: none;
}
.form-success { background: var(--saffron-dim); color: var(--saffron); border: 1px solid var(--saffron); }
.form-error { background: rgba(232, 93, 60, 0.12); color: var(--terracotta); border: 1px solid var(--terracotta); }

.service-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.service-pill { position: relative; cursor: pointer; }
.service-pill input { position: absolute; opacity: 0; }
.service-pill span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
  background: var(--surface);
}
.service-pill input:checked + span {
  background: var(--saffron);
  color: var(--bg);
  border-color: var(--saffron);
}
