/* ═══════════════════════════════════════════════════════
   NEXORA — Design System
   Deep charcoal / fire accent / Swiss editorial grid
═══════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  /* LAYER 1 — Matte off-white backgrounds */
  --bg: #f4f2ef;
  --surface: #ece9e4;
  --surface2: #e2ded7;
  /* Structural lines: ocean blue toned */
  --line: #d1cdc5;
  --line-light: #e2ded7;
  /* LAYER 2 — Ocean blue matte text */
  --t1: #0a2540;
  --t2: #2a3449;
  --t3: #555b78;
  /* LAYER 3 — Off-purple matte accent */
  --fire: #0052cc;
  --fire-dim: #0a2540;
  --fire-glow: rgba(0, 82, 204, 0.12);
  --grain-opacity: 0.045;
  /* Slightly stronger for light bg */

  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --max-w: 1380px;
  --gutter: clamp(24px, 5vw, 80px);
  --section-py: clamp(80px, 10vw, 160px);
}

/* ── Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Grain overlay ───────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* ── Utility ─────────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Skip Link ──────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--fire);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* ── Scroll Reveal ──────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.reveal-in.visible {
  opacity: 1;
}

/* Safety net: if JS fails entirely, make content visible after 3s */
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal-up,
.reveal-in {
  animation: reveal-fallback 0.6s ease 3s forwards;
}
/* Cancel fallback once JS adds .visible */
.reveal-up.visible,
.reveal-in.visible {
  animation: none;
}

/* ════════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: border-color 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom-color: #e2e8f0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 68px;
  width: 100%;
  padding: 0 var(--gutter);
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  display: block;
  opacity: 0.95;
}

.logo-c {
  color: var(--fire);
}

.logo-rest {
  color: var(--t1);
  transition: color 0.3s ease;
}

/* On dark hero, make ANONIX white */
.nav-dark-hero:not(.scrolled) .logo-rest {
  color: #fff;
}

/* On scrolled dark nav, keep white */
.nav.scrolled .logo-rest {
  color: #06152b;
}

/* ── Scrolled nav — all elements readable on white nav bg ── */
.nav.scrolled .nav-link {
  color: #06152b !important;
  font-weight: 600;
}

.nav.scrolled .nav-link::after {
  background: #0052cc !important;
}

.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link.active {
  color: #fff;
}

.nav.scrolled .nav-link-blog {
  color: rgba(200, 175, 255, 0.75);
}

.nav.scrolled .nav-link-blog:hover {
  color: var(--fire);
}

.nav.scrolled .nav-cta {
  color: var(--fire);
  border-color: rgba(0, 82, 204, 0.55);
  animation: none;
}

/* Cancel animation on scrolled state when on home page (higher specificity) */
.home .nav.scrolled .nav-cta {
  animation: none;
}

.nav.scrolled .nav-hamburger span {
  background: rgba(255, 255, 255, 0.85);
}

.nav.scrolled .nav-mobile-menu {
  background: rgba(6, 21, 43, 0.98);
  backdrop-filter: blur(20px);
  border-top-color: rgba(0, 82, 204, 0.18);
}

.nav.scrolled .nav-mobile-menu a {
  color: rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.nav.scrolled .nav-mobile-menu a:hover {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 36px;
  margin-left: auto;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
  position: relative;
  transition: color 0.25s;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--t1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--t1);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--t1);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link-blog {
  color: var(--t2);
}

.nav-link-blog::after {
  background: var(--fire);
}

.nav-link-blog:hover {
  color: var(--fire);
}

@keyframes nav-cta-pulse {
  0%, 100% { border-color: rgba(0, 82, 204, 0.35); }
  50%       { border-color: #0052cc; }
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fire);
  border: 1px solid var(--fire-dim);
  padding: 8px 18px;
  margin-left: 32px;
  transition: background 0.2s, color 0.2s;
}

.home .nav-cta {
  animation: nav-cta-pulse 1.4s ease-in-out infinite;
}

.nav-cta:hover {
  background: var(--fire);
  color: var(--bg);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--t1);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 16px var(--gutter) 24px;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.nav-mobile-menu a:hover {
  color: var(--t1);
}

.mobile-cta {
  color: var(--fire) !important;
  border-bottom: none !important;
}

/* ════════════════════════════════════════════════════
   HERO (Light Theme)
════════════════════════════════════════════════════ */
.hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 75% 45%, rgba(0, 82, 204, 0.08) 0%, transparent 65%),
    #ffffff;
  color: #06152b;
  z-index: 0;
}

/* Matte grain on hero — sits above canvas, below content */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* Hero loader */
.hero-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #ffffff;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-loader-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(6, 21, 43, 0.15);
  border-top-color: var(--fire);
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}

.hero-loader-text {
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.2em;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

#phoenix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: pan-y;
}

.hero-content {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: min(800px, 60vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-label {
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.18em;
  font-size: 10px;
  opacity: 0;
  animation: fade-in 1s 0.3s forwards;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(38px, 5.2vw, 82px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  animation: hero-rise 1.2s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hl-line {
  display: block;
  color: #ffffff;
}

.hl-accent {
  color: var(--fire);
  opacity: 1;
  filter: brightness(1.18);
}

.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--fire);
  margin: 4px 0;
  opacity: 0;
  animation: fade-in 0.8s 1.1s forwards;
}

.hero-sub {
  font-size: clamp(13px, 1.5vw, 16px);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  line-height: 1.65;
  max-width: 340px;
  opacity: 0;
  letter-spacing: 0.01em;
  animation: fade-in 1s 1.2s forwards;
}

.hero-metadata {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  opacity: 0;
  animation: fade-in 1s 1.3s forwards;
  overflow: hidden;
}

/* Hero right structural accent */
.hero-right-accent {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  opacity: 0;
  animation: fade-in 1s 1.5s forwards;
}

.hero-vert-rule {
  width: 1px;
  height: 140px;
  background: linear-gradient(to bottom, var(--fire-dim), transparent 80%);
  flex-shrink: 0;
}

.hero-status-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hss-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hss-key {
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
}

.hss-val {
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: var(--gutter);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fade-in 1s 2s forwards;
}

.hero-scroll-hint .mono {
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
}

.scroll-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(to right, var(--fire), transparent);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}

/* ── Hero Animations ─────────────────────────────── */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-pulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }

  50% {
    transform: scaleY(0.6);
    opacity: 0.4;
  }
}

