/* ============================================================
   JAR Automation — Shared Stylesheet
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg:            #06060f;
  --surface:       rgba(15, 16, 25, 0.7);
  --surface-solid: #0f1019;
  --accent:        #00e5a0;
  --accent-2:      #6366f1;
  --text:          #e8eaf0;
  --text-2:        #8b8fa3;
  --text-muted:    #4a4e69;

  --radius-card: 12px;
  --radius-sm:   8px;

  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(0, 229, 160, 0.35);

  /* consistent brand gradient — bottom-left (#00e5a0) to top-right (#6366f1) */
  --grad: linear-gradient(to top right, #00e5a0, #6366f1);

  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow: 0 0 40px rgba(0, 229, 160, 0.15);

  --maxw: 1160px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p { margin: 0; }

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

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

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

::selection {
  background: rgba(0, 229, 160, 0.25);
  color: #fff;
}

/* ---------- Background Layers ---------- */
/* Particle canvas */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Subtle grid texture overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 1;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, #000 40%, transparent 100%);
}

/* Ambient glow blobs */
.bg-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.bg-glow.one {
  top: -10%; left: -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.16), transparent 70%);
}
.bg-glow.two {
  bottom: -15%; right: -10%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 70%);
}

/* Content sits above background */
.page-wrap { position: relative; z-index: 1; }

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.section-pad { padding: 100px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-heading {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  max-width: 760px;
}

.section-sub {
  color: var(--text-2);
  font-size: 1.075rem;
  max-width: 620px;
  margin-top: 18px;
}

.text-accent { color: var(--accent); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #4dffc4);
  box-shadow: 0 0 10px rgba(0, 229, 160, 0.7);
  z-index: 200;
  transition: width 0.05s linear;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(6, 6, 15, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active {
  color: var(--accent);
}
.nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #04231a;
  box-shadow: 0 8px 24px rgba(0, 229, 160, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 229, 160, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}

/* Gradient border ring on hover (bottom-left → top-right).
   Uses a masked pseudo-element so only the 1px border shows the gradient. */
.grad-border { position: relative; }
.grad-border::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.grad-border:hover::after { opacity: 1; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.hero-inner { max-width: 860px; }

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), #7dffd0 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 26px;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--text-2);
  max-width: 560px;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Load-in animation (hero) */
.load-up {
  opacity: 0;
  transform: translateY(24px);
  animation: loadUp 0.9s var(--ease) forwards;
}
@keyframes loadUp {
  to { opacity: 1; transform: none; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: loadUp 0.9s var(--ease) 1s forwards;
}
.scroll-cue .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: cueBounce 1.6s infinite;
}
@keyframes cueBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ============================================================
   SECTION 2 — Animation Overview (3 panels)
   ============================================================ */
.overview { padding: 90px 0 110px; }

.overview-head { text-align: center; margin-bottom: 60px; }

.panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  position: relative;
}

/* glow behind middle panel */
.panels::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0, 229, 160, 0.16), transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.panel-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Chat panel --- */
.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-end;
  flex: 1;
}
.msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.msg.show { opacity: 1; transform: none; }
.msg .who {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.7;
}
.msg.jar {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg.jar .who { color: var(--accent); }
.msg.you {
  align-self: flex-end;
  background: rgba(0, 229, 160, 0.14);
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-bottom-right-radius: 4px;
  color: #eafff8;
}
.msg.you .who { color: #7dffd0; }

/* typing indicator */
.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.typing.show { opacity: 1; }
.typing.you {
  align-self: flex-end;
  background: rgba(0, 229, 160, 0.12);
}
.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-2);
  animation: typingDot 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* --- System / flow panel --- */
.flow {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 6px 0;
}
.node {
  width: 100%;
  max-width: 220px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.node.show { opacity: 1; transform: none; }
.node .sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-2);
  margin-top: 2px;
}
.node.teal {
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.4);
  color: var(--accent);
}
.node.indigo {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #b3b5ff;
}
.connector {
  width: 2px;
  height: 34px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.connector::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.connector.draw::after { transform: scaleY(1); }

.sent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 229, 160, 0.15);
  border: 1px solid rgba(0, 229, 160, 0.4);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.sent-badge.show {
  opacity: 1;
  transform: scale(1);
  animation: pulseBadge 1.8s ease-in-out infinite 0.4s;
}
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 229, 160, 0); }
}

