/* ============================================
   LowkeyPrivacy — Noir Glamour Design System
   Hacker elegance. Urban photography. Zero trace.
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  /* Colors — noir monochrome / silver accent */
  --bg-primary:    #050505;
  --bg-secondary:  #0a0a0a;
  --bg-card:       #111111;
  --bg-card-hover: #1a1a1a;
  --accent:        #ffffff;
  --accent-light:  #e0e0e0;
  --accent-dark:   #cccccc;
  --platinum:      #888888;
  --ice:           #d4d4d4;
  --signal:        #999999;
  --text-primary:  #f0f0f0;
  --text-secondary:#808080;
  --text-muted:    #4a4a4a;
  --border:        #1f1f1f;
  --overlay:       rgba(5, 5, 5, 0.94);

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width:  1200px;
  --nav-height: 72px;
  --radius:     4px;
  --radius-lg:  8px;

  /* Transitions */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 250ms;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  max-width: 65ch;
  color: var(--text-secondary);
}

.text-accent {
  background: linear-gradient(135deg, var(--accent), var(--signal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header p {
  margin: var(--space-sm) auto 0;
  max-width: 600px;
}

/* Divider — thin data stream line */
.divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: var(--space-md) auto;
  position: relative;
  overflow: hidden;
}

.divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
}

.divider.visible::after {
  animation: dataStream 2.5s ease-in-out infinite;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 50;
  border-bottom: 1px solid transparent;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  position: relative;
}

.nav__brand::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px var(--accent);
  vertical-align: middle;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent); opacity: 1; }
  50% { box-shadow: 0 0 16px var(--accent), 0 0 24px rgba(255, 255, 255, 0.3); opacity: 0.7; }
}

.nav__links {
  display: none;
  gap: var(--space-lg);
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  position: relative;
  transition: color var(--duration) var(--ease);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  display: none;
}

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 49;
}

.nav__mobile.open {
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

.nav__mobile a:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-block;
  }

  .nav__toggle {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 36px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease), transform 0.2s ease-out;
  text-align: center;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--filled {
  background: var(--accent);
  border-color: var(--accent);
  color: #050505;
}

.btn--filled:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #050505;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.35);
}

.btn--small {
  padding: 10px 24px;
  font-size: 0.75rem;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-md) var(--space-xl);
  overflow: hidden;
}

/* Tactical grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}

/* Subtle radial glow */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(200, 200, 200, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.hero__content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero__tagline::before,
.hero__tagline::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--signal) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  position: relative;
}

.hero__title em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--signal));
  opacity: 0.4;
}

.hero__desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin: 0 auto var(--space-lg);
  max-width: 560px;
  line-height: 1.8;
}

.hero__ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero staggered entrance */
.hero-reveal .hero__tagline,
.hero-reveal .hero__title,
.hero-reveal .hero__desc,
.hero-reveal .hero__ctas {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-reveal .hero__tagline { animation-delay: 0.2s; }
.hero-reveal .hero__title   { animation-delay: 0.4s; }
.hero-reveal .hero__desc    { animation-delay: 0.6s; }
.hero-reveal .hero__ctas    { animation-delay: 0.8s; }

/* ---------- Why Section ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.why-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), border-color 0.5s, box-shadow 0.5s;
}

/* Top accent line on cards */
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--signal));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover::before {
  width: 100%;
}

.why-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08);
}

.why-card__icon {
  color: var(--accent);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.why-card__icon svg {
  display: block;
}

.why-card h3 {
  margin-bottom: var(--space-xs);
}

@media (min-width: 480px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Portfolio / Showcase ---------- */
.showcase {
  background: var(--bg-secondary);
  position: relative;
}

.showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 10%, transparent 70%);
}

.showcase__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.showcase__device {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 255, 255, 0.08);
  animation: borderPulse 4s ease-in-out infinite;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.showcase__device:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 255, 255, 0.15);
}

