/* ============================================================
   Goodze — Shared Styles
   Dark theme matching app color tokens from colors.ts
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  /* Backgrounds */
  --bg-primary:    #0A0A0F;
  --bg-secondary:  #12121A;
  --bg-tertiary:   #1A1A26;
  --bg-overlay:    rgba(0, 0, 0, 0.7);

  /* Text */
  --text-primary:   #F0F0F5;
  --text-secondary: #9090A0;
  --text-tertiary:  #606070;
  --text-inverse:   #0A0A0F;

  /* Accent (teal/cyan) */
  --accent:         #00D4AA;
  --accent-secondary: #00B894;
  --accent-muted:   rgba(0, 212, 170, 0.15);

  /* Brand (blue) */
  --brand:          #3b82f6;
  --brand-light:    #60a5fa;
  --brand-glow:     rgba(59, 130, 246, 0.3);

  /* Semantic */
  --success: #00D68F;
  --warning: #FFAA00;
  --error:   #FF4757;
  --info:    #4B9FFF;

  /* Borders */
  --border-subtle: #1E1E2E;
  --border-focus:  #00D4AA;

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #00D4AA, #3b82f6);
  --gradient-glow:   linear-gradient(135deg, rgba(0,212,170,0.2), rgba(59,130,246,0.2));
  --gradient-hero:   radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,212,170,0.12) 0%, transparent 70%);

  /* Layout */
  --max-width: 1200px;
  --section-pad: 100px 24px;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-light); }

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

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* stagger children */
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 30, 46, 0.5);
  transition: background 0.3s, padding 0.3s;
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 15, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-accent);
  color: var(--text-inverse);
  box-shadow: 0 4px 24px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(0, 212, 170, 0.45);
  color: var(--text-inverse);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  background: var(--gradient-hero);
}

/* animated orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero::before {
  width: 500px; height: 500px;
  background: rgba(0, 212, 170, 0.15);
  top: -100px; right: -100px;
}

.hero::after {
  width: 400px; height: 400px;
  background: rgba(59, 130, 246, 0.12);
  bottom: -50px; left: -100px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid rgba(0, 212, 170, 0.2);
  margin-bottom: 32px;
}

.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
section {
  padding: var(--section-pad);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 60px;
}

.section-center {
  text-align: center;
}

.section-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Feature Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

/* connector line */
.steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 30px);
  right: calc(16.66% + 30px);
  height: 2px;
  background: var(--border-subtle);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--text-inverse);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.25);
}

.step-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 300px;
  margin: 0 auto;
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: 120px 24px;
  position: relative;
}

.cta-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 48px;
  border-radius: 24px;
  background: rgba(18, 18, 26, 0.5);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: var(--gradient-accent);
  -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;
  opacity: 0.3;
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ---------- Legal Pages ---------- */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal .last-updated {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal ul, .legal ol {
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--accent);
}

.legal strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --section-pad: 72px 20px;
  }

  .nav-links { display: none; }

  .hero { padding: 120px 20px 80px; }

  .hero h1 { font-size: 2.4rem; }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps::before { display: none; }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons { flex-direction: column; align-items: center; }

  .cta-card { padding: 40px 24px; }

  .legal { padding: 120px 20px 60px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}

/* Nav CTA button */
.nav-cta {
  padding: 8px 20px !important;
  font-size: 0.85rem !important;
  margin-left: 8px;
}
