/* =====================================================
   EATELLIGENCE — Master Stylesheet
   Dark Luxury Editorial × Food-Tech Intelligence
   ===================================================== */

/* Font loaded via <link> in HTML head (not @import) for fastest discovery.
   font-display: optional eliminates flash — web fonts only swap if cached. */

/* ─── CSS Variables ─── */
:root {
  --bg:          #08090C;
  --bg-card:     #0E1117;
  --bg-elevated: #141921;
  --border:      rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.13);

  --accent:      #FF4E17;
  --accent-mid:  #FF7A4D;
  --accent-glow: rgba(255,78,23,0.25);
  --accent-subtle: rgba(255,78,23,0.08);

  --text-1:      #F2EDE4;
  --text-2:      #9AA0AC;
  --text-3:      #5C636F;

  /* Fallback stacks visually approximate the web fonts so the swap is imperceptible */
  --font-display: 'Cormorant Garamond', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow:     0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 8px 32px rgba(255,78,23,0.3);

  --max-w: 1200px;
  --nav-h: 72px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);

  /* Stage 1 – Mobile system */
  --mobile-cta-h: 76px;
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
  --safe-left:    env(safe-area-inset-left, 0px);
  --safe-right:   env(safe-area-inset-right, 0px);
}

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

/* ─── Typography Scale ─── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.headline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}
.body-lg { font-size: 1.125rem; line-height: 1.75; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; }

/* ─── Utility Classes ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section--sm { padding: clamp(3rem, 6vw, 5rem) 0; }
.text-accent { color: var(--accent); }
.text-2 { color: var(--text-2); }
.text-center { text-align: center; }
.italic { font-style: italic; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

/* ─── Noise Texture Overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
  /* Stage 1 – enforce 44px minimum touch target */
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-mid);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,78,23,0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.0625rem;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(8,9,12,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav__logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 12px var(--accent); }
  50% { box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent-glow); }
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-2);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav__link:hover,
.nav__link.active { color: var(--text-1); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
/* Stage 2 – Hamburger: 44×44px tap area, CSS-only X animation */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  /* Minimum 44×44 touch target */
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease;
  transform-origin: center;
}
/* Stage 2 – Mobile overlay: slide-down with opacity, no display toggle jank */
.nav__mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 9, 12, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  padding: 2.5rem 1.5rem calc(2.5rem + var(--mobile-cta-h) + var(--safe-bottom));
  gap: 0.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.28s;
}
.nav__mobile.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s;
}
/* Force hidden on desktop regardless */
@media (min-width: 768px) {
  .nav__mobile { display: none !important; }
}
.nav__mobile .nav__link {
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--text-1);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  min-height: 60px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.nav__mobile .nav__link:last-of-type { border-bottom: none; }
.nav__mobile .nav__link::after { display: none; }
.nav__mobile__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ─── Hero Section ─── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(255,78,23,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255,78,23,0.04) 0%, transparent 50%),
    var(--bg);
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6rem 0 5rem;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(255,78,23,0.3);
  border-radius: 100px;
  background: rgba(255,78,23,0.06);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  max-width: 820px;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-1);
}
.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Section Label ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card--accent {
  border-color: rgba(255,78,23,0.2);
  background: linear-gradient(135deg, rgba(255,78,23,0.06) 0%, var(--bg-card) 60%);
}
.card__icon {
  width: 48px; height: 48px;
  background: var(--accent-subtle);
  border: 1px solid rgba(255,78,23,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.card__icon svg { width: 22px; height: 22px; }
.card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--text-1);
}
.card__body {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ─── Feature Showcase ─── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.feature-item {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  transition: background var(--transition);
}
.feature-item:hover { background: var(--bg-elevated); }
.feature-item__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.7;
}
.feature-item__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}
.feature-item__body {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ─── App Mockup (CSS-only phone) ─── */
.mockup-phone {
  width: 260px;
  height: 520px;
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  border-radius: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08);
}
.mockup-phone::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: var(--bg);
  border-radius: 100px;
  z-index: 10;
}
.mockup-screen {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0E1520 0%, #0A0D14 100%);
  display: flex;
  flex-direction: column;
}
.mockup-screen__header {
  padding: 50px 16px 12px;
  background: linear-gradient(180deg, rgba(255,78,23,0.12) 0%, transparent 100%);
}
.mockup-screen__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  text-align: center;
}
.mockup-screen__body { padding: 12px; flex: 1; }
.mockup-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mockup-item__img {
  width: 44px; height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}