.showcase__device img {
  width: 100%;
  display: block;
}

.showcase__info h3 {
  color: var(--accent);
  margin-bottom: var(--space-xs);
  font-size: 0.8rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.showcase__info h2 {
  margin-bottom: var(--space-sm);
}

.showcase__info p {
  margin-bottom: var(--space-md);
}

.showcase__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-lg);
}

.showcase__features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.5em;
  position: relative;
}

.showcase__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .showcase__wrap {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* ---------- Pricing Section ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration) var(--ease), border-color 0.5s, box-shadow 0.5s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.1);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
  animation: borderPulse 4s ease-in-out infinite;
}

.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.pricing-card__price span {
  font-size: 0.4em;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}

.pricing-card__features {
  text-align: left;
  margin-bottom: var(--space-lg);
}

.pricing-card__features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  padding-left: 1.5em;
  position: relative;
}

.pricing-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 1px;
  transform: translateY(-50%) rotate(45deg);
}

.pricing-card__features li.excluded {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-card__features li.excluded::before {
  border-color: var(--text-muted);
  opacity: 0.4;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .pricing-card--featured {
    transform: scale(1.03);
  }

  .pricing-card--featured:hover {
    transform: scale(1.03) translateY(-4px);
  }
}

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto var(--space-sm);
  position: relative;
}

/* Corner accents on step numbers */
.step__number::before,
.step__number::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--signal);
  border-style: solid;
}

.step__number::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.step__number::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.step h3 {
  margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }

  /* Connector line between steps — dashed for classified doc feel */
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -10%;
    width: 20%;
    height: 1px;
    background: repeating-linear-gradient(
      90deg,
      var(--border) 0,
      var(--border) 4px,
      transparent 4px,
      transparent 8px
    );
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

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

.faq-question__icon {
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item.open .faq-question__icon {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: var(--space-md);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Contact Section ---------- */
.contact {
  background: var(--bg-secondary);
}

.contact__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.contact-aside h3 {
  margin-bottom: var(--space-sm);
}

.contact-aside p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color var(--duration) var(--ease);
}

.contact-links a:hover {
  color: var(--accent);
}

.privacy-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-md);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl) 0;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
  .contact__wrap {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 auto;
}

