/* ==========================================================
   MACXWIN SOLUTION — Apple-Inspired Minimalist Design System
   Colors derived directly from brand mark:
     Navy Slate: #132030 | Sky Blue: #3FA3EC
   ========================================================== */

:root {
  --navy: #132030;
  --navy-deep: #09111c;
  --blue: #3fa3ec;
  --blue-bright: #5bb7fa;
  --blue-glow: rgba(63, 163, 236, 0.25);

  --bg-light: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-elevated: #0c1420;

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-light: #f5f5f7;
  --text-light-muted: #a1a1a6;

  --border-light: rgba(19, 32, 48, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);

  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --nav-height: 74px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: min(1140px, 90%);
  margin-inline: auto;
}

/* Scroll Progress Hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  transition: width 0.08s linear;
}

/* ==========================================================
   FROSTED GLASS NAVIGATION
   ========================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(19, 32, 48, 0.06);
  transition: background 0.4s var(--ease-apple), border-color 0.4s var(--ease-apple),
    color 0.4s var(--ease-apple);
}

.navbar.is-dark {
  background: rgba(9, 17, 28, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  position: relative;
  height: 48px;
}

.navbar__logo {
  height: 44px;
  width: auto;
  transition: opacity 0.35s var(--ease-apple), transform 0.35s var(--ease-apple);
}

.navbar__logo--dark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.navbar.is-dark .navbar__logo--light {
  opacity: 0;
}

.navbar.is-dark .navbar__logo--dark {
  opacity: 1;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-apple);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.navbar.is-dark .nav-link {
  color: var(--text-light-muted);
}

.navbar.is-dark .nav-link:hover,
.navbar.is-dark .nav-link.is-active {
  color: #ffffff;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.navbar__toggle span {
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-apple), opacity 0.25s ease;
}

.navbar__toggle.is-open span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.navbar__toggle.is-open span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  padding: 40px 28px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.35s var(--ease-apple), transform 0.35s var(--ease-apple);
}

.navbar.is-dark .mobile-menu {
  background: rgba(9, 17, 28, 0.96);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mobile-menu__cta {
  margin-top: 12px;
  align-self: flex-start;
}

/* ==========================================================
   BUTTONS & LINKS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease-apple), background 0.25s ease,
    box-shadow 0.3s var(--ease-apple);
}

.btn--pill {
  border-radius: var(--radius-pill);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(63, 163, 236, 0.28);
}

.btn--primary:hover {
  background: #2f96e2;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(63, 163, 236, 0.38);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue);
  transition: gap 0.3s var(--ease-apple);
}

.link-arrow:hover {
  gap: 10px;
}

/* ==========================================================
   1. HERO SECTION
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-height) + 64px) 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #f0f7fe 0%, #ffffff 60%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: floatSlow 14s ease-in-out infinite alternate;
}

.hero__glow--blue {
  width: 560px;
  height: 560px;
  background: rgba(63, 163, 236, 0.16);
  top: -120px;
  right: 8%;
}

.hero__glow--slate {
  width: 440px;
  height: 440px;
  background: rgba(19, 32, 48, 0.06);
  bottom: -80px;
  left: 5%;
  animation-delay: -5s;
}

.hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero__split {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 40px;
}

.hero__content {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(19, 32, 48, 0.045);
  border: 1px solid rgba(19, 32, 48, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(63, 163, 236, 0.2);
}

.hero__title {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--navy);
  max-width: 680px;
}

.text-gradient {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: 20px;
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 560px;
  font-weight: 400;
}

.hero__cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

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

.letter-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 380px;
  cursor: crosshair;
  touch-action: none;
}

.letter-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Streamlined Brand & Telemetry Strip */
.hero__stage {
  margin-top: 48px;
  width: 100%;
  perspective: 1200px;
}

.stage-card {
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(63, 163, 236, 0.32),
    rgba(19, 32, 48, 0.08) 50%,
    rgba(63, 163, 236, 0.2)
  );
  box-shadow: 0 22px 54px rgba(19, 32, 48, 0.07),
    0 6px 20px rgba(63, 163, 236, 0.06);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.stage-card__glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  border-radius: 21px;
  padding: 18px 26px;
}