.mockup-item__info { flex: 1; }
.mockup-item__name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-1);
}
.mockup-item__price {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}
.mockup-screen__btn {
  margin: 0 12px 16px;
  background: var(--accent);
  color: white;
  text-align: center;
  border-radius: 100px;
  padding: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}
.food-color-1 { background: linear-gradient(135deg, #FF6B6B, #FF8E53); }
.food-color-2 { background: linear-gradient(135deg, #4ECDC4, #44A08D); }
.food-color-3 { background: linear-gradient(135deg, #A8E6CF, #7EC8A4); }
.food-color-4 { background: linear-gradient(135deg, #FFD93D, #FF9F43); }

/* ─── Stats Bar ─── */
.stats-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item__value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-1);
  margin-bottom: 0.375rem;
}
.stat-item__value span { color: var(--accent); }
.stat-item__label {
  font-size: 0.8125rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Skill Bars ─── */
.skill-bar { margin-bottom: 1.5rem; }
.skill-bar__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.skill-bar__name { font-size: 0.875rem; font-weight: 500; color: var(--text-1); }
.skill-bar__pct { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); }
.skill-bar__track {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 100px;
  overflow: hidden;
}
.skill-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-mid));
  border-radius: 100px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Testimonial ─── */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 1.5rem;
  left: 2.5rem;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  pointer-events: none;
}
.testimonial__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 1.25rem;
}
.testimonial__stars svg {
  width: 18px; height: 18px;
  fill: #FFB830;
  color: #FFB830;
}
.testimonial__text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-1);
  margin-bottom: 2rem;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}
.testimonial__name { font-weight: 600; font-size: 0.9375rem; }
.testimonial__role { font-size: 0.8125rem; color: var(--text-2); margin-top: 2px; }

