/* =========================================================
   KODALIS — Design system
   ========================================================= */
:root {
  --bg: #06090f;
  --bg-elev: #0b1220;
  --ink: #e8eef9;
  --muted: #8b9bb8;
  --line: rgba(148, 176, 220, 0.14);
  --blue: #2b6cff;
  --blue-bright: #5ec8ff;
  --blue-deep: #0b2f9e;
  --navy: #07122a;
  --white: #ffffff;
  --radius: 18px;
  --font-display: "Syne", sans-serif;
  --font-body: "Sora", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

em {
  font-style: normal;
  background: linear-gradient(120deg, var(--blue-bright), var(--blue) 55%, #8ab4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Atmosphere layers */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(43, 108, 255, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: screen;
  will-change: transform;
}

.cursor-glow.is-on {
  opacity: 1;
}

#aurora {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(6, 9, 15, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
}

.nav__brand img {
  width: 42px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(32, 196, 180, 0.4));
}

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

.nav__links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.25s;
}

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

.nav__cta {
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  border: 1px solid rgba(94, 200, 255, 0.35);
  color: var(--white) !important;
  background: linear-gradient(180deg, rgba(43, 108, 255, 0.22), rgba(43, 108, 255, 0.05));
}

.nav__cta:hover {
  border-color: rgba(94, 200, 255, 0.7);
  background: linear-gradient(180deg, rgba(43, 108, 255, 0.4), rgba(43, 108, 255, 0.12));
}

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease);
}

.nav__burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 35;
  background: rgba(6, 9, 15, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 1.25rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, #3d7dff 0%, #1a4fe8 48%, #0b2f9e 100%);
  box-shadow:
    0 0 0 1px rgba(94, 200, 255, 0.25),
    0 12px 40px rgba(43, 108, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(94, 200, 255, 0.45),
    0 18px 50px rgba(43, 108, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: rgba(94, 200, 255, 0.4);
  background: rgba(43, 108, 255, 0.08);
}

.btn--lg {
  padding: 1.05rem 1.7rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding:
    calc(var(--nav-h) + 2.5rem)
    clamp(1.25rem, 4vw, 3rem)
    5rem;
  overflow: hidden;
}

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

.hero__matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 55%, transparent 92%),
    linear-gradient(180deg, black 0%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 55%, transparent 92%),
    linear-gradient(180deg, black 0%, black 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero__orb--a {
  width: min(55vw, 560px);
  height: min(55vw, 560px);
  top: -10%;
  right: 5%;
  background: radial-gradient(circle, rgba(43, 108, 255, 0.45), transparent 70%);
}

.hero__orb--b {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  bottom: 5%;
  left: -5%;
  background: radial-gradient(circle, rgba(94, 200, 255, 0.22), transparent 70%);
  animation-delay: -4s;
}

.hero__grid {
  position: absolute;
  inset: 10% -10% -20%;
  background-image:
    linear-gradient(rgba(94, 200, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 200, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 70% 45%, black 20%, transparent 75%);
  transform: perspective(800px) rotateX(58deg) scale(1.4);
  transform-origin: center top;
  animation: gridPulse 8s ease-in-out infinite;
}

.hero__ring {
  position: absolute;
  right: 8%;
  top: 18%;
  width: min(42vw, 460px);
  height: min(42vw, 460px);
  border: 1px solid rgba(94, 200, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    inset 0 0 60px rgba(43, 108, 255, 0.08),
    0 0 80px rgba(43, 108, 255, 0.08);
  animation: spinSlow 48s linear infinite;
}

.hero__ring::before,
.hero__ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(94, 200, 255, 0.15);
}

.hero__ring::after {
  inset: 28%;
  border-style: solid;
  border-color: rgba(43, 108, 255, 0.18);
}

.hero__content,
.hero__visual {
  position: relative;
  z-index: 2;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero__logo {
  width: clamp(160px, 22vw, 260px);
  height: auto;
  filter: drop-shadow(0 10px 40px rgba(32, 196, 180, 0.45));
  animation: logoFloat 5.5s ease-in-out infinite;
}

.hero__name {
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  letter-spacing: 0.08em;
  font-weight: 800;
  line-height: 0.92;
  background: linear-gradient(180deg, #ffffff 20%, #a9c4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 60px rgba(43, 108, 255, 0.25);
}

.hero__tagline {
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  color: var(--muted);
  font-weight: 300;
  max-width: 28ch;
  margin-bottom: 2rem;
  line-height: 1.55;
}

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

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid rgba(148, 176, 220, 0.35);
  border-radius: 20px;
  z-index: 3;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--blue-bright);
  animation: scrollDot 1.8s var(--ease) infinite;
}

/* Code stage visual */
.code-stage {
  position: relative;
  width: min(100%, 520px);
  margin-left: auto;
  perspective: 900px;
}

.code-stage__frame {
  border-radius: 20px;
  border: 1px solid rgba(148, 176, 220, 0.18);
  background:
    radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 30%), rgba(94, 200, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(17, 28, 52, 0.92), rgba(8, 14, 28, 0.95));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(94, 200, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  will-change: transform;
  transform: perspective(900px) rotateY(-10deg) rotateX(6deg);
  transition: box-shadow 0.4s var(--ease);
}

.code-stage__chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.code-stage__chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a4660;
}

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

.code-stage__chrome em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: none;
  -webkit-text-fill-color: initial;
}

.code-stage__body {
  margin: 0;
  padding: 1.4rem 1.35rem 1.6rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  line-height: 1.7;
  color: #c9d7f2;
  overflow: hidden;
  min-height: 12.5rem;
  position: relative;
}

.caret {
  display: inline-block;
  width: 0.55ch;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--blue-bright);
  box-shadow: 0 0 10px rgba(94, 200, 255, 0.7);
  animation: caretBlink 1s steps(1) infinite;
}

