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

:root {
  --cream: #faf8f4;
  --cream2: #f3f0ea;
  --cream3: #ebe6db;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --faint: #d6d0c7;
  --blue: #4a9ebe;
  --font-head: "Fraunces", serif;
  --font-body: "Roboto Flex", sans-serif;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 200;
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

em {
  font-style: italic;
}

strong {
  font-weight: 500;
  color: var(--ink);
}

.btn-grid {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.24s ease both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9em;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9em;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid var(--muted);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.15s;
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ── NAV ── */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.logo {
  display: inline-block;
  vertical-align: middle;
  max-width: 150px;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* =========================
HAMBURGER
========================= */

.menu-toggle {
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  transition: transform 0.3s ease;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 999px;
  transition:
    transform 0.4s ease,
    opacity 0.3s ease,
    width 0.3s ease;
}

/* Animate into X */

.menu-toggle.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =========================
OVERLAY
========================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  z-index: 900;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================
OFFSCREEN MENU
========================= */

.offscreen-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(90%, 420px);
  height: 100vh;
  background: var(--cream2);
  backdrop-filter: blur(12px);
  padding: 8rem 3rem;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 999;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.offscreen-menu.active {
  transform: translateX(0);
}

@media screen and (max-width: 500px) {
  .offscreen-menu {
    width: 100%;
  }
}

/* =========================
NAV LINKS
========================= */

.offscreen-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.offscreen-menu a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: clamp(2rem, 2vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  position: relative;
  display: inline-block;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

/* Underline hover effect */

.offscreen-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0%;
  height: 2px;
  background: var(--blue);
  transition: width 0.35s ease;
}

.offscreen-menu a:hover {
  color: var(--blue);
  transform: translateX(6px);
}

.offscreen-menu a:hover::after {
  width: 100%;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 60px 100px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

/* Subtle dot grid */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--faint) 1px, transparent 3px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, black 10%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--blue);
  box-shadow: 0 0 5px var(--blue);
  color: var(--blue);
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 36px;
  animation: fadeUp 0.6s ease both;
}
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  animation: fadeUp 0.6s 0.08s ease both;
  color: var(--ink);
  margin-bottom: 0.3em;
}
h1 .accent-word {
  color: var(--blue);
}
h1 .green-word {
  color: var(--green);
}

.hero p {
  margin: 2em 0;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 0.72em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 0.6s 0.4s ease both;
}
.hero-scroll::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--faint);
}

.hero-costs {
  font-size: 0.8em;
  margin-top: 3em;
  color: var(--muted);
}

.hero-costs a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
}

.hero-costs a:hover {
  color: var(--green);
  border-color: var(--green);
}
/* ── SECTION SHARED ── */
section {
  padding: 120px 60px;
}

.section-label {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--ink);
}
/* ── HOW IT WORKS ── */
.how-strip {
  background: var(--ink);
  padding: 64px 60px;
}

.how-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  font-family: var(--font-head);
  font-size: 2.2em;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
}

.step-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1em;
  color: var(--cream);
}

.step-desc {
  font-size: 0.85em;
  color: rgba(250, 248, 244, 0.5);
  font-weight: 300;
  line-height: 1.65;
}
/* ── FREE REBUILD ── */
#free-rebuild {
  background: var(--cream2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rebuild-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.rebuild-price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
}

.price-free {
  font-family: var(--font-head);
  font-size: 5.5em;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.05em;
  line-height: 1;
}

.rebuild-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rebuild-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.rebuild-card:hover {
  border-color: rgba(74, 158, 190, 0.3);
  box-shadow: 0 4px 20px rgba(74, 158, 190, 0.08);
  transform: translateX(4px);
}

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.card-title {
  font-weight: 500;
  font-size: 0.9em;
  color: var(--ink);
}

.card-desc {
  font-size: 0.85em;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
}
/* ── CATCH SECTION ── */
#catch {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.catch-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.catch-intro {
  max-width: 730px;
  margin-bottom: 2em;
}

.catch-eyebrow {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.catch-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--ink);
}

.catch-heading em {
  color: var(--blue);
}

.catch-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
}