/* ─── Process / Timeline ─── */
.process-list { display: flex; flex-direction: column; gap: 0; }
.process-item {
  display: flex;
  gap: 2rem;
  position: relative;
  padding-bottom: 2.5rem;
}
.process-item:last-child { padding-bottom: 0; }
.process-item__line {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.process-item__dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  flex-shrink: 0;
  z-index: 1;
}
.process-item__connector {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin-top: 6px;
}
.process-item:last-child .process-item__connector { display: none; }
.process-item__content { padding-top: 0.625rem; }
.process-item__title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.process-item__body { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

/* ─── Service Tags ─── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-card);
  transition: all var(--transition);
}
.tag:hover, .tag.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

/* ─── Contact Form ─── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%239AA0AC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
option { background: var(--bg-elevated); }

/* ─── Footer ─── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer__brand { }
.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-2);
  margin-top: 0.75rem;
  transition: color var(--transition);
}
.footer__contact-item:hover { color: var(--text-1); }
.footer__contact-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.footer__col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__link {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--text-1); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a {
  color: var(--text-3);
  transition: color var(--transition);
}
.footer__legal a:hover { color: var(--text-2); }

/* ─── Hero Visual – floating mockup ─── */
.hero-visual {
  position: absolute;
  right: clamp(-2rem, 2vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
}
.hero-visual .mockup-phone { animation: float-phone 4s ease-in-out infinite; }
.hero-visual .mockup-phone:nth-child(2) { animation-delay: -1.5s; transform: scale(0.88) translateY(40px); }
@keyframes float-phone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ─── Divider ─── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}
.divider--glow {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* ─── Logos / Brand Bar ─── */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.logo-item {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0.6;
  transition: opacity var(--transition);
}
.logo-item:hover { opacity: 1; }

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(255,78,23,0.06) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero__label { margin-bottom: 1rem; }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.page-hero__subtitle {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.75;
}

/* ─── Accordion ─── */
.accordion-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-1);
  cursor: pointer;
}
.accordion-trigger svg {
  width: 20px; height: 20px;
  color: var(--text-2);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.accordion-item.open .accordion-trigger svg { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion-item.open .accordion-body { max-height: 400px; }
.accordion-body__inner {
  padding-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ─── Scroll Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── CTA Band ─── */
.cta-band {
  background: linear-gradient(135deg, rgba(255,78,23,0.1) 0%, rgba(255,78,23,0.03) 100%);
  border: 1px solid rgba(255,78,23,0.2);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
}
.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.cta-band__subtitle {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Sticky badge ─── */
.sticky-badge {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  background: var(--accent);
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.875rem 1.25rem;
  border-radius: 100px;
  box-shadow: var(--shadow-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
  animation: slide-up-badge 0.6s cubic-bezier(0.34,1.56,0.64,1) 1s both;
}
.sticky-badge:hover {
  background: var(--accent-mid);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(255,78,23,0.5);
}
.sticky-badge svg { width: 16px; height: 16px; }
@keyframes slide-up-badge {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ─── Pricing / Plan Cards ─── */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all var(--transition);
}
.plan-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.plan-card--featured {
  border-color: rgba(255,78,23,0.4);
  background: linear-gradient(160deg, rgba(255,78,23,0.07) 0%, var(--bg-card) 50%);
}
.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE SYSTEM  ·  320px → 375px → 430px → 768px → 1024px → 1440px
   Stage 1: Foundation   Stage 2: Nav    Stage 3: Hero
   Stage 4: Mobile CTA   Stage 5: Layouts  Stage 6: 320px Polish
   ═══════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────
   Stage 1 – Global touch target enforcement
   ──────────────────────────────────────── */
.nav__link,
.footer__link,
.footer__contact-item,
.footer__legal a,
.tag,
.accordion-trigger,
a[href^="tel:"],
a[href^="mailto:"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* All clickable rows ≥ 44px high */
.footer__link,
.footer__contact-item,
.footer__legal a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ────────────────────────────────────────
   Stage 4 – Mobile CTA Bar (always in DOM, shown only on mobile)
   ──────────────────────────────────────── */
.mob-cta-bar {
  display: none; /* shown via media query below */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(8, 9, 12, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-strong);
  /* safe-area for notched iPhones */
  padding: 0.75rem calc(1rem + var(--safe-right)) calc(0.75rem + var(--safe-bottom)) calc(1rem + var(--safe-left));
  gap: 0.625rem;
  align-items: center;
  animation: mob-bar-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}
@keyframes mob-bar-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.mob-cta-bar__call {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-1);
  transition: background var(--transition), border-color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.mob-cta-bar__call:active { background: var(--bg-card); }
.mob-cta-bar__call svg { width: 22px; height: 22px; }
.mob-cta-bar__demo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(255, 78, 23, 0.4);
  transition: background var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.mob-cta-bar__demo:active {
  background: var(--accent-mid);
  box-shadow: 0 2px 10px rgba(255, 78, 23, 0.3);
}
.mob-cta-bar__demo svg { width: 17px; height: 17px; }

/* ────────────────────────────────────────
   1024px – Tablet landscape
   ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  /* Stage 5 – reduce massive inline gaps at this breakpoint */
  .grid-2 { gap: 3rem !important; }
}

/* ────────────────────────────────────────
   767px – Mobile breakpoint (below tablet)
   ──────────────────────────────────────── */
@media (max-width: 767px) {
  /* Stage 1 – Reduce nav height, show hamburger */
  :root { --nav-h: 60px; }

  /* Stage 1 – Body offset so content clears the sticky CTA bar */
  body {
    padding-bottom: calc(var(--mobile-cta-h) + var(--safe-bottom));
  }

  /* Stage 2 – Nav */
  .nav__links,
  .nav__actions { display: none; }
  .nav__hamburger { display: flex; }

  /* Stage 4 – Show mobile CTA bar, hide desktop sticky badge */
  .mob-cta-bar { display: flex; }
  .sticky-badge { display: none; }

  /* Stage 5 – Override ALL inline-style gaps on grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    align-items: unset !important;
  }
  /* Undo inline order:1/order:2 on service page columns */
  .grid-2 > * { order: unset !important; }

  /* Stage 5 – Feature grid single column */
  .feature-grid { grid-template-columns: 1fr; }

  /* Stage 5 – Stats bar: 2-up grid */
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
  }
  .stat-item__value { font-size: 2.25rem; }

  /* Stage 3 – Hero */
  .hero__content { padding: 3rem 0 2.5rem; }
  .hero__title { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .hero__subtitle { font-size: 1rem; }
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
  }
  .hero__stat-value { font-size: 2.25rem; }
  /* Stage 3 – Hide floating chips that bleed off-screen */
  .float-chip { display: none; }
  /* Scale down inline mockup-phone dimensions */
  .mockup-phone[style] {
    width: 240px !important;
    height: 480px !important;
  }

  /* Stage 5 – Section spacing tighter */
  .section { padding: clamp(3rem, 8vw, 5rem) 0; }
  .section--sm { padding: clamp(2rem, 5vw, 3.5rem) 0; }

  /* Stage 5 – CTA band */
  .cta-band {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
  }
  .cta-band__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }

  /* Stage 5 – Testimonial */
  .testimonial { padding: 2rem 1.5rem; }
  .testimonial::before { font-size: 5rem; top: 0.75rem; left: 1.25rem; }

  /* Stage 5 – Page hero inner pages */
  .page-hero { padding: calc(var(--nav-h) + 3rem) 0 3rem; }
  .page-hero__title { font-size: clamp(2.2rem, 8vw, 4rem); }

  /* Stage 5 – Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .logo-bar { gap: 1.25rem; }

  /* Stage 5 – Article inline margins reduced */
  article[style*="margin-bottom:6rem"] { margin-bottom: 3rem !important; }
  article[style*="padding:4rem 0"] { padding: 2.5rem 0 !important; }

  /* Stage 5 – Cards with large padding reset */
  .card[style*="padding:3rem"] { padding: 2rem 1.5rem !important; }

  /* Stage 6 – Display type tighter on mobile */
  .display-lg { font-size: clamp(2.2rem, 8vw, 4rem); }
  .display-md { font-size: clamp(1.75rem, 6vw, 2.6rem); }

  /* Stage 6 – Reveal animations: smaller translate on mobile */
  .reveal { transform: translateY(18px); }
}

/* ────────────────────────────────────────
   479px – Small phones (iPhone SE, Moto G)
   ──────────────────────────────────────── */
@media (max-width: 479px) {
  /* Stage 6 – Stats bar drops to single column */
  .stats-bar { grid-template-columns: 1fr; }

  /* Stage 3 – Hero CTAs stack vertically, full width */
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn {
    justify-content: center;
    width: 100%;
  }

  /* Stage 6 – Reduce btn-lg padding slightly */
  .btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }

  /* Stage 6 – Container tighter padding */
  .container { padding: 0 1rem; }

  /* Stage 6 – Hero title at absolute smallest */
  .hero__title { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .hero__stat-value { font-size: 2rem; }

  /* Stage 6 – Testimonial quote mark less intrusive */
  .testimonial::before { display: none; }

  /* Stage 6 – Feature items tighter */
  .feature-item { padding: 1.75rem 1.25rem; }

  /* Stage 6 – CTA band mobile CTAs stack */
  .cta-band .btn { width: 100%; justify-content: center; }
  .cta-band > div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Stage 6 – Process items: reduce gap */
  .process-item { gap: 1.25rem; }

  /* Stage 6 – Logo bar wraps tightly */
  .logo-bar { gap: 0.875rem; }
  .logo-item { font-size: 0.75rem; }

  /* Stage 6 – Footer legal links wrap */
  .footer__legal { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
}

/* ────────────────────────────────────────
   359px – Narrowest phones (320–359px)
   ──────────────────────────────────────── */
@media (max-width: 359px) {
  :root { --nav-h: 56px; }

  /* Stage 6 – Nav logo shrinks */
  .nav__logo { font-size: 1.25rem; }

  /* Stage 6 – Hero title minimum */
  .hero__title { font-size: 2.4rem; letter-spacing: -0.025em; }

  /* Stage 6 – Tightest container */
  .container { padding: 0 0.875rem; }

  /* Stage 6 – Mockup smaller still */
  .mockup-phone[style] {
    width: 200px !important;
    height: 400px !important;
  }

  /* Stage 6 – Stats 2-up at 320 */
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item__value { font-size: 1.75rem; }

  /* Stage 6 – Skill bars tighter */
  .skill-bar { margin-bottom: 1.25rem; }

  /* Stage 6 – Testimonial minimal */
  .testimonial { padding: 1.5rem 1rem; }
  .testimonial__text { font-size: 1rem; }
}

/* ─── Focus & Accessibility ─── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── Print ─── */
@media print {
  .nav, .sticky-badge, .hero__bg, .hero__grid-lines { display: none; }
  body { background: white; color: black; }
}
