/* ── Design Tokens ───────────────────────────────────────────── */

:root {
  /* Surface — warm dark palette */
  --background: #121018;
  --foreground: #f7f5f3;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-alt: rgba(255, 255, 255, 0.03);
  --surface-muted: rgba(255, 255, 255, 0.08);
  --surface-solid: #1a1520;

  /* Primary — warm orange */
  --primary: #e08a3c;
  --primary-hover: #c87530;

  /* Accent — rich blue */
  --accent: #2b6fb0;
  --accent-hover: #1f5a94;

  /* Gold */
  --gold: #e08a3c;

  /* Text */
  --text-primary: #f7f5f3;
  --text-secondary: #b5afa8;
  --text-tertiary: #7a7570;

  /* Borders */
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --ring: #e08a3c;
}

/* ── Reset & Base ────────────────────────────────────────────── */

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

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ── Animated Mesh Background ────────────────────────────────── */

.bg-mesh {
  position: relative;
  background: var(--background);
}

.bg-mesh::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(224, 138, 60, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(43, 111, 176, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(224, 138, 60, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 70% 60%, rgba(43, 111, 176, 0.08) 0%, transparent 50%);
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0%   { transform: scale(1) translate(0, 0); }
  33%  { transform: scale(1.08) translate(-2%, 3%); }
  66%  { transform: scale(1.04) translate(3%, -2%); }
  100% { transform: scale(1) translate(-1%, 1%); }
}

/* Noise overlay */
.bg-mesh::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.content {
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}

/* ── Glassmorphism Card ──────────────────────────────────────── */

.glass-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 0.75rem;
}

/* ── Glow Border ─────────────────────────────────────────────── */

.glow-border {
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #e08a3c, #2b6fb0, #e08a3c, #2b6fb0);
  background-size: 300% 300%;
  animation: glowShift 6s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes glowShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Gradient Text ───────────────────────────────────────────── */

.text-gradient {
  background: linear-gradient(135deg, #e08a3c 0%, #2b6fb0 50%, #e08a3c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Holographic Card Shimmer ────────────────────────────────── */

.card-holo {
  position: relative;
  overflow: hidden;
}
.card-holo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(224, 138, 60, 0.12) 45%,
    rgba(43, 111, 176, 0.10) 50%,
    rgba(224, 138, 60, 0.08) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: holoSweep 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes holoSweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Scroll Fade-in Animation ────────────────────────────────── */

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility ─────────────────────────────────────────────────── */

.text-muted { color: var(--text-secondary); }
.text-faint { color: var(--text-tertiary); }
.hidden { display: none !important; }

/* ── Header ──────────────────────────────────────────────────── */

.header {
  border-bottom: 1px solid var(--border);
  background: rgba(26, 21, 32, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  height: 3.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-img {
  border-radius: 0.25rem;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 0 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.pill-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--gold);
}

.hero-title {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Coming Soon Badge ───────────────────────────────────────── */

.coming-soon-badge {
  text-align: center;
  margin-bottom: 2.5rem;
}

.coming-soon-inner {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

/* ── Showcase ────────────────────────────────────────────────── */

.showcase {
  max-width: 56rem;
  margin: 0 auto 4rem;
}

.showcase-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 280px;
}

.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.showcase-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.showcase-before {
  position: relative;
  width: 9rem;
  aspect-ratio: 3/4;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.showcase-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-after {
  position: relative;
  width: 9rem;
  aspect-ratio: 2.5/3.5;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(224, 138, 60, 0.1);
}

.showcase-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.showcase-after img.active {
  opacity: 1;
}

/* Arrow */
.showcase-arrow {
  flex-shrink: 0;
}

.arrow-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(224, 138, 60, 0.2);
}

.arrow-circle svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
  stroke: #fff;
}

/* Dots */
.dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 1rem;
}

.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--surface-muted);
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  width: 1rem;
}

/* ── How It Works ────────────────────────────────────────────── */

.how-it-works {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0 4rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(224, 138, 60, 0.2);
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ── Features Grid ───────────────────────────────────────────── */

.features {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.features .section-title,
.features .section-subtitle {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.02);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: #fff;
}

.gradient-orange       { background: linear-gradient(135deg, #f97316, #d97706); }
.gradient-amber-blue   { background: linear-gradient(135deg, #f59e0b, #2563eb); }
.gradient-blue         { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.gradient-orange-deep  { background: linear-gradient(135deg, #ea580c, #f97316); }
.gradient-blue-indigo  { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.gradient-green        { background: linear-gradient(135deg, #22c55e, #0d9488); }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* ── Tagline ─────────────────────────────────────────────────── */

.tagline {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0 4rem;
}

.tagline-main {
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tagline-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ── Footer ──────────────────────────────────────────────────── */

.footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  padding-bottom: 2rem;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (min-width: 640px) {
  .hero {
    padding-top: 6rem;
  }

  .showcase-row {
    gap: 2.5rem;
    min-height: 340px;
  }

  .showcase-before {
    width: 11rem;
  }

  .showcase-after {
    width: 11rem;
  }

  .arrow-circle {
    width: 3rem;
    height: 3rem;
  }

  .arrow-circle svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .cta-card {
    padding: 3rem;
  }
}

@media (min-width: 768px) {
  .showcase-before {
    width: 14rem;
  }

  .showcase-after {
    width: 14rem;
  }

  .showcase-row {
    gap: 3rem;
    min-height: 400px;
  }
}

@media (max-width: 767px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-form {
    flex-direction: column;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