.caret.is-done {
  opacity: 0;
  animation: none;
}

.c-kw { color: #7aa2ff; }
.c-fn { color: #5ec8ff; }
.c-str { color: #9ddea8; }
.c-num { color: #ffd48a; }

.float-chip {
  position: absolute;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  border: 1px solid rgba(94, 200, 255, 0.28);
  background: rgba(8, 14, 28, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: chipFloat 6s ease-in-out infinite;
  white-space: nowrap;
  z-index: 3;
}

.float-chip--1 { top: -1.4rem; left: -1.2rem; animation-delay: 0s; }
.float-chip--2 { right: -1.4rem; top: 48%; animation-delay: -2s; }
.float-chip--3 { bottom: -1.2rem; left: 12%; animation-delay: -3.5s; }

/* Marquee */
.marquee {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(43, 108, 255, 0.08), transparent 30%, transparent 70%, rgba(94, 200, 255, 0.06));
  overflow: hidden;
  padding: 1.1rem 0;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee__track i {
  font-style: normal;
  color: var(--blue-bright);
  opacity: 0.7;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vw, 8.5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--blue-bright);
  margin-bottom: 1rem;
}

.section__head h2 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 1.15rem;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
  font-weight: 300;
}

/* Expertise */
.expertise__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.expertise__item {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease);
}

.expertise__item::before {
  content: "";
  position: absolute;
  inset: auto -10% -50% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(43, 108, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.expertise__item:hover {
  transform: translateY(-2px);
}

.expertise__item--accent {
  border-top-color: rgba(94, 200, 255, 0.45);
}

.expertise__index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--blue-bright);
  margin-bottom: 1.4rem;
}

.expertise__item h3 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0.85rem;
}

.expertise__item > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.expertise__item ul {
  display: grid;
  gap: 0.65rem;
}

.expertise__item li {
  position: relative;
  padding-left: 1.15rem;
  color: #c5d2ea;
  font-size: 0.94rem;
}

.expertise__item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 10px rgba(94, 200, 255, 0.7);
}

/* Statement */
.statement {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(43, 108, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(7, 18, 42, 0.4), transparent);
}

.statement__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.statement__code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: rgba(94, 200, 255, 0.45);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.statement__inner .statement__code:last-child {
  margin: 1.25rem 0 0;
}

.statement blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.statement blockquote span {
  background: linear-gradient(120deg, var(--blue-bright), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0;
  counter-reset: step;
  border-left: 1px solid var(--line);
  margin-left: 0.75rem;
}

.timeline__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 0 0 2.5rem 1.5rem;
  position: relative;
}

