/* =========================================================
   Emray Technologies - Main Stylesheet
   Based on the official Emray Design System
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* === DESIGN TOKENS === */
:root {
  --emray-ink:        #02010D;
  --emray-indigo:     #5A53CB;
  --emray-paper:      #F6F6F8;
  --emray-lilac:      #A7ABF8;
  --emray-night:      #0C0B23;
  --emray-indigo-12:  rgba(90, 83, 203, 0.12);
  --emray-indigo-24:  rgba(90, 83, 203, 0.24);
  --emray-indigo-deep:#3F39A8;
  --emray-lilac-soft: #C7CAFB;
  --emray-paper-warm: #ECECF1;

  --bg:               var(--emray-paper);
  --bg-elevated:      #FFFFFF;
  --bg-night:         var(--emray-night);

  --fg:               var(--emray-ink);
  --fg-muted:         #56565E;
  --fg-subtle:        #8A8A92;
  --fg-on-dark:       var(--emray-paper);

  --border:           rgba(2, 1, 13, 0.10);
  --border-strong:    rgba(2, 1, 13, 0.24);
  --border-on-dark:   rgba(246, 246, 248, 0.16);

  --font-display:     "Montserrat", system-ui, sans-serif;
  --font-sans:        "Montserrat", ui-sans-serif, system-ui, sans-serif;

  --weight-light:     300;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  --fs-display:       clamp(64px, 7vw, 120px);
  --fs-title:         clamp(44px, 4.5vw, 72px);
  --fs-h1:            clamp(36px, 3.4vw, 56px);
  --fs-h2:            clamp(28px, 2.4vw, 40px);
  --fs-h3:            22px;
  --fs-body-lg:       20px;
  --fs-body:          16px;
  --fs-body-sm:       14px;
  --fs-eyebrow:       13px;

  --lh-tight:         1.0;
  --lh-snug:          1.15;
  --lh-relaxed:       1.6;

  --tracking-tight:   -0.02em;
  --tracking-wider:   0.18em;

  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-32:  128px;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-pill: 999px;

  --shadow-xs:     0 1px 2px rgba(2, 1, 13, 0.06);
  --shadow-sm:     0 2px 6px rgba(2, 1, 13, 0.06), 0 1px 2px rgba(2, 1, 13, 0.04);
  --shadow-md:     0 8px 24px rgba(2, 1, 13, 0.08), 0 2px 4px rgba(2, 1, 13, 0.04);
  --shadow-lg:     0 24px 48px rgba(2, 1, 13, 0.12), 0 4px 8px rgba(2, 1, 13, 0.06);
  --shadow-indigo: 0 12px 32px rgba(90, 83, 203, 0.28);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-base:  220ms;
  --dur-slow:  420ms;

  --container-max: 1280px;
  --container-pad: clamp(24px, 4vw, 48px);

  /* === NEW REDESIGN TOKENS === */
  --gradient-primary: linear-gradient(135deg, var(--emray-indigo) 0%, var(--emray-lilac) 100%);
  --gradient-hero:    linear-gradient(160deg, var(--emray-indigo) 0%, #3a35a8 40%, var(--emray-night) 100%);
  --shadow-glow-primary: 0 0 32px rgba(90, 83, 203, 0.45), 0 8px 24px rgba(90, 83, 203, 0.28);
  --shadow-glow-lilac:   0 0 48px rgba(167, 171, 248, 0.2);
  --shadow-card-light:   0 8px 40px rgba(2, 1, 13, 0.10), 0 2px 8px rgba(2, 1, 13, 0.06);
  --shadow-card-dark:    0 8px 32px rgba(0, 0, 0, 0.4);
  --eyebrow-badge-bg-light:     rgba(90, 83, 203, 0.10);
  --eyebrow-badge-bg-dark:      rgba(167, 171, 248, 0.12);
  --eyebrow-badge-border-light: rgba(90, 83, 203, 0.22);
  --eyebrow-badge-border-dark:  rgba(167, 171, 248, 0.25);
  --glass-bg:     rgba(246, 246, 248, 0.05);
  --glass-border: rgba(246, 246, 248, 0.12);
  --glass-blur:   blur(16px);
  --dot-grid: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(90%2C83%2C203%2C0.12)'/%3E%3C/svg%3E");
  --footer-grid: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v1H0zM0 0v40h1V0z' fill='rgba(246%2C246%2C248%2C0.04)'/%3E%3C/svg%3E");
  --glow-shift-x: 0px;
  --glow-shift-y: 0px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
ul { list-style: none; }

/* === BASE === */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: var(--weight-light);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--emray-indigo);
  outline-offset: 2px;
  border-radius: 6px;
}

