:root {
  --ink: #05070a;
  --surface: #0c1018;
  --elev: #121a26;
  --line: rgba(255, 255, 255, 0.07);
  --text: #e8edf5;
  --muted: #8a96a8;
  --cyan: #2ec5ff;
  --mint: #3ef0b3;
  --violet: #a78bfa;
  --danger: #fb7185;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Syne", var(--font);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto;
  height: 70vh;
  background:
    radial-gradient(closest-side at 20% 30%, rgba(46, 197, 255, 0.18), transparent 65%),
    radial-gradient(closest-side at 80% 20%, rgba(62, 240, 179, 0.12), transparent 60%),
    radial-gradient(closest-side at 60% 80%, rgba(167, 139, 250, 0.08), transparent 55%);
  filter: blur(0px);
  pointer-events: none;
  z-index: 0;
  animation: aurora 14s var(--ease-out) infinite alternate;
}

@keyframes aurora {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.05);
    opacity: 0.92;
  }
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.92), rgba(5, 7, 10, 0.65));
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand--footer {
  color: var(--text);
}

.brand__glyph {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(12, 18, 28, 0.95), rgba(6, 9, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.brand__glyph-ring {
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 120deg, transparent 0deg, rgba(56, 189, 248, 0.35) 90deg, transparent 160deg, rgba(167, 139, 250, 0.25) 240deg, transparent 320deg);
  animation: brandOrbit 7s linear infinite;
  opacity: 0.75;
}

@keyframes brandOrbit {
  to {
    transform: rotate(360deg);
  }
}

.brand__svg {
  position: relative;
  z-index: 1;
  display: block;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35));
  transition: transform 0.2s ease;
}

.brand:hover .brand__glyph {
  border-color: rgba(94, 234, 212, 0.35);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(94, 234, 212, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand:hover .brand__glyph-ring {
  opacity: 0.95;
}

.brand:active .brand__glyph .brand__svg {
  transform: scale(0.96);
  transition: transform 0.12s ease;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s, background 0.25s var(--ease-out);
}

.topnav__link i {
  font-size: 0.9rem;
  opacity: 0.85;
}

.topnav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.topnav__link.is-active {
  color: var(--text);
  background: rgba(62, 240, 179, 0.1);
  box-shadow: inset 0 0 0 1px rgba(62, 240, 179, 0.25);
}

.navdrawer-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--text);
  cursor: pointer;
}

.navdrawer {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.95);
  position: relative;
  z-index: 35;
}

.navdrawer a {
  color: var(--text);
  text-decoration: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--elev);
}

.navdrawer.is-open {
  display: flex;
}

@media (max-width: 880px) {
  .topnav {
    display: none;
  }

  .navdrawer-toggle {
    display: inline-grid;
    place-items: center;
  }
}

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background 0.2s;
}

.btn i {
  font-size: 0.95rem;
}

.btn--lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(120deg, var(--mint), #22d3ee 55%, var(--cyan));
  color: #041016;
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(62, 240, 179, 0.35);
}

.btn--surface {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--surface:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--mint);
  border: 1px solid rgba(62, 240, 179, 0.35);
}

.btn--ghost:hover {
  background: rgba(62, 240, 179, 0.08);
}

.btn--dark {
  background: #040608;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--dark:hover {
  border-color: rgba(62, 240, 179, 0.4);
  transform: translateY(-2px);
}

.btn__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.btn__shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  animation: shine 3.5s ease-in-out infinite;
}

@keyframes shine {
  0% {
    left: -50%;
  }
  40%,
  100% {
    left: 120%;
  }
}

/* hero */
.hero {
  position: relative;
  padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px);
}

