/* Groxza marketing site — sci-fi / futuristic creator-tech theme.
   Palette keeps the app/core/designsystem Color.kt brand hues (orange/pink/purple/blue),
   layered with a cyan "HUD" accent, glass panels, neon glow and scroll/parallax motion. */

:root {
  --bg: #03040d;
  --bg-2: #070a1c;
  --surface: rgba(18, 22, 46, 0.55);
  --surface-2: rgba(24, 29, 58, 0.72);
  --border: rgba(120, 140, 255, 0.16);
  --border-strong: rgba(0, 229, 255, 0.45);
  --text: #eef1ff;
  --text-dim: #97a1c9;
  --orange: #f97316;
  --pink: #ec1e79;
  --purple: #8b3fe0;
  --violet: #6d28d9;
  --blue: #2563eb;
  --cyan: #22e1ff;
  --primary: #3454d1;
  --coral: #e0604a;
  --success: #22e5a0;
  --gradient: linear-gradient(120deg, var(--cyan), var(--purple) 40%, var(--pink) 72%, var(--orange));
  --glow-cyan: 0 0 1px rgba(34, 225, 255, 0.6), 0 0 28px rgba(34, 225, 255, 0.28);
  --glow-pink: 0 0 28px rgba(236, 30, 121, 0.35);
  --radius: 18px;
  --max-width: 1120px;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ---------- Ambient backdrop: starfield canvas + grid floor + scanlines ---------- */
#fx-stars {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

body::before {
  /* deep-space gradient wash */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(139, 63, 224, 0.22), transparent 60%),
    radial-gradient(700px 500px at 110% 10%, rgba(34, 225, 255, 0.14), transparent 60%),
    radial-gradient(800px 700px at 50% 120%, rgba(236, 30, 121, 0.12), transparent 60%),
    var(--bg);
}

body::after {
  /* faint CRT scanlines drifting downward — pure ambience, disabled on reduced motion */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 3px,
    transparent 4px
  );
  background-size: 100% 4px;
  animation: scan-drift 9s linear infinite;
}

@keyframes scan-drift {
  from { background-position: 0 0; }
  to { background-position: 0 400px; }
}

.grid-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 340px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 225, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 225, 255, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  transform: perspective(280px) rotateX(58deg) scale(1.4);
  transform-origin: bottom;
}

/* ---------- Reveal-on-scroll + parallax ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.parallax {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  #fx-stars,
  body::after,
  .grid-floor,
  .orbit-ring {
    display: none !important;
  }
  .kinetic-line {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  box-shadow: var(--glow-cyan);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 5, 16, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.is-scrolled {
  background: rgba(4, 5, 16, 0.86);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 1px 0 rgba(34, 225, 255, 0.18), 0 20px 40px -24px rgba(0, 0, 0, 0.6);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  box-shadow: var(--glow-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.94rem;
  color: var(--text-dim);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-links a.is-active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(236, 30, 121, 0.55);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(236, 30, 121, 0.7), var(--glow-cyan);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow-cyan);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(139, 63, 224, 0.32), rgba(34, 225, 255, 0.12) 45%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 229, 160, 0.6);
  animation: pulse-dot 2s var(--ease) infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34, 229, 160, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 229, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 229, 160, 0); }
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.kinetic-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.03;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.kinetic-line {
  display: block;
  opacity: 0;
  transform: translateY(36px);
  animation: kinetic-in 0.8s var(--ease) forwards;
}

.kinetic-line:nth-child(1) { animation-delay: 0.05s; }
.kinetic-line:nth-child(2) { animation-delay: 0.18s; }

@keyframes kinetic-in {
  to { opacity: 1; transform: translateY(0); }
}

.gradient-text {
  background: var(--gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kinetic-line.gradient-text {
  animation: kinetic-in 0.8s var(--ease) 0.31s forwards, gradient-shift 6s ease 1.1s infinite;
}

.gradient-text:not(.kinetic-line) {
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.hero-art-wrap {
  position: relative;
}

.hero-art {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s var(--ease);
}

.hero-art:hover {
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.6), var(--glow-cyan);
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(34, 225, 255, 0.22);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: spin-slow 40s linear infinite;
}

.orbit-ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

@keyframes spin-slow {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-ring-alt {
  width: 160%;
  border-color: rgba(236, 30, 121, 0.16);
  animation-duration: 60s;
  animation-direction: reverse;
}

.orbit-ring-alt::before {
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  z-index: 2;
  animation: bob 2.4s ease-in-out infinite;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.scroll-cue:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  animation: marquee-scroll 26s linear infinite;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.marquee-track span.dot-sep {
  color: var(--cyan);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
section {
  position: relative;
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-tag {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-tag::before {
  content: "// ";
  color: var(--text-dim);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 56px;
}

.feature-row-reverse {
  flex-direction: row-reverse;
}

.feature-row-media {
  position: relative;
  flex: 1 1 46%;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  transform: perspective(800px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.35s var(--ease);
}

.feature-row:hover .feature-row-media {
  border-color: var(--border-strong);
  box-shadow: var(--glow-cyan);
}

.feature-row-media img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.feature-row:hover .feature-row-media img {
  transform: scale(1.05);
}

.feature-row-media::before,
.feature-row-media::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--cyan);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  z-index: 2;
  pointer-events: none;
}

.feature-row-media::before {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
}

.feature-row-media::after {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
}

.feature-row:hover .feature-row-media::before,
.feature-row:hover .feature-row-media::after {
  opacity: 0.85;
}

.feature-row-copy {
  flex: 1 1 54%;
  min-width: 0;
}

.feature-index {
  display: block;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.feature-row-copy h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.feature-row-copy p {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 440px;
  margin: 0;
}

/* ---------- How it works: scroll-driven timeline ---------- */
.timeline {
  position: relative;
}

