/* ============================================
   Ostric.space — Premium Landing Styles
   ============================================ */

:root {
  --bg: #07090D;
  --bg-navy: #0F172A;
  --cyan: #00D9FF;
  --violet: #8B5CF6;
  --white: #FFFFFF;
  --gray: #E5E7EB;
  --gray-muted: #9CA3AF;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-cyan: rgba(0, 217, 255, 0.35);
  --glow-violet: rgba(139, 92, 246, 0.35);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --container: min(1200px, calc(100% - 3rem));
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.has-custom-cursor {
  cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor [data-tilt],
body.has-custom-cursor .magnetic {
  cursor: none;
}

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

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

ul,
ol {
  list-style: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  position: relative;
}

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.section__desc {
  max-width: 42ch;
  color: var(--gray-muted);
  font-size: 1.05rem;
}

.section__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.text-gradient {
  background: linear-gradient(120deg, var(--cyan), var(--violet) 60%, var(--cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn--sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--cyan), #0099cc);
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.3), 0 8px 32px var(--glow-cyan);
}

.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.5), 0 12px 40px var(--glow-cyan);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  border-color: rgba(0, 217, 255, 0.45);
  background: rgba(0, 217, 255, 0.06);
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.15);
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  text-align: center;
  width: min(280px, 70vw);
}

.loader__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.loader__logo span span,
.nav__logo span {
  color: var(--cyan);
}

.loader__mark,
.nav__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 24px var(--glow-cyan);
  position: relative;
  animation: markPulse 1.6s ease-in-out infinite;
}

.loader__mark::after,
.nav__mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px solid rgba(7, 9, 13, 0.6);
  border-radius: 4px;
}

@keyframes markPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px var(--glow-cyan); }
  50% { transform: scale(1.08); box-shadow: 0 0 36px var(--glow-violet); }
}

.loader__bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.loader__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 1000;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px var(--glow-cyan);
  transform-origin: left;
}