/* ── Nav overrides (White theme) ───── */
.nav-dark-hero:not(.scrolled) {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.nav-dark-hero:not(.scrolled) .nav-link {
  color: #06152b !important;
  font-weight: 600;
}

.nav-dark-hero:not(.scrolled) .nav-link::after {
  background: #0052cc !important;
}

.nav-dark-hero:not(.scrolled) .nav-link:hover,
.nav-dark-hero:not(.scrolled) .nav-link.active {
  color: rgba(200, 175, 255, 0.7);
}

.nav-dark-hero:not(.scrolled) .nav-link-blog:hover {
  color: var(--fire);
}

.nav-dark-hero:not(.scrolled) .logo-rest {
  color: rgba(255, 255, 255, 0.92);
}

.nav-dark-hero:not(.scrolled) .logo-c {
  color: var(--fire);
}

.nav-dark-hero:not(.scrolled) .nav-cta {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.2);
  animation: none;
}

.nav-dark-hero:not(.scrolled) .nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-dark-hero:not(.scrolled) .nav-hamburger span {
  background: rgba(255, 255, 255, 0.85);
}

.nav-dark-hero:not(.scrolled) .nav-mobile-menu {
  background: rgba(8, 4, 28, 0.96);
  backdrop-filter: blur(20px);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.nav-dark-hero:not(.scrolled) .nav-mobile-menu a {
  color: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.nav-dark-hero:not(.scrolled) .nav-mobile-menu a:hover {
  color: #fff;
}

/* ════════════════════════════════════════════════════
   SHARED SECTION STRUCTURE
════════════════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-py) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Section Badges & Centered Headings ──────────── */
.section-badge-wrap {
  text-align: center;
  margin-bottom: 28px;
}

.section-badge {
  display: inline-block;
  background: var(--fire);
  color: #fff;
  font-size: 10px;
  padding: 6px 18px;
  border-radius: 20px;
  letter-spacing: 0.12em;
}

.section-badge-fire {
  background: var(--fire);
}

.section-title-center {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--t1);
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle-center {
  color: var(--t2);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.75;
  text-align: center;
  max-width: 520px;
  margin: 0 auto clamp(52px, 7vw, 80px);
}

.subsection-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  margin-top: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* ════════════════════════════════════════════════════
   SECTION 01 — Who We Are (Bento Grid)
════════════════════════════════════════════════════ */
.whoweare-section {
  background: var(--bg);
}

.bento-grid {
  display: grid;
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}

/* Method card (tall left) */
.bento-method {
  grid-area: method;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

/* Animated flowing line across the process steps */
@keyframes method-flow {
  0%   { transform: translateX(-110%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(110%); opacity: 0; }
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 82, 204, 0); }
  50%       { box-shadow: 0 0 0 6px rgba(0, 82, 204, 0.18); }
}
@keyframes step-line-glow {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.65; }
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
  position: relative;
}

/* Horizontal connecting track behind the dots */
.process-steps::before {
  content: '';
  position: absolute;
  top: 15px;               /* vertically centred with 32px dots */
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--fire-dim) 20%,
    var(--fire) 50%,
    var(--fire-dim) 80%,
    transparent 100%);
  opacity: 0.25;
  animation: step-line-glow 3s ease-in-out infinite;
  z-index: 0;
}

/* Moving light pulse along the track */
.process-steps::after {
  content: '';
  position: absolute;
  top: 11px;
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 9px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 82, 204, 0.08) 20%,
    rgba(180, 140, 240, 0.70) 50%,
    rgba(0, 82, 204, 0.08) 80%,
    transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  border-radius: 4px;
  animation: method-flow 2.8s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.bento-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.bento-card-desc {
  color: var(--t2);
  font-size: 13px;
  line-height: 1.75;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.step-dot {
  width: 26px;
  height: 26px;
  border-radius: 0;
  border: 2px solid var(--line);
  transform: rotate(45deg);
  position: relative;
  z-index: 2;
  background: var(--surface);
  flex-shrink: 0;
  animation: dot-pulse 3s ease-in-out infinite;
}

.process-step:nth-child(1) .step-dot { animation-delay: 0s; }
.process-step:nth-child(2) .step-dot { animation-delay: 0.7s; }
.process-step:nth-child(3) .step-dot { animation-delay: 1.4s; }
.process-step:nth-child(4) .step-dot { animation-delay: 2.1s; }

.step-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: var(--t3);
  transform: translate(-50%, -50%);
}

.step-name {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
}

.step-sub {
  font-size: 9px;
  color: var(--t3);
  line-height: 1.4;
}