/* --- Results panel --- */
.stats { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.stat { }
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.stat-label { color: var(--text-2); font-size: 0.9rem; font-weight: 500; }
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-bar {
  margin-top: 8px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.stat-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #4dffc4);
  transition: width 1.8s var(--ease);
}
.stars {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  font-size: 1.35rem;
}
.stars .star {
  color: var(--text-muted);
  opacity: 0.4;
  transform: scale(0.8);
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.stars .star.lit {
  color: #ffd166;
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   SECTION 3 — Problem
   ============================================================ */
.problem { padding: 90px 0; text-align: center; }
.problem-q {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  max-width: 820px;
  margin: 0 auto 26px;
}
.problem-q:last-of-type { margin-bottom: 40px; }
.problem-punch {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 64px;
}

/* customer journey */
.journey {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.journey-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 6px;
}
.j-step {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.journey-row.muted .j-step { color: var(--text-muted); background: rgba(255,255,255,0.02); }
.journey-row.teal .j-step {
  color: var(--accent);
  border-color: rgba(0, 229, 160, 0.35);
  background: rgba(0, 229, 160, 0.06);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.journey-row.teal.in .j-step { opacity: 1; transform: none; }
.j-arrow { color: var(--text-muted); font-size: 0.9rem; }
.journey-row.teal .j-arrow { color: var(--accent); }
.journey-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ============================================================
   SECTION 4 — Value Props
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  text-align: left;
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.25);
  color: var(--accent);
  margin-bottom: 22px;
}
.icon-badge svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.25rem; font-weight: 700; }
.value-card p { color: var(--text-2); margin-top: 10px; font-size: 0.97rem; }

/* ============================================================
   SECTION 5 — Social Proof
   ============================================================ */
.social {
  padding: 80px 0;
  text-align: center;
}
.social-line {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--text-2);
}
.social-line strong { color: var(--text); font-weight: 700; }
.testimonials {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
/* placeholder — testimonial cards dropped here later */

/* ============================================================
   SECTION 6 — CTA Banner
   ============================================================ */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 80px 40px;
  text-align: center;
  border: 1px solid rgba(0, 229, 160, 0.2);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(120deg,
    rgba(0, 229, 160, 0.22),
    rgba(99, 102, 241, 0.16),
    rgba(0, 229, 160, 0.22),
    rgba(6, 6, 15, 0.1));
  background-size: 300% 300%;
  animation: gradShift 12s ease infinite;
  z-index: 0;
}
@keyframes gradShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
}
.cta-banner p { color: var(--text-2); margin: 16px auto 32px; max-width: 480px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 6, 15, 0.6);
  backdrop-filter: blur(10px);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.footer-logo img { height: 32px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
.footer-nav a {
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}
.footer-nav a:hover { color: var(--accent); }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  color: var(--text-2);
  font-size: 0.92rem;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s var(--ease);
}
.footer-contact a:hover { color: var(--accent); }

/* small inline contact icons (footer + contact page) */
.ico {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   Jump-to-top button
   ============================================================ */
#to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #04231a;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 229, 160, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 90;
}
#to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
#to-top:hover { transform: translateY(-3px); }
#to-top svg { width: 20px; height: 20px; }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-head {
  padding: 90px 0 40px;
  text-align: center;
}
.page-head h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
}
.page-head p {
  color: var(--text-2);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 20px auto 0;
}

/* ============================================================
   SERVICES page — buckets
   ============================================================ */
