/* Force Arimo Bold Italic for the brand wordmark (avoids upright fallback). */
@font-face {
  font-family: 'Arimo Brand';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/arimo/v36/P5sdzZCDf9_T_10c3i9MeUcyat4iJY9jQyrDfQY.woff2')
    format('woff2');
}

:root {
  --bg0: #07090e;
  --bg1: #0e1420;
  --ink: #f2f5f8;
  --muted: #9aa8b8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #2ee59d; /* = colors.brand / colors.accent in src/constants/theme.ts */
  --accent-dim: #1aad74; /* = colors.brandMuted / colors.accentMuted */
  --danger: #ff7a7a;
  --ok: #2ee59d;
  --font-display: 'Arimo', system-ui, sans-serif;
  --font-body: 'Arimo', system-ui, sans-serif;
  --font-brand: 'Arimo Brand', 'Arimo', system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg0);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(46, 229, 157, 0.16), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(91, 141, 239, 0.18), transparent 50%),
    linear-gradient(165deg, var(--bg1) 0%, var(--bg0) 55%, #05070b 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  left: -8%;
  top: 18%;
  background: rgba(46, 229, 157, 0.22);
}

.orb-b {
  width: min(60vw, 480px);
  height: min(60vw, 480px);
  right: -12%;
  bottom: -10%;
  background: rgba(91, 141, 239, 0.2);
  animation-delay: -6s;
  animation-duration: 22s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  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;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, -4%, 0) scale(1.06);
  }
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 4vh, 2.5rem);
  display: flex;
  flex-direction: column;
}

.stage-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-style: italic;
  font-synthesis: none;
  font-size: clamp(3.4rem, 12vw, 5.5rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background: none;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.6vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 18ch;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.lede {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.claim {
  display: grid;
  gap: 1rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

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

.field {
  display: grid;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.input-wrap {
  width: 100%;
}

.field input {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.55);
  color: var(--ink);
  border-radius: 0;
  padding: 0.95rem 1rem;
  font: 500 1rem/1.2 var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.55);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.input-wrap:focus-within,
.field > input:focus {
  border-color: rgba(46, 229, 157, 0.55);
  background: rgba(10, 16, 24, 0.8);
}

.prefix {
  padding-left: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.input-wrap input {
  border: 0;
  background: transparent;
  padding-left: 0.35rem;
}

.input-wrap input:focus {
  outline: none;
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.cta {
  margin-top: 0.35rem;
  border: 0;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #04140e;
  background: linear-gradient(120deg, var(--accent), #7dffc4 55%, var(--accent-dim));
  background-size: 160% 100%;
  transition: transform 0.2s ease, background-position 0.35s ease, opacity 0.2s ease;
}

.cta:hover:not(:disabled) {
  transform: translateY(-1px);
  background-position: 100% 0;
}

.cta:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status {
  min-height: 1.4em;
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.status.is-error {
  color: var(--danger);
}

.status.is-ok {
  color: var(--ok);
}

.site-footer {
  flex-shrink: 0;
  margin-top: 2rem;
  padding-top: 0.5rem;
  display: flex;
  justify-content: center;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

@media (max-width: 520px) {
  .brand {
    font-size: clamp(3rem, 16vw, 4.2rem);
  }

  .logo {
    width: 72px;
    height: 72px;
  }
}
