/* ============================================
   FRACTIONAL AGENT — Brand Design System
   fractionalagent.ai
   ============================================ */

/* --- CSS Variables / Brand Tokens --- */
:root {
  /* Colors */
  --deep-navy: #0F1D35;
  --navy: #1B2A4A;
  --copper: #B87333;
  --copper-light: #D4945A;
  --copper-glow: rgba(184, 115, 51, 0.15);
  --cream: #F5F0E8;
  --white: #FFFFFF;
  --gray-100: #F8F6F2;
  --gray-200: #E8E4DC;
  --gray-300: #C8C2B8;
  --gray-400: #9A9488;
  --gray-500: #6B665C;
  --gray-600: #4A4640;
  --text-primary: #1B2A4A;
  --text-secondary: #6B665C;
  --text-light: #F5F0E8;
  --success: #2D7A4F;
  --warning: #C4881D;
  --danger: #A83232;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --nav-height: 80px;
  --border-radius: 4px;
  --border-radius-lg: 8px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p { 
  font-size: 1.05rem; 
  color: var(--text-secondary); 
  max-width: 65ch; 
}

.text-copper { color: var(--copper); }
.text-navy { color: var(--navy); }
.text-light { color: var(--text-light); }

.font-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

section {
  padding: var(--space-5xl) 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

/* Arrow circle button system */
.btn__arrow-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.btn__arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn__arrow--default {
  transform: translateX(0);
}
.btn__arrow--hover {
  transform: translateX(-110%);
}
.btn:hover .btn__arrow--default {
  transform: translateX(110%);
}
.btn:hover .btn__arrow--hover {
  transform: translateX(0);
}

.btn--primary {
  background: var(--copper);
  color: var(--white);
  border-color: transparent;
  border-radius: 50px;
  padding: 0.6rem 0.7rem 0.6rem 1.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(184, 115, 51, 0.25);
}
.btn--primary .btn__arrow--default {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.btn--primary .btn__arrow--hover {
  background: var(--white);
  color: var(--copper);
}
.btn--primary:hover {
  background: #A06429;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(184, 115, 51, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 240, 232, 0.4);
  border-radius: 50px;
  padding: 0.6rem 0.7rem 0.6rem 1.8rem;
  font-weight: 600;
}
.btn--light .btn__arrow--default {
  background: rgba(245, 240, 232, 0.2);
  color: var(--cream);
}
.btn--light .btn__arrow--hover {
  background: var(--copper);
  color: var(--white);
}
.btn--light:hover {
  background: transparent;
  border-color: var(--cream);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--copper);
  border-color: transparent;
  padding-left: 0;
}
.btn--ghost:hover {
  color: #A06429;
}
.btn--ghost svg { transition: transform var(--transition-fast); }
.btn--ghost:hover svg { transform: translateX(4px); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: var(--nav-height);
  background: rgba(15, 29, 53, 0.97);
  transition: all var(--transition-base);
}

.nav--scrolled {
  background: rgba(15, 29, 53, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(184, 115, 51, 0.15);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.nav__logo-mark {
  width: 40px;
  height: 40px;
}

.nav__logo-divider {
  width: 1px;
  height: 32px;
  background: var(--copper);
  opacity: 0.4;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav__logo-text-primary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cream);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav__logo-text-secondary {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.55rem;
  color: var(--copper);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-300);
  transition: color var(--transition-fast);
  position: relative;
}
.nav__link:hover,
.nav__link--active {
  color: var(--cream);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width var(--transition-base);
}
.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

/* Mobile Nav Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 9999;
  position: relative;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all var(--transition-fast);
}
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Menu */
.nav__mobile {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #0F1D35;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  z-index: 9998;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  -webkit-overflow-scrolling: touch;
}
.nav__mobile.active {
  display: flex;
  visibility: visible;
  opacity: 1;
}
.nav__mobile .nav__link {
  font-size: 1.3rem;
  color: var(--cream);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--deep-navy);
  overflow: hidden;
  padding-top: calc(var(--nav-height) + 40px); /* nav + ticker */
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(184, 115, 51, 0.06) 0%, transparent 70%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0.3;
}

/* Subtle grid pattern */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: 
    linear-gradient(rgba(184, 115, 51, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 115, 51, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(184, 115, 51, 0.3);
  border-radius: 2px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

.hero__label span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper-light);
  letter-spacing: 0.1em;
}

.hero__title {
  color: var(--cream);
  margin-bottom: var(--space-lg);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

.hero__title em {
  font-style: normal;
  color: var(--copper);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 580px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.6s;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.8s;
}

.hero__stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-4xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(184, 115, 51, 0.15);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 1s;
}

.hero__stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--copper);
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* Decorative fraction mark on hero */
.hero__mark {
  position: absolute;
  right: 8%;
  top: 45%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: 0.12;
  z-index: 3;
  object-fit: contain;
  pointer-events: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Value Created Ticker --- */
.ticker {
  background: var(--deep-navy);
  padding: 6px 0;
  border-bottom: 1px solid rgba(184, 115, 51, 0.15);
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 99;
}

.ticker__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.ticker__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ticker__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  animation: tickerPulse 2s ease-in-out infinite;
}

.ticker__label span:last-child {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--copper);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__metrics {
  display: flex;
  gap: var(--space-3xl);
  flex: 1;
  justify-content: flex-end;
}

.ticker__metric {
  text-align: right;
}

.ticker__value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ticker__caption {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
  line-height: 1;
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.section-header__label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--copper);
}

