/* ============================================================
   MysteryIO — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #0f1336;
  --bg-card: #141845;
  --accent: #7c3aed;
  --accent-light: #9b6bf7;
  --gold: #f59e0b;
  --gold-hover: #fbbf24;
  --text: #f0eee6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-primary);
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-hover); }

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

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { max-width: 65ch; }

::selection {
  background: var(--accent);
  color: var(--text);
}

/* --- Utility --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.text-gold { color: var(--gold); }
.text-accent { color: var(--accent-light); }
.text-muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Grain Overlay --- */
.grain {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  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");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

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

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 0.85rem !important;
  color: var(--bg-primary) !important;
  background: var(--gold);
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--gold-hover) !important;
  color: var(--bg-primary) !important;
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--gold-hover);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(240, 238, 230, 0.25);
}

.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

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

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Section Shared --- */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3.5rem;
  max-width: 55ch;
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  position: relative;
  padding: 2rem;
}

.step-number {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

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

.step-connector {
  display: none;
}

/* --- Tech Stack --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.tech-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-3px);
}

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

.tech-card-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tech-card-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.tech-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

/* --- Use Cases --- */
.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.use-case-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124, 58, 237, 0.06) 100%);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all var(--transition);
}

.use-case-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.use-case-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.use-case-card h3 { margin-bottom: 0.75rem; }
.use-case-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Status / Where We Are --- */
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 3rem 0;
  max-width: 700px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.08);
}

.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.status-item span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.founder-quote {
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--accent);
  background: rgba(124, 58, 237, 0.05);
  border-radius: 0 12px 12px 0;
  max-width: 600px;
}

.founder-quote blockquote {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.founder-quote cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Waitlist CTA --- */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto 1.5rem;
}

.waitlist-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(240, 238, 230, 0.15);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.waitlist-form input::placeholder { color: var(--text-dim); }
.waitlist-form input:focus { border-color: var(--accent); }

.cta-alt {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --- Footer --- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(124, 58, 237, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-aws {
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* --- 3D Divider --- */
.three-divider {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.three-divider canvas {
  display: block;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 10rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

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

/* --- About Page --- */
.about-story {
  max-width: 720px;
}

.about-story p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.founder-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 16px;
  max-width: 700px;
}

.founder-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.founder-info h3 { margin-bottom: 0.25rem; }
.founder-info .founder-title {
  color: var(--accent-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.founder-info .founder-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.founder-info .founder-email {
  font-size: 0.9rem;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
}

.mv-card {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.mv-card h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

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

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

.value-card {
  padding: 2rem;
  border-left: 3px solid var(--accent);
  background: rgba(124, 58, 237, 0.04);
  border-radius: 0 12px 12px 0;
}

.value-card h3 { margin-bottom: 0.75rem; }
.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Platform Page --- */
.arch-diagram {
  margin: 3rem 0;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 16px;
  overflow-x: auto;
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 900px;
  padding: 2rem 0;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  min-width: 120px;
}

.arch-node-box {
  width: 100px; height: 100px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem;
  line-height: 1.3;
  transition: all var(--transition);
}

.arch-node-box:hover { transform: scale(1.05); }

.arch-node-box.user-node { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--gold); }
.arch-node-box.gateway-node { background: rgba(124, 58, 237, 0.15); border: 1px solid rgba(124, 58, 237, 0.3); color: var(--accent-light); }
.arch-node-box.lambda-node { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); color: var(--gold); }
.arch-node-box.bedrock-node { background: rgba(124, 58, 237, 0.2); border: 1px solid rgba(124, 58, 237, 0.4); color: var(--accent-light); }
.arch-node-box.dynamo-node { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #60a5fa; }
.arch-node-box.response-node { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }

.arch-node-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 120px;
}

.arch-arrow {
  display: flex;
  align-items: center;
  color: var(--text-dim);
  font-size: 1.5rem;
  padding: 0 0.5rem;
  flex-shrink: 0;
}

.arch-services {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(124, 58, 237, 0.2);
}

.arch-service {
  text-align: center;
}

.arch-service-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-light);
  line-height: 1.2;
}

.arch-service-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

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

.feature-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--gold);
}

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

.api-preview {
  margin-top: 3rem;
}

.code-block {
  background: #0d1117;
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  position: relative;
}

.code-block-label {
  position: absolute;
  top: 0.75rem; right: 1rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.code-block pre {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #e6edf3;
  white-space: pre;
  tab-size: 2;
}

.code-block .code-key { color: #79c0ff; }
.code-block .code-string { color: #a5d6ff; }
.code-block .code-method { color: #d2a8ff; }
.code-block .code-comment { color: #8b949e; }

/* --- Pricing Page --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 16px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.06) 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 1rem;
  border-radius: 20px;
}

.pricing-card h3 {
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.pricing-amount span {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

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

.pricing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 39, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pricing-overlay-text {
  text-align: center;
}

.pricing-overlay-text span {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.pricing-overlay-text small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* FAQ */
.faq-section { margin-top: 5rem; }

.faq-list {
  max-width: 720px;
  margin: 2rem auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover { color: var(--gold); }

.faq-icon {
  font-size: 1.5rem;
  color: var(--text-dim);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 780px;
  padding: 2rem 0 4rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

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

.legal-date {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.25rem;
    transition: right var(--transition);
    border-left: 1px solid rgba(124, 58, 237, 0.15);
  }

  .nav-links.open { right: 0; }
  .nav-toggle { display: block; }

  .hero { padding: 7rem 0 3rem; min-height: auto; }
  .hero-content { max-width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .section { padding: 4rem 0; }

  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .tech-grid { grid-template-columns: 1fr; }
  .use-cases { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .mission-vision { grid-template-columns: 1fr; }

  .founder-card { flex-direction: column; align-items: center; text-align: center; }

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

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .arch-diagram { padding: 1.5rem 1rem; }
  .arch-services { flex-direction: column; align-items: center; gap: 1.5rem; }

  .three-divider { height: 120px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  h1 { font-size: 2rem; }
}
