/* ==========================================================
   NovaForge — base styles
   Palette and fonts are defined as tokens; change them here.
   ========================================================== */

:root {
  --bg: #0c0e13;
  --bg-alt: #11141b;
  --surface: #161a23;
  --surface-2: #1d2230;
  --border: #272d3b;
  --text: #eef1f7;
  --muted: #9aa3b5;
  --accent: #7c8cff;
  --accent-2: #3ddbb0;
  --accent-grad: linear-gradient(135deg, #7c8cff 0%, #3ddbb0 100%);
  --danger: #ff6b6b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.btn-primary {
  background: var(--accent-grad);
  color: #0a0c10;
  box-shadow: 0 10px 30px -10px rgba(124, 140, 255, .6);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 19, .75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.1rem; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-grad);
  color: #0a0c10;
  font-weight: 900;
}
.nav-links { display: flex; gap: 1.6rem; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(124, 140, 255, .25), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.5rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.hero-stats strong { display: block; font-size: 1.5rem; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
}
.dog-video {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #0c0e13;
}
.hero-3d {
  position: absolute;
  inset: -60px -40px;
  z-index: 0;
  pointer-events: none;
  animation: fadeIn 1.6s ease both;
}
.hero-3d canvas { display: block; pointer-events: auto; touch-action: manipulation; }
.dog-hint {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(22, 26, 35, .85);
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  pointer-events: none;
  transition: color .2s ease, border-color .2s ease;
}
.dog-hint:not(:empty) { animation: hintPulse 2.4s ease-in-out infinite; }
@keyframes hintPulse {
  0%, 100% { border-color: var(--border); }
  50% { border-color: var(--accent-2); }
}
/* Static glow behind the scene — stays visible even without WebGL */
.hero-3d::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 140, 255, .55), rgba(61, 219, 176, .2) 45%, transparent 70%);
  filter: blur(30px);
  animation: pulseGlow 4s ease-in-out infinite;
  z-index: -1;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero-visual .terminal {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(22, 26, 35, .82);
  backdrop-filter: blur(10px);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .75rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4150; display: block; }
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: .5rem; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.terminal-body {
  margin: 0;
  padding: 1.4rem;
  font-family: var(--mono);
  font-size: .85rem;
  line-height: 1.8;
  overflow-x: auto;
  color: #cfd6e6;
}
.terminal-body .c { color: #5d6780; }
.terminal-body .k { color: #c792ea; }
.terminal-body .f { color: #82aaff; }
.terminal-body .s { color: #3ddbb0; }

/* ---------- Niches ---------- */
.niches { padding: 1.5rem 0 3rem; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }
.tags span {
  padding: .45rem .95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .88rem;
  color: var(--muted);
  background: var(--bg-alt);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-cta { background: radial-gradient(ellipse at top, rgba(61, 219, 176, .08), transparent 60%); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: #3a4358; }
.card-accent { border-color: rgba(124, 140, 255, .45); background: linear-gradient(180deg, #1a1f2d, var(--surface)); }
.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent-2);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
.card p { color: var(--muted); font-size: .97rem; }
.card-list { list-style: none; margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.card-list li { font-size: .92rem; color: var(--text); padding: .2rem 0; }
.card-list li::before { content: "→ "; color: var(--accent); }

/* ---------- AI section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.steps-mini {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.steps-mini > div {
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--accent-2);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.steps-mini h4 { margin-bottom: .2rem; font-size: 1rem; }
.steps-mini p { margin: 0; color: var(--muted); font-size: .93rem; }
.ai-list { display: grid; gap: 1rem; }
.ai-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.ai-item p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.price-card.featured {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--accent-grad) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.price {
  font-size: 2rem;
  font-weight: 800;
  margin: .4rem 0 .4rem;
}
.price-card ul { list-style: none; margin: 1.5rem 0 2rem; flex: 1; }
.price-card li { padding: .5rem 0; border-bottom: 1px dashed var(--border); font-size: .95rem; }
.price-card li::before { content: "✓ "; color: var(--accent-2); }
.badge {
  position: absolute;
  top: -12px;
  left: 2rem;
  background: var(--accent-grad);
  color: #0a0c10;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 999px;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  counter-reset: none;
}
.timeline li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.timeline span {
  display: inline-block;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--accent-2);
  margin-bottom: .8rem;
}
.timeline p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.review {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.review p { font-size: 1rem; color: var(--text); }
.review footer { color: var(--muted); font-size: .88rem; }

/* ---------- Contact / Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { margin-top: 2rem; display: grid; gap: .6rem; }
.contact-info a { color: var(--accent-2); }
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
  box-shadow: var(--shadow);
}
.form label { display: grid; gap: .45rem; font-size: .9rem; color: var(--muted); }
.form input,
.form select,
.form textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 140, 255, .2);
}
.form textarea { resize: vertical; }
.form .checkbox { display: flex; align-items: center; gap: .6rem; grid-template-columns: none; }
.form .checkbox input { width: 18px; height: 18px; }
.form .invalid { border-color: var(--danger) !important; }
.form-status { min-height: 1.4em; margin: 0; font-size: .92rem; color: var(--accent-2); }
.form-status.error { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
}
.footer-links { display: flex; gap: 1.4rem; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid,
  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 1.25rem;
    gap: 1rem;
  }
  .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1.2rem; }
  .form { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Hero v2 — Halloween header
   ========================================================== */
:root {
  --gold: #f5b84a;
  --orange: #ff8a3d;
  --gold-grad: linear-gradient(90deg, #ffd27a 0%, #ff9a4a 100%);
}

.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

.pills { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(22, 26, 35, .7);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--muted);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.pill-gold { border-color: rgba(245, 184, 74, .45); color: var(--gold); }

.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
.accent-gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { color: #aab2c3; }

.deal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  max-width: 420px;
  margin: 2rem 0 1.6rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(245, 184, 74, .4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(245, 184, 74, .08), rgba(22, 26, 35, .6));
}
.deal-name span { display: block; color: var(--muted); }
.deal-name small { font-family: var(--mono); font-size: .75rem; color: var(--gold); letter-spacing: .05em; }
.deal-price { display: flex; align-items: baseline; gap: .8rem; }
.deal-price s { color: #6b7385; font-size: .95rem; }
.deal-price strong { font-size: 2rem; font-weight: 800; color: var(--gold); }

.btn-gold {
  background: var(--gold-grad);
  color: #1a1206;
  box-shadow: 0 10px 30px -10px rgba(255, 154, 74, .6);
}

.hero-visual { min-height: 520px; }
.hero-3d { inset: -40px -60px; }
.caption {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .3em;
  color: var(--gold);
  opacity: .8;
  margin: 0;
  z-index: 2;
}

/* Decorations */
.hero { position: relative; }
.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; opacity: .85; }
.deco-bat { font-size: 1.8rem; filter: grayscale(.2); animation: flap 4s ease-in-out infinite; }
.deco-1 { top: 5%; right: 12%; }
.deco-2 { top: 28%; right: 2%; font-size: 1.2rem; animation-delay: 1.2s; }
.deco-pumpkin { bottom: 8%; left: 48%; font-size: 2.2rem; animation: bob 3.5s ease-in-out infinite; }
@keyframes flap {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(-6deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 920px) {
  .hero-visual { min-height: 380px; }
  .deco-pumpkin { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .deco-bat, .deco-pumpkin { animation: none; }
}

.hero-robot {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: min(100%, 480px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
  animation: robotFloat 6s ease-in-out infinite;
}
@keyframes robotFloat {
  0%, 100% { transform: translate(-50%, -52%); }
  50% { transform: translate(-50%, -56%); }
}
@media (prefers-reduced-motion: reduce) { .hero-robot { animation: none; } }