.section-header__label span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.1rem;
}

/* --- Problem Section --- */
.problem {
  background: var(--cream);
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.problem__visual {
  position: relative;
}

.problem__chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-lg);
  height: 280px;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gray-200);
}

.problem__bar {
  flex: 1;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  position: relative;
  transition: height 1s ease;
}

.problem__bar--high {
  height: 85%;
  background: linear-gradient(to top, var(--copper), var(--copper-light));
}
.problem__bar--mid {
  height: 35%;
  background: linear-gradient(to top, var(--gray-400), var(--gray-300));
}
.problem__bar--low {
  height: 8%;
  background: linear-gradient(to top, var(--danger), #C85050);
}

.problem__bar-label {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--gray-500);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.problem__bar-value {
  position: absolute;
  top: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 700;
}

/* --- Solution Section --- */
.solution__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.solution__card {
  padding: var(--space-2xl);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.solution__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--copper);
  transition: height var(--transition-slow);
}

.solution__card:hover::before {
  height: 100%;
}

.solution__card:hover {
  border-color: var(--copper);
  box-shadow: 0 8px 40px rgba(184, 115, 51, 0.08);
  transform: translateY(-2px);
}

.solution__card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  background: var(--copper-glow);
  color: var(--copper);
  margin-bottom: var(--space-lg);
}

.solution__card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

.solution__card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Services Section --- */
.services {
  background: var(--deep-navy);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0.3;
}

.services .section-header h2 { color: var(--cream); }
.services .section-header p { color: var(--gray-400); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  padding: var(--space-2xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 115, 51, 0.12);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(184, 115, 51, 0.3);
  transform: translateY(-3px);
}

.service-card__price {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--copper);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card__price::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
}

.service-card h3 {
  color: var(--cream);
  font-size: 1.35rem;
  margin-bottom: var(--space-md);
}

.service-card p {
  color: var(--gray-400);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--gray-300);
}

.service-card__feature svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--copper);
}

/* Services on cream background */
.services[style*="cream"] {
  background: var(--cream);
}
.services[style*="cream"]::before {
  display: none;
}
.services[style*="cream"] .section-header h2 { color: var(--navy); }
.services[style*="cream"] .section-header p { color: var(--gray-600); }
.services[style*="cream"] .service-card {
  background: var(--white);
  border-color: rgba(184, 115, 51, 0.2);
}
.services[style*="cream"] .service-card:hover {
  background: var(--white);
  border-color: var(--copper);
  box-shadow: 0 8px 24px rgba(15, 29, 53, 0.08);
}
.services[style*="cream"] .service-card h3 { color: var(--navy); }
.services[style*="cream"] .service-card p { color: var(--gray-600); }
.services[style*="cream"] .service-card__feature { color: var(--gray-600); }

/* --- Process / Journey --- */
.process__timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process__timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light), var(--copper));
  opacity: 0.3;
}

.process__step {
  text-align: center;
  position: relative;
  padding: 0 var(--space-md);
}

.process__step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  background: var(--navy);
  border: 2px solid var(--copper);
  position: relative;
  z-index: 2;
}

.process__step h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.process__step p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0 auto;
}

.process__step-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--copper);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

/* --- Results / ROI --- */
.results {
  background: var(--cream);
}

.results__showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.results__before,
.results__after {
  padding: var(--space-2xl) var(--space-2xl);
}

.results__before {
  background: var(--gray-100);
  border-right: 1px solid var(--gray-200);
}

.results__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid;
}

.results__before .results__tag {
  color: var(--gray-500);
  border-color: var(--gray-300);
}

.results__after .results__tag {
  color: var(--copper);
  border-color: var(--copper);
}

.results__metric {
  margin-bottom: var(--space-lg);
}

.results__metric-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.results__metric-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.results__metric-value--highlight {
  color: var(--copper);
}

.results__bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.results__stat {
  text-align: center;
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
}

.results__stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--copper);
  margin-bottom: 0.25rem;
}

.results__stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* --- Industries --- */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.industry-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform var(--transition-base);
  cursor: default;
}