/* === COLOR UTILITY CLASSES === */
.bg-paper    { background: var(--emray-paper); }
.bg-warm     { background: var(--emray-paper-warm); }
.bg-elevated { background: var(--bg-elevated); }

/* === GRADIENT TEXT === */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline;
}

/* === EYEBROW BADGE === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.eyebrow-badge {
  background: var(--eyebrow-badge-bg-light);
  border: 1px solid var(--eyebrow-badge-border-light);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11px;
}
.eyebrow-badge.eyebrow-on-dark {
  background: var(--eyebrow-badge-bg-dark);
  border-color: var(--eyebrow-badge-border-dark);
  color: var(--emray-lilac);
}

/* === HERO EYEBROW ANIMATED DOT === */
.hero .eyebrow-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emray-lilac);
  margin-right: 2px;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

/* === DOT GRID PATTERN === */
.dot-grid {
  background-image: var(--dot-grid);
  background-size: 24px 24px;
}

/* === GLOW ORBS === */
.glow-orbs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: clamp(240px, 30vw, 480px);
  height: clamp(240px, 30vw, 480px);
  background: radial-gradient(circle, var(--emray-indigo), transparent 70%);
  top: -10%;
  right: -5%;
  animation-duration: 14s;
  animation-delay: -3s;
}

.orb-2 {
  width: clamp(180px, 22vw, 360px);
  height: clamp(180px, 22vw, 360px);
  background: radial-gradient(circle, var(--emray-lilac), transparent 70%);
  bottom: 5%;
  left: 10%;
  animation-duration: 10s;
  animation-delay: -7s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -30px) scale(1.08); }
}

.hero .glow-orbs { z-index: 0; }
.hero-inner { position: relative; z-index: 1; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* === NAVIGATION === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--container-pad);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.site-nav.scrolled {
  background: rgba(246, 246, 248, 0.88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(2,1,13,0.06), var(--shadow-xs);
}

.site-nav.dark-nav {
  color: var(--fg-on-dark);
}
.site-nav.dark-nav.scrolled {
  background: rgba(12, 11, 35, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-on-dark);
  box-shadow: 0 1px 0 rgba(90,83,203,0.15), var(--shadow-xs);
}

.nav-logo img {
  height: 26px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-weight: var(--weight-medium);
  font-size: 14px;
  color: inherit;
  opacity: 0.85;
  transition: opacity var(--dur-base) var(--ease-out);
  position: relative;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.nav-cta {
  background: var(--gradient-primary);
  color: var(--emray-paper) !important;
  opacity: 1 !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semibold);
  font-size: 14px;
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform 80ms var(--ease-out);
}
.nav-cta:hover {
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-1px);
}
.nav-links a.nav-cta::after {
  display: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  position: relative;
  width: 38px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  color: inherit;
  cursor: pointer;
}
.nav-hamburger span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  margin: -1px 0 0 -11px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}
.nav-hamburger span:nth-child(1) { transform: translateY(-7px); }
.nav-hamburger span:nth-child(3) { transform: translateY(7px); }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) var(--container-pad) var(--space-8);
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-md);
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-weight: var(--weight-medium);
  font-size: 16px;
  color: var(--fg);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: 15px;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  border: 0;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform 80ms var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gradient-primary);
  color: var(--emray-paper);
  box-shadow: 0 4px 16px rgba(90, 83, 203, 0.20);
}
.btn-primary:hover {
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: scale(0.98) translateY(0);
  box-shadow: 0 2px 8px rgba(90, 83, 203, 0.20);
}

