/* ============================================
   LEAN OPS GURUS — Design Tokens & Styles
   Warm charcoal + deep copper/bronze palette
   ============================================ */

/* --- Font Import --- */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800&f[]=satoshi@300,400,500,700&display=swap');

/* --- Type Scale --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* --- Spacing --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Fonts --- */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ============================
   LIGHT MODE (Default)
   ============================ */
:root, [data-theme="light"] {
  /* Surfaces — warm off-white */
  --color-bg:             #f5f3ef;
  --color-surface:        #faf9f7;
  --color-surface-2:      #ffffff;
  --color-surface-offset: #edeae4;
  --color-surface-dynamic: #e3e0d9;
  --color-divider:        #d8d4cc;
  --color-border:         #ccc8bf;

  /* Text — warm charcoal */
  --color-text:           #2c2a25;
  --color-text-muted:     #6e6b63;
  --color-text-faint:     #a8a59d;
  --color-text-inverse:   #faf9f7;

  /* Primary Accent — deep copper/bronze */
  --color-primary:        #a0633a;
  --color-primary-hover:  #8a5330;
  --color-primary-active: #6f4226;
  --color-primary-light:  #d4a67a;
  --color-primary-highlight: #f0e3d6;

  /* Success */
  --color-success:        #4a7c3c;
  --color-success-highlight: #dbebd4;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 60 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 60 / 0.12);
}

/* ============================
   DARK MODE
   ============================ */
[data-theme="dark"] {
  --color-bg:             #1a1917;
  --color-surface:        #211f1d;
  --color-surface-2:      #292724;
  --color-surface-offset: #1e1d1b;
  --color-surface-dynamic: #333129;
  --color-divider:        #2e2c28;
  --color-border:         #3d3a35;

  --color-text:           #d6d4cf;
  --color-text-muted:     #8a877f;
  --color-text-faint:     #5c5a54;
  --color-text-inverse:   #1a1917;

  --color-primary:        #c9875e;
  --color-primary-hover:  #daa07a;
  --color-primary-active: #e6b898;
  --color-primary-light:  #7a5338;
  --color-primary-highlight: #3a3028;

  --color-success:        #6daa45;
  --color-success-highlight: #2e3826;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #1a1917;
    --color-surface:        #211f1d;
    --color-surface-2:      #292724;
    --color-surface-offset: #1e1d1b;
    --color-surface-dynamic: #333129;
    --color-divider:        #2e2c28;
    --color-border:         #3d3a35;
    --color-text:           #d6d4cf;
    --color-text-muted:     #8a877f;
    --color-text-faint:     #5c5a54;
    --color-text-inverse:   #1a1917;
    --color-primary:        #c9875e;
    --color-primary-hover:  #daa07a;
    --color-primary-active: #e6b898;
    --color-primary-light:  #7a5338;
    --color-primary-highlight: #3a3028;
    --color-success:        #6daa45;
    --color-success-highlight: #2e3826;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ============================
   GLOBAL COMPONENT STYLES
   ============================ */

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); margin-bottom: var(--space-6); }
h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }

p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

/* --- Container --- */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

/* --- Section spacing --- */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* --- Label / eyebrow --- */
.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-interactive);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
}

