/* Built by Brandon — style.css */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }

/* ── VARIABLES ── */
:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --border: rgba(255,255,255,0.08);
  --accent: #e63946;
  --accent-glow: #ff6b6b;
  --accent-deep: #8b0000;
  --fg: #ffffff;
  --text-muted: rgba(255,255,255,0.5);
  --text-faint: rgba(255,255,255,0.25);
  --font: 'Inter', sans-serif;
  --section-pad: clamp(6rem, 12vw, 10rem);
}

/* ── BASE ── */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

/* ── CANVAS LAYERS ── */
#orb-canvas,
#star-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#orb-canvas  { z-index: 0; }
#star-canvas { z-index: 1; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.1rem; }
p  { line-height: 1.65; }

.accent { color: var(--accent); }

.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

/* ── BUTTONS ── */
.btn-fill,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.85em 1.75em;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-fill {
  background: var(--accent);
  color: #fff;
}
.btn-fill:hover { opacity: 0.88; }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); }

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 2;
  padding: var(--section-pad) clamp(1.5rem, 6vw, 5rem);
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}
.nav-link:hover { color: var(--fg); }
.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5em 1.1em;
  border-radius: 6px;
  transition: border-color 0.2s;
  display: inline-block;
}
.nav-cta:hover { border-color: rgba(255,255,255,0.25); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-link, .nav-cta {
    display: block;
    padding: 0.85rem clamp(1.5rem, 5vw, 4rem);
    border-radius: 0;
    background: none;
    border: none;
    font-size: 1rem;
  }
}

/* ── CURSOR ── */
.js-cursor * { cursor: none !important; }
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.15s ease, scale 0.15s ease;
  will-change: transform;
  opacity: 0;
}
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--accent);
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.15s ease, scale 0.2s ease;
  will-change: transform;
  opacity: 0;
}
.js-cursor.cursor--hover #cursor-dot {
  scale: 2;
}
.js-cursor.cursor--hover #cursor-ring {
  scale: 1.5;
}
@media (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ── HERO ── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 780px;
}
.hero-label,
.hero-headline,
.hero-sub,
.hero-ctas,
.hero-trust {
  opacity: 0; /* GSAP animates these in */
  will-change: opacity, transform;
}
.hero-headline {
  margin: 1rem 0 1.25rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-trust {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

/* ── MARQUEE ── */
.marquee-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.marquee-track .sep {
  color: var(--accent);
  font-size: 0.65rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .btn-fill--pulse.pulsing { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
/* ── SERVICES ── */
.services { max-width: 1100px; margin: 0 auto; }

.services-list { display: flex; flex-direction: column; gap: clamp(4rem, 8vw, 7rem); margin-top: 3rem; }

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.service-row--flip .service-widget { order: 2; }
.service-row--flip .service-text   { order: 1; }

.service-text h3 { margin-bottom: 1rem; }
.service-text p  { color: var(--text-muted); margin-bottom: 1.5rem; }
.service-list    { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.service-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.2em;
  position: relative;
}
.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── WIDGET: shared ── */
.service-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.widget-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: auto;
}

/* ── WIDGET: Design — palette + font picker ── */
.palette-row { display: flex; gap: 0.6rem; }
.swatch {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}
.font-picker { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.font-opt {
  font-size: 0.75rem;
  padding: 0.3em 0.8em;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: default;
}
.font-opt--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── WIDGET: Phone frame ── */
.phone-frame {
  width: 110px;
  margin: 0 auto;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 8px;
  background: rgba(255,255,255,0.03);
}
.phone-screen { display: flex; flex-direction: column; gap: 5px; }
.phone-nav-bar   { height: 8px;  background: rgba(255,255,255,0.1); border-radius: 4px; }
.phone-hero-block{ height: 40px; background: linear-gradient(135deg, rgba(230,57,70,0.3), rgba(139,0,0,0.15)); border-radius: 6px; }
.phone-card      { height: 22px; background: rgba(255,255,255,0.06); border-radius: 4px; }
.phone-card--short { width: 70%; }

/* ── WIDGET: Lighthouse ring ── */
.lh-ring-wrap { position: relative; width: 80px; height: 80px; margin: 0 auto; }
.lh-ring { width: 80px; height: 80px; transform: rotate(-90deg); }
.lh-track {
  fill: none;
  stroke: rgba(255,255,255,0.07);
  stroke-width: 6;
}
.lh-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 201;  /* 2π × 32 */
  stroke-dashoffset: 201; /* starts empty — full circumference */
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.lh-score {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fg);
}

/* ── WIDGET: Form demo ── */
.form-demo { display: flex; flex-direction: column; gap: 0.75rem; }
.form-field label { font-size: 0.7rem; font-weight: 600; color: var(--text-faint); letter-spacing: 0.08em; display: block; margin-bottom: 0.3rem; }
.form-input-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45em 0.75em;
  font-size: 0.82rem;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 1px;
  color: var(--fg);
}
.form-input-wrap--empty { min-height: 32px; }
.form-cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.form-submit-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.25rem; }
.form-btn {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.45em 1em;
  cursor: default;
}
.form-check {
  color: #4ade80;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.form-check.visible { opacity: 1; }

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
  }
  .service-row--flip .service-widget,
  .service-row--flip .service-text { order: unset; }
  .service-widget { order: -1; } /* widget always above text on mobile */
}

