/* ============================================
   Roopafy — Static Teaser Site
   Color system from DESIGN_DOCS/guides/frontend-design-guide.md
   ============================================ */

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

:root {
  /* Brand */
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #f3e8ff;
  --primary-lighter: #faf5ff;
  --primary-border: #e9d5ff;
  --primary-dark: #6b21a8;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #0a0e17;

  /* Feedback */
  --success: #10b981;
  --success-light: #d1fae5;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --section-pad: 120px;
  --container-max: 1120px;
  --container-narrow: 720px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 14px;
  --radius-3xl: 16px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.container-narrow {
  max-width: var(--container-narrow);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.logo-text {
  color: var(--gray-900);
}

.nav.scrolled .logo-text {
  color: var(--gray-900);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 20px;
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: #a855f7;
  bottom: 10%;
  left: -5%;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #c084fc;
  top: 40%;
  left: 50%;
  animation-delay: -14s;
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 32px;
}

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

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

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.hero-accent {
  background: linear-gradient(135deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gray-300), transparent);
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(124, 58, 237, 0.3), 0 4px 12px rgba(124, 58, 237, 0.15);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 1px 2px rgba(124, 58, 237, 0.4), 0 8px 24px rgba(124, 58, 237, 0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
}

.btn-ghost:hover {
  border-color: var(--gray-300);
  color: var(--gray-900);
  background: var(--gray-50);
}

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

.section-dark {
  background: var(--gray-950);
  color: var(--white);
}

.section-dark .section-title {
  color: var(--white);
}

.section-dark .text-accent {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-dark .section-label {
  color: #a855f7;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  margin-bottom: 48px;
}

.text-accent {
  background: linear-gradient(135deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-body {
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 640px;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  text-align: center;
}

.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--white), var(--gray-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-unit {
  font-size: 0.5em;
  opacity: 0.7;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.4;
}

/* --- Vision Grid --- */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.vision-card {
  padding: 40px 32px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  transition: all 0.3s;
}

.vision-card:hover {
  border-color: var(--primary-border);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
  transform: translateY(-4px);
}

.vision-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.vision-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.vision-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- Tease Section --- */
.tease-content {
  text-align: center;
}

.tease-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: left;
}

.tease-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  color: var(--gray-300);
  line-height: 1.5;
}

.tease-bullet {
  width: 8px;
  height: 8px;
  min-width: 8px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  border-radius: 50%;
}

.tease-quote {
  max-width: 560px;
  margin: 0 auto;
}

.tease-quote blockquote {
  font-size: 18px;
  font-style: italic;
  color: var(--gray-400);
  line-height: 1.7;
  padding: 32px;
  border-left: 3px solid var(--primary);
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* --- Momentum Grid --- */
.momentum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.momentum-card {
  text-align: center;
  padding: 48px 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
}

.momentum-number {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 12px;
}

.momentum-label {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* --- CTA / Waitlist Section --- */
.section-cta {
  background: linear-gradient(180deg, var(--gray-950) 0%, #1a0a2e 100%);
  color: var(--white);
  text-align: center;
}

.cta-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--white);
}

.cta-sub {
  font-size: 17px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 8px;
}

.form-input {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: var(--white);
  outline: none;
  transition: all 0.2s;
}

.form-input::placeholder {
  color: var(--gray-500);
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.btn-submit {
  white-space: nowrap;
}

.btn-loading {
  display: none;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .btn-loading {
  display: inline-flex;
}

.form-note {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 12px;
}

.waitlist-success {
  text-align: center;
  animation: success-in 0.5s ease;
}

.waitlist-success h3 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 8px;
}

.waitlist-success p {
  color: var(--gray-400);
  font-size: 15px;
}

.success-icon {
  display: inline-block;
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  background: var(--gray-950);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand .logo-icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.footer-tagline {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-400);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--gray-600);
}

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .stats-grid,
  .vision-grid,
  .momentum-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero h1 br {
    display: none;
  }

  .section-title br {
    display: none;
  }

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

  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  .vision-card {
    padding: 28px 24px;
  }

  .stat-card {
    padding: 24px 20px;
  }

  .momentum-card {
    padding: 32px 20px;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 64px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-badge {
    margin-bottom: 24px;
  }

  .tease-quote blockquote {
    font-size: 16px;
    padding: 24px;
  }
}
