/* ========================================
   AppRB Minimal Design System
   Swiss Minimalism + Japanese Whitespace
   No gradients. No glow. No AI aesthetic.
   ======================================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

/* ========================================
   Design Tokens
   ======================================== */
:root {
  /* Brand */
  --color-primary: #2AABE2;
  --color-primary-hover: #1E9AD6;

  /* Text */
  --color-text: #1a1a1a;
  --color-text-secondary: #666666;
  --color-text-tertiary: #999999;

  /* Surfaces */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-border: #e5e5e5;
  --color-border-light: #f0f0f0;

  /* Semantic */
  --color-success: #2d8a56;
  --color-error: #c44133;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type Scale — Major Third 1.25 */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4rem;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  --space-section: clamp(80px, 10vw, 140px);

  /* Layout */
  --container-max: 1120px;
  --container-narrow: 720px;
  --container-wide: 1280px;
  --nav-height: 64px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.3s;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  font-kerning: normal;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ========================================
   Typography
   ======================================== */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.t-heading {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.t-heading-sm {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* Italic accent in headings */
.t-heading em,
.t-heading-sm em {
  font-style: italic;
  color: var(--color-primary);
}

.t-subhead {
  font-family: var(--font-body);
  font-size: clamp(var(--text-lg), 1.5vw, var(--text-xl));
  line-height: 1.6;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.t-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.t-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.t-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-style: italic;
  color: var(--color-primary);
}

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

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

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

.section {
  padding-block: var(--space-section);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--border-top {
  border-top: 1px solid var(--color-border);
}

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

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration) var(--ease);
}

@supports (backdrop-filter: blur(1px)) {
  .nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

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

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 28px;
  width: auto;
}

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

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--duration) var(--ease);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__cta {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-bg) !important;
  background: var(--color-text);
  padding: 10px 28px;
  border-radius: 6px;
  transition: opacity var(--duration) var(--ease);
}

.nav__cta:hover {
  opacity: 0.8;
  color: var(--color-bg) !important;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--duration) var(--ease);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  padding: var(--space-2xl) var(--space-lg);
  z-index: 999;
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile a {
  display: block;
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}

@media (max-width: 768px) {
  .nav__menu {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.btn--primary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 14px 0;
  border: none;
}

.btn--ghost:hover {
  color: var(--color-text);
}

.btn--ghost svg,
.btn--outline svg,
.btn--primary svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration) var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--lg {
  font-size: var(--text-base);
  padding: 18px 40px;
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 10px 20px;
}

/* ========================================
   Cards
   ======================================== */
.card {
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--color-text);
}

.card__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4vw, 4.5rem);
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.card__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
}

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

.hero__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
}

.hero__title em {
  font-style: italic;
  color: var(--color-primary);
  position: relative;
}

.hero__title em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
}

.hero__desc {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 42ch;
}

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

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image {
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero__desc {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__image {
    max-width: 320px;
  }
}

/* ========================================
   Grid Layouts
   ======================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Steps
   ======================================== */
.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
  counter-increment: step;
  align-items: baseline;
}

.step:last-child {
  border-bottom: none;
}

.step__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--color-text-tertiary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.step__title {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.step__text {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 55ch;
}

@media (max-width: 640px) {
  .step {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ========================================
   Differentiators / Features
   ======================================== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.feature-row__text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ========================================
   Case Studies
   ======================================== */
.case {
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-text);
  border-radius: 0;
}

.case__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-md);
}

.case__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
}

.case__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
}

.case__stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-top: var(--space-xs);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: clamp(100px, 15vw, 200px) 0;
  text-align: center;
  background: var(--color-text);
  color: var(--color-bg);
}

.cta-section .t-label {
  color: var(--color-primary);
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-bg);
  margin-bottom: var(--space-lg);
}

.cta-section__desc {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-2xl);
  max-width: 40ch;
  margin-inline: auto;
}