/* ---------- Custom Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s;
}

body.has-custom-cursor .cursor {
  opacity: 1;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.cursor__ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
}

.cursor.is-hover .cursor__ring {
  width: 56px;
  height: 56px;
  border-color: var(--cyan);
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.25;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  will-change: transform;
}

@media (pointer: coarse) {
  .cursor,
  .cursor-glow {
    display: none !important;
  }
  body.has-custom-cursor {
    cursor: auto;
  }
  body.has-custom-cursor a,
  body.has-custom-cursor button {
    cursor: pointer;
  }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--glass-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: var(--container);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  z-index: 2;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9rem;
  color: var(--gray-muted);
  transition: color 0.25s;
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 2;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 13, 0.96);
  backdrop-filter: blur(24px);
  display: grid;
  place-items: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu[hidden] {
  display: grid;
}

.mobile-menu ul {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(64px); }
}

.hero__aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(0, 217, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 20%, rgba(139, 92, 246, 0.2), transparent 55%),
    radial-gradient(ellipse 40% 50% at 60% 80%, rgba(0, 217, 255, 0.1), transparent 50%);
  animation: auroraMove 16s ease-in-out infinite alternate;
  filter: blur(40px);
}

@keyframes auroraMove {
  from { transform: translate(-2%, -1%) scale(1); }
  to { transform: translate(3%, 2%) scale(1.05); }
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: floatBlob 12s ease-in-out infinite;
}

.blob--1 {
  width: 380px;
  height: 380px;
  background: var(--cyan);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.blob--2 {
  width: 300px;
  height: 300px;
  background: var(--violet);
  top: 50%;
  right: 10%;
  animation-delay: -4s;
}

.blob--3 {
  width: 240px;
  height: 240px;
  background: #0066aa;
  bottom: 10%;
  left: 40%;
  animation-delay: -7s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 2rem;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero__eyebrow::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 2px;
  margin-left: 1rem;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--gray-muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 38vw);
  z-index: 2;
  perspective: 1000px;
  display: none;
}

@media (min-width: 1100px) {
  .hero__visual {
    display: block;
  }
}

.holo {
  position: relative;
  transform-style: preserve-3d;
  animation: holoFloat 6s ease-in-out infinite;
}

@keyframes holoFloat {
  0%, 100% { transform: translateY(0) rotateX(8deg) rotateY(-8deg); }
  50% { transform: translateY(-16px) rotateX(4deg) rotateY(-4deg); }
}

.holo__frame {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(0, 217, 255, 0.1),
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 217, 255, 0.12);
  overflow: hidden;
}

.holo__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.holo__header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.holo__header span:nth-child(1) { background: #ff5f57; }
.holo__header span:nth-child(2) { background: #febc2e; }
.holo__header span:nth-child(3) { background: #28c840; }

.holo__header p {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--gray-muted);
  letter-spacing: 0.04em;
}

.holo__body {
  padding: 1.25rem;
}

.holo__chart {
  height: 80px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.holo__chart svg {
  width: 100%;
  height: 100%;
}

.holo__path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawPath 3s var(--ease) forwards infinite alternate;
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

.holo__nodes {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.holo__node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--glow-cyan);
  animation: nodePulse 2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.25s);
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.holo__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.holo__metrics div {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.65rem;
  text-align: center;
}

.holo__metrics small {
  display: block;
  font-size: 0.65rem;
  color: var(--gray-muted);
  margin-bottom: 0.2rem;
}

.holo__metrics strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--cyan);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(0, 217, 255, 0.15);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit--1 {
  width: 120%;
  height: 120%;
  animation: spin 20s linear infinite;
}

.orbit--2 {
  width: 145%;
  height: 145%;
  border-color: rgba(139, 92, 246, 0.12);
  animation: spin 30s linear infinite reverse;
}

.orbit--3 {
  width: 170%;
  height: 170%;
  border-style: dashed;
  animation: spin 40s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.geo {
  position: absolute;
  border: 1px solid rgba(0, 217, 255, 0.4);
  pointer-events: none;
}

.geo--1 {
  width: 18px;
  height: 18px;
  top: -10%;
  right: 10%;
  transform: rotate(45deg);
  animation: floatGeo 5s ease-in-out infinite;
  box-shadow: 0 0 16px var(--glow-cyan);
}

.geo--2 {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  bottom: 5%;
  left: -8%;
  background: rgba(139, 92, 246, 0.4);
  border-color: var(--violet);
  animation: floatGeo 7s ease-in-out infinite reverse;
}

.geo--3 {
  width: 0;
  height: 0;
  border: none;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid rgba(0, 217, 255, 0.5);
  top: 30%;
  right: -12%;
  animation: floatGeo 6s ease-in-out infinite 1s;
}

@keyframes floatGeo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(15deg); }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 24px;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 3px;
  height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Metrics ---------- */
.metrics {
  padding-top: 0;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.metric-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(16px);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
  transform-style: preserve-3d;
}

.metric-card:hover {
  border-color: rgba(0, 217, 255, 0.35);
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.1);
}

.metric-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-card__value--text {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.metric-card__label {
  font-size: 0.9rem;
  color: var(--gray-muted);
}

/* ---------- Solutions ---------- */
.solutions__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.solution-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(16px);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
  overflow: hidden;
}

.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--cyan), var(--violet), transparent 60%);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  animation: borderGlow 4s linear infinite;
  pointer-events: none;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 217, 255, 0.12);
}

.solution-card__icon {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  transition: transform 0.4s var(--ease), color 0.4s;
}

.solution-card:hover .solution-card__icon {
  color: var(--violet);
  transform: translateZ(20px) scale(1.08);
}

.solution-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  transition: transform 0.4s var(--ease);
}

.solution-card:hover h3 {
  transform: translateZ(16px);
}

.solution-card p {
  font-size: 0.95rem;
  color: var(--gray-muted);
  transition: transform 0.4s var(--ease);
}