/* Bento tags */
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.bento-tag {
  font-size: 10px;
  color: var(--t2);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

/* Numbered cards */
.bento-strategic { grid-area: strategic; }
.bento-proven { grid-area: proven; }

.bento-num {
  font-family: var(--font-head);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  color: var(--fire);
  opacity: 0.18;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  display: block;
}

/* Phoenix card — decorative animated rings + stat */
.bento-phoenix {
  grid-area: phoenix;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(145deg, #1e1532 0%, #2d1d4e 100%);
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

/* Pulsing concentric rings */
@keyframes ring-expand {
  0%   { transform: translate(-50%, -50%) scale(0.55); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.5);  opacity: 0; }
}
@keyframes ring-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.phoenix-pulse-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.phoenix-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(175, 140, 245, 0.35);
}

.phoenix-ring.r1 {
  width: 130px; height: 130px;
  animation: ring-expand 3s ease-out infinite;
}
.phoenix-ring.r2 {
  width: 185px; height: 185px;
  border-style: dashed;
  border-color: rgba(0, 82, 204, 0.22);
  animation: ring-expand 3s ease-out 1s infinite,
             ring-rotate 18s linear infinite;
}
.phoenix-ring.r3 {
  width: 240px; height: 240px;
  border-color: rgba(110, 80, 180, 0.14);
  animation: ring-expand 3s ease-out 2s infinite;
}

.phoenix-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.phoenix-year {
  font-size: 9px;
  color: rgba(200, 175, 245, 0.65);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.phoenix-stat {
  font-family: var(--font-head);
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.phoenix-stat em {
  font-size: 0.55em;
  font-style: normal;
  color: var(--fire);
  vertical-align: super;
}

.phoenix-label {
  font-size: 10px;
  color: rgba(200, 175, 245, 0.75);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Vision card (purple) */
.bento-vision {
  grid-area: vision;
  background: var(--fire);
  border-color: var(--fire-dim);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.bento-vision-label {
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.bento-vision-text {
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

/* Tech Focus card */
.bento-tech {
  grid-area: tech;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-size: 10px;
  color: var(--fire);
  border: 1px solid var(--fire-dim);
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}

.tech-pill:hover {
  background: var(--fire);
  color: #fff;
}

/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
   SUITE SECTION
\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */
.suite-section {
  background:
    radial-gradient(ellipse 55% 48% at 10% 18%, rgba(175,145,228,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 92% 14%, rgba(212,168,222,0.06) 0%, transparent 60%),
    var(--surface);
  position: relative;
  z-index: 2;
  border-radius: 36px 36px 0 0;
  border-top: none !important;
  box-shadow:
    0 -40px 100px rgba(15,8,35,0.25),
    0 -2px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  padding-top: clamp(80px, 10vw, 140px);
}

.suite-section .section-title-center    { color: var(--t1); }
.suite-section .section-subtitle-center { color: var(--t2); }
.suite-section .section-badge           { background: var(--fire); color: #fff; border: none; }

/* ── Suite watermark ── */
.suite-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: clamp(160px, 20vw, 320px);
  font-weight: 800;
  color: var(--t1);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.04em;
  z-index: 0;
  line-height: 1;
}

/* ── Bento Grid ── */
.suite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 24px 0 56px;
}

/* Bento layout — first card tall left, last card wide bottom-right */
.suite-card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.suite-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.suite-card:nth-child(3) { grid-column: 3; grid-row: 1; }
.suite-card:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; }

/* ── Card base ── */
.suite-card {
  position: relative;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 22px;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.16,1,0.3,1),
    box-shadow 0.4s cubic-bezier(0.16,1,0.3,1),
    border-color 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  background: var(--bg);
  border: 1px solid var(--line);
}

.suite-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(80,40,160,0.10),
    0 2px 8px rgba(80,40,160,0.04);
  border-color: var(--card-accent, var(--fire));
}

/* ── Card icon ── */
.suite-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fire-glow);
  color: var(--card-accent, var(--fire));
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.suite-card:hover .suite-card-icon {
  background: var(--card-accent, var(--fire));
  color: #fff;
  transform: scale(1.05);
}

/* ── Lavender card variant ── */
.suite-card-dark {
  background: linear-gradient(160deg, #ede5fa 0%, #e0d4f5 100%);
  border: 1px solid rgba(140,106,204,0.18);
}

.suite-card-dark:hover {
  border-color: var(--card-accent, var(--fire));
  box-shadow:
    0 12px 40px rgba(120,80,200,0.14),
    0 2px 8px rgba(120,80,200,0.06);
}

.suite-card-dark .suite-card-icon {
  background: rgba(140,106,204,0.15);
}

.suite-card-dark:hover .suite-card-icon {
  background: var(--card-accent, var(--fire));
  color: #fff;
}

.suite-card-dark .suite-card-num {
  color: var(--t3);
  opacity: 0.5;
}

.suite-card-dark .suite-card-name {
  color: var(--t1);
}

.suite-card-dark .suite-card-tagline {
  color: var(--t3);
}

.suite-card-dark .suite-card-desc {
  color: var(--t2);
}

.suite-card-dark .suite-card-arrow {
  color: var(--card-accent, var(--fire));
}

.suite-card-dark:hover .suite-card-arrow {
  color: var(--card-accent, var(--fire));
  opacity: 1;
}

/* ── Combined wide card variant ── */
.suite-card-combined {
  background: linear-gradient(145deg, var(--surface) 0%, rgba(140,106,204,0.08) 100%);
  border: 1px solid rgba(140,106,204,0.2);
}

.suite-card-combined .suite-card-desc {
  max-width: 100%;
}

/* ── Card body ── */
.suite-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

/* ── Typography ── */
.suite-card-num {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--t3);
  opacity: 0.5;
  margin-bottom: 6px;
}

.suite-card-name {
  font-family: var(--font-head);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--t1);
}

.suite-card-tagline {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--t3);
  margin-top: 4px;
}

.suite-card-desc {
  color: var(--t3);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 320px;
}

.suite-card-arrow {
  font-size: 10px;
  color: var(--card-accent, var(--fire));
  letter-spacing: 0.10em;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), color 0.3s;
  opacity: 0.55;
  margin-top: auto;
  padding-top: 16px;
}