/* ============================
   HEADER / NAVIGATION
   ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .header-inner { padding: var(--space-3) var(--space-8); }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.logo-link:hover { color: var(--color-text); }

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-1) 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
  border-radius: var(--radius-md);
}
.nav-mobile-toggle:hover {
  background: var(--color-surface-offset);
}

@media (min-width: 768px) {
  .nav-mobile-toggle { display: none; }
}

/* Mobile nav menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 200;
  flex-direction: column;
  padding: var(--space-4);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-6);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.nav-mobile-link {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-2) 0;
}
.nav-mobile-link:hover {
  color: var(--color-primary);
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    oklch(from var(--color-bg) l c h / 0.94) 0%,
    oklch(from var(--color-bg) l c h / 0.80) 60%,
    oklch(from var(--color-bg) l c h / 0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-16) var(--space-4);
}

@media (min-width: 768px) {
  .hero-content { padding: var(--space-20) var(--space-8); }
  .hero { min-height: 75vh; }
}

.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.05;
  max-width: 18ch;
  margin-bottom: var(--space-5);
}

.hero p {
  font-size: var(--text-lg);
  max-width: 48ch;
  margin-bottom: var(--space-8);
  color: var(--color-text);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero .hero-content {
  padding: var(--space-12) var(--space-4);
}

@media (min-width: 768px) {
  .page-hero .hero-content { padding: var(--space-16) var(--space-8); }
}

.page-hero h1 {
  font-size: var(--text-2xl);
  max-width: 24ch;
  margin-bottom: var(--space-3);
}

.page-hero p {
  font-size: var(--text-base);
  max-width: 55ch;
}

/* ============================
   SERVICE CARDS (Home)
   ============================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-interactive);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.service-card h3 {
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ============================
   WHY US SECTION
   ============================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: var(--space-6);
}

.stat-item {
  text-align: center;
  padding: var(--space-6);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
  background: var(--color-surface-offset);
  text-align: center;
}

.cta-section h2 {
  max-width: 28ch;
  margin-inline: auto;
}

.cta-section p {
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* ============================
   SERVICES PAGE — Detailed
   ============================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-block: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
}

.service-detail:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-12);
    align-items: start;
  }
}

.service-detail-header {
  position: relative;
}

.service-detail-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary-highlight);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.service-detail h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.service-detail-body p {
  margin-bottom: var(--space-4);
}

.capability-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.capability-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}

.capability-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 2px;
  background: var(--color-primary);
}

/* ============================
   ABOUT PAGE
   ============================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
  }
}

.about-intro p {
  margin-bottom: var(--space-4);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}

.team-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--color-accent);
  flex-shrink: 0;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  flex-shrink: 0;
}

.team-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.team-title {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
}

.team-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.credential-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.credential-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-4);
}
.team-linkedin:hover {
  color: var(--color-primary-hover);
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
    align-items: start;
  }
}

.contact-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.contact-info-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
}

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

.contact-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.contact-info-text p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.contact-info-text a {
  color: var(--color-primary);
}

/* Form */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-4);
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.12);
}

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

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

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-submit {
  width: 100%;
  margin-top: var(--space-2);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8);
}

.form-success.show {
  display: block;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success-highlight);
  color: var(--color-success);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-10);
  }
}

.footer-brand p {
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  max-width: 36ch;
}

.footer-nav h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 100%;
}

/* ============================
   SCROLL ANIMATIONS
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

/* Divider accent line */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

/* ============================
   PAGE TRANSITIONS
   ============================ */
.page-content {
  display: none;
}
.page-content.active {
  display: block;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================
   UTILITY
   ============================ */
.text-center { text-align: center; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

/* ===== PACKAGES ===== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  align-items: start;
}
@media (max-width: 900px) {
  .packages-grid { grid-template-columns: 1fr; }
}

.package-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.package-card.package-featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 20%, transparent);
}

.package-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.package-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.package-duration {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.package-price {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}
.package-price span {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
}

.package-tag {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

.package-best {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.package-section-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-divider);
}

.package-card p { margin: var(--space-1) 0; font-size: var(--text-sm); }
.package-card .capability-list { font-size: var(--text-sm); }

/* Advisory package */
.package-advisory {
  background: var(--color-surface-offset);
}
.package-advisory-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.package-advisory-price { text-align: right; }

/* Rate card */
.rate-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.rate-card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-2) var(--space-4);
}
.rate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
  gap: var(--space-3);
}
.rate-item span { color: var(--color-text-muted); }
.rate-item strong { color: var(--color-text); white-space: nowrap; }

/* Two-col capability list */
.capability-list.two-col {
  columns: 2;
  column-gap: var(--space-6);
}
@media (max-width: 640px) {
  .capability-list.two-col { columns: 1; }
}