.hero__glow {
  position: absolute;
  right: 8%;
  top: 18%;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(62, 240, 179, 0.2), transparent 55%);
  filter: blur(40px);
  animation: floaty 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floaty {
  50% {
    transform: translate3d(0, -16px, 0) scale(1.03);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__copy {
  text-align: left;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(46, 197, 255, 0.1);
  border: 1px solid rgba(46, 197, 255, 0.28);
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--mint), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.hero__stats li {
  min-width: 100px;
}

.hero__stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__stats span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* glass panel */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.panel {
  padding: 24px;
  animation: panelIn 0.9s var(--ease-out) both 0.15s;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 18px;
}

.panel__head i {
  margin-right: 6px;
  color: var(--mint);
}

.panel__dot {
  color: var(--mint);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.panel__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.panel__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.92rem;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.panel__row:last-child {
  border-bottom: none;
}

.mono {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.mono.up {
  color: var(--mint);
}

.mono.pulse {
  animation: pulseNum 1.8s ease-in-out infinite;
}

@keyframes pulseNum {
  50% {
    opacity: 0.55;
  }
}

.panel__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 88px;
  padding-top: 8px;
}

.panel__chart span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(46, 197, 255, 0.5), rgba(62, 240, 179, 0.15));
  animation: barwave 1.2s ease-in-out infinite alternate;
}

.panel__chart span:nth-child(1) {
  height: 35%;
  animation-delay: 0s;
}
.panel__chart span:nth-child(2) {
  height: 55%;
  animation-delay: 0.1s;
}
.panel__chart span:nth-child(3) {
  height: 42%;
  animation-delay: 0.2s;
}
.panel__chart span:nth-child(4) {
  height: 70%;
  animation-delay: 0.05s;
}
.panel__chart span:nth-child(5) {
  height: 48%;
  animation-delay: 0.15s;
}
.panel__chart span:nth-child(6) {
  height: 62%;
  animation-delay: 0.25s;
}
.panel__chart span:nth-child(7) {
  height: 38%;
  animation-delay: 0.12s;
}

@keyframes barwave {
  to {
    filter: brightness(1.25);
    transform: scaleY(1.08);
    transform-origin: bottom;
  }
}

/* sections */
.band {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.5), transparent);
}

.sec-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.sec-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.sec-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.step:hover {
  border-color: rgba(62, 240, 179, 0.35);
  transform: translateY(-4px);
}

.step__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.25rem;
  color: var(--cyan);
  background: rgba(46, 197, 255, 0.12);
  border: 1px solid rgba(46, 197, 255, 0.25);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.features {
  padding: clamp(40px, 6vw, 88px) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

.feat {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 10% 0%, rgba(167, 139, 250, 0.08), transparent 50%), var(--surface);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.feat:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.feat__ico {
  font-size: 1.5rem;
  margin-bottom: 14px;
  display: block;
  color: var(--violet);
}

.feat h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-strip {
  margin-bottom: clamp(40px, 6vw, 80px);
}

.cta-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius);
  border: 1px solid rgba(62, 240, 179, 0.25);
  background: linear-gradient(110deg, rgba(62, 240, 179, 0.12), rgba(46, 197, 255, 0.08));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.cta-strip h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.5rem;
}

.cta-strip p {
  margin: 0;
  color: var(--muted);
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 0;
  background: linear-gradient(0deg, #040608, transparent);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}

@media (max-width: 720px) {
  .foot__grid {
    grid-template-columns: 1fr;
  }
}

.foot__tag {
  color: var(--muted);
  max-width: 36ch;
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.foot__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.foot__cols a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.92rem;
}

.foot__cols a:hover {
  color: var(--mint);
}

.foot__h {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.foot__muted {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .hero__glow,
  .btn__shine::after,
  .panel__chart span,
  .mono.pulse {
    animation: none !important;
  }

  .brand__glyph-ring {
    animation: none !important;
    opacity: 0.4;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* apply page */
.page-apply .apply-main {
  padding-bottom: 80px;
}

.apply-head {
  padding: 36px 0 8px;
}

.apply-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.apply-lead {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

.apply-form {
  max-width: 560px;
  margin: 28px auto 0;
  padding: clamp(22px, 4vw, 36px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.field label i {
  color: var(--cyan);
  width: 1.1em;
  text-align: center;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.55);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  outline: none;
  border-color: rgba(62, 240, 179, 0.45);
  box-shadow: 0 0 0 3px rgba(62, 240, 179, 0.12);
}

.field__hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.field__err {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--danger);
  font-weight: 600;
}

.field--error input {
  border-color: rgba(251, 113, 133, 0.55);
}

.alert {
  max-width: 560px;
  margin: 20px auto 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.alert--bad {
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fecdd3;
}

.result-card {
  max-width: 520px;
  margin: 28px auto 0;
  text-align: center;
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius);
  border: 1px solid rgba(62, 240, 179, 0.3);
  background: linear-gradient(165deg, rgba(62, 240, 179, 0.12), rgba(46, 197, 255, 0.06));
}

.result-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--mint);
  background: rgba(62, 240, 179, 0.15);
  border: 1px solid rgba(62, 240, 179, 0.35);
  animation: popIn 0.55s var(--ease-out) both;
}

@keyframes popIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.result-card h2 {
  font-family: var(--display);
  margin: 0 0 10px;
}

.result-card p {
  margin: 0 0 22px;
  color: var(--muted);
}