.cta-section .btn--primary {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-bg);
}

.cta-section .btn--primary:hover {
  opacity: 0.9;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-md);
}

.footer__list li {
  margin-bottom: var(--space-sm);
}

.footer__list a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.footer__list a:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--color-border-light);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__bottom-links a {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

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

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

/* ========================================
   Scroll Reveal Animation (subtle)
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Staggered children — grid items animate in sequence */
.grid-2 > .reveal:nth-child(2),
.grid-3 > .reveal:nth-child(2),
.cases-stagger > .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.grid-3 > .reveal:nth-child(3),
.cases-stagger > .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.diff-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.diff-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }

/* Steps stagger */
.steps > .reveal:nth-child(2) { transition-delay: 0.06s; }
.steps > .reveal:nth-child(3) { transition-delay: 0.12s; }
.steps > .reveal:nth-child(4) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   Delight: Card hover lift
   ======================================== */
.card {
  transition: border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
}

/* Case cards hover */
.case {
  transition: border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.case:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.06);
  border-top-color: var(--color-primary);
}

/* ========================================
   Delight: Button active press
   ======================================== */
.btn:active {
  transform: translateY(1px);
  transition-duration: 0.05s;
}

.btn:active svg {
  transform: none;
}

/* ========================================
   Delight: Nav scroll enhancement
   ======================================== */
.nav.is-scrolled {
  border-bottom-color: var(--color-text-tertiary);
}

/* ========================================
   Delight: Step hover
   ======================================== */
.step {
  transition: padding-left var(--duration) var(--ease);
}

.step:hover {
  padding-left: var(--space-sm);
}

.step:hover .step__number {
  color: var(--color-primary);
  transition: color var(--duration) var(--ease);
}

/* ========================================
   Delight: Ghost link underline
   ======================================== */
.btn--ghost::before {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--duration) var(--ease);
}

.btn--ghost {
  position: relative;
}

.btn--ghost:hover::before {
  width: calc(100% - 24px);
}

/* ========================================
   Delight: Animated number counter
   ======================================== */
.case__stat-value {
  transition: color var(--duration) var(--ease);
}

.case:hover .case__stat-value {
  color: var(--color-text);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Body offset for fixed nav */
body {
  padding-top: var(--nav-height);
}

/* ========================================
   Table (for Offer Wall)
   ======================================== */
.minimal-table {
  width: 100%;
  border-collapse: collapse;
}

.minimal-table th {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  text-align: left;
  padding: var(--space-md) var(--space-md);
  border-bottom: 1px solid var(--color-text);
}

.minimal-table td {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: var(--space-md) var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}

.minimal-table tr:last-child td {
  border-bottom: none;
}

/* ========================================
   FAQ
   ======================================== */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
  margin-left: var(--space-md);
  transition: transform var(--duration) var(--ease);
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 640px;
  padding-top: var(--space-md);
  display: none;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ========================================
   Form
   ======================================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  transition: border-color var(--duration) var(--ease);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-text);
}

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

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Custom selection */
::selection {
  background: rgba(42, 171, 226, 0.15);
  color: var(--color-text);
}

/* ========================================
   Card Variants
   ======================================== */
.card--media {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.card--media .card__body {
  padding: var(--space-xl);
}

.card--media .card__images {
  padding: 0 var(--space-xl) var(--space-xl);
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.card--media .card__images img {
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

/* ========================================
   Highlight Block (for key differentiator)
   ======================================== */
.highlight-block {
  padding: var(--space-3xl) var(--space-2xl);
  border: none;
  border-left: 4px solid var(--color-primary);
  margin-bottom: var(--space-3xl);
}

.highlight-block__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.highlight-block__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  max-width: 720px;
}

.highlight-block__text {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 50ch;
}

/* Secondary differentiators grid */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.diff-item {
  padding: var(--space-xl) 0;
  border-top: 2px solid var(--color-text);
}

.diff-item__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.diff-item__text {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 38ch;
}

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

/* ========================================
   Bento Services Grid
   ======================================== */
.services-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-lg);
}

