@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

* {
  box-sizing: border-box;
}

:root {
  color: #f8fbff;
  background: #050713;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --cyan: #38e8ff;
  --purple: #9f6bff;
  --pink: #ff5bd7;
  --lime: #c5ff4a;
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 28px clamp(18px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 232, 255, 0.16), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(159, 107, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #060713 0%, #090b20 48%, #04050d 100%);
}

.grid-glow {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

.orb {
  position: fixed;
  z-index: -2;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.58;
  animation: floatOrb 8s ease-in-out infinite alternate;
}

.orb-one {
  top: 120px;
  left: -120px;
  background: radial-gradient(circle, rgba(56, 232, 255, 0.55), transparent 68%);
}

.orb-two {
  right: -120px;
  bottom: 80px;
  background: radial-gradient(circle, rgba(255, 91, 215, 0.46), transparent 68%);
  animation-delay: -3s;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.site-header {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 80px rgba(56, 232, 255, 0.08);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  color: #041019;
  font-weight: 950;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 0 34px rgba(56, 232, 255, 0.45);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.035em;
}

.brand small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 3vw, 32px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(56, 232, 255, 0.9);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  width: min(1180px, 100%);
  min-height: calc(100vh - 210px);
  margin: 0 auto;
  padding: 76px 0 48px;
}

.hero-copy {
  animation: riseIn 700ms ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 10px 14px;
  border: 1px solid rgba(56, 232, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(56, 232, 255, 0.08);
  box-shadow: inset 0 0 24px rgba(56, 232, 255, 0.07);
  animation: textFloat 4s ease-in-out infinite;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 16px var(--lime);
}

h1 {
  max-width: 760px;
  min-height: 2.65em;
  margin: 0;
  color: #f8fbff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(3.1rem, 7.5vw, 7.2rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-shadow: 0 0 42px rgba(56, 232, 255, 0.12);
  animation: riseIn 800ms ease both;
}

.typing-title {
  display: block;
  animation: titleLoopReset 5.8s ease-in-out infinite;
}

.title-word {
  display: inline-block;
  color: #f8fbff;
  opacity: 0;
  animation: wordTypeLoop 5.8s cubic-bezier(0.2, 0.9, 0.2, 1) infinite;
}

.title-word:nth-of-type(1) {
  color: #b993ff;
  animation-delay: 0s;
}

.title-word:nth-of-type(2) {
  animation-delay: 0.16s;
}

.title-word:nth-of-type(3) {
  animation-delay: 0.32s;
}

.title-word:nth-of-type(4) {
  animation-delay: 0.48s;
}

.title-word:nth-of-type(5) {
  animation-delay: 0.64s;
}

.title-word:nth-of-type(6) {
  animation-delay: 0.8s;
}

.title-highlight {
  position: relative;
  z-index: 1;
  margin-inline: 0.02em;
  color: transparent;
  background: linear-gradient(110deg, #ffffff 0%, #38e8ff 28%, #c5ff4a 58%, #ffffff 88%);
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 30px rgba(56, 232, 255, 0.42);
  animation: wordTypeLoop 5.8s 0.16s cubic-bezier(0.2, 0.9, 0.2, 1) infinite, linkGradientFlow 2.4s ease-in-out infinite;
}

.title-highlight::before,
.title-highlight::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.title-highlight::before {
  right: 0.02em;
  bottom: 0.02em;
  left: 0.02em;
  z-index: -1;
  height: 0.1em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--cyan));
  background-size: 200% auto;
  box-shadow: 0 0 22px rgba(56, 232, 255, 0.55);
  animation: underlineFlow 1.8s ease-in-out infinite;
}

.title-highlight::after {
  inset: -0.08em -0.1em;
  z-index: -2;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 232, 255, 0.16), transparent 68%);
  filter: blur(10px);
  animation: softGlow 2.2s ease-in-out infinite;
}

.typing-cursor {
  display: inline-block;
  margin-left: 0.08em;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(56, 232, 255, 0.9);
  animation: cursorBlink 850ms steps(1) infinite, cursorLoop 5.8s ease-in-out infinite;
}

.hero-copy p {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 500;
  line-height: 1.8;
  animation: fadeSlideUp 850ms 140ms ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  animation: fadeSlideUp 850ms 260ms ease both;
}

.primary-button,
.ghost-button,
.generate-button,
.result-box button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-button,
.ghost-button {
  padding: 14px 20px;
}

.primary-button,
.generate-button {
  color: #041019;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 0 36px rgba(56, 232, 255, 0.28);
}

.ghost-button {
  border: 1px solid var(--line);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.primary-button:hover,
.ghost-button:hover,
.generate-button:hover,
.result-box button:hover {
  transform: translateY(-2px);
}

.generator-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.42), 0 0 80px rgba(159, 107, 255, 0.13);
  animation: riseIn 800ms 120ms ease both;
}

.card-shine {
  position: absolute;
  inset: -40% auto auto -45%;
  width: 90%;
  height: 90%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: cardSweep 5s ease-in-out infinite;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.72);
}

.card-header p {
  margin: 0;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #43ff9b;
  box-shadow: 0 0 18px #43ff9b;
}