.timeline-steps {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.timeline-track {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.timeline-fill {
  height: 100%;
  width: var(--progress, 0%);
  background: var(--gradient);
  box-shadow: var(--glow-cyan);
}

.timeline-step {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  padding: 0 8px;
}

.timeline-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-dim);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease), color 0.35s var(--ease);
}

.timeline-step.is-active .timeline-num {
  background: var(--gradient);
  border-color: transparent;
  box-shadow: var(--glow-cyan);
  transform: scale(1.08);
  color: #fff;
}

.timeline-step h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.timeline-step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  padding: 56px 0;
}

.trust-item {
  display: flex;
  gap: 14px;
}

.trust-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(34, 225, 255, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
  box-shadow: 0 0 0 1px rgba(34, 225, 255, 0.3);
}

.trust-item h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.trust-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.87rem;
}

/* ---------- FAQ accordion ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.accordion-item:hover,
.accordion-item.is-open {
  border-color: var(--border-strong);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--cyan);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
  border-color: var(--border-strong);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.accordion-panel p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 28px;
  background: var(--gradient);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent 0,
    transparent 40px,
    rgba(255, 255, 255, 0.06) 40px,
    rgba(255, 255, 255, 0.06) 42px
  );
  pointer-events: none;
}

.cta-band h2 {
  color: #fff;
  position: relative;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  margin: 0 auto 28px;
  position: relative;
}

.cta-band .cta-row {
  position: relative;
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--text-dim);
  font-size: 0.88rem;
  position: relative;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 72px 0 96px;
  max-width: 760px;
}

.legal h1 {
  font-size: 2rem;
}

.legal .updated {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-family: var(--font-mono);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 40px;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 24px;
}

.legal p, .legal li {
  color: var(--text-dim);
  font-size: 0.96rem;
}

.legal ul {
  padding-left: 20px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.legal th, .legal td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  color: var(--text-dim);
}

.legal th {
  color: var(--text);
  background: var(--surface);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-right: 8px;
}

/* ---------- Recharge page ---------- */
.recharge {
  padding: 56px 0 96px;
}

.recharge-header {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Step 1 — plan cards */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 16px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--glow-cyan);
}

.plan-card-coins {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 800;
}

.plan-card-coins small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pink);
  margin-top: 4px;
}

.plan-card-label {
  position: absolute;
  top: -10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.plan-card-custom {
  cursor: default;
  align-items: stretch;
  text-align: center;
}

.plan-card-custom:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.custom-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
}

.custom-amount-prefix {
  font-weight: 700;
  color: var(--text-dim);
}

.custom-amount-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
}

/* Step 2 — order summary + payment */
.change-plan-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}

.change-plan-link:hover {
  color: var(--text);
}

.order-summary {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 32px;
  font-size: 1.3rem;
  font-weight: 700;
}

.order-summary-sep {
  color: var(--text-dim);
  font-weight: 500;
  margin: 0 8px;
}

#order-summary-price {
  color: var(--pink);
}

.recharge-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}

.upi-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.upi-card img {
  max-width: 220px;
  margin: 0 auto 16px;
  border-radius: 12px;
}

.upi-id {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="file"],
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: var(--glow-cyan);
}

.field textarea {
  resize: vertical;
}

.ticket-thread {
  max-width: 640px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ticket-message {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.ticket-message.is-admin {
  background: var(--surface-2);
  border-color: rgba(34, 225, 255, 0.35);
}

.ticket-message-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ticket-message img {
  max-width: 100%;
  margin-top: 10px;
  border-radius: 10px;
}

.ticket-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.form-error {
  color: var(--coral);
  font-size: 0.85rem;
  margin-top: 6px;
}

.form-status {
  max-width: 920px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(34, 229, 160, 0.12);
  border: 1px solid rgba(34, 229, 160, 0.4);
  color: var(--success);
  font-weight: 600;
}

@media (max-width: 860px) {
  .recharge-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .plan-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .order-summary {
    font-size: 1.1rem;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .feature-row,
  .feature-row-reverse {
    flex-direction: column;
    gap: 28px;
  }
  .feature-rows {
    gap: 64px;
  }
  .timeline-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
  .timeline-track {
    top: 0;
    bottom: 0;
    left: 20px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline-fill {
    width: 100%;
    height: var(--progress, 0%);
  }
  .timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 0;
  }
  .timeline-num {
    margin: 0;
    flex-shrink: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px 28px;
    background: rgba(4, 5, 16, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-strong);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s var(--ease), opacity 0.2s var(--ease);
  }
  .nav.is-open .nav-links {
    max-height: 60vh;
    opacity: 1;
  }
  .footer-grid {
    flex-direction: column;
  }
}