.services-bento .card:first-child {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}

.services-bento .card:first-child img {
  flex: 1;
  object-fit: cover;
  min-height: 240px;
}

.services-bento .card img {
  border-radius: 6px;
  margin-bottom: var(--space-lg);
  width: 100%;
}

.services-bento .card__title {
  margin-top: auto;
}

@media (max-width: 768px) {
  .services-bento {
    grid-template-columns: 1fr;
  }

  .services-bento .card:first-child {
    grid-row: auto;
  }
}

/* ========================================
   Case Studies — Amplified Numbers
   ======================================== */
.cases-stagger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.cases-stagger > .case:nth-child(2) {
  margin-top: var(--space-2xl);
}

.case__stat-value {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-style: italic;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
  .cases-stagger {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-stagger > .case:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .cases-stagger {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Section Header — Right Aligned Variant
   ======================================== */
.section-header--right {
  text-align: right;
  margin-left: auto;
  max-width: 640px;
  margin-bottom: var(--space-3xl);
}

/* ========================================
   Label with line
   ======================================== */
.t-label--line {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.t-label--line::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-text-tertiary);
}

/* ========================================
   Service card centered variant
   ======================================== */
.card--service {
  padding: var(--space-xl);
}

.card--service img {
  border-radius: 6px;
  margin-bottom: var(--space-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ========================================
   Geo Breakdown
   ======================================== */
.geo {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  padding: var(--space-xl) var(--space-2xl);
}

/* Stacked horizontal bar */
.geo__stacked {
  display: flex;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
}

.geo__seg {
  width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
  position: relative;
}

.geo.is-visible .geo__seg {
  width: var(--seg-w);
}

.geo.is-visible .geo__seg:nth-child(1) { transition-delay: 0s; }
.geo.is-visible .geo__seg:nth-child(2) { transition-delay: 0.08s; }
.geo.is-visible .geo__seg:nth-child(3) { transition-delay: 0.16s; }
.geo.is-visible .geo__seg:nth-child(4) { transition-delay: 0.24s; }
.geo.is-visible .geo__seg:nth-child(5) { transition-delay: 0.32s; }
.geo.is-visible .geo__seg:nth-child(6) { transition-delay: 0.40s; }

.geo__seg span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease 1.2s;
  white-space: nowrap;
}

.geo.is-visible .geo__seg span {
  opacity: 1;
}

/* Segment colors — brand blue, progressively lighter */
.geo__seg:nth-child(1) { background: #1a7fb5; }
.geo__seg:nth-child(2) { background: #2295cf; }
.geo__seg:nth-child(3) { background: #2AABE2; }
.geo__seg:nth-child(4) { background: #52bde8; }
.geo__seg:nth-child(5) { background: #7acdef; }
.geo__seg--other       { background: var(--color-border); }
.geo__seg--other span  { color: var(--color-text-secondary); }

/* Hover lift */
.geo__seg:hover {
  filter: brightness(1.1);
}

/* Legend grid */
.geo__legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
  border-left: 1px solid var(--color-border-light);
}

.geo__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px var(--space-md);
  border-right: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.geo__dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.geo__item:nth-child(1) .geo__dot { background: #1a7fb5; }
.geo__item:nth-child(2) .geo__dot { background: #2295cf; }
.geo__item:nth-child(3) .geo__dot { background: #2AABE2; }
.geo__item:nth-child(4) .geo__dot { background: #52bde8; }
.geo__item:nth-child(5) .geo__dot { background: #7acdef; }
.geo__item--other .geo__dot        { background: var(--color-border); }

.geo__name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
}

.geo__pct {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .geo {
    padding: var(--space-lg);
  }

  .geo__stacked {
    height: 32px;
  }

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

  .geo__seg span {
    font-size: 10px;
  }
}

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