.btn-secondary {
  background: transparent;
  color: var(--emray-ink);
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(2, 1, 13, 0.04);
  box-shadow: inset 0 0 0 1.5px var(--emray-ink), var(--shadow-sm);
}

.btn-secondary-dark {
  background: rgba(246, 246, 248, 0.08);
  color: var(--fg-on-dark);
  box-shadow: inset 0 0 0 1px var(--border-on-dark);
  backdrop-filter: blur(8px);
}
.btn-secondary-dark:hover {
  background: rgba(246, 246, 248, 0.16);
  box-shadow: inset 0 0 0 1px rgba(246,246,248,0.3), var(--shadow-glow-lilac);
}

.btn-lg {
  font-size: 17px;
  padding: 16px 32px;
}

/* === AMBIENT GLOW BACKGROUNDS === */
.shard-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Light variant - soft warm glow */
.shard-bg.light {
  background: var(--emray-paper);
}
.shard-bg.light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(90, 83, 203, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(167, 171, 248, 0.12) 0%, transparent 70%);
}

/* Dark variant - deep ambient glow art */
.shard-bg.dark {
  background: var(--emray-night);
  color: var(--fg-on-dark);
}
.shard-bg.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 15% 25%,  rgba(90, 83, 203, 0.55) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 85% 15%,  rgba(167, 171, 248, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 60% 85%,  rgba(63, 57, 168, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 50%, rgba(12, 11, 35, 0.85) 0%, transparent 100%);
  transform: translate(var(--glow-shift-x), var(--glow-shift-y));
  transition: transform 0.8s var(--ease-out);
}

/* Hero gets an additional bottom fade */
.hero.shard-bg.dark::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--emray-night));
  z-index: -1;
  pointer-events: none;
}

/* === TYPOGRAPHY HELPERS === */
.eyebrow {
  font-weight: var(--weight-bold);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--emray-indigo);
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow-on-dark {
  color: var(--emray-lilac);
}

.section-title {
  font-weight: var(--weight-extrabold);
  font-size: var(--fs-title);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.section-heading {
  font-weight: var(--weight-semibold);
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.section-subheading {
  font-weight: var(--weight-semibold);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
}

.pipe-rhythm {
  font-weight: var(--weight-light);
  font-size: var(--fs-eyebrow);
  color: rgba(167, 171, 248, 0.7);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

/* === HERO - FULL VIEWPORT === */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(68px + var(--space-20)) var(--container-pad) var(--space-20);
}

.hero-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  color: var(--fg-on-dark);
  max-width: 900px;
  margin-bottom: var(--space-8);
  text-wrap: balance;
}

.hero-body {
  font-weight: var(--weight-light);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: rgba(246, 246, 248, 0.7);
  max-width: 540px;
  margin-bottom: var(--space-10);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* === PAGE HERO (inner pages, shorter) === */
.page-hero {
  padding: calc(68px + var(--space-16)) var(--container-pad) var(--space-16);
}
.page-hero-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* === SECTIONS === */
.section {
  padding: var(--space-20) var(--container-pad);
}
.section-lg {
  padding: var(--space-32) var(--container-pad);
}

/* === SERVICE GRID === */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card-light);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(90,83,203,0.12);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emray-lilac), var(--emray-indigo));
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(90,83,203,0.25);
}
.service-card-icon.indigo-night {
  background: linear-gradient(135deg, var(--emray-indigo), var(--emray-night));
}
.service-card-icon.night-lilac {
  background: linear-gradient(135deg, var(--emray-night), var(--emray-lilac));
}

.service-card-eyebrow {
  font-weight: var(--weight-bold);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--emray-indigo);
  margin-bottom: var(--space-3);
}

.service-card-title {
  font-weight: var(--weight-bold);
  font-size: var(--fs-h3);
  color: var(--fg);
  margin-bottom: var(--space-3);
}

.service-card-body {
  font-weight: var(--weight-light);
  font-size: var(--fs-body-sm);
  line-height: 1.6;
  color: var(--fg-muted);
  margin-bottom: var(--space-6);
}