.suite-card:hover .suite-card-arrow {
  transform: translateX(6px);
  opacity: 1;
}


/* ════════════════════════════════════════════════════
   SECTION 02 — Innovation in Action
════════════════════════════════════════════════════ */
.innovation-section {
  background: var(--surface);
}

/* Solutions Grid */
.solutions-grid {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.solutions-grid .solution-card:only-child {
  max-width: 480px;
}

.solution-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,21,37,0.06);
}

.solution-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--fire-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-icon-alt {
  background: rgba(220, 80, 80, 0.1);
}

.solution-icon-accent {
  background: rgba(80, 160, 220, 0.1);
}

.solution-icon {
  font-size: 20px;
}

.solution-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
}

.solution-desc {
  color: var(--t2);
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.solution-tag {
  font-size: 10px;
  color: var(--fire);
  border: 1px solid var(--fire-dim);
  padding: 4px 12px;
  border-radius: 16px;
  letter-spacing: 0.06em;
}

.solution-link {
  font-size: 11px;
  color: var(--t2);
  transition: color 0.2s;
  margin-top: auto;
  padding-top: 8px;
}

.solution-link:hover {
  color: var(--fire);
}

/* Research Cards */
.research-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.research-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.research-card-full {
  grid-column: 1 / -1;
}

.research-status {
  display: inline-block;
  font-size: 10px;
  padding: 4px 14px;
  border-radius: 16px;
  width: fit-content;
  letter-spacing: 0.08em;
}

.status-progress {
  background: #fff3cd;
  color: #856404;
}

.status-active {
  background: #d1fae5;
  color: #065f46;
}

.status-planning {
  background: #e0e7ff;
  color: #3730a3;
}

.research-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.01em;
}

.research-card-desc {
  color: var(--t2);
  font-size: 13px;
  line-height: 1.7;
}

.research-meta {
  display: flex;
  gap: 20px;
  align-items: center;
}

.research-meta .mono {
  font-size: 10px;
  color: var(--t3);
}

.research-phase-tag {
  color: var(--fire) !important;
}

/* ════════════════════════════════════════════════════
   SECTION 03 — Client Success Stories (Portfolio)
════════════════════════════════════════════════════ */
.portfolio-section {
  background: #ffffff;
  padding: clamp(60px, 8vw, 100px) 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.portfolio-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.08);
  border-color: #cbd5e1;
}

.portfolio-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.05);
}

