:root {
  color-scheme: light;
  --ink: #0d1b2a;
  --muted: #415568;
  --accent: #ff8a4a;
  --accent-2: #22b8a0;
  --accent-3: #1a6ad1;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --grid: rgba(13, 27, 42, 0.08);
  --shadow: 0 30px 80px rgba(12, 25, 38, 0.18);
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Work Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", "Menlo", monospace;
  --mx: 50%;
  --my: 50%;
  --mx-inv: 50%;
  --my-inv: 50%;
  --shift-x: 0px;
  --shift-y: 0px;
  --content-x: 0px;
  --content-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --grid-x: 0px;
  --grid-y: 0px;
  --halo-x: 0px;
  --halo-y: 0px;
  --glow: 0.8;
}

* {
  box-sizing: border-box;
}

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

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(520px circle at var(--mx) var(--my), rgba(34, 184, 160, 0.28), transparent 65%),
    radial-gradient(620px circle at var(--mx-inv) var(--my-inv), rgba(255, 138, 74, 0.28), transparent 68%),
    linear-gradient(135deg, #f7fbff 0%, #e9f2f8 42%, #dbe7f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 32px);
  position: relative;
  overflow: hidden;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: translate3d(var(--grid-x), var(--grid-y), 0);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 106, 209, 0.22), transparent 65%);
  top: -200px;
  right: -140px;
  transform: translate3d(var(--halo-x), var(--halo-y), 0);
  pointer-events: none;
  z-index: 0;
}

.stage {
  width: min(1100px, 100%);
  display: grid;
  place-items: center;
  z-index: 1;
  perspective: 1200px;
}

.hero {
  width: min(980px, 100%);
  display: grid;
  gap: clamp(20px, 4vh, 32px);
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: clamp(32px, 5vw, 58px) clamp(28px, 6vw, 64px) clamp(36px, 6vw, 64px);
  border-radius: 34px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(320px circle at var(--mx) var(--my), rgba(34, 184, 160, 0.16), transparent 65%),
    radial-gradient(360px circle at var(--mx-inv) var(--my-inv), rgba(255, 138, 74, 0.16), transparent 68%);
  opacity: 0.85;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.logo-shell {
  position: relative;
  padding: clamp(20px, 4vw, 44px);
  border-radius: 30px;
  background: var(--panel-strong);
  box-shadow: 0 24px 60px rgba(12, 25, 38, 0.18);
  transform: translate3d(var(--shift-x), var(--shift-y), 0) rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  animation: logoIn 0.9s ease-out both;
  isolation: isolate;
}

.logo-shell::before {
  content: "";
  position: absolute;
  inset: -45%;
  background:
    radial-gradient(circle at 35% 35%, rgba(34, 184, 160, 0.5), transparent 60%),
    radial-gradient(circle at 65% 60%, rgba(255, 138, 74, 0.45), transparent 68%);
  filter: blur(26px);
  opacity: var(--glow);
  z-index: 0;
  animation: haloPulse 6s ease-in-out infinite;
}

.logo-shell::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  pointer-events: none;
}

.logo-shell img {
  width: clamp(240px, 48vw, 520px);
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(12, 25, 38, 0.18));
}

.content {
  display: grid;
  gap: clamp(12px, 2.2vh, 16px);
  max-width: 640px;
  transform: translate3d(var(--content-x), var(--content-y), 0);
  transition: transform 0.2s ease-out;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.08);
  border: 1px solid rgba(13, 27, 42, 0.12);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  width: fit-content;
  justify-self: center;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 0 rgba(255, 138, 74, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

.content h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw + 1rem, 3.4rem);
  line-height: 1.05;
}

.sub {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 27, 42, 0.12);
  color: #1f2c3a;
}

.progress {
  width: min(360px, 100%);
  height: 10px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.12);
  overflow: hidden;
  margin-inline: auto;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  animation: progressFill 6.4s ease-in-out infinite;
  position: relative;
  transform-origin: left;
  transform: scaleX(0.08);
  will-change: transform;
}

.progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.28) 0,
    rgba(255, 255, 255, 0.28) 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.45;
  background-size: 22px 22px;
  animation: stripeMove 1.1s linear infinite;
}

.terminal {
  margin: 0;
  padding: clamp(18px, 3vh, 26px) clamp(16px, 3vw, 20px) clamp(14px, 2.6vh, 20px);
  border-radius: 18px;
  background: #0d1b2a;
  color: #e6f6ff;
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.6vh, 0.92rem);
  line-height: 1.6;
  text-align: left;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 32px rgba(12, 25, 38, 0.18);
  position: relative;
  width: min(420px, 100%);
  margin-inline: auto;
}

.terminal::before {
  content: "terminal";
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(230, 246, 255, 0.35);
}

.terminal code {
  display: block;
  white-space: pre;
}

.content > * {
  animation: fadeUp 0.8s ease-out both;
}

.content > *:nth-child(1) {
  animation-delay: 0.1s;
}

.content > *:nth-child(2) {
  animation-delay: 0.2s;
}

.content > *:nth-child(3) {
  animation-delay: 0.3s;
}

.content > *:nth-child(4) {
  animation-delay: 0.4s;
}

.content > *:nth-child(5) {
  animation-delay: 0.5s;
}

.content > *:nth-child(6) {
  animation-delay: 0.6s;
}

.content > *:nth-child(7) {
  animation-delay: 0.7s;
}

@keyframes logoIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes haloPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progressFill {
  0% {
    transform: scaleX(0.08);
    opacity: 0.65;
  }
  45% {
    transform: scaleX(0.58);
    opacity: 1;
  }
  70% {
    transform: scaleX(0.82);
  }
  85% {
    transform: scaleX(1);
  }
  95% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0.08);
    opacity: 0.7;
  }
}

@keyframes stripeMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 22px 22px;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 138, 74, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 138, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 138, 74, 0);
  }
}

@media (max-height: 760px) {
  .hero {
    padding: 36px 32px 40px;
    gap: 18px;
  }

  .logo-shell img {
    width: clamp(210px, 44vw, 440px);
  }

  .content {
    gap: 12px;
  }

  .terminal {
    font-size: 0.82rem;
  }
}

@media (max-height: 680px) {
  .hero {
    padding: 30px 26px 34px;
    gap: 14px;
  }

  .logo-shell img {
    width: clamp(190px, 40vw, 380px);
  }

  .terminal {
    padding: 16px 14px 14px;
  }
}

@media (max-width: 760px) {
  body {
    padding: 20px;
  }

  .hero {
    padding: 44px 24px 48px;
    gap: 26px;
  }

  .logo-shell {
    padding: 22px;
  }

  .logo-shell img {
    width: clamp(200px, 70vw, 340px);
  }

  .content h1 {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
  }

  .terminal {
    font-size: 0.82rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 34px 18px 38px;
    border-radius: 26px;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
  }

  .badge {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .content h1 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .meta {
    gap: 8px;
  }

  .terminal {
    padding: 16px 14px 14px;
    font-size: 0.78rem;
  }

  .terminal code {
    white-space: pre-wrap;
  }
}

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

  body::before,
  body::after,
  .logo-shell,
  .content {
    transform: none !important;
  }
}