.stage-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.stage-brand-panel {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.stage-brand-logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(19, 32, 48, 0.06));
}

.stage-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 1;
}

.stage-metric {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid rgba(19, 32, 48, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: transform 0.35s var(--ease-apple), background 0.3s ease;
}

.stage-metric:hover {
  transform: translateY(-2px);
  background: #edf5fd;
}

.stage-metric__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stage-metric__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.scroll-hint {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-hint__line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: pulseLine 2s ease-in-out infinite;
}

/* ==========================================================
   2. STICKY SCROLL STORYTELLING (DARK SECTION)
   ========================================================== */
.theme-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.text-blue {
  color: var(--blue);
}

.scroll-story__track {
  position: relative;
  min-height: 230vh;
  background: radial-gradient(circle at 75% 35%, rgba(63, 163, 236, 0.14), transparent 55%),
    var(--navy-deep);
}

.scroll-story__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 0 60px;
}

.scroll-story__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.scroll-story__heading {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 36px;
}

.story-steps {
  display: grid;
  gap: 22px;
}

.story-step {
  position: relative;
  padding-left: 22px;
  opacity: 0.35;
  transform: translateY(4px);
  transition: opacity 0.45s var(--ease-apple), transform 0.45s var(--ease-apple);
  cursor: pointer;
}

.story-step__bar {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.story-step__bar::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-apple);
}

.story-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.story-step.is-active .story-step__bar::after {
  transform: scaleY(1);
}

.story-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.story-step p {
  font-size: 0.98rem;
  color: var(--text-light-muted);
  line-height: 1.6;
}

/* Morphing Device Frame */
.device-frame {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.5);
}

.device-frame__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-dark);
}

.device-frame__logo {
  height: 26px;
  width: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(63, 163, 236, 0.12);
  border: 1px solid rgba(63, 163, 236, 0.25);
  font-size: 0.78rem;
  color: var(--blue-bright);
}

.status-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 8px #30d158;
}

.story-panels {
  position: relative;
  min-height: 300px;
  margin-top: 22px;
}

.story-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.55s var(--ease-apple), transform 0.55s var(--ease-apple);
}

.story-panel.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.panel-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

/* Panel 0 Visual */
.panel-visual--os {
  gap: 18px;
}

.os-node {
  flex: 1;
  padding: 22px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.os-node__badge {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.os-node__sub {
  font-size: 0.78rem;
  color: var(--text-light-muted);
}

.os-bridge__x {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 28px var(--blue-glow);
}

/* Panel 1 Visual */
.panel-visual--cloud {
  min-height: 200px;
}

.cloud-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px dashed rgba(63, 163, 236, 0.4);
  animation: spinSlow 20s linear infinite;
}

.cloud-ring--2 {
  width: 210px;
  height: 210px;
  border-color: rgba(255, 255, 255, 0.14);
  animation-direction: reverse;
}

.cloud-core {
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--blue), #2279bd);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 2;
  box-shadow: 0 12px 30px rgba(63, 163, 236, 0.35);
}

