/* ============================================================
   AMP — Advertise. Market. Promote.
   Design system: near-black canvas, refined emerald accent,
   elegant Fraunces serif display, subtle glow, kinetic reveals.
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg-soft: #101018;
  --ink: #f2f2ef;
  --ink-dim: #9b9ba6;
  --volt: #34d399;
  --volt-soft: rgba(52, 211, 153, 0.12);
  --line: rgba(242, 242, 239, 0.12);
  /* Elegant serif display site-wide — editorial, premium, trustworthy.
     Fraunces has an optical-size axis and a full weight range. */
  --font-display: "Fraunces", Georgia, serif;
  --font-amp: "Fraunces", Georgia, serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

::selection { background: var(--volt); color: var(--bg); }

/* ============ LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font-amp);
  font-weight: 400;
  font-size: 3rem;
  letter-spacing: 0.05em;
  color: var(--volt);
  text-shadow: 0 0 40px rgba(52, 211, 153, 0.5);
}
.loader-bar {
  width: 180px;
  height: 2px;
  background: var(--line);
  margin: 1.2rem auto 0.8rem;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--volt);
  animation: charge 1s var(--ease-out) forwards;
}
@keyframes charge { to { width: 100%; } }
.loader-status { color: var(--ink-dim); }

/* ============ CURSOR ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--volt);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}
.cursor-ring.hovering {
  width: 64px; height: 64px;
  border-color: var(--volt);
}
@media (hover: none), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--volt);
  z-index: 9000;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  transition: padding 0.4s;
}
/* Blur lives on a pseudo-element: backdrop-filter on .nav itself would make it
   the containing block for the fixed mobile menu overlay. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled { padding: 0.7rem 3rem; border-bottom: 1px solid var(--line); }
.nav.scrolled::before {
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-logo {
  font-family: var(--font-amp);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark { color: var(--volt); margin-right: 0.1em; }
.logo-dot { color: var(--volt); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: var(--volt);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, color 0.3s;
  will-change: transform;
}
.btn-volt {
  background: var(--volt);
  color: #0a0a0f;
  box-shadow: 0 0 0 rgba(52, 211, 153, 0);
}
.btn-volt:hover {
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.3);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); }
.btn-small { padding: 0.55rem 1.3rem; font-size: 0.85rem; }
.btn-large { padding: 1.05rem 2.4rem; font-size: 1.05rem; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  overflow: hidden;
}
.wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}
.hero-inner { position: relative; z-index: 1; max-width: 1200px; }
.hero-kicker { color: var(--volt); margin-bottom: 1.5rem; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
/* Padding + negative margin widens each line's clip box so glyph overshoot and
   text-stroke survive the tight 0.95 leading without changing visual spacing. */
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.22em 0.08em;
  margin: -0.22em -0.08em;
}
.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: riseUp 0.9s var(--ease-out) forwards;
}
.hero-title .line:nth-child(2) .word { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) .word { animation-delay: 0.24s; }
@keyframes riseUp { to { transform: translateY(0); } }
/* Accent word: italic serif in the emerald accent — refined, not loud. */
.hero-title .accent { color: var(--volt); font-style: italic; }
.cursor-blink { animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub {
  margin-top: 2.5rem;
  max-width: 560px;
  color: var(--ink-dim);
  font-size: 1.1rem;
}
.hero-ctas { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  color: var(--ink-dim);
}
.rotator { color: var(--volt); min-width: 9ch; text-align: center; }

/* ============ TRUST BAR ============ */
.trustbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.trustbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  text-align: center;
  padding: 1.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-left: 1px solid var(--line);
  transition: color 0.3s;
}
.trust-item:first-child { border-left: none; }
.trust-item:hover { color: var(--volt); }

/* ============ MANIFESTO ============ */
.manifesto {
  padding: 10rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
/* Body face here on purpose: Bungee is caps-only and unreadable at paragraph
   length. Inter 600 keeps the statement weighty without breaking the system. */
.manifesto-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
}
/* Vertical padding on the inline spans has no layout effect but widens their
   composited-layer bounds, so descenders (g, y, p) don't get shaved during the
   opacity transition. */
.manifesto-text .w {
  opacity: 0.14;
  transition: opacity 0.4s;
  padding: 0.1em 0 0.22em;
}
.manifesto-text .w.lit { opacity: 1; }