.solution-card:hover p {
  transform: translateZ(10px);
}

/* ---------- Why ---------- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.why__visual {
  margin-top: 3rem;
  height: 220px;
  display: grid;
  place-items: center;
}

.why__orb {
  position: relative;
  width: 160px;
  height: 160px;
}

.why__core {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 40px var(--glow-cyan), 0 0 80px var(--glow-violet);
  animation: markPulse 3s ease-in-out infinite;
}

.why__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}

.why__ring--2 {
  inset: 15%;
  border-color: rgba(139, 92, 246, 0.3);
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 18s;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s, padding-left 0.35s var(--ease);
}

.why__item:first-child {
  border-top: 1px solid var(--glass-border);
}

.why__item:hover {
  padding-left: 0.75rem;
}

.why__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  padding-top: 0.2rem;
}

.why__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.why__item p {
  font-size: 0.95rem;
  color: var(--gray-muted);
}

/* ---------- Process ---------- */
.process__track {
  position: relative;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}

.process__line {
  position: absolute;
  top: 28px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 0;
}

.process__glow {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px var(--glow-cyan);
  border-radius: 2px;
}

.process__steps {
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 1;
  min-width: max-content;
  padding: 0 0.5rem;
}

.process__step {
  width: 180px;
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.process__dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 16px var(--glow-cyan);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.process__index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.process__step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.process__step p {
  font-size: 0.875rem;
  color: var(--gray-muted);
}

/* ---------- Projects ---------- */
.projects__list {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}

.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.project--right .project__media {
  order: 2;
}

.project--right .project__content {
  order: 1;
}

.project__mockup {
  position: relative;
  border-radius: 20px;
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}

.project:hover .project__mockup {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 217, 255, 0.1);
}

.project__mockup--a {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 217, 255, 0.15), transparent 50%),
    var(--glass);
}

.project__mockup--b {
  background:
    radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.18), transparent 50%),
    var(--glass);
}

.project__mockup--c {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 217, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.12), transparent 40%),
    var(--glass);
}

.project__screen {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: var(--bg-navy);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  padding: 1rem;
}

.project__bar {
  height: 8px;
  width: 40%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 4px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.project__panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  height: calc(100% - 2rem);
}

.project__panels span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.project__panels span:first-child {
  grid-row: span 1;
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.12), transparent);
}

.project__flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  justify-content: center;
}

.project__flow span {
  height: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.project__flow span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.3), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

.project__flow span:nth-child(1) { width: 90%; }
.project__flow span:nth-child(2) { width: 70%; animation-delay: 0.3s; }
.project__flow span:nth-child(3) { width: 85%; }
.project__flow span:nth-child(4) { width: 55%; }

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.project__map {
  position: relative;
  height: 100%;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 217, 255, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 30%, rgba(139, 92, 246, 0.25) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 70%, rgba(0, 217, 255, 0.15) 0 2px, transparent 3px),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 24px 24px, 24px 24px;
  border-radius: 8px;
}

.project__map i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--glow-cyan);
  animation: nodePulse 2s ease-in-out infinite;
}

.project__map i:nth-child(1) { top: 30%; left: 28%; }
.project__map i:nth-child(2) { top: 25%; left: 58%; animation-delay: 0.4s; background: var(--violet); }
.project__map i:nth-child(3) { top: 65%; left: 48%; animation-delay: 0.8s; }
.project__map i:nth-child(4) { top: 50%; left: 75%; animation-delay: 1.2s; background: var(--violet); }

.project__cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.project__content h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.project__content > p {
  color: var(--gray-muted);
  margin-bottom: 1.25rem;
  max-width: 42ch;
}

.project__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s, margin 0.4s;
}

.project:hover .project__details {
  max-height: 80px;
  opacity: 1;
}

.project__details span {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 217, 255, 0.06);
  color: var(--gray);
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--cyan);
  transition: gap 0.3s var(--ease), color 0.3s;
}

.project__link:hover {
  gap: 0.85rem;
  color: var(--white);
}