/* ── PROCESS ── */
.process { max-width: 900px; margin: 0 auto; }

.process-sticky-wrap {
  position: relative;
}

/* Desktop: sticky container */
@media (min-width: 769px) {
  .process-sticky-wrap {
    height: 400vh; /* 4 steps × 100vh scroll space */
  }
  .process-steps {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .process-step {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    will-change: opacity, transform;
  }
  .process-step.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mobile: vertical list */
@media (max-width: 768px) {
  .process-steps { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
  .process-step  { opacity: 1; transform: none; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
  .process-step:last-child { border-bottom: none; }
}

.process-num {
  display: block;
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.7;
}
.process-step h3 { margin-bottom: 0.6rem; }
.process-step p  { color: var(--text-muted); max-width: 500px; }

/* ── WORK ── */
.work { max-width: 1100px; margin: 0 auto; }
.work h2 { margin: 1rem 0 3rem; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.work-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--fg);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
}
.work-card:hover { border-color: rgba(255,255,255,0.2); }

.work-thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.work-thumb iframe {
  width: 200%;
  height: 200%;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
  border: none;
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-overlay span { font-size: 0.85rem; font-weight: 600; }
.work-arrow { font-size: 1.2rem; }

.work-card--open {
  border-style: dashed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}
.work-open-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.work-open-cta {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.work-card--open:hover .work-open-cta { color: var(--fg); }

@media (max-width: 768px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ── WHY ME ── */
.why { max-width: 1100px; margin: 0 auto; }

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

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
}
.why-card:hover { border-color: rgba(255,255,255,0.2); }

.why-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}
.why-card h4 { margin-bottom: 0.5rem; }
.why-card p  { color: var(--text-muted); font-size: 0.88rem; }

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ── PRICING ── */
.pricing { max-width: 900px; margin: 0 auto; text-align: center; }
.pricing-intro {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin: 0.5rem 0 2.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  text-align: left;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.4s;
}
.pricing-card:hover { border-color: rgba(255,255,255,0.15); }

.pricing-card--featured {
  border-color: rgba(230,57,70,0.35);
  box-shadow: 0 0 40px rgba(230,57,70,0.08);
}
.pricing-card--featured:hover {
  border-color: rgba(230,57,70,0.65);
  box-shadow: 0 0 60px rgba(230,57,70,0.2), 0 0 120px rgba(230,57,70,0.08);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.3em 0.8em;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.pricing-tier {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.2em;
  position: relative;
}
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-size: 0.75rem; }
.pricing-monthly {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}
.pricing-monthly span { color: var(--fg); font-weight: 600; }
.pricing-roi {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.pricing-footnote {
  margin-top: 0.75rem;
  font-size: 0.65rem;
  color: var(--text-faint);
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── TESTIMONIALS ── */
.testimonials { max-width: 900px; margin: 0 auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.testimonial-stars { color: var(--accent); letter-spacing: 0.15em; margin-bottom: 1rem; font-size: 0.9rem; }
.testimonial-quote { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.85rem; font-weight: 600; }
.testimonial-biz  { font-size: 0.75rem; color: var(--text-faint); }

.testimonial-card--open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  border-style: dashed;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.25s;
}
.testimonial-card--open:hover { border-color: rgba(255,255,255,0.25); }
.testimonial-open-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); }
.testimonial-open-sub   { font-size: 0.82rem; color: var(--text-muted); }
.testimonial-open-cta   { font-size: 0.82rem; color: var(--accent); font-weight: 600; }

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ── CTA ── */
.cta {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta h2  { margin: 1rem 0 1.25rem; }
.cta-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.cta-footnote {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.cta-footnote a { color: var(--text-muted); transition: color 0.2s; }
.cta-footnote a:hover { color: var(--fg); }

/* Pulse animation for CTA button (triggered by class) */
.btn-fill--pulse.pulsing {
  animation: pulse-cta 2s ease-in-out infinite;
}
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(230,57,70,0); }
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--fg); }

/* ── MOBILE EXTRAS ── */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ── SCROLL REVEAL: initial states ── */
.reveal-up   { opacity: 0; transform: translateY(40px); will-change: opacity, transform; }
.reveal-clip {
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