.cloud-chip {
  position: absolute;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(19, 32, 48, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  color: var(--text-light);
}

.cloud-chip--1 { top: 20px; left: 22px; }
.cloud-chip--2 { bottom: 20px; left: 28px; }
.cloud-chip--3 { top: 26px; right: 22px; }

/* Panel 2 Visual */
.speed-bars {
  width: 100%;
  display: grid;
  gap: 16px;
}

.speed-row {
  display: grid;
  grid-template-columns: 120px 1fr 76px;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.speed-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.speed-fill {
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #78c8ff);
}

.panel-caption strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.panel-caption span {
  font-size: 0.88rem;
  color: var(--text-light-muted);
}

/* ==========================================================
   3. BENTO GRID SOLUTIONS (LIGHT SECTION)
   ========================================================== */
.solutions {
  padding: 120px 0;
  background: var(--bg-soft);
}

.section-header {
  max-width: 660px;
  margin-bottom: 56px;
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-subtitle {
  margin-top: 16px;
  font-size: 1.12rem;
  color: var(--text-secondary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 310px;
  transition: transform 0.45s var(--ease-apple), box-shadow 0.45s var(--ease-apple);
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(19, 32, 48, 0.08);
}

.bento-card--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

.bento-card--dark {
  background: var(--navy);
  color: #ffffff;
  border-color: transparent;
}

.bento-card--dark p {
  color: var(--text-light-muted);
}

.bento-card--accent {
  background: linear-gradient(135deg, #ffffff 0%, #eaf4fd 100%);
}

.bento-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  margin-bottom: 10px;
}

.bento-card h3 {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.bento-card p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.bento-card--dark p {
  color: rgba(255, 255, 255, 0.74);
}

.bento-visual {
  flex-shrink: 0;
}

/* Mini Browser UI Visual */
.mini-ui {
  width: 240px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid rgba(19, 32, 48, 0.07);
}

.mini-ui__bar {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}

.mini-ui__bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(19, 32, 48, 0.2);
}

.mini-ui__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-ui__col {
  display: grid;
  gap: 8px;
}

.mini-ui__block {
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(19, 32, 48, 0.06);
}

.mini-ui__block.tall {
  height: 96px;
  background: linear-gradient(160deg, var(--navy), #223854);
}

.mini-ui__block.accent {
  background: linear-gradient(135deg, var(--blue), #6cc0fa);
}

/* Pill Stack */
.pill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-stack span {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Pulse Core */
.bento-visual--pulse {
  position: relative;
  height: 90px;
  display: grid;
  place-items: center;
}

.pulse-ring {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(63, 163, 236, 0.35);
  animation: pulseRing 2.6s ease-out infinite;
}

.pulse-core {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(63, 163, 236, 0.12);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.bento-stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}

.bento-stat span {
  display: block;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.bento-stat small {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================
   4. CAPABILITIES SWITCHER (DARK SECTION)
   ========================================================== */
.capabilities {
  padding: 120px 0;
  background: radial-gradient(circle at 50% 0%, rgba(63, 163, 236, 0.14), transparent 55%),
    var(--bg-dark);
}

.segmented-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.segmented-control {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.segmented-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: var(--radius-pill);
  background: var(--blue);
  transition: transform 0.4s var(--ease-apple), width 0.4s var(--ease-apple);
  z-index: 1;
}

.segmented-btn {
  position: relative;
  z-index: 2;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light-muted);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.segmented-btn.is-active {
  color: #ffffff;
}

.capability-stage {
  max-width: 920px;
  margin-inline: auto;
}

.capability-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.capability-card.is-switching {
  opacity: 0.3;
  transform: translateY(6px);
}

.capability-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-bright);
  margin-bottom: 10px;
}

.capability-card__info h3 {
  font-size: 1.85rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.capability-card__info p {
  color: var(--text-light-muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #ffffff;
}

.capability-card__metrics {
  display: grid;
  gap: 16px;
}

.cap-metric {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.cap-metric__num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue-bright);
}

.cap-metric__label {
  font-size: 0.88rem;
  color: var(--text-light-muted);
}

/* ==========================================================
   5. TECHNOLOGIES WE WORK WITH (APPLE CLEAN GRID)
   ========================================================== */
.technologies {
  padding: 120px 0;
  background: var(--bg-light);
}

.tech-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}

.tech-filter__btn {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  transition: background 0.3s var(--ease-apple), color 0.3s ease,
    border-color 0.3s ease, transform 0.25s var(--ease-apple);
}

.tech-filter__btn:hover {
  color: var(--navy);
  transform: translateY(-1px);
}

.tech-filter__btn.is-active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(19, 32, 48, 0.16);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tech-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.45s var(--ease-apple), background 0.35s ease,
    border-color 0.35s ease, box-shadow 0.45s var(--ease-apple),
    opacity 0.35s var(--ease-apple);
}

.tech-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: rgba(63, 163, 236, 0.35);
  box-shadow: 0 20px 40px rgba(19, 32, 48, 0.08);
}

.tech-card.is-hidden {
  display: none;
}

.tech-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tech-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(19, 32, 48, 0.07);
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s var(--ease-apple);
}

.tech-card:hover .tech-card__icon {
  background: var(--blue);
  color: #ffffff;
  transform: scale(1.06);
}

.tech-card__cat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.tech-card h3 {
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.tech-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================
   6. PROCESS SECTION
   ========================================================== */
.process {
  padding: 120px 0;
  background: var(--bg-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  transition: transform 0.4s var(--ease-apple), box-shadow 0.35s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(19, 32, 48, 0.06);
}

.process-step__num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================
   6. CONTACT SECTION
   ========================================================== */
.contact {
  padding: 96px 0 120px;
  background: var(--bg-light);
}

.contact-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1725 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 32px 72px rgba(19, 32, 48, 0.16);
}

.contact-logo {
  height: 36px;
  width: auto;
  margin-bottom: 24px;
}

.contact-card__left h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-card__left p {
  color: var(--text-light-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-detail__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-bright);
}

.contact-detail__val {
  font-size: 0.98rem;
  font-weight: 500;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-group select option {
  background: var(--navy);
  color: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.11);
}

.form-feedback {
  font-size: 0.88rem;
  min-height: 20px;
  color: #69e29c;
  text-align: center;
}

.form-feedback.is-error {
  color: #ff7b72;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-light);
  padding: 64px 0 36px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}

.footer__logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer__brand p {
  max-width: 300px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__cols {
  display: flex;
  gap: 56px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================
   BACK TO TOP BUTTON (APPLE GLASS + PROGRESS RING)
   ========================================================== */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  color: var(--navy);
  display: grid;
  place-items: center;
  z-index: 95;
  box-shadow: 0 12px 30px rgba(19, 32, 48, 0.14),
    0 2px 8px rgba(63, 163, 236, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.84);
  transition: opacity 0.4s var(--ease-apple),
    transform 0.4s var(--ease-apple),
    visibility 0.4s ease,
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.35s var(--ease-apple);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top.is-dark {
  background: rgba(19, 32, 48, 0.82);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(63, 163, 236, 0.28);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.96);
}

.back-to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.back-to-top__track {
  fill: none;
  stroke: rgba(19, 32, 48, 0.08);
  stroke-width: 2.5;
}

.back-to-top.is-dark .back-to-top__track,
.back-to-top:hover .back-to-top__track {
  stroke: rgba(255, 255, 255, 0.14);
}

.back-to-top__progress {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
  transition: stroke-dashoffset 0.1s linear;
}

.back-to-top__arrow {
  position: relative;
  z-index: 2;
  transition: transform 0.35s var(--ease-apple);
}

.back-to-top:hover .back-to-top__arrow {
  transform: translateY(-2px);
}

/* ==========================================================
   REVEAL & KEYFRAME ANIMATIONS
   ========================================================== */
.reveal,
.reveal-hero {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-apple), transform 0.85s var(--ease-apple);
}

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

@keyframes floatSlow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-24px, 24px) scale(1.08); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 960px) {
  .scroll-story__track {
    min-height: auto;
  }

  .scroll-story__sticky {
    position: static;
    min-height: auto;
    padding: 88px 0;
  }

  .hero__split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__content {
    align-items: center;
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
  }

  .letter-stage {
    max-width: 320px;
    height: 320px;
  }

  .stage-card__body {
    flex-direction: column;
    align-items: stretch;
  }

  .stage-brand-panel {
    justify-content: center;
  }

  .stage-metrics {
    grid-template-columns: 1fr;
  }

  .scroll-story__grid,
  .capability-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .bento-card--wide {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
  }

  .process-grid,
  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__top {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .navbar__links,
  .navbar__actions .btn {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__logo {
    height: 36px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
  }

  .bento-grid,
  .process-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--wide {
    grid-column: span 1;
  }

  .contact-card {
    padding: 28px;
  }

  .footer__cols {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .segmented-control {
    border-radius: 18px;
    justify-content: center;
  }

  .segmented-pill {
    display: none;
  }

  .segmented-btn.is-active {
    background: var(--blue);
  }

  .story-panels {
    min-height: 340px;
  }

  .panel-visual--os {
    flex-direction: column;
    gap: 12px;
  }

  .os-node {
    width: 100%;
    padding: 14px 12px;
  }

  .speed-row {
    grid-template-columns: 95px 1fr 64px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