/* ============ SECTIONS ============ */
.section { padding: 8rem 3rem; max-width: 1400px; margin: 0 auto; }
.section-head { margin-bottom: 4rem; }
.section-num {
  color: var(--volt);
  display: block;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.section-title em {
  font-style: italic;
  color: var(--volt);
}
.section-sub { color: var(--ink-dim); margin-top: 1.4rem; max-width: 520px; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}
.about-lead p {
  font-size: 1.15rem;
  color: var(--ink-dim);
  margin-bottom: 1.4rem;
}
.about-lead p:first-child { color: var(--ink); }
.about-lead p:last-child { margin-bottom: 0; }
.about-pillars { list-style: none; display: grid; gap: 1.4rem; }
.about-pillar {
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  transition: border-color 0.4s;
}
.about-pillar:hover { border-top-color: var(--volt); }
.pillar-label { color: var(--volt); display: block; margin-bottom: 0.7rem; }
.about-pillar h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.about-pillar p { color: var(--ink-dim); font-size: 0.95rem; }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  background: var(--bg-soft);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.service-card:hover {
  border-color: var(--volt);
  box-shadow: 0 0 50px rgba(52, 211, 153, 0.08), inset 0 0 60px rgba(52, 211, 153, 0.03);
  transform: translateY(-6px);
}
.service-letter {
  font-family: var(--font-amp);
  font-weight: 600;
  font-style: italic;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--volt);
  display: block;
  margin-bottom: 1.2rem;
}
.service-card:hover .service-letter { color: var(--volt); }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}
.service-card p { color: var(--ink-dim); font-size: 0.98rem; margin-bottom: 1.6rem; }
.service-card ul { list-style: none; }
.service-card li {
  color: var(--ink-dim);
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.service-card li::before { content: "→ "; color: var(--volt); }
.service-index {
  position: absolute;
  top: 2rem; right: 2rem;
  color: var(--ink-dim);
}

/* ============ CASE STUDY ============ */
.case {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 4rem 3.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(52, 211, 153, 0.07), transparent),
    var(--bg-soft);
}
.case-tag {
  display: inline-block;
  color: var(--volt);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.6rem;
}
.case-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.8vw, 2.8rem);
  margin-bottom: 1.2rem;
}
.case-body { color: var(--ink-dim); max-width: 720px; font-size: 1.1rem; }
.case-body strong { color: var(--ink); }
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--volt);
  display: block;
  line-height: 1;
}
.stat-label { color: var(--ink-dim); display: block; margin-top: 0.6rem; }
.case-note { color: var(--ink-dim); }

/* ============ PLANS ============ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.plan-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.6rem 2.2rem;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.plan-card:hover { transform: translateY(-6px); border-color: rgba(52, 211, 153, 0.5); }
.plan-card.featured {
  border-color: var(--volt);
  box-shadow: 0 0 60px rgba(52, 211, 153, 0.1);
}
.plan-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--volt);
  color: var(--bg);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-weight: 500;
}
.plan-card h3 {
  font-size: 1.15rem;
  color: var(--volt);
  letter-spacing: 0.2em;
}
.plan-tag {
  color: var(--ink-dim);
  margin: 0.5rem 0 1.6rem;
  font-size: 0.95rem;
}
.plan-card ul { list-style: none; flex: 1; margin-bottom: 2rem; }
.plan-card li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.plan-card li::before { content: "—"; color: var(--volt); margin-right: 0.5rem; }
.plan-card .btn { text-align: center; }

/* ============ PROCESS ============ */
.process-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.process-step {
  border-top: 2px solid var(--line);
  padding-top: 1.6rem;
  transition: border-color 0.4s;
}
.process-step:hover { border-top-color: var(--volt); }
.step-num { color: var(--volt); display: block; margin-bottom: 1rem; }
.process-step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}
.process-step p { color: var(--ink-dim); font-size: 0.95rem; }

/* ============ CONTACT ============ */
.contact { padding-bottom: 6rem; }
.contact-inner {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 5rem 3.5rem;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(52, 211, 153, 0.09), transparent),
    var(--bg-soft);
  text-align: center;
}
.contact-kicker { color: var(--volt); margin-bottom: 1rem; }
.contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 3rem;
}
.contact-title .volt { color: var(--volt); font-style: italic; }
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(242, 242, 239, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.12);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-dim); }
.contact-form .btn { align-self: center; margin-top: 1rem; }
.form-status { color: var(--volt); text-align: center; min-height: 1.2em; }
.hidden-field { display: none; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 3rem 2rem;
  overflow: hidden;
}
.footer-big {
  font-family: var(--font-amp);
  font-weight: 400;
  font-size: clamp(5rem, 19vw, 19rem);
  line-height: 1;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(52, 211, 153, 0.25);
  user-select: none;
  margin-bottom: 2rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--ink-dim);
  font-size: 0.88rem;
}
.footer-row a { color: var(--ink-dim); text-decoration: none; transition: color 0.25s; }
.footer-row a:hover { color: var(--volt); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .services-grid, .plans-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .case { padding: 3rem 2rem; }
  .case-stats { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .trustbar-inner { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(odd) { border-left: none; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .nav { padding: 1rem 1.4rem; }
  .nav.scrolled { padding: 0.8rem 1.4rem; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 2.4rem;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.5s var(--ease-out), visibility 0.5s;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-link { font-size: 1.4rem; }
  .nav-burger { display: flex; z-index: 10; }
  .nav-burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero { padding: 7rem 1.4rem 3rem; }
  .section { padding: 5rem 1.4rem; }
  .manifesto { padding: 6rem 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .contact-inner { padding: 3.5rem 1.6rem; }
  .footer { padding: 2.5rem 1.4rem 1.5rem; }
  .footer-row { justify-content: center; text-align: center; }
}

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