.footer a {
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

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

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.footer__links a {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Perimeter Trace Hover ---------- */
/* On hover, a line traces around the card border */
.why-card::after,
.pricing-card::after,
.guide-card::after,
.guide-service::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    var(--trace-angle, 0deg),
    var(--accent) 0%,
    var(--signal) 15%,
    transparent 30%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.why-card:hover::after,
.pricing-card:hover::after,
.guide-card:hover::after,
.guide-service:hover::after {
  opacity: 1;
  animation: perimeterTrace 1.5s linear infinite;
}

/* ---------- Animations ---------- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes borderPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 25px rgba(255, 255, 255, 0.2), 0 0 50px rgba(255, 255, 255, 0.05); }
}

@keyframes dataStream {
  0%   { left: -30%; }
  100% { left: 130%; }
}

@keyframes perimeterTrace {
  from { --trace-angle: 0deg; }
  to   { --trace-angle: 360deg; }
}

/* Register custom property for animation */
@property --trace-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Scroll animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.scale-reveal {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-in.visible,
.slide-left.visible,
.slide-right.visible,
.scale-reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }

/* ---------- Boot Sequence — Cinematic Globe ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #030303;
  transition: opacity 0.6s ease-out, visibility 0.6s;
}

.boot.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* HUD Overlay */
.boot__hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  pointer-events: none;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.boot__hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.boot__hud-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.boot__hud-coord {
  font-size: 0.6rem;
  color: rgba(200, 200, 200, 0.5);
  letter-spacing: 0.1em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.boot__hud-center {
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.boot__target-label {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(200, 200, 200, 0.4);
  animation: targetPulse 1s ease-in-out infinite;
}

.boot__target-label--searching {
  color: rgba(255, 255, 255, 0.7);
  animation: none;
}

.boot__target-label--none {
  color: #e0e0e0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  letter-spacing: 0.3em;
  animation: targetReveal 0.5s ease-out;
}

.boot__target-label--intercept {
  color: #f0f0f0;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  animation: targetPulse 0.5s ease-in-out infinite;
}

.boot__target-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(200, 200, 200, 0.5);
  margin-top: 0.5rem;
}

.boot__target-sub--pulse {
  color: rgba(255, 255, 255, 0.6);
  animation: subtlePulse 0.8s ease-in-out infinite;
}

@keyframes targetPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes targetReveal {
  from { opacity: 0; transform: scale(1.2); letter-spacing: 0.5em; }
  to { opacity: 1; transform: scale(1); letter-spacing: 0.3em; }
}

@keyframes subtlePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

.boot__hud-bottom {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.boot__hud-status {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  transition: color 0.3s;
}

.boot__hud-bar {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
}

.boot__hud-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #666666, #ffffff);
  transition: width 0.4s ease-out;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* Flash transition */
.boot__flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  pointer-events: none;
}

/* Hide main content during boot */
body.booting .nav,
body.booting .hero,
body.booting section,
body.booting footer,
body.booting .noise-overlay,
body.booting .particles,
body.booting .cursor-glow {
  opacity: 0;
}

/* ---------- Noise Grain Overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---------- Particle Canvas ---------- */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Cursor glow (desktop) ---------- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  display: none;
}

/* ---------- About Section ---------- */
.about-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.about-content h3 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.about-content p {
  margin-bottom: var(--space-sm);
  font-size: 1rem;
  line-height: 1.8;
}

.about-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* ---------- Guide Pages ---------- */
.guide-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-md) var(--space-lg);
  overflow: hidden;
}

.guide-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}

.guide-hero__content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.guide-hero h1 {
  margin-bottom: var(--space-md);
}

.guide-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

/* Guide TOC Bar */
.guide-toc-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 40;
}

.guide-toc {
  max-width: 720px;
  margin: 0 auto;
}

.guide-toc__title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}

.guide-toc__title::-webkit-details-marker {
  display: none;
}

.guide-toc__title::before {
  content: '+ ';
}

details[open] > .guide-toc__title::before {
  content: '- ';
}

.guide-toc__list {
  margin-top: var(--space-sm);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  list-style: none;
  counter-reset: toc;
}

.guide-toc__list li {
  counter-increment: toc;
}

.guide-toc__list a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

.guide-toc__list a::before {
  content: counter(toc) '. ';
  color: var(--text-muted);
}

.guide-toc__list a:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .guide-toc__list {
    grid-template-columns: 1fr 1fr;
    gap: 4px var(--space-xl);
  }
}

/* Guide Article */
.guide-article {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.guide-container {
  max-width: 720px;
}

.guide-section {
  margin-bottom: var(--space-2xl);
  scroll-margin-top: calc(var(--nav-height) + 80px);
}

.guide-section h2 {
  margin-bottom: 0;
}

.guide-section h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.guide-section p {
  margin-bottom: var(--space-sm);
  font-size: 1rem;
  line-height: 1.8;
  max-width: none;
}

.guide-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.guide-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration) var(--ease);
}

.guide-section a:hover {
  color: var(--accent-light);
}

.guide-section code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.875em;
  color: var(--signal);
}

.divider--left {
  margin: var(--space-md) 0;
  margin-left: 0;
}

/* Guide Lists */
.guide-list {
  margin: var(--space-sm) 0 var(--space-md);
  padding-left: 0;
}