.learn-more {
  font-weight: var(--weight-medium);
  font-size: var(--fs-body-sm);
  color: var(--emray-indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-base) var(--ease-out);
}
.learn-more:hover { color: var(--emray-indigo-deep); }

/* === VALUE CARD GLASSMORPHISM === */
.shard-bg.dark .value-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--emray-lilac);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card-dark);
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.shard-bg.dark .value-card:hover {
  background: rgba(246,246,248,0.08);
  transform: translateY(-2px);
}

/* === ABOUT TEASER (dark section) === */
.about-teaser {
  padding: var(--space-24) var(--container-pad);
}
.about-teaser-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.about-teaser-text { color: var(--fg-on-dark); }
.about-teaser-text .section-heading { color: var(--fg-on-dark); margin-bottom: var(--space-6); }
.about-teaser-text p { font-weight: var(--weight-light); font-size: var(--fs-body-lg); color: rgba(246,246,248,0.7); line-height: var(--lh-relaxed); margin-bottom: var(--space-10); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.stat-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6) var(--space-5);
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.stat-item:hover {
  background: rgba(246,246,248,0.09);
  transform: translateY(-2px);
}
.stat-number {
  font-weight: var(--weight-extrabold);
  font-size: clamp(36px, 3.5vw, 56px);
  line-height: 1;
  margin-bottom: var(--space-2);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-label {
  font-weight: var(--weight-light);
  font-size: var(--fs-body-sm);
  color: rgba(246, 246, 248, 0.6);
}

/* === CTA BANNER === */
.cta-banner {
  padding: var(--space-24) var(--container-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner.dot-grid::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 400px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(90,83,203,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.cta-banner-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-banner .section-heading { margin-bottom: var(--space-4); }
.cta-banner p { font-weight: var(--weight-light); font-size: var(--fs-body-lg); color: var(--fg-muted); margin-bottom: var(--space-8); }

/* === ABOUT PAGE === */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-20) var(--container-pad);
}
.about-intro-main h2 {
  font-weight: var(--weight-semibold);
  font-size: var(--fs-h2);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
}
.about-intro-main p {
  font-weight: var(--weight-light);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--fg-muted);
}
.about-intro-main p + p { margin-top: var(--space-5); }

.about-sidebar h3 {
  font-weight: var(--weight-bold);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-6);
}
.about-sidebar li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  font-weight: var(--weight-light);
  font-size: var(--fs-body);
  color: var(--fg-muted);
}
.about-sidebar li:last-child { border-bottom: 0; }
.about-sidebar li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emray-indigo);
  margin-top: 8px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: var(--space-12) auto 0;
}
.value-card {
  border-left: 3px solid var(--emray-indigo);
  padding-left: var(--space-6);
}
.value-card h4 {
  font-weight: var(--weight-bold);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-3);
}
.value-card p {
  font-weight: var(--weight-light);
  font-size: var(--fs-body);
  color: var(--fg-muted);
  line-height: var(--lh-relaxed);
}

/* === SERVICES PAGE === */
.services-list {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-8) var(--container-pad) var(--space-20);
}

.service-detail {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-8);
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: 0; }

.service-number {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: clamp(56px, 5vw, 80px);
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  align-self: flex-start;
  padding-top: var(--space-3);
}

.service-detail-content h2 {
  font-weight: var(--weight-semibold);
  font-size: var(--fs-h2);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
}

.service-detail-content > p {
  font-weight: var(--weight-light);
  font-size: var(--fs-body-lg);
  color: var(--fg-muted);
  line-height: var(--lh-relaxed);
  max-width: 680px;
  margin-bottom: var(--space-8);
}

.service-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.service-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-weight: var(--weight-light);
  font-size: var(--fs-body);
  color: var(--fg-muted);
}
.service-bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emray-indigo);
  margin-top: 8px;
}