label {
  display: block;
  margin: 18px 0 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  outline: none;
  padding: 15px 16px;
  color: #ffffff;
  background: rgba(7, 10, 27, 0.76);
  box-shadow: inset 0 0 0 1px transparent;
  font-weight: 600;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

select option {
  color: #111827;
}

input:focus,
select:focus {
  border-color: rgba(56, 232, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(56, 232, 255, 0.12), 0 0 28px rgba(56, 232, 255, 0.16);
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.generate-button {
  width: 100%;
  margin-top: 22px;
  padding: 16px 18px;
  font-size: 1rem;
}

.error-text {
  margin: 14px 0 0;
  color: #ff9bbb;
}

.result-box {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(56, 232, 255, 0.18);
  border-radius: 22px;
  background: rgba(56, 232, 255, 0.07);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease, transform 220ms ease;
}

.result-box::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 45%, transparent 72%);
  transform: translateX(-120%);
}

.result-box-active {
  border-color: rgba(197, 255, 74, 0.62);
  background: linear-gradient(135deg, rgba(56, 232, 255, 0.13), rgba(197, 255, 74, 0.1));
  box-shadow: 0 0 0 1px rgba(197, 255, 74, 0.12), 0 0 36px rgba(56, 232, 255, 0.24), inset 0 0 28px rgba(197, 255, 74, 0.08);
  transform: translateY(-1px);
  animation: resultPulse 2.4s ease-in-out infinite;
}

.result-box-active::before {
  opacity: 1;
  animation: resultSweep 2.8s ease-in-out infinite;
}

.result-box span {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-box-active span {
  color: transparent;
  font-weight: 850;
  background: linear-gradient(90deg, #ffffff, var(--cyan), var(--lime), #ffffff);
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 18px rgba(56, 232, 255, 0.18);
  animation: linkGlowText 2.6s ease-in-out infinite;
}

.result-box button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 11px 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 0 28px rgba(255, 91, 215, 0.22);
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto 64px;
}

.stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.stat-card strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  letter-spacing: -0.05em;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer {
  padding: 24px 0 12px;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.site-footer a:hover {
  color: #ffffff;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleShine {
  0%, 100% {
    background-position: 0% center;
    filter: drop-shadow(0 0 0 rgba(56, 232, 255, 0));
  }

  50% {
    background-position: 100% center;
    filter: drop-shadow(0 0 22px rgba(56, 232, 255, 0.2));
  }
}

@keyframes textFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes wordReveal {
  from {
    opacity: 0;
    transform: translateY(0.22em) scale(0.96);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes wordTypeLoop {
  0%, 5% {
    opacity: 0;
    transform: translateY(0.22em) scale(0.96);
    filter: blur(8px);
  }

  14%, 78% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  88%, 100% {
    opacity: 0;
    transform: translateY(-0.12em) scale(0.98);
    filter: blur(8px);
  }
}

@keyframes titleLoopReset {
  0%, 86% {
    transform: translateY(0);
  }

  93% {
    transform: translateY(-0.02em);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes highlightPulse {
  0%, 100% {
    box-shadow: 0 18px 48px rgba(0, 92, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  50% {
    box-shadow: 0 22px 62px rgba(0, 128, 255, 0.44), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  }
}

@keyframes highlightSweep {
  0%, 42% {
    transform: translateX(-130%);
  }

  78%, 100% {
    transform: translateX(130%);
  }
}

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

  50% {
    background-position: 100% center;
  }
}

@keyframes underlineFlow {
  0%, 100% {
    background-position: 0% center;
    transform: scaleX(0.9);
  }

  50% {
    background-position: 100% center;
    transform: scaleX(1);
  }
}

@keyframes softGlow {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes cursorBlink {
  0%, 45% {
    opacity: 1;
  }

  46%, 100% {
    opacity: 0;
  }
}

@keyframes cursorLoop {
  0%, 12% {
    transform: scaleY(0.2);
  }

  20%, 82% {
    transform: scaleY(1);
  }

  90%, 100% {
    transform: scaleY(0.2);
  }
}

@keyframes resultPulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(197, 255, 74, 0.12), 0 0 30px rgba(56, 232, 255, 0.2), inset 0 0 24px rgba(197, 255, 74, 0.06);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(197, 255, 74, 0.24), 0 0 52px rgba(56, 232, 255, 0.34), inset 0 0 36px rgba(197, 255, 74, 0.12);
  }
}

@keyframes resultSweep {
  0%, 35% {
    transform: translateX(-120%);
  }

  70%, 100% {
    transform: translateX(120%);
  }
}

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

  50% {
    background-position: 100% center;
  }
}

@keyframes floatOrb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(34px, -28px, 0) scale(1.08);
  }
}

@keyframes cardSweep {
  0%, 45% {
    transform: translateX(-20%) rotate(25deg);
  }

  80%, 100% {
    transform: translateX(190%) rotate(25deg);
  }
}

@media (max-width: 920px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  .hero-actions {
    justify-content: center;
  }

  .hero-copy p {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer,
  .stats-section,
  .input-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .stats-section {
    display: grid;
  }

  .result-box {
    align-items: stretch;
    flex-direction: column;
  }

  .result-box span {
    white-space: normal;
    word-break: break-all;
  }

  .result-box button {
    width: 100%;
  }
}