.timeline__step:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -0.75rem;
  top: 0.15rem;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: -1px;
}

.timeline__marker span {
  position: absolute;
  left: 2.1rem;
  top: -0.1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--blue-bright);
}

.timeline__marker::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 6px rgba(43, 108, 255, 0.15), 0 0 20px rgba(94, 200, 255, 0.35);
}

.timeline__body {
  padding-left: 2.5rem;
}

.timeline__body h3 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.timeline__body p {
  color: var(--muted);
  max-width: 48ch;
  font-weight: 300;
}

/* SaaS */
.saas {
  max-width: 1200px;
}

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

.saas__copy h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 1.1rem;
}

.saas__list {
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}

.saas__list li {
  display: grid;
  gap: 0.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--blue);
}

.saas__list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.saas__panel {
  perspective: 900px;
}

.dash {
  border-radius: 22px;
  border: 1px solid rgba(148, 176, 220, 0.18);
  background:
    radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 30%), rgba(94, 200, 255, 0.16), transparent 55%),
    linear-gradient(160deg, rgba(20, 34, 64, 0.9), rgba(8, 14, 28, 0.95));
  padding: 1.25rem;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  will-change: transform;
  transform: perspective(900px) rotateY(10deg) rotateX(5deg);
  transition: box-shadow 0.4s var(--ease);
}

.tilt-active {
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(94, 200, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dash__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.dash__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.dash__pills {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ddea8;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(157, 222, 168, 0.3);
  background: rgba(157, 222, 168, 0.08);
}

.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 10px #3ddc84;
  animation: blink 1.6s ease-in-out infinite;
}

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

.metric {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.metric small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.metric strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.dash__chart {
  height: 110px;
  margin-bottom: 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
}

.dash__chart-label {
  position: absolute;
  top: 0.55rem;
  left: 0.75rem;
  z-index: 1;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash__chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2.4s var(--ease) forwards;
}

.dash__row {
  display: grid;
  gap: 0.7rem;
}

.dash__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.dash__bar em {
  font-style: normal;
  font-size: 0.72rem;
  color: #5eead4;
  background: none;
  -webkit-text-fill-color: initial;
  letter-spacing: 0.02em;
}

.dash__bar i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
  order: 2;
}

.dash__bar i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, #0b6b62, #20c4b4, #5eead4);
  box-shadow: 0 0 12px rgba(94, 200, 255, 0.45);
  transform: scaleX(0);
  transform-origin: left;
  animation: barGrow 1.4s var(--ease) forwards;
  animation-delay: 0.4s;
}

.dash__bar span {
  order: 1;
}

/* Stack orbit */
.stack {
  text-align: center;
}

.stack .section__head {
  margin-left: auto;
  margin-right: auto;
}

.stack__orbit {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin: 0 auto 2rem;
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease);
}

.stack__pulse {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px solid rgba(32, 196, 180, 0.35);
  animation: stackPulse 3.6s var(--ease) infinite;
  pointer-events: none;
}

.stack__pulse--delay {
  inset: 8%;
  animation-delay: 1.2s;
  border-color: rgba(94, 200, 255, 0.22);
}

.stack__core {
  position: absolute;
  inset: 50%;
  width: 118px;
  height: 118px;
  margin: -59px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(94, 234, 212, 0.35), rgba(11, 80, 90, 0.4));
  border: 1px solid rgba(94, 234, 212, 0.45);
  box-shadow:
    0 0 40px rgba(32, 196, 180, 0.45),
    0 0 80px rgba(43, 108, 255, 0.2),
    inset 0 0 30px rgba(94, 234, 212, 0.12);
  z-index: 2;
  animation: coreBreath 4s ease-in-out infinite;
}

.stack__core img {
  filter: drop-shadow(0 0 12px rgba(94, 234, 212, 0.55));
}

.stack__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(148, 176, 220, 0.18);
  animation: spinSlow 40s linear infinite;
}

.stack__ring--1 {
  inset: 16%;
  animation-duration: 32s;
  border-color: rgba(32, 196, 180, 0.22);
}

.stack__ring--2 {
  inset: 0;
  animation-direction: reverse;
  animation-duration: 55s;
}

