/* ============================================================
   AstraFlow � style.css
   Shared across all pages
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  /* Dark theme (default) */
  --bg: #0a0a0e;
  --bg-2: #111118;
  --bg-3: #18181f;
  --surface: #1c1c26;
  --surface-2: #222230;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);

  --text-primary: #f0eff8;
  --text-secondary: #8a89a0;
  --text-muted: #4a4960;

  --accent: #f5a623;
  --accent-dim: rgba(245,166,35,0.15);
  --accent-glow: rgba(245,166,35,0.35);
  --accent-2: #e05c5c;
  --accent-3: #5c9fe0;

  --orb-1: rgba(245,166,35,0.18);
  --orb-2: rgba(224,92,92,0.10);
  --orb-3: rgba(92,159,224,0.08);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
  --bg: #f4f3ef;
  --bg-2: #ebe9e3;
  --bg-3: #e0ded6;
  --surface: #ffffff;
  --surface-2: #f7f6f2;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.16);

  --text-primary: #1a1a26;
  --text-secondary: #5a5870;
  --text-muted: #9a9ab0;

  --accent: #d4830a;
  --accent-dim: rgba(212,131,10,0.12);
  --accent-glow: rgba(212,131,10,0.25);

  --orb-1: rgba(212,131,10,0.12);
  --orb-2: rgba(200,70,70,0.07);
  --orb-3: rgba(50,130,200,0.06);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-slow);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, select { font-family: var(--font-body); }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---------- Canvas BG ---------- */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 30px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  padding: 3px;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.toggle-icon {
  position: absolute;
  font-size: 11px;
  transition: var(--transition);
  line-height: 1;
}
.toggle-icon.sun { left: 8px; opacity: 0; color: #f5a623; }
.toggle-icon.moon { right: 8px; opacity: 1; color: #f5a623;}

[data-theme="light"] .toggle-icon.sun { opacity: 1; color: #f5a623; }
[data-theme="light"] .toggle-icon.moon { opacity: 0; color: #f5a623;}

.toggle-pill {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  transition: var(--transition);
  transform: translateX(0);
  box-shadow: 0 0 8px var(--accent-glow);
}

[data-theme="light"] .toggle-pill {
  transform: translateX(30px);
}

/* ---------- Logo ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--text-primary);
}
.logo-mark {
  color: var(--accent);
  font-size: 1.2rem;
  display: inline-block;
  animation: logoSpin 12s linear infinite;
}
@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  overflow: hidden;
}

/* Site Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 48px;
  z-index: 10;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-right: 80px; /* account for theme toggle */
}

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

.nav-cta {
  color: var(--accent) !important;
  font-weight: 500;
}

/* Orb rings */
.orb-ring,
.orb-core {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb-ring-1 {
  width: 700px; height: 700px;
  border: 1px solid var(--border);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbRotate 30s linear infinite;
}
.orb-ring-2 {
  width: 500px; height: 500px;
  border: 1px solid var(--border-strong);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbRotate 20s linear infinite reverse;
}
.orb-ring-3 {
  width: 320px; height: 320px;
  border: 1px solid var(--border-strong);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbRotate 14s linear infinite;
}
.orb-core {
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 80px var(--accent-glow), 0 0 30px var(--accent-glow);
  animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50%       { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 40px;
  margin-top:20px;
  background: var(--surface);
  animation: fadeSlideUp 0.6s ease both;
}

.hero-icon {
  height: 16px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.35));
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 6vw, 8.5rem);
  line-height: 1;
  letter-spacing: 2px;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.title-line {
  display: block;
  overflow: visible;
  padding-bottom: 0.08em;
}

.reveal-line {
  animation: revealLine 0.8s cubic-bezier(0.4,0,0.2,1) both;
  animation-delay: var(--delay, 0s);
}

@keyframes revealLine {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.accent-word {
  color: var(--accent);
  font-style: italic;
  -webkit-text-stroke: 1px var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.reveal-fade {
  animation: fadeSlideUp 0.7s ease both;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Search Form ---------- */
.search-form {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  margin-bottom: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 0 1px var(--border);
  backdrop-filter: blur(20px);
  position: relative;
}

.form-field {
  padding: 16px 20px;
  position: relative;
}

.form-field label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field-icon {
  color: var(--accent);
  font-size: 0.8rem;
}

.form-field input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
  placeholder-color: var(--text-muted);
}

.form-field input::placeholder { color: var(--text-muted); }

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 0 20px;
}

/* Suggestions dropdown */
.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  display: none;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.suggestions.open { display: block; }

.suggestion-item {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.suggestion-item:hover {
  background: var(--accent-dim);
  color: var(--text-primary);
}

.suggestion-item i {
  margin-right: 8px;
  color: var(--accent);
}

/* Form footer */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.limit-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 8px;
}

.limit-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.limit-pills {
  display: flex;
  gap: 4px;
}

.pill-opt input[type="radio"] { display: none; }
.pill-opt span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.pill-opt input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.pill-opt span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Search button */
.search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 100px;
  background: var(--accent);
  color: #000;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 0 20px var(--accent-glow);
}
.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 20px rgba(0,0,0,0.2);
}
.search-btn:active { transform: translateY(0); }

.btn-icon { font-size: 1.1rem; transition: transform var(--transition); }
.search-btn:hover .btn-icon { transform: translateX(4px); }

.btn-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 2.5s ease infinite;
}
@keyframes shimmer {
  0%   { left: -100%; }
  60%, 100% { left: 100%; }
}

/* Trust row */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.trust-row i {
  color: var(--accent);
  margin-right: 6px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeSlideUp 1s ease 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.1); }
}

/* ---------- How Section ---------- */
.how-section {
  position: relative;
  z-index: 1;
  padding: 120px 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 72px;
}

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

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  animation: fadeSlideUp 0.7s ease calc(var(--i) * 0.15s) both;
}

.step-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.step-card:hover::before { transform: scaleX(1); }
.step-card:hover { background: var(--surface-2); }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.step-icon-wrap {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--accent);
  transition: transform var(--transition);
}

.step-icon-wrap i {
  display: inline-block;
}
.step-card:hover .step-icon-wrap { transform: scale(1.1); }

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Site Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 40px 48px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .site-header { padding: 20px 20px; }
  .site-nav { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-title { font-size: clamp(3rem, 14vw, 6rem); }
  .search-form { border-radius: var(--radius); }
  .form-footer { flex-direction: column; gap: 12px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .trust-row { flex-direction: column; gap: 8px; }
  .orb-ring-1 { width: 400px; height: 400px; }
  .orb-ring-2 { width: 290px; height: 290px; }
  .orb-ring-3 { width: 180px; height: 180px; }
}
.flash-wrap {
  position: fixed;
  top: 86px;
  right: 5vw;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash {
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.flash-success { border-color: rgba(126, 255, 126, 0.4); }
.flash-warning { border-color: rgba(255, 214, 107, 0.5); }
.flash-danger { border-color: rgba(255, 107, 107, 0.6); }

@media (max-width: 640px) {
  .flash-wrap { left: 5vw; right: 5vw; }
}