.portfolio-cat {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  font-size: 10px;
  background: #0052cc;
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.portfolio-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.portfolio-client {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portfolio-dot {
  color: #0052cc;
  font-size: 12px;
}

.portfolio-client h4 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.portfolio-body p {
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.portfolio-tag {
  font-size: 10px;
  color: #0052cc;
  background: rgba(0, 82, 204, 0.08);
  border: 1px solid rgba(0, 82, 204, 0.2);
  padding: 4px 12px;
  border-radius: 14px;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ════════════════════════════════════════════════════
   CTA / CONTACT SECTION — High Contrast Dark Navy
════════════════════════════════════════════════════ */
.cta-section {
  background: #06152b;
  color: #ffffff;
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 20%, rgba(0, 82, 204, 0.25) 0%, transparent 60%);
}

.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-label {
  color: #60a5fa;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cta-headline {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.cta-headline em {
  color: #60a5fa;
  font-style: normal;
}

.cta-body {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  max-width: 480px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 520px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.form-input {
  font-family: var(--font-body);
  font-size: 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.form-select option {
  background: #06152b;
  color: #ffffff;
}

.cta-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: #0052cc;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  align-self: flex-start;
}

.cta-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 82, 204, 0.4);
}

/* ════════════════════════════════════════════════════
   UNIVERSAL FOOTER — Dark Navy Theme
════════════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 2;
  background: #06152b;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 0 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.65;
  max-width: 340px;
}

.footer-heading,
.footer-col-title {
  color: #60a5fa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.2s ease;
  line-height: 1.6;
}

.footer-col a:hover {
  color: #60a5fa;
}

.footer-link-accent {
  color: #60a5fa !important;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social:hover {
  color: #ffffff;
  border-color: #60a5fa;
  background: rgba(0, 82, 204, 0.25);
}

.footer-legal {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  display: block;
  margin-top: 8px;
}

/* ════════════════════════════════════════════════════
   NEXORA 3D EXPERIENCE SECTION
════════════════════════════════════════════════════ */
.nexora-3d-section {
  background: #080514;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 140px) 0;
}

/* Background ambient glow */
.nexora-3d-section::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 82, 204, 0.18) 0%, rgba(8, 5, 20, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.nexora-3d-section .section-title-center {
  color: #ffffff;
}

.nexora-3d-section .section-subtitle-center {
  color: rgba(255, 255, 255, 0.65);
}

.nexora-3d-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-top: 48px;
}

@media (min-width: 992px) {
  .nexora-3d-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

/* 3D Viewport Container */
.nexora-3d-viewport {
  position: relative;
  background: rgba(15, 10, 32, 0.65);
  border: 1px solid rgba(0, 82, 204, 0.25);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.nexora-3d-viewport:hover {
  border-color: rgba(0, 82, 204, 0.5);
  box-shadow: 0 24px 70px rgba(0, 82, 204, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 3D Canvas element */
#nexora3dCanvas {
  width: 100%;
  height: 380px;
  display: block;
  cursor: grab;
}

#nexora3dCanvas:active {
  cursor: grabbing;
}

/* HUD Overlay */
.hud-overlay {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 82, 204, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(0, 82, 204, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.hud-stat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
}

.hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hud-coords {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
}

/* Story Cards Stream */
.nexora-3d-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c3d-card {
  background: rgba(18, 12, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, background 0.35s, box-shadow 0.35s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.c3d-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--fire);
  opacity: 0;
  transition: opacity 0.3s;
}

.c3d-card:hover,
.c3d-card.active {
  background: rgba(26, 18, 54, 0.8);
  border-color: rgba(0, 82, 204, 0.4);
  transform: translateX(8px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.c3d-card:hover::before,
.c3d-card.active::before {
  opacity: 1;
}

.c3d-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #a78bfa;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.c3d-card-heading {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.c3d-card-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

/* ════════════════════════════════════════════════════
  background: var(--t1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  letter-spacing: 0.18em;
}

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: #ebe4f5;
  padding: 64px 0 48px;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: clamp(100px, 22vw, 360px);
  font-weight: 800;
  color: var(--fire);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.04em;
  z-index: 1;
  line-height: 0.85;
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  color: var(--fire-dim);
  font-size: 9px;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  display: flex;
}

.footer-desc {
  color: var(--t2);
  font-size: 13px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 82, 204, 0.25);
  color: var(--t3);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social:hover {
  color: var(--fire);
  border-color: var(--fire-dim);
  background: var(--fire-glow);
}

.footer-link {
  color: var(--t2);
  font-size: 10px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--t1);
}

.footer-link-accent {
  color: var(--fire) !important;
}

.footer-link-accent:hover {
  color: var(--fire-dim) !important;
}

.footer-legal {
  color: var(--t3);
  font-size: 10px;
}

.footer-system-id {
  color: var(--t3);
  font-size: 9px;
  opacity: 0.5;
}

/* ════════════════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--t2);
  font-family: var(--font-mono);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s, color 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--fire);
  color: var(--bg);
  border-color: var(--fire);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
════════════════════════════════════════════════════ */

/* ── Base (mobile, <480px default) ───────────────── */
.nav-links,
.nav-cta {
  display: none;
}

.nav-hamburger {
  display: flex;
}

.hero {
  min-height: 100svh;
  min-height: 480px;
}

.hero-content {
  width: min(780px, calc(100vw - 48px));
  bottom: clamp(40px, 8vw, 80px);
}

.hero-headline {
  font-size: clamp(38px, 10vw, 56px);
}

.hero-right-accent {
  display: none;
}

.hero-scroll-hint {
  display: none;
}

.bento-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "method method"
    "strategic phoenix"
    "proven phoenix"
    "vision tech";
  gap: 10px;
}

.process-steps {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
}

.process-step {
  padding: 10px 0;
}

/* Reduce bento card padding + text on mobile */
.bento-card {
  padding: 20px 18px;
}

.bento-card-desc {
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.bento-num {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
}

.bento-card-title {
  font-size: 15px;
  margin-bottom: 6px;
}

/* Vertical track line — replaces horizontal on mobile */
.process-steps::before {
  top: 33px;
  bottom: 33px;
  left: calc(50% - 0.5px);
  right: auto;
  width: 1px;
  height: auto;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--fire-dim) 20%,
    var(--fire) 50%,
    var(--fire-dim) 80%,
    transparent 100%);
}

/* Vertical flow pulse — replaces horizontal on mobile */
.process-steps::after {
  top: 33px;
  bottom: 33px;
  left: calc(50% - 4px);
  right: auto;
  width: 9px;
  height: auto;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 82, 204, 0.08) 20%,
    rgba(180, 140, 240, 0.70) 50%,
    rgba(0, 82, 204, 0.08) 80%,
    transparent 100%);
  background-size: 100% 40%;
  background-repeat: no-repeat;
  animation: method-flow-v 2.8s ease-in-out infinite;
}

@keyframes method-flow-v {
  0%   { transform: translateY(-110%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(110%); opacity: 0; }
}

.solutions-grid {
  grid-template-columns: 1fr;
}

.research-cards {
  grid-template-columns: 1fr;
}

.research-card-full {
  grid-column: 1;
}

.portfolio-grid {
  grid-template-columns: 1fr;
}

.suite-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 0 40px;
}

.suite-card:nth-child(1),
.suite-card:nth-child(2),
.suite-card:nth-child(3),
.suite-card:nth-child(4) {
  grid-column: 1;
  grid-row: auto;
}

.suite-card {
  padding: 22px 20px 18px;
}

.suite-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}

.suite-card-icon svg {
  width: 22px;
  height: 22px;
}

.suite-card-name {
  font-size: 18px;
}

.suite-card-desc {
  font-size: 13px;
}

.suite-watermark {
  font-size: 80px;
}

.cta-inner {
  grid-template-columns: 1fr;
  gap: 32px;
}

.cta-form {
  max-width: 100%;
}

.footer-inner {
  grid-template-columns: 1fr;
}

.cta-headline {
  font-size: 32px;
  letter-spacing: -0.04em;
}

.section-title-center {
  font-size: 28px;
  line-height: 1.2;
}

.section-subtitle-center {
  font-size: 14px;
  margin-bottom: clamp(24px, 5vw, 52px);
}

.bento-card {
  padding: 18px 16px;
}

.bento-card-title {
  font-size: 15px;
}

.bento-card-desc {
  font-size: 13px;
}

.portfolio-thumb {
  height: 70px;
}

.footer-watermark {
  font-size: clamp(80px, 28vw, 200px);
  bottom: 0;
}

/* ── Mobile hero glow pulse (CSS fallback / enhancement) ─ */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 65% 55% at 50% 45%,
    rgba(0, 82, 204, 0.22) 0%,
    transparent 70%
  );
  animation: hero-orb-pulse 3.2s ease-in-out infinite;
  display: none;
}

