/* ═══════════════════════════════════════════
   ForNormies.com — Shared Design System
   All pages link to this file.
   Page-specific styles go in <style> blocks.
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  /* Backgrounds */
  --bg: #09080E;
  --surface: #12111B;
  --elevated: #1C1A2A;

  /* Claw Red (Primary CTA, brand) */
  --claw: #C0301A;
  --claw-light: #E04430;
  --claw-glow: rgba(192,48,26,0.25);

  /* Teal (Secondary accent, labels, links) */
  --teal: #2DD4A8;
  --teal-dim: #1FAF8A;
  --teal-glow: rgba(45,212,168,0.15);
  --teal-subtle: rgba(45,212,168,0.06);

  /* Amber (Tertiary accent, prices, highlights) */
  --amber: #F5C07A;
  --amber-glow: rgba(245,192,122,0.12);

  /* Text */
  --text: #F0F0F0;
  --text-mid: #D0D0DA;
  --muted: #9494A3;

  /* Borders */
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  /* Glass */
  --glass: rgba(18,17,27,0.6);
  --glass-border: rgba(255,255,255,0.08);
}

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

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--teal-dim); }

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

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

/* ── Layout ── */
section {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { color: var(--text); line-height: 1.2; }

/* ── Glass Card ── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.glass:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.85rem 2.2rem;
  background: var(--claw);
  color: var(--text);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 24px var(--claw-glow);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-primary:hover {
  background: var(--claw-light);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--claw-glow);
}

.btn-ghost {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--teal);
  border: 1px solid rgba(45,212,168,0.3);
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.btn-ghost:hover {
  background: rgba(45,212,168,0.06);
  border-color: rgba(45,212,168,0.5);
  color: var(--teal);
  transform: translateY(-2px);
}

/* ── Ambient Background (injected by main.js) ── */
.ambient {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb-1, .orb-2, .orb-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  will-change: transform;
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(192,48,26,0.08);
  top: -10%; left: -5%;
  animation: drift 20s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px;
  background: rgba(45,212,168,0.06);
  bottom: -10%; right: -5%;
  animation: drift 20s ease-in-out infinite alternate;
  animation-delay: -10s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: rgba(167,139,250,0.04);
  top: 40%; left: 40%;
  animation: drift 20s ease-in-out infinite alternate;
  animation-delay: -5s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}

/* ── Floating Bubbles (injected by main.js) ── */
.bubbles {
  position: fixed;
  bottom: -20px; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bubble {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(45,212,168,0.12), rgba(45,212,168,0.02));
  animation: rise linear infinite;
  opacity: 0;
}
.bubble:nth-child(1) { width: 6px; height: 6px; left: 10%; animation-duration: 18s; animation-delay: 0s; }
.bubble:nth-child(2) { width: 4px; height: 4px; left: 30%; animation-duration: 15s; animation-delay: 2s; }
.bubble:nth-child(3) { width: 8px; height: 8px; left: 50%; animation-duration: 22s; animation-delay: 4s; }
.bubble:nth-child(4) { width: 5px; height: 5px; left: 65%; animation-duration: 12s; animation-delay: 1s; }
.bubble:nth-child(5) { width: 7px; height: 7px; left: 80%; animation-duration: 20s; animation-delay: 3s; }
.bubble:nth-child(6) { width: 3px; height: 3px; left: 45%; animation-duration: 16s; animation-delay: 5s; }
@keyframes rise {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.1; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

/* ── Nav (injected by main.js) ── */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 100;
  background: rgba(9,8,14,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo a { display: flex; align-items: center; }
.nav-logo img { height: 36px; }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 600 !important;
  background: var(--claw);
  color: var(--text) !important;
  padding: 0.5rem 1.4rem;
  border-radius: 24px;
  font-size: 0.88rem;
  box-shadow: 0 2px 12px var(--claw-glow);
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--claw-light);
  color: var(--text) !important;
  transform: translateY(-1px);
}
.nav-cta-mobile {
  display: none;
}
#nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
#nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Footer (injected by main.js) ── */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.footer-logo img {
  height: 32px;
  margin-bottom: 1.2rem;
  opacity: 0.6;
}
.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--teal); }
.footer-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-social a {
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--teal); }
.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
}
.footer-tagline {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--claw);
  margin-top: 0.6rem;
  letter-spacing: 2px;
  opacity: 0.6;
}

/* ── Scroll Fade-In ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FAQ Accordion (shared: homepage + faq.html) ── */
.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item.open { border-color: rgba(45,212,168,0.2); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--teal);
  transition: transform 0.3s;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 1.25rem 1.25rem;
}
.faq-a p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Responsive: 768px ── */
@media (max-width: 768px) {
  section { padding: 4rem 1.5rem; }
}

/* ── Responsive: 640px ── */
@media (max-width: 640px) {
  section { padding: 4rem 1.2rem; }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: rgba(9,8,14,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links .nav-cta { display: none; }
  .nav-cta-mobile { display: block; }
  #nav-hamburger { display: flex; }
}