.guide-list li {
  padding: 6px 0 6px 1.5em;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.guide-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.8em;
  width: 5px;
  height: 5px;
  border: 1px solid var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.guide-list--numbered {
  counter-reset: guide-step;
}

.guide-list--numbered li {
  counter-increment: guide-step;
}

.guide-list--numbered li::before {
  content: counter(guide-step) '.';
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  border: none;
  width: auto;
  height: auto;
  transform: none;
  top: 6px;
}

/* Guide Callouts */
.guide-callout {
  background: var(--bg-card);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.guide-callout h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.guide-callout p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.guide-callout--warning {
  border-left-color: #f87171;
}

.guide-callout--warning h4 {
  color: #f87171;
}

.guide-callout--personal {
  border-left-color: var(--text-muted);
}

.guide-callout--personal h4 {
  color: var(--text-secondary);
}

.guide-callout--tip {
  border-left-color: #34d399;
}

.guide-callout--tip h4 {
  color: #34d399;
}

/* Guide Code Blocks */
.guide-code {
  background: #080b10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin: var(--space-sm) 0;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre;
}

/* Guide Breakdown Grid */
.guide-breakdown {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.guide-breakdown__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.guide-breakdown__item h4 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.guide-breakdown__item p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

@media (min-width: 480px) {
  .guide-breakdown {
    grid-template-columns: 1fr 1fr;
  }
}

/* Guide Checklist */
.guide-checklist {
  margin: var(--space-md) 0;
}

.guide-checklist__item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.guide-checklist__check {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2px;
}

.guide-checklist__item h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.guide-checklist__item p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Guide Services Grid */
.guide-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.guide-service {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: border-color 0.5s, box-shadow 0.5s;
}

.guide-service:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.guide-service h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.guide-service p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

@media (min-width: 480px) {
  .guide-services {
    grid-template-columns: 1fr 1fr;
  }
}

/* Guide CTA Box */
.guide-cta-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin-top: var(--space-xl);
  position: relative;
}

/* Corner accents on CTA box */
.guide-cta-box::before,
.guide-cta-box::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent);
  border-style: solid;
}

.guide-cta-box::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.guide-cta-box::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.guide-cta-box h3 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.guide-cta-box p {
  max-width: none;
  margin: 0 auto var(--space-md);
}

.guide-cta-box .btn {
  margin: 0 var(--space-xs);
}

/* Guides Index Grid */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.guide-card {
  display: flex;
  position: relative;
  overflow: hidden;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--duration) var(--ease), border-color 0.5s, box-shadow 0.5s;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}

.guide-card--coming {
  opacity: 0.6;
  cursor: default;
}

.guide-card--coming:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.guide-card__icon {
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

.guide-card__icon svg {
  display: block;
}

.guide-card__content h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.guide-card__content p {
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.guide-card__cta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.guide-card__cta--soon {
  color: var(--text-muted);
}

/* Guide Pricing Cards */
.guide-pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin: var(--space-md) 0 var(--space-lg);
}

.guide-pricing__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.guide-pricing__card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
  position: relative;
}

.guide-pricing__card--featured::before {
  content: 'Best Value';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.guide-pricing__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.guide-pricing__price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.guide-pricing__price span {
  font-size: 0.4em;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}

.guide-pricing .guide-list {
  text-align: left;
}

.guide-pricing .guide-list li::before {
  content: '';
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .guide-pricing {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .guide-pricing__card--featured {
    transform: scale(1.03);
  }
}

/* Active nav link */
.nav__link--active {
  color: var(--accent) !important;
}

.nav__link--active::after {
  width: 100% !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .fade-in,
  .slide-left,
  .slide-right,
  .scale-reveal {
    opacity: 1;
    transform: none;
  }

  .hero-reveal .hero__tagline,
  .hero-reveal .hero__title,
  .hero-reveal .hero__desc,
  .hero-reveal .hero__ctas {
    opacity: 1;
    transform: none;
  }

  .why-card:hover::after,
  .pricing-card:hover::after,
  .guide-card:hover::after,
  .guide-service:hover::after {
    opacity: 0;
  }
}