.catch-reason {
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 36px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.catch-reason:hover {
  border-color: rgba(74, 158, 190, 0.25);
  box-shadow: 0 4px 20px rgba(74, 158, 190, 0.06);
  transform: translateY(-4px);
}

.reason-title {
  font-size: 1.1em;
  margin: 0 0 0.9em;
  font-weight: 400;
  color: var(--ink);
}

.reason-desc {
  font-size: 0.9em;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

.catch-costs {
  font-size: 0.8em;
  color: var(--muted);
  text-align: center;
  max-width: 800px;
  margin: 2em auto 0;
}

.catch-costs a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
}

.catch-costs a:hover {
  color: var(--green);
  border-color: var(--green);
}
/* ── MAINTENANCE ── */
#maintenance {
  background: var(--cream2);
  border-top: 1px solid var(--border);
}

.maintenance-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.maintenance-header {
  max-width: 730px;
  margin-bottom: 2em;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plan-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.plan-card:hover {
  border-color: rgba(74, 158, 190, 0.3);
  box-shadow: 0 8px 32px rgba(74, 158, 190, 0.08);
  transform: translateY(-4px);
}

.plan-card.featured {
  background: var(--ink);
  border-color: var(--ink);
}

.plan-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.6em;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(250, 248, 244, 0.15);
  padding: 4px 10px;
  border-radius: 100px;
}

.plan-name {
  font-weight: 500;
  font-size: 0.95em;
  margin-bottom: 10px;
  color: var(--ink);
}

.plan-card.featured .plan-name {
  color: rgba(250, 248, 244, 0.7);
}

.plan-price {
  font-family: var(--font-head);
  font-size: 2.8em;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--ink);
}

.plan-price sup {
  font-size: 0.5em;
  font-weight: 500;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}

.plan-card.featured .plan-price {
  color: var(--cream);
}

.plan-period {
  font-size: 0.78em;
  color: var(--muted);
  margin-bottom: 24px;
}
.plan-card.featured .plan-period {
  color: rgba(250, 248, 244, 0.45);
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 22px;
}
.plan-card.featured .plan-divider {
  background: rgba(250, 248, 244, 0.1);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 0.85em;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 300;
  line-height: 1.4;
}

.plan-features li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 600;
  font-size: 0.75em;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-card.featured .plan-features li {
  color: rgba(250, 248, 244, 0.65);
}
.plan-card.featured .plan-features li::before {
  color: var(--green);
}

.plan-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85em;
  text-decoration: none;
  transition: all 0.2s;
}

.plan-btn-outline {
  border: 1px solid var(--faint);
  color: var(--ink);
}
.plan-btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.plan-btn-filled {
  background: var(--cream);
  color: var(--ink);
}
.plan-btn-filled:hover {
  background: var(--cream2);
}
/* ── ABOUT ── */
#about {
  background: var(--cream3);
  border-top: 1px solid var(--border);
}

#about p {
  margin-bottom: 1em;
}

.about-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-frame {
  aspect-ratio: 4/5;
  background: var(--cream2);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--ink-soft);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  position: relative;
}

.cta-band p {
  color: var(--cream2);
  font-size: 1em;
  margin-bottom: 36px;
  font-weight: 300;
  position: relative;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9em;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
  position: relative;
}
.btn-light:hover {
  background: var(--cream2);
  transform: translateY(-2px);
}
/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 48px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  max-width: 150px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 0.83em;
  color: rgba(250, 248, 244, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--cream);
}

.footer-copy {
  font-size: 0.78em;
  color: var(--muted);
}
/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
/* Fallback: if JS never fires, still show content */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 16px 24px;
  }
  .nav-links {
    display: none;
  }
  section {
    padding: 80px 24px;
  }
  .hero {
    padding: 120px 24px 80px;
  }
  .hero-scroll {
    left: 24px;
  }
  .rebuild-inner,
  .about-inner,
  .maintenance-header {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .how-inner {
    grid-template-columns: 1fr 1fr;
  }
  .how-strip {
    padding: 60px 24px;
  }
  .cta-band {
    padding: 60px 24px;
  }
  footer {
    padding: 40px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .about-accent-box {
    bottom: 12px;
    right: 12px;
  }
  .catch-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .catch-reasons {
    grid-template-columns: 1fr;
  }
}