@media (max-width: 768px) {
  .hero::after {
    display: block;
  }
}

@keyframes hero-orb-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ── Mobile portfolio carousel ─────────────────── */
.portfolio-carousel-outer {
  overflow: hidden;
  position: relative;
  border-radius: 4px;
}

.portfolio-carousel-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
  transform: translateY(0);
}

.portfolio-carousel-track .portfolio-card {
  flex-shrink: 0;
}

.portfolio-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.pc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.pc-dot.active {
  background: var(--fire);
  transform: scale(1.5);
}

/* Compact card body on mobile */
.portfolio-body {
  padding: 16px;
  gap: 10px;
}

.portfolio-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}



/* ── 481px+ ─────────────────────────────────────── */
@media (min-width: 481px) {
  .hero {
    min-height: 520px;
  }

  .hero-content {
    bottom: clamp(60px, 10vw, 100px);
  }

  .hero-headline {
    font-size: clamp(44px, 10vw, 72px);
  }

  .suite-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .suite-card:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .suite-card:nth-child(2) { grid-column: auto; grid-row: auto; }
  .suite-card:nth-child(3) { grid-column: auto; grid-row: auto; }
  .suite-card:nth-child(4) { grid-column: 1 / 3; grid-row: auto; }

  .suite-card {
    padding: 24px 22px 20px;
  }

  .section-title-center {
    font-size: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-col-legal {
    grid-column: 1 / -1;
  }
}

/* ── 769px+ (Tablet) ────────────────────────────── */
@media (min-width: 769px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }

  .nav-hamburger {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    width: min(780px, 60vw);
  }

  .hero-headline {
    font-size: clamp(56px, 9vw, 128px);
  }

  .hero-right-accent {
    display: flex;
  }

  .hero-scroll-hint {
    display: flex;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "method method"
      "strategic phoenix"
      "proven phoenix"
      "vision tech";
  }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    overflow: visible;
  }

  /* Restore horizontal line at tablet+ */
  .process-steps::before {
    top: 13px;
    bottom: auto;
    left: calc(12.5% + 4px);
    right: calc(12.5% + 4px);
    width: auto;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      var(--fire-dim) 20%,
      var(--fire) 50%,
      var(--fire-dim) 80%,
      transparent 100%);
    animation: step-line-glow 3s ease-in-out infinite;
  }

  /* Restore horizontal flow pulse at tablet+ */
  .process-steps::after {
    top: 9px;
    bottom: auto;
    left: calc(12.5% + 4px);
    right: calc(12.5% + 4px);
    width: auto;
    height: 9px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(0, 82, 204, 0.08) 20%,
      rgba(180, 140, 240, 0.70) 50%,
      rgba(0, 82, 204, 0.08) 80%,
      transparent 100%);
    background-size: 40% 100%;
    animation: method-flow 2.8s ease-in-out infinite;
  }

  .process-step {
    padding: 0;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid .solution-card:last-child {
    grid-column: 1 / -1;
  }

  .research-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-card-full {
    grid-column: 1 / -1;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  /* Restore full card sizes at tablet */
  .portfolio-thumbnail-outer {
    display: block;
  }

  .portfolio-thumb {
    height: 150px;
  }

  .portfolio-body {
    padding: 20px;
    gap: 12px;
  }

  .portfolio-body p {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }

  /* Restore bento card text at tablet+ */
  .bento-card {
    padding: 28px 24px;
  }

  .bento-card-desc {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    font-size: 13px;
    line-height: 1.75;
  }

  .bento-num {
    font-size: 40px;
  }

  .bento-card-title {
    font-size: 18px;
  }

  /* Hide mobile carousel on tablet+ */
  .portfolio-carousel-outer,
  .portfolio-carousel-dots {
    display: none !important;
  }

  /* Restore hidden grid */
  #evidence .portfolio-grid {
    display: grid !important;
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 48px;
  }

  .footer-col-legal {
    grid-column: auto;
  }

  .cta-inner {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }

  .cta-headline {
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: -0.045em;
  }

  .suite-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .suite-card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .suite-card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .suite-card:nth-child(3) { grid-column: 3; grid-row: 1; }
  .suite-card:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; }

  .suite-card {
    padding: 28px 26px 22px;
  }

  .suite-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }

  .suite-card-icon svg {
    width: 28px;
    height: 28px;
  }

  .suite-card-name {
    font-size: clamp(18px, 1.8vw, 24px);
  }

  .suite-watermark {
    font-size: clamp(160px, 20vw, 320px);
  }

  .section-title-center {
    font-size: clamp(36px, 5vw, 64px);
  }

  .bento-card {
    padding: 32px;
  }

  .portfolio-thumb {
    height: 200px;
  }

  .footer-watermark {
    font-size: clamp(100px, 16vw, 260px);
  }
}

/* ── 1025px+ (Desktop) ──────────────────────────── */
@media (min-width: 1025px) {

  .bento-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "method strategic phoenix"
      "method proven phoenix"
      "vision tech tech";
  }

  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .solutions-grid .solution-card:last-child {
    grid-column: auto;
  }

  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}


/* ════════════════════════════════════════════════════
   DELIVERABLES SECTION
════════════════════════════════════════════════════ */
.deliverables-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.deliverable-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.deliverable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,21,37,0.06);
}

.deliverable-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--fire-glow);
  border: 1px solid rgba(140,106,204,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fire);
  flex-shrink: 0;
}

.deliverable-label {
  color: var(--t2);
  font-size: 10px;
  letter-spacing: 0.10em;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .deliverable-card {
    padding: 20px 14px;
  }
}


