/* ============================================
   Flow Landing Page — style.css
   Omniverse Dark Design System
   Brand: #1e4366 (blue), #daad82 (gold)
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg-base: #0a0f1a;
  --bg-raised: #111827;
  --bg-elevated: #1a2332;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --blue-700: #1e4366;
  --gold-400: #DAAD82;
  --gold-300: #e3c596;
  --gold-500: #c99a6b;
  --shadow-glow-blue: 0 0 60px rgba(30, 67, 102, 0.3);
  --shadow-glow-gold: 0 0 60px rgba(218, 173, 130, 0.2);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.4);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--gold-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-300);
}

a:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: 2px;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

input, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 110px 0;
  }
}

/* --- Scroll Animations --- */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

.animate-in.visible .pillar-card:nth-child(1) { transition-delay: 0s; }
.animate-in.visible .pillar-card:nth-child(2) { transition-delay: 0.1s; }
.animate-in.visible .pillar-card:nth-child(3) { transition-delay: 0.2s; }
.animate-in.visible .pillar-card:nth-child(4) { transition-delay: 0.3s; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.375rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 4.5rem;
  }
}

/* --- Gold Gradient Text --- */
.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Badge Pills --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-400);
  background-color: rgba(218, 173, 130, 0.1);
  border: 1px solid rgba(218, 173, 130, 0.2);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-400);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all 0.25s var(--ease-out-expo);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--gold-400);
  color: var(--bg-base);
  box-shadow: var(--shadow-glow-gold);
}

.btn-primary:hover {
  background-color: var(--gold-300);
  color: var(--bg-base);
  transform: scale(1.02);
  box-shadow: 0 0 80px rgba(218, 173, 130, 0.3);
}

.btn-primary:active {
  transform: scale(0.99);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 15, 26, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.nav-logo img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: none;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-400);
  transition: width 0.25s ease;
}

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

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-cta {
  display: none;
  padding: 10px 24px;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-base);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
  border-bottom: none;
  margin-top: 8px;
}

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

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-base);
}

/* Background blur blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-blob--blue {
  width: 600px;
  height: 600px;
  top: -10%;
  right: -5%;
  background: rgba(30, 67, 102, 0.2);
  filter: blur(120px);
}

.hero-blob--gold {
  width: 400px;
  height: 400px;
  bottom: -5%;
  left: -5%;
  background: rgba(218, 173, 130, 0.1);
  filter: blur(100px);
}

.hero-blob--center {
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 30, 60, 0.1);
  filter: blur(150px);
}

.hero .container {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero {
    padding: 140px 0 100px;
  }
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.1;
}

.hero-byline {
  max-width: 620px;
  margin: 0 auto 48px;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero-byline {
    font-size: 1.25rem;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 72px;
}

.hero-screenshot {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Feature Pillars --- */
.pillars-section {
  background-color: var(--bg-base);
}

.pillars-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.pillar-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 36px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.pillar-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* Tinted icon backgrounds per card (dark variants) */
.pillar-card:nth-child(1) .pillar-icon { background-color: rgba(30, 67, 102, 0.25); color: #5b9bd5; }
.pillar-card:nth-child(2) .pillar-icon { background-color: rgba(218, 173, 130, 0.2); color: var(--gold-400); }
.pillar-card:nth-child(3) .pillar-icon { background-color: rgba(22, 163, 74, 0.15); color: #4ade80; }
.pillar-card:nth-child(4) .pillar-icon { background-color: rgba(124, 58, 237, 0.15); color: #a78bfa; }

.pillar-icon svg {
  width: 26px;
  height: 26px;
}

.pillar-card h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.pillar-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-bullets li {
  font-size: 0.938rem;
  color: var(--text-muted);
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.pillar-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(34, 197, 94, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 7l2.5 2.5 4.5-4.5' stroke='%234ade80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
}

/* --- Section headers (centered) --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* --- BYOK Section --- */
.byok-section {
  background-color: var(--bg-raised);
}

.byok-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.byok-content h2 {
  margin-bottom: 24px;
}

.byok-content p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* --- Full Feature Grid --- */
.feature-grid-section {
  background-color: var(--bg-base);
}

.feature-category {
  margin-bottom: 56px;
}

.feature-category:last-child {
  margin-bottom: 0;
}

.feature-category-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.feature-list {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 6px 32px;
  }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.feature-item:hover {
  background-color: var(--bg-elevated);
}

.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.feature-check svg {
  width: 12px;
  height: 12px;
}

.feature-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feature-text span {
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.5;
}

/* --- CTA Banner --- */
.cta-section {
  background: var(--bg-raised);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Subtle geometric overlay */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section .section-header h2 {
  color: var(--text-primary);
}

.cta-section .section-header p {
  color: var(--text-muted);
}

.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.waitlist-form input,
.waitlist-form select {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  border-color: rgba(218, 173, 130, 0.5);
  background-color: rgba(255, 255, 255, 0.08);
  outline: none;
}

.waitlist-form input::placeholder {
  color: var(--text-subtle);
}

.waitlist-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.waitlist-form select option {
  color: var(--text-primary);
  background-color: var(--bg-raised);
}

.waitlist-form .btn-primary {
  width: 100%;
  margin-top: 4px;
  font-size: 1rem;
  padding: 18px 32px;
}

.waitlist-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-top: 16px;
}

.waitlist-success {
  display: none;
  text-align: center;
  padding: 24px;
}

.waitlist-success.show {
  display: block;
}

.waitlist-success h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.waitlist-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.waitlist-error {
  display: none;
  text-align: center;
  padding: 14px;
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 0.9rem;
  max-width: 480px;
  margin: 12px auto 0;
}

.waitlist-error.show {
  display: block;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-base);
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

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

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

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-subtle);
  width: 100%;
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* --- Legal Content --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 8px;
}

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

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}

.legal-content ul li {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.legal-content ul li::marker {
  color: var(--text-subtle);
}

.legal-content a {
  color: var(--gold-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--gold-300);
}

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