:root {
  --bg-deep: #060b16;
  --bg-navy: #0b162c;
  --bg-card: rgba(15, 25, 48, 0.62);
  --bg-card-hover: rgba(20, 33, 62, 0.82);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(255, 107, 0, 0.42);
  --orange: #ff6b00;
  --orange-bright: #ff9436;
  --violet: #7c4dff;
  --emerald: #10b981;
  --sky: #38bdf8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.36;
  z-index: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.aurora-orange {
  width: 540px;
  height: 540px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.55) 0%, rgba(255, 107, 0, 0) 70%);
  animation: driftA 16s ease-in-out infinite alternate;
}

.aurora-violet {
  width: 600px;
  height: 600px;
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(108, 60, 233, 0.5) 0%, rgba(108, 60, 233, 0) 70%);
  animation: driftB 20s ease-in-out infinite alternate;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 20%, transparent 100%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px 24px 36px;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 24px;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mini-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-mini-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.accent-o {
  color: var(--orange);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.domain-chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.is-active {
  background: linear-gradient(135deg, var(--orange), #ff5500);
  color: #ffffff;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0 40px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 107, 0, 0.11);
  border: 1px solid rgba(255, 107, 0, 0.32);
  color: #ffb37a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
  animation: pulseBeacon 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Emblem Stage */
.emblem-stage {
  position: relative;
  margin: 34px 0 26px;
  display: grid;
  place-items: center;
  width: 340px;
  max-width: 100%;
  height: 148px;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.16);
  pointer-events: none;
}

.orbit-outer {
  width: 300px;
  height: 136px;
  border-radius: 999px;
  animation: breathe 6s ease-in-out infinite;
}

.orbit-inner {
  width: 244px;
  height: 112px;
  border-radius: 999px;
  border-color: rgba(255, 107, 0, 0.24);
  animation: breathe 6s ease-in-out infinite reverse;
}

.emblem-card {
  position: relative;
  padding: 16px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(17, 29, 56, 0.88), rgba(9, 16, 33, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 24px 60px -16px rgba(0, 0, 0, 0.75),
    0 0 42px -12px rgba(255, 107, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.hero-logo-svg {
  width: 248px;
  max-width: 72vw;
  height: auto;
  display: block;
}

.logo-wordmark {
  font-family: var(--font-sans);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.logo-pin {
  transform-origin: 56px 73px;
  animation: pinFloat 3.6s ease-in-out infinite;
}

.pin-ripple {
  transform-origin: 56px 76px;
  animation: rippleWave 3.6s ease-out infinite;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.15rem, 5.2vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 820px;
}

.title-gradient {
  display: inline-block;
  background: linear-gradient(120deg, #ff9436 0%, #ff6b00 48%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 20px auto 0;
  max-width: 660px;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Flow Strip */
.live-flow {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.flow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  font-weight: 600;
  color: #e2e8f0;
  backdrop-filter: blur(10px);
}

.flow-chip-highlight {
  border-color: rgba(124, 77, 255, 0.42);
  background: rgba(124, 77, 255, 0.12);
}

.flow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-orange {
  background: var(--orange);
}

.dot-violet {
  background: var(--violet);
}

.dot-emerald {
  background: var(--emerald);
}

.flow-arrow {
  color: var(--text-muted);
  font-weight: 700;
}

/* Features Grid */
.features {
  margin-top: 52px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}

.feature-card {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    background-color 0.28s ease,
    box-shadow 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 20px 44px -20px rgba(255, 107, 0, 0.3);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.icon-orange {
  background: rgba(255, 107, 0, 0.14);
  color: var(--orange-bright);
  border: 1px solid rgba(255, 107, 0, 0.26);
}

.icon-violet {
  background: rgba(124, 77, 255, 0.15);
  color: #b794f4;
  border: 1px solid rgba(124, 77, 255, 0.28);
}

.icon-sky {
  background: rgba(56, 189, 248, 0.14);
  color: var(--sky);
  border: 1px solid rgba(56, 189, 248, 0.26);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.26);
}

.feature-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.footer-note {
  margin: 0;
}

/* Reveal entrance */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes pulseBeacon {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.75);
  }
  70% {
    box-shadow: 0 0 0 11px rgba(255, 107, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
  }
}

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

@keyframes rippleWave {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.95;
  }
}

@keyframes driftA {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-45px, 35px) scale(1.08);
  }
}

@keyframes driftB {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(50px, -40px) scale(1.1);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page {
    padding: 18px 16px 28px;
  }

  .domain-chip {
    display: none;
  }

  .features {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .flow-arrow {
    display: none;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora,
  .pulse-dot,
  .orbit,
  .logo-pin,
  .pin-ripple {
    animation: none;
  }

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