.industry-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,29,53,0.92) 0%, rgba(15,29,53,0.6) 50%, rgba(15,29,53,0.3) 100%);
  transition: background var(--transition-base);
}

.industry-card:hover .industry-card__overlay {
  background: linear-gradient(to top, rgba(184,115,51,0.85) 0%, rgba(184,115,51,0.5) 50%, rgba(184,115,51,0.2) 100%);
}

.industry-card:hover {
  transform: translateY(-4px);
}

.industry-card__content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl);
}

.industry-card h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  color: var(--white);
  font-family: var(--font-display);
}

.industry-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

/* --- About / Team --- */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__text p {
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  max-width: 800px;
}

.team-card {
  text-align: center;
}

.team-card__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--copper);
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.team-card__photo-placeholder {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gray-400);
  font-weight: 600;
}

.team-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.team-card p {
  font-size: 0.9rem;
  margin: 0 auto;
  max-width: 340px;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0.4;
}

.cta-section h2 {
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: var(--gray-300);
  margin: 0 auto var(--space-2xl);
  font-size: 1.1rem;
}

.cta-section__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Contact --- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact__info h3 {
  margin-bottom: var(--space-lg);
}

.contact__info p {
  margin-bottom: var(--space-xl);
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 1rem;
}

.contact__detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--copper-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  flex-shrink: 0;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  background: var(--white);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-glow);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* --- Footer --- */
.footer {
  background: var(--deep-navy);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid rgba(184, 115, 51, 0.15);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-top: var(--space-md);
  max-width: 300px;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: var(--space-lg);
}

.footer__col a {
  display: block;
  color: var(--gray-400);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

.footer__col a:hover {
  color: var(--cream);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* --- Page Headers (Interior Pages) --- */
.page-header {
  background: var(--deep-navy);
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0.3;
}

.page-header h1 {
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.page-header p {
  color: var(--gray-300);
  font-size: 1.15rem;
  max-width: 600px;
}

/* --- FAQ --- */
.faq__list {
  max-width: 800px;
}

.faq__item {
  border-bottom: 1px solid var(--gray-200);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-lg) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  transition: color var(--transition-fast);
}

.faq__question:hover { color: var(--copper); }

.faq__question svg {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--copper);
}

.faq__item.active .faq__question svg {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq__answer-inner {
  padding: 0 0 var(--space-lg);
}

.faq__answer p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq__item.active .faq__answer {
  max-height: 500px;
}

/* --- Case Studies (Placeholder) --- */
.case-studies__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.case-study-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.case-study-card:hover {
  border-color: var(--copper);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.case-study-card__image {
  height: 200px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-card__image span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

.case-study-card__body {
  padding: var(--space-xl);
}

.case-study-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--copper);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.case-study-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.case-study-card p {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.case-study-card__stats {
  display: flex;
  gap: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-200);
}

.case-study-card__stat-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--copper);
}

.case-study-card__stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* --- Insights / Blog --- */
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.insight-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.insight-card:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}

.insight-card__image {
  height: 180px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-card__body {
  padding: var(--space-lg);
}

.insight-card__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.insight-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.insight-card p {
  font-size: 0.88rem;
}

/* --- Privacy / Terms --- */
.legal-content {
  padding: var(--space-3xl) 0;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: var(--space-2xl) 0 var(--space-md);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: var(--space-xl) 0 var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
}

.legal-content ul {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.legal-content li {
  list-style: disc;
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .problem__grid,
  .about__content,
  .contact__grid,
  .results__showcase {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
  .process__timeline::before { display: none; }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .results__bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__mark { display: none; }
  .hero__stats { gap: var(--space-xl); }
}

@media (max-width: 768px) {
  section { padding: var(--space-3xl) 0; }

  .ticker { padding: 4px 0; }
  .ticker__inner { gap: var(--space-sm); }
  .ticker__label span:last-child { font-size: 0.4rem; letter-spacing: 0.06em; }
  .ticker__label-dot { width: 4px; height: 4px; }
  .ticker__metrics {
    justify-content: flex-end;
    gap: var(--space-lg);
  }
  .ticker__metric { text-align: center; }
  .ticker__value { font-size: 0.75rem; }
  .ticker__caption { font-size: 0.45rem; }

  #caio-comparison [style*="grid-template-columns"],
  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }
  
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .solution__grid,
  .services__grid,
  .industries__grid,
  .case-studies__grid,
  .insights__grid,
  .team__grid {
    grid-template-columns: 1fr;
  }

  .process__timeline {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn { width: auto; justify-content: center; align-self: flex-start; }

  .results__bottom {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-section__actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Anchor scroll offset for fixed nav */
[id] { scroll-margin-top: calc(var(--nav-height) + 40px + 2rem); }