.stack__ring span {
  --step: calc(360deg / var(--count, 6));
  --radius: 150px;
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid rgba(94, 234, 212, 0.3);
  background: rgba(8, 14, 28, 0.88);
  color: var(--ink);
  box-shadow: 0 0 18px rgba(32, 196, 180, 0.12);
  transform:
    rotate(calc(var(--i) * var(--step))) translate(var(--radius)) rotate(calc(var(--i) * var(--step) * -1));
  animation: counterSpinFlex 32s linear infinite;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
  cursor: default;
}

.stack__ring span:hover {
  border-color: rgba(94, 234, 212, 0.8);
  background: rgba(12, 40, 48, 0.95);
  box-shadow: 0 0 28px rgba(32, 196, 180, 0.45);
  color: #fff;
  z-index: 5;
}

.stack__ring--1 span {
  --radius: 125px;
  animation-duration: 32s;
}

.stack__ring--2 span {
  --radius: 230px;
  animation-name: counterSpinFlexRev;
  animation-duration: 55s;
}

.stack__note {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto;
  font-weight: 300;
}

@keyframes stackPulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes coreBreath {
  0%, 100% { box-shadow: 0 0 40px rgba(32, 196, 180, 0.4), 0 0 80px rgba(43, 108, 255, 0.18), inset 0 0 30px rgba(94, 234, 212, 0.1); }
  50% { box-shadow: 0 0 60px rgba(32, 196, 180, 0.65), 0 0 110px rgba(43, 108, 255, 0.28), inset 0 0 40px rgba(94, 234, 212, 0.18); }
}

@keyframes counterSpinFlex {
  to {
    transform:
      rotate(calc(var(--i) * var(--step) + 360deg))
      translate(var(--radius))
      rotate(calc(var(--i) * var(--step) * -1 - 360deg));
  }
}

@keyframes counterSpinFlexRev {
  to {
    transform:
      rotate(calc(var(--i) * var(--step) - 360deg))
      translate(var(--radius))
      rotate(calc(var(--i) * var(--step) * -1 + 360deg));
  }
}

/* Contact */
.contact {
  max-width: 900px;
  text-align: center;
  padding-bottom: clamp(6rem, 14vw, 9rem);
}

.contact__glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(80vw, 700px);
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(43, 108, 255, 0.28), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.contact__inner {
  position: relative;
}

.contact h2 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 1.1rem;
}

.contact .lede {
  margin: 0 auto 2rem;
}

.contact__actions {
  display: flex;
  justify-content: center;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ink);
}

.footer__brand img {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(32, 196, 180, 0.35));
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--delay, 0) * 1ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Animations */
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-30px, 40px) scale(1.08); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

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

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

@keyframes counterSpin {
  to { transform: rotate(calc(var(--i) * 90deg + 360deg)) translate(115px) rotate(calc(var(--i) * -90deg - 360deg)); }
}

@keyframes counterSpinRev {
  to { transform: rotate(calc(var(--i) * 60deg - 360deg)) translate(210px) rotate(calc(var(--i) * -60deg + 360deg)); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

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

@keyframes barGrow {
  to { transform: scaleX(1); }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}

@keyframes caretBlink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 4rem;
  }

  .hero__visual {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .code-stage {
    margin: 0 auto;
  }

  .hero__brand {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero__content {
    text-align: center;
  }

  .hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__ring {
    opacity: 0.4;
  }

  .expertise__grid,
  .saas__layout {
    grid-template-columns: 1fr;
  }

  .dash {
    transform: none !important;
  }

  .code-stage__frame {
    transform: none !important;
  }

  .stack__ring--1 span {
    --radius: min(28vw, 110px);
  }

  .stack__ring--2 span {
    --radius: min(42vw, 165px);
  }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .float-chip--2,
  .float-chip--3 {
    display: none;
  }

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

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .stack__orbit {
    width: min(100%, 340px);
  }

  .stack__ring--1 span {
    --radius: 88px;
    font-size: 0.62rem;
    padding: 0.35rem 0.55rem;
  }

  .stack__ring--2 span {
    --radius: 140px;
    font-size: 0.62rem;
    padding: 0.35rem 0.55rem;
  }
}

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

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

  html {
    scroll-behavior: auto;
  }
}