/* ════════════════════════════════════════════════════
   TRUST STRIP
════════════════════════════════════════════════════ */
.trust-strip {
  background: var(--t1);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
  position: relative;
  z-index: 2;
}

.trust-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 100px;
  text-align: center;
}

.trust-stat-num {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.trust-stat-label {
  color: rgba(255,255,255,0.45);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .trust-strip-inner {
    justify-content: center;
    gap: 20px 32px;
  }
  .trust-divider {
    display: none;
  }
  .trust-stat {
    min-width: 80px;
  }
}


/* ════════════════════════════════════════════════════
   PAGE HERO (inner pages)
════════════════════════════════════════════════════ */
.page-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* ════════════════════════════════════════════════════
   PACKAGES PAGE
════════════════════════════════════════════════════ */
.packages-section {
  background: var(--bg);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pkg-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,21,37,0.06);
}

.pkg-card-featured {
  border-color: var(--fire);
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--fire-dim);
}

.pkg-popular-badge {
  background: var(--fire);
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  text-align: center;
}

.pkg-header {
  padding: 32px 28px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pkg-tier {
  color: var(--t3);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.pkg-card-featured .pkg-tier {
  color: var(--fire);
}

.pkg-price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
}

.pkg-currency {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--t1);
  margin-top: 8px;
}

.pkg-amount {
  font-family: var(--font-head);
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--t1);
}

.pkg-amount-custom {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
}

.pkg-delivery {
  color: var(--t3);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.pkg-body {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pkg-includes {
  color: var(--fire);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pkg-feature {
  font-size: 13px;
  color: var(--t2);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.pkg-check {
  color: var(--fire);
  font-size: 13px;
  flex-shrink: 0;
  font-weight: 700;
}

.pkg-cta {
  display: block;
  margin: 0 28px 28px;
  padding: 14px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fire);
  border: 1px solid var(--fire-dim);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.pkg-cta:hover {
  background: var(--fire);
  color: #fff;
}

.pkg-cta-featured {
  background: var(--fire);
  color: #fff;
  border-color: var(--fire);
}

.pkg-cta-featured:hover {
  background: var(--fire-dim);
}

.packages-note {
  text-align: center;
  color: var(--t3);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}


/* ════════════════════════════════════════════════════
   PORTFOLIO / CASE STUDIES PAGE
════════════════════════════════════════════════════ */
.case-studies-section {
  background: var(--bg);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,21,37,0.06);
}

.case-card-top {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-card-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.case-card-body {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
}

.case-row-label {
  color: var(--fire);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.case-row-text {
  color: var(--t2);
  font-size: 13px;
  line-height: 1.65;
}

.case-divider {
  height: 1px;
  background: var(--line);
}

@media (max-width: 900px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ════════════════════════════════════════════════════
   EXPANDED SERVICES SECTION
════════════════════════════════════════════════════ */
.services-section {
  background: var(--bg);
  padding: clamp(60px, 8vw, 120px) 0;
}

.service-category-block {
  margin-top: 48px;
}

.service-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.service-category-num {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--fire);
  font-weight: 700;
}

.service-category-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--t1);
}

.service-category-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-left: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.service-detail-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(10, 37, 64, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.10);
  border-color: var(--fire);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(0, 82, 204, 0.08);
  color: var(--fire);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-index {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--t3);
  font-weight: 600;
}

.service-item-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-item-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--t2);
  margin-bottom: 24px;
  font-weight: 400;
}

.service-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.service-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--t2);
  border: 1px solid var(--line);
}

/* ════════════════════════════════════════════════════
   STACKING RULE: ONLY Section 2 (.whoweare-section)
   stacks over Section 1 (.hero) on the Homepage.
   All other sections and pages flow naturally with NO stacking.
════════════════════════════════════════════════════ */

/* Sticky Dark Hero on Homepage */
.home .hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 65% at 65% 48%, rgba(0, 82, 204, 0.40) 0%, rgba(10, 37, 64, 0.20) 45%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 18% 55%, rgba(90, 107, 124, 0.35) 0%, transparent 55%),
    #06152b;
  z-index: 0;
}

/* Homepage Section Flow: Section 2 (.whoweare-section) slides over Section 1 (.hero) cleanly.
   All homepage sections flow seamlessly with 0 border-radius, 0 top shadows, 0 border-top lines, and no color breaks. */

.home .section {
  border-top: none;
}

.home .whoweare-section {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  padding-top: 100px;
  margin-top: 0;
}

.home .services-section,
.home .portfolio-section,
.home .cta-section {
  position: relative;
  z-index: 2;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
}

.home .whoweare-section,
.home .services-section,
.home .portfolio-section {
  background: #ffffff;
}

.home .cta-section {
  background: #06152b;
}

/* Service landing pages & secondary pages: natural flow, 0 top shadows */
.service-page main section,
.service-page footer,
body:not(.home) main section,
body:not(.home) footer {
  position: relative;
  z-index: 1;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
}


/* ════════════════════════════════════════════════════
   SERVICE LANDING PAGES — v8 Design System
   Premium corporate startup aesthetic
════════════════════════════════════════════════════ */
.service-page {
  background: var(--bg);
  color: var(--t1);
}

/* ── Breadcrumb ─────────────────────────────────── */
.sp-breadcrumb {
  background: #06152b;
  padding: 80px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.sp-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.sp-breadcrumb a:hover {
  color: #60a5fa;
}

.sp-breadcrumb-sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.3);
}