/* === CONTACT PAGE === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info h2 {
  font-weight: var(--weight-semibold);
  font-size: var(--fs-h2);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
}
.contact-info p {
  font-weight: var(--weight-light);
  font-size: var(--fs-body-lg);
  color: var(--fg-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-weight: var(--weight-medium);
  font-size: var(--fs-body);
  color: var(--fg);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.contact-channel:hover {
  box-shadow: var(--shadow-card-light), inset 0 0 0 1px rgba(90,83,203,0.15);
  transform: translateX(4px);
  background: var(--bg-elevated);
}
.contact-channel img { width: 20px; height: 20px; }

/* === STEP NUMBER (Contact page "What to Expect") === */
.step-number {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: clamp(36px, 3vw, 48px);
  line-height: 1;
  margin-bottom: var(--space-4);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.7;
}

.inquiry-panel {
  background: var(--emray-night);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  color: var(--fg-on-dark);
  position: sticky;
  top: 88px;
}
.inquiry-panel h3 {
  font-weight: var(--weight-semibold);
  font-size: var(--fs-h2);
  margin-bottom: var(--space-4);
}
.inquiry-panel p {
  font-weight: var(--weight-light);
  font-size: var(--fs-body);
  color: rgba(246, 246, 248, 0.65);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
}
.inquiry-panel-note {
  margin-top: var(--space-5);
  font-size: var(--fs-body-sm);
  color: rgba(246, 246, 248, 0.4);
  text-align: center;
}

/* === FOOTER === */
.site-footer {
  background: var(--emray-ink);
  color: var(--fg-on-dark);
  padding: var(--space-20) var(--container-pad) var(--space-10);
  background-image: var(--footer-grid);
  background-size: 40px 40px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(90,83,203,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border-on-dark);
  gap: var(--space-8);
}

.footer-brand img {
  height: 30px;
  width: auto;
}

.footer-brand p {
  margin-top: var(--space-5);
  font-weight: var(--weight-light);
  font-size: var(--fs-body-sm);
  color: rgba(246, 246, 248, 0.5);
  max-width: 300px;
  line-height: var(--lh-relaxed);
}

.footer-nav {
  display: flex;
  gap: var(--space-16);
}

.footer-nav-col h4 {
  font-weight: var(--weight-semibold);
  font-size: var(--fs-body-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  color: rgba(246, 246, 248, 0.5);
}
.footer-nav-col li + li { margin-top: var(--space-3); }
.footer-nav-col a {
  font-weight: var(--weight-light);
  font-size: var(--fs-body-sm);
  color: rgba(246, 246, 248, 0.7);
  transition: color var(--dur-base) var(--ease-out);
}
.footer-nav-col a:hover { color: var(--emray-paper); }
.footer-nav-col h4 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}
.footer-nav-col h4 a:hover { color: var(--emray-paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  gap: var(--space-6);
}

.footer-legal {
  font-weight: var(--weight-light);
  font-size: var(--fs-body-sm);
  color: rgba(246, 246, 248, 0.35);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-on-dark);
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.footer-social a:hover {
  background: rgba(90,83,203,0.15);
  border-color: rgba(90,83,203,0.4);
  box-shadow: 0 0 12px rgba(90,83,203,0.2);
}
.footer-social img { width: 16px; height: 16px; filter: invert(1); opacity: 0.7; }

/* === SCROLL ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
/* let long emails / URLs wrap instead of overflowing the channel cards */
.contact-channel > div { min-width: 0; overflow-wrap: anywhere; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-teaser-inner { grid-template-columns: 1fr; }
  .about-stats { max-width: 400px; }
  .service-detail { grid-template-columns: 80px 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-headline { font-size: clamp(40px, 9vw, 72px); }
  .orb-1 { width: 200px; height: 200px; opacity: 0.12; }
  .orb-2 { width: 160px; height: 160px; opacity: 0.10; }

  .service-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-intro { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-nav { flex-direction: column; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .service-detail { grid-template-columns: 1fr; }
  .service-number { font-size: 40px; }
  .service-bullets { grid-template-columns: 1fr; }
  .about-teaser-inner { gap: var(--space-10); }
}

@media (max-width: 480px) {
  .eyebrow-badge { font-size: 10px; padding: 3px 10px; }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .shard-bg.dark::before { transition: none; }
  @keyframes pulse-dot { 0%, 100% { opacity: 1; } }
}