.buckets {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
}
.bucket {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  align-items: start;
}
.bucket:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
.bucket .icon-badge { margin-bottom: 0; width: 64px; height: 64px; }
.bucket h3 { font-size: 1.4rem; font-weight: 700; }
.bucket > div > p { color: var(--text-2); margin-top: 12px; max-width: 620px; }
.bucket-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bucket-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bucket-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   FAQ (collapsible accordion)
   ============================================================ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item .chev {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item .faq-a {
  padding: 0 26px 24px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 640px;
}

/* ============================================================
   HOW IT WORKS — timeline
   ============================================================ */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 40px auto 0;
  padding-left: 8px;
}
.timeline-line {
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
  overflow: hidden;
}
.timeline-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
  transition: transform 0.15s linear;
}
.milestone {
  position: relative;
  padding: 0 0 60px 76px;
}
.milestone:last-child { padding-bottom: 0; }
.milestone .dot {
  position: absolute;
  left: 12px;         /* centres the 16px dot on the line (offset by the timeline's 8px padding) */
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid var(--text-muted);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  z-index: 1;
}
/* active: clean solid teal ring, transparent centre, with a subtle glow behind */
.milestone.in .dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(0, 229, 160, 0.15), 0 0 14px rgba(0, 229, 160, 0.45);
}
.milestone .stage {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.milestone h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 8px;
}
.milestone p { color: var(--text-2); margin-top: 12px; font-size: 1.02rem; }

/* sub-bullets under each milestone */
.milestone-points {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.milestone-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.96rem;
}
.milestone-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ============================================================
   ABOUT page
   ============================================================ */
.about-block {
  max-width: 760px;
  margin: 0 auto;
}
.about-block + .about-block { margin-top: 60px; }
.about-block h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.about-block p {
  color: var(--text-2);
  font-size: 1.12rem;
  line-height: 1.75;
}
.about-block p .text-accent { font-weight: 600; }

/* My Approach — three principle cards */
.approach {
  max-width: 1000px;
  margin: 40px auto 0;
}
.approach-card { text-align: left; }
.approach-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
/* gradient icon backgrounds on the approach cards */
.approach-card .icon-badge {
  background: var(--grad);
  border-color: transparent;
  color: #04231a;
}
.approach-card h3 { font-size: 1.2rem; font-weight: 700; }
.approach-card p { color: var(--text-2); margin-top: 10px; font-size: 0.97rem; }

/* ============================================================
   CONTACT page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-info h3 { font-size: 1.3rem; margin-bottom: 24px; }

/* desktop only: keep contact details anchored while the form scrolls.
   On mobile the column stays static and stacks above the form. */
@media (min-width: 768px) {
  .contact-info {
    position: sticky;
    top: 120px;
    align-self: flex-start;
  }
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon-badge {
  margin-bottom: 0;
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.contact-item .icon-badge svg { width: 20px; height: 20px; }
.contact-item .c-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-item .c-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.contact-item a.c-value:hover { color: var(--accent); }

.form-embed {
  min-height: 520px;
  padding: 0;
  overflow: hidden;
}
.form-embed iframe {
  width: 100%;
  border: 0;
  min-height: 520px;
  display: block;
}
.form-placeholder {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: var(--text-2);
  padding: 40px;
}
.form-placeholder .icon-badge { margin: 0 auto; }
.form-placeholder code {
  background: rgba(255,255,255,0.05);
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.85rem;
}
.form-note {
  margin-top: 28px;
  text-align: center;
  color: var(--text-2);
  font-size: 0.98rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.form-note a { color: var(--accent); font-weight: 600; }
.form-note a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .panels { grid-template-columns: 1fr; }
  .panels::before { display: none; }
  .panel { min-height: auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 72px 0; }
}

@media (max-width: 760px) {
  .nav-logo img { height: 36px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(8, 8, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    width: 100%;
    padding: 16px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a::after { display: none; }

  .bucket {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .bucket .icon-badge { width: 52px; height: 52px; }

  .hero-actions .btn { flex: 1; }
}

@media (max-width: 420px) {
  .container, .nav-inner { padding: 0 18px; }
  .card, .panel { padding: 22px; }
  .cta-banner { padding: 56px 24px; }
}