/* ---------- Stack / Marquee ---------- */
.stack .section__header {
  margin-bottom: 2.5rem;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee__track:hover {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tech-item {
  flex-shrink: 0;
  padding: 1rem 1.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.tech-item:hover {
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.2);
  transform: translateY(-3px);
}

.tech-item__icon {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
  white-space: nowrap;
}

/* ---------- Testimonials ---------- */
.testimonials__slider {
  position: relative;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}

.testimonial {
  flex: 0 0 100%;
  padding: 2.5rem;
  max-width: 100%;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
}

.testimonial__stars {
  color: var(--cyan);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.testimonial blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 50ch;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

.testimonial__author strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.testimonial__author span {
  font-size: 0.85rem;
  color: var(--gray-muted);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.testimonials__btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 217, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}

.testimonials__dots {
  display: flex;
  gap: 0.5rem;
}

.testimonials__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.3s, background 0.3s;
}

.testimonials__dots button[aria-selected="true"] {
  width: 24px;
  border-radius: 4px;
  background: var(--cyan);
}

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.accordion__item {
  border-bottom: 1px solid var(--glass-border);
}

.accordion__item:first-child {
  border-top: 1px solid var(--glass-border);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s;
}

.accordion__trigger:hover {
  color: var(--cyan);
}

.accordion__icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  border-radius: 1px;
  transition: transform 0.35s var(--ease);
}

.accordion__icon::before {
  width: 14px;
  height: 2px;
  top: 9px;
  left: 3px;
}

.accordion__icon::after {
  width: 2px;
  height: 14px;
  top: 3px;
  left: 9px;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: rotate(90deg) scaleY(0);
}

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease), padding 0.35s;
}

.accordion__panel:not([hidden]) {
  max-height: 200px;
  padding-bottom: 1.35rem;
}

.accordion__panel[hidden] {
  display: block;
  max-height: 0;
  padding-bottom: 0;
}

.accordion__panel p {
  color: var(--gray-muted);
  font-size: 0.95rem;
  max-width: 55ch;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta__nebula {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 40% 35% at 30% 50%, rgba(0, 217, 255, 0.15), transparent 60%),
    radial-gradient(ellipse 35% 40% at 70% 40%, rgba(139, 92, 246, 0.18), transparent 55%);
  filter: blur(50px);
  animation: auroraMove 14s ease-in-out infinite alternate;
}

.cta__lines {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(0, 217, 255, 0.03) 80px,
      rgba(0, 217, 255, 0.03) 81px
    );
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}

.cta__content {
  position: relative;
  z-index: 2;
}

.cta__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.cta__text {
  font-size: 1.1rem;
  color: var(--gray-muted);
  max-width: 40ch;
  margin: 0 auto 2.5rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  background: rgba(0, 0, 0, 0.3);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  margin-top: 1rem;
  color: var(--gray-muted);
  font-size: 0.9rem;
  max-width: 28ch;
}

.footer__col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--gray-muted);
  transition: color 0.25s;
}

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

.footer__col li {
  font-size: 0.9rem;
  color: var(--gray-muted);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--gray);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.footer__social a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.2);
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--gray-muted);
}

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

  .marquee__track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .why__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .why__visual {
    display: none;
  }

  .project,
  .project--right {
    grid-template-columns: 1fr;
  }

  .project--right .project__media,
  .project--right .project__content {
    order: unset;
  }

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

@media (max-width: 768px) {
  :root {
    --container: min(100% - 2rem, 1200px);
  }

  .nav__links,
  .nav > .btn {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

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

  .metrics__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .metric-card {
    padding: 1.5rem 1rem;
  }

  .testimonial {
    padding: 1.75rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__title {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }
}

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

  .hero__actions,
  .cta__actions {
    flex-direction: column;
  }

  .hero__actions .btn,
  .cta__actions .btn {
    width: 100%;
  }
}

/* Focus styles for a11y */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline-offset: 4px;
}
