:root {
  --bg: #0E0E0E;
  --ink: #0E0E0E;
  --accent: #6FBEF0;
  --accent-soft: rgba(111, 190, 240, 0.12);
  --line: rgba(14, 14, 14, 0.08);
  --muted: #5b5b62;
  --shadow: 0 30px 80px -30px rgba(14, 14, 14, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0E0E0E;
  box-shadow: 0 14px 40px -10px rgba(111, 190, 240, 0.55);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: #ffffff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

section {
  padding: 120px 0;
  position: relative;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h2 .accent {
  color: var(--accent);
  font-style: italic;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.page-hero {
  position: relative;
  padding: 170px 0 100px;
  background: #0E0E0E;
  color: #ffffff;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 190, 240, 0.22), transparent 70%);
  filter: blur(50px);
  animation: float 14s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(40px); }
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 14px 0 18px;
  position: relative;
  z-index: 2;
}

.page-hero h1 .accent {
  color: var(--accent);
  font-style: italic;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  border-radius: 40px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  z-index: 2;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% { opacity: 0.4; }
}

/* ═══════════════════════════════════════════
   PROCESS TIMELINE (DESKTOP)
═══════════════════════════════════════════ */
.process {
  background: #fafafa;
}

.process-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 980px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent) 8%, var(--accent) 92%, transparent);
  transform: translateX(-50%);
  opacity: 0.3;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.step .ball {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 22px;
  z-index: 2;
  box-shadow: 0 10px 30px -10px rgba(111, 190, 240, 0.5);
  transition: all 0.5s;
}

.step:hover .ball {
  background: var(--accent);
  color: #0E0E0E;
  transform: scale(1.1) rotate(10deg);
}

.step .ball::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(111, 190, 240, 0.5);
  opacity: 0;
  transition: opacity 0.4s;
}

.step:hover .ball::before {
  opacity: 1;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.step-card {
  padding: 28px 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.step-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 14px;
}

.step-card .ico svg {
  width: 22px;
  height: 22px;
}

.step-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--muted);
  font-size: 14.5px;
}

.step-card .duration {
  display: inline-block;
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 30px;
}

.step.right .step-card {
  grid-column: 3;
}

.spacer {
  height: 1px;
}

/* PHASE LABELS */
.phase {
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  padding: 18px 0;
  position: relative;
  z-index: 2;
  margin: 10px 0 -10px;
}

/* FIX: display: inline-block fixes the broken border issue on mobile */
.phase span {
  display: inline-block;
  background: #fafafa;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 30px;
}

/* STATS */
.stats {
  background: #0E0E0E;
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  padding: 36px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  text-align: center;
  transition: all 0.4s;
}

.stat:hover {
  transform: translateY(-8px);
  background: rgba(111, 190, 240, 0.08);
  border-color: var(--accent);
}

.stat .n {
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}

.stat .l {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: 0.06em;
}

/* GUARANTEE */
.guarantees {
  background: #ffffff;
}

.guar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guar {
  padding: 34px;
  background: linear-gradient(160deg, #ffffff, #f4faff);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: all 0.4s;
}

.guar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.guar .ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #9ad3f5);
  display: grid;
  place-items: center;
  color: #0E0E0E;
  margin-bottom: 18px;
}

.guar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 10px;
}

.guar p {
  color: var(--muted);
  font-size: 14.5px;
}

/* CTA */
.cta {
  padding: 120px 0;
}

.cta-inner {
  background: linear-gradient(135deg, #0E0E0E, #1a1a1a);
  color: #ffffff;
  border-radius: 32px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 190, 240, 0.3), transparent 70%);
  filter: blur(40px);
}

.cta-inner::after {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 190, 240, 0.2), transparent 70%);
  filter: blur(40px);
}

.cta-inner h2 {
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 2;
  font-size: 17px;
}

.cta-inner .actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: 0.1s;
}

.reveal.delay-2 {
  transition-delay: 0.2s;
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════════ */
@media(max-width: 1000px) {

  .container { width: min(1200px, 94%); }

  /* Timeline: vertical line on the left, ball sits ON the line, card on right */
  .timeline {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    gap: 22px;
  }
  .timeline::before {
    left: 28px;
    transform: none;
    opacity: 0.45;
  }

  /* Force every step into a single row: ball | card */
  .step,
  .step.right {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    grid-template-areas: "ball card" !important;
    column-gap: 16px !important;
    align-items: flex-start !important;
  }

  /* Kill spacers so they never reserve a column */
  .step .spacer { display: none !important; }

  /* Ball: fixed circle on the line, never deformed, never clipped */
  .step .ball,
  .step.right .ball {
    grid-area: ball !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    flex: none !important;
    font-size: 20px !important;
    margin: 4px 0 0 0 !important;
    align-self: start !important;
    justify-self: center !important;
  }

  /* Hide the spinning dashed ring on mobile to avoid overflow */
  .step .ball::before { display: none !important; }

  /* Card: fills remaining space, never overflows the viewport */
  .step .step-card,
  .step.right .step-card {
    grid-area: card !important;
    grid-column: card !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 22px 20px !important;
    border-radius: 16px !important;
  }

  .step-card h3 { font-size: 19px; }
  .step-card p { font-size: 14px; }

  /* Phase label aligned with the cards column */
  .phase {
    text-align: left !important;
    padding-left: 72px !important; /* 56px ball + 16px gap */
  }
  .phase span {
    background: #fafafa;
    font-size: 11px;
  }

  /* Hover effects that shift things off-screen on touch — neutralise */
  .step-card:hover { transform: none; }
  .step:hover .ball { transform: none; }

  .stats-grid,
  .guar-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  section { padding: 80px 0; }
  .page-hero { padding: 130px 0 80px; }
  .cta-inner { padding: 50px 26px; border-radius: 24px; }
}

@media(max-width: 600px) {
  .stats-grid,
  .guar-grid { grid-template-columns: 1fr; }

  .container { width: min(1200px, 92%); }

  .timeline::before { left: 24px; }

  .step,
  .step.right {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    column-gap: 14px !important;
  }

  .step .ball,
  .step.right .ball {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    font-size: 17px !important;
  }

  .step .step-card,
  .step.right .step-card {
    padding: 20px 18px !important;
    border-radius: 14px !important;
  }

  .step-card h3 { font-size: 17.5px; }
  .step-card p  { font-size: 13.5px; line-height: 1.55; }
  .step-card .duration { font-size: 10.5px; padding: 3px 9px; }

  .phase { padding-left: 62px !important; }

  .page-hero h1 { font-size: clamp(32px, 8vw, 44px); }
}

@media(max-width: 380px) {
  .step,
  .step.right {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    column-gap: 12px !important;
  }
  .step .ball,
  .step.right .ball {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-size: 15px !important;
  }
  .timeline::before { left: 21px; }
  .phase { padding-left: 54px !important; }
  .step .step-card,
  .step.right .step-card { padding: 18px 16px !important; }
}