.sp-breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ── Hero ────────────────────────────────────────── */
.sp-hero {
  background: linear-gradient(180deg, #06152b 0%, #0a2540 100%);
  color: #ffffff;
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(0, 82, 204, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
}

.sp-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.sp-hero-header {
  position: relative;
  z-index: 2;
}

.sp-badge {
  display: inline-block;
  color: #60a5fa;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
  background: rgba(0, 82, 204, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.sp-hero-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.sp-hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 560px;
}

.sp-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sp-hero-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-metric-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.sp-metric-box:hover {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.sp-metric-val {
  font-family: var(--font-head);
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 800;
  color: #60a5fa;
  line-height: 1;
  white-space: nowrap;
}

.sp-metric-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ── Section Title (shared) ──────────────────────── */
.sp-section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.sp-section-intro {
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
  max-width: 640px;
}

/* ── Spotlight Sections (Zig-Zag) ────────────────── */
.sp-spotlight-section {
  background: #ffffff;
  padding: 0;
  border-top: 1px solid var(--line);
}

/* Dark variant — CSS class instead of inline styles */
.sp-dark-section {
  background: #06152b;
  color: #ffffff;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.sp-feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: clamp(60px, 8vw, 100px) 0;
}

.sp-feature-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.sp-feature-h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 16px 0;
  letter-spacing: -0.01em;
}

/* Dark section text utilities — replaces inline styles */
.sp-text-white { color: #ffffff; }
.sp-text-white-90 { color: rgba(255, 255, 255, 0.9); }
.sp-text-white-70 { color: rgba(255, 255, 255, 0.7); }

.sp-badge-light {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.sp-feature-lead {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.6;
  margin-bottom: 14px;
}

.sp-feature-body {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 24px;
}

.sp-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-feature-list li {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  position: relative;
  padding-left: 30px;
  line-height: 1.55;
}

.sp-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: #0052cc;
  font-weight: 800;
  font-size: 16px;
}

/* Dark list variant */
.sp-list-dark li {
  color: rgba(255, 255, 255, 0.9);
}

.sp-list-dark li::before {
  color: #60a5fa;
}

.sp-img-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(10, 37, 64, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #0f172a;
  aspect-ratio: 4 / 3;
}

.sp-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-img-frame:hover img {
  transform: scale(1.04);
}

/* ── Process Roadmap ─────────────────────────────── */
.sp-process-section {
  background: #f8fafc;
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
}

.sp-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  counter-reset: process-step;
}

.sp-process-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px;
  border-top: 3px solid #0052cc;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sp-process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 82, 204, 0.08);
}

.sp-proc-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #0052cc;
  margin-bottom: 12px;
  display: block;
}

.sp-proc-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.3;
}

.sp-proc-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

/* ── Results Section ─────────────────────────────── */
.sp-results-section {
  background: #ffffff;
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
}

.sp-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.sp-result-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0052cc;
  border-radius: 0 14px 14px 0;
  padding: 28px 32px;
  transition: box-shadow 0.3s ease;
}

.sp-result-card:hover {
  box-shadow: 0 8px 24px rgba(0, 82, 204, 0.06);
}

.sp-result-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0052cc;
  display: block;
  margin-bottom: 12px;
}

.sp-result-body {
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
  font-weight: 400;
}

/* ── FAQ Accordion ───────────────────────────────── */
.sp-faq-section {
  background: #f8fafc;
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
}

.sp-faq-grid {
  max-width: 800px;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sp-faq-item[open] {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.sp-faq-question {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}

.sp-faq-question::-webkit-details-marker {
  display: none;
}

.sp-faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.sp-faq-item[open] .sp-faq-question::after {
  content: '−';
  color: #0052cc;
}

.sp-faq-question:hover {
  color: #0052cc;
}

.sp-faq-answer {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  padding: 0 24px 20px;
}

/* ── Keywords ────────────────────────────────────── */
.sp-keywords-section {
  background: #ffffff;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.sp-keywords-heading {
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
}

.sp-keywords-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-kw-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 7px 16px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-weight: 500;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 991px) {
  .sp-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .sp-hero-metrics {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .sp-metric-box {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
  }
  .sp-feature-row,
  .sp-feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sp-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .sp-hero-title {
    font-size: 28px;
  }
  .sp-metric-box {
    flex: 1 1 100%;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 16px 20px;
  }
  .sp-process-grid {
    grid-template-columns: 1fr;
  }
  .sp-faq-question {
    font-size: 15px;
    padding: 16px 20px;
  }
  .sp-faq-answer {
    padding: 0 20px 16px;
    font-size: 14px;
  }
}

/* ════════════════════════════════════════════════════
   UNIVERSAL DARK NAVY FOOTER SYSTEM (SEO & Sitemap)
════════════════════════════════════════════════════ */
.footer {
  background: #06152b !important;
  color: #ffffff !important;
  padding: 70px 0 30px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  position: relative !important;
  z-index: 20 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.footer-inner {
  max-width: var(--max-w, 1240px);
  margin: 0 auto;
  padding: 0 var(--gutter, 24px);
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.3fr 1.3fr;
  gap: 40px;
}

@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-brand-desc {
  color: rgba(255, 255, 255, 0.80) !important;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 12px 0 16px;
  max-width: 320px;
}

.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  width: fit-content;
  margin-bottom: 12px;
}

.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.footer-heading {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #60a5fa !important;
  margin-bottom: 14px;
  display: block;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  line-height: 1.75;
}

.footer-col a:hover {
  color: #60a5fa !important;
  transform: translateX(3px);
}

.footer-link-accent {
  color: #60a5fa !important;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: #ffffff !important;
}

.footer-social:hover {
  background: #0052cc !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}

.footer-bottom {
  max-width: var(--max-w, 1240px);
  margin: 40px auto 0;
  padding: 24px var(--gutter, 24px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono, monospace);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #60a5fa;
}
