/* ==========================================================================
   CODE MARINA — site styles
   Brand blue kept from the previous site: #0077be
   ========================================================================== */

:root {
  --blue: #0077be;
  --blue-600: #0068a8;
  --blue-100: #e3f1fa;
  --blue-50: #f0f7fc;
  --cyan: #4cc3f0;
  --navy: #071b2e;
  --navy-2: #0b2540;
  --green: #12b76a;

  --bg: #f7f9fb;
  --surface: #ffffff;
  --ink: #0b1622;
  --ink-2: #3f4f5e;
  --muted: #5b6b7a;
  --line: rgba(11, 22, 34, 0.09);
  --line-strong: rgba(11, 22, 34, 0.16);

  --on-dark: #eaf2f8;
  --on-dark-2: #9fb3c4;
  --line-dark: rgba(255, 255, 255, 0.1);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 72px;
  --container: 1200px;
  --gutter: 20px;
  --section: clamp(72px, 10vw, 128px);
}

@media (min-width: 600px) {
  :root { --gutter: 32px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(0, 119, 190, 0.2); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 2000;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.03em; }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 36rem;
  text-wrap: pretty;
}

.section-head {
  display: grid;
  gap: 20px 48px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .h2 { margin-top: 20px; }

@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.15fr 1fr; }
  .section-head .lead { justify-self: end; padding-bottom: 6px; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  min-height: 50px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.4s var(--ease-out),
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    box-shadow 0.4s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 28px -14px rgba(0, 119, 190, 0.7);
}
.btn-primary:hover {
  background: var(--blue-600);
  box-shadow: 0 16px 36px -14px rgba(0, 119, 190, 0.75);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-100); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.nav.is-scrolled {
  background: rgba(247, 249, 251, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.nav.is-menu-open {
  background: transparent;
  border-color: transparent;
  color: var(--on-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: inherit;
}
.brand svg { width: 34px; height: 34px; flex: none; }

.nav-links { display: none; gap: 2px; }
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(11, 22, 34, 0.05); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { display: none; }

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.35s, background 0.35s;
}
.lang button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: background 0.25s, color 0.25s;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nav.is-menu-open .lang { border-color: var(--line-dark); background: rgba(255, 255, 255, 0.06); }
.nav.is-menu-open .lang button { color: var(--on-dark-2); }
.nav.is-menu-open .lang button[aria-pressed="true"] { background: #fff; color: var(--navy); }

.menu-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: border-color 0.35s;
}
.menu-btn i {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.menu-btn i::before,
.menu-btn i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.menu-btn i::before { top: 0; }
.menu-btn i::after { top: 10px; }
.nav.is-menu-open .menu-btn { border-color: var(--line-dark); }
.nav.is-menu-open .menu-btn i::before { top: 5px; transform: rotate(45deg); }
.nav.is-menu-open .menu-btn i::after { top: 5px; transform: rotate(-45deg); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 48px;
  background: var(--navy);
  color: var(--on-dark);
  clip-path: circle(0px at calc(100% - 42px) 36px);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s 0.7s;
}
.menu.is-open {
  clip-path: circle(160% at calc(100% - 42px) 36px);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s;
}
.menu ul { display: flex; flex-direction: column; gap: 6px; }
.menu li a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}
.menu.is-open li a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s + var(--i) * 0.07s);
}
.menu li a:hover { color: var(--cyan); }
.menu-foot {
  margin-top: 40px;
  color: var(--on-dark-2);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.6s 0.6s;
}
.menu.is-open .menu-foot { opacity: 1; }
.menu-foot .btn { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  z-index: -2;
  right: -20vw;
  top: -22vw;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(76, 195, 240, 0.32), rgba(0, 119, 190, 0.12) 55%, transparent 100%);
  filter: blur(50px);
  pointer-events: none;
  animation: drift 20s ease-in-out infinite alternate;
}

.hero-waves {
  position: absolute;
  z-index: -1;
  inset: auto 0 0 0;
  height: 60%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%);
  mask-image: linear-gradient(180deg, transparent, #000 25%);
}
.hero-waves canvas { width: 100%; height: 100%; display: block; }

.hero-inner {
  position: relative;
  padding-block: clamp(40px, 8vh, 96px) clamp(88px, 12vh, 140px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 10px;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-eyebrow i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.hero-eyebrow i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  animation: pulse 2.2s ease-out infinite;
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.6rem, 7.4vw, 6.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 13ch;
  text-wrap: balance;
}

.hl {
  position: relative;
  display: inline-block;
  color: var(--blue);
}
.hl svg {
  position: absolute;
  left: -2%;
  bottom: -0.06em;
  width: 104%;
  height: 0.24em;
  overflow: visible;
}
.hl path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.9;
}
.js .hl path { animation: draw 1s var(--ease-out) 1.15s forwards; }

.hero .lead { margin-top: 32px; max-width: 34rem; }

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

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll i {
  position: relative;
  width: 1px;
  height: 44px;
  background: var(--line-strong);
  overflow: hidden;
}
.hero-scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: var(--blue);
  animation: scrollDot 2s var(--ease-in-out) infinite;
}
@media (min-width: 900px) and (min-height: 700px) {
  .hero-scroll { display: flex; }
}

/* Word-by-word headline reveal */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.w > span { display: inline-block; }
.js .w > span {
  transform: translateY(115%);
  animation: rise 1s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 0.07s + 0.15s);
}

.js .fade-up {
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; }
.marquee li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-2);
}
.marquee li::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease-out), border-color 0.3s, box-shadow 0.5s var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 119, 190, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 119, 190, 0.4);
  box-shadow: 0 28px 56px -36px rgba(0, 119, 190, 0.45);
}
.card:hover::before { opacity: 1; }

.card-idx {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-50);
  border: 1px solid rgba(0, 119, 190, 0.12);
  color: var(--blue);
  transition: transform 0.5s var(--ease-out);
}
.card:hover .card-icon { transform: translateY(-2px) rotate(-4deg); }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.65; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Product spotlight (dark)
   -------------------------------------------------------------------------- */

.product {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
}
.product::before {
  content: "";
  position: absolute;
  left: -20%;
  top: -30%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 119, 190, 0.35), transparent);
  filter: blur(40px);
  pointer-events: none;
}
.product .eyebrow { color: var(--cyan); }
.product .lead { color: var(--on-dark-2); }

.product-grid {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}

.product-name {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}
.product-name small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  padding: 6px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-weight: 600;
}
.product h2 { margin-top: 14px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; color: var(--on-dark); }
.product .lead { margin-top: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.04);
}
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Illustrated app mockup */
.mock {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 0.92;
  margin-inline: auto;
  container-type: inline-size;
  perspective: 1200px;
}
.mock-app {
  position: absolute;
  inset: 4% 0 auto 0;
  height: 72%;
  padding: 6cqw;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}
.mock-bar { display: flex; gap: 6px; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mock-steps {
  display: flex;
  align-items: center;
  gap: 3cqw;
  margin-top: 7cqw;
}
.mock-step {
  display: flex;
  align-items: center;
  gap: 2cqw;
  font-size: clamp(9px, 2.8cqw, 14px);
  font-weight: 600;
  color: var(--on-dark-2);
  white-space: nowrap;
}
.mock-step b {
  display: grid;
  place-items: center;
  width: 6cqw;
  height: 6cqw;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  font-size: clamp(8px, 2.4cqw, 12px);
  color: var(--on-dark);
}
.mock-step.is-on b { background: var(--blue); border-color: var(--blue); color: #fff; }
.mock-step.is-on { color: var(--on-dark); }
.mock-steps > i { flex: 1; height: 1px; background: var(--line-dark); }
.mock-rows { display: grid; gap: 3cqw; margin-top: 7cqw; }
.mock-row { height: 2.4cqw; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.mock-row.w60 { width: 60%; }
.mock-row.w80 { width: 80%; }
.mock-row.w40 { width: 40%; }

.mock-invoice {
  position: absolute;
  right: 3%;
  bottom: 0;
  width: 56%;
  padding: 5cqw;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.4);
  transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
}
.mock-invoice header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(10px, 3cqw, 15px);
  letter-spacing: 0.1em;
  color: var(--blue);
}
.mock-invoice header span {
  font-family: var(--font-mono);
  font-size: clamp(8px, 2.2cqw, 11px);
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.mock-line { height: 2cqw; border-radius: 999px; background: #e3eaf0; margin-top: 3.5cqw; }
.mock-line.w70 { width: 70%; }
.mock-line.w50 { width: 50%; }
.mock-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5cqw;
  padding-top: 4cqw;
  border-top: 1px dashed var(--line-strong);
  font-weight: 700;
  font-size: clamp(9px, 2.8cqw, 14px);
}
.mock-total i { display: block; width: 30%; height: 2.6cqw; border-radius: 999px; background: var(--blue); }

.mock-badge {
  position: absolute;
  left: 2%;
  bottom: 14%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2.4cqw 3.6cqw;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: clamp(9px, 2.8cqw, 14px);
  box-shadow: 0 24px 50px -20px rgba(18, 183, 106, 0.8);
  animation: float 6s ease-in-out infinite reverse;
}
.mock-badge svg { width: 1.2em; height: 1.2em; }

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 40px 24px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  transition: width 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.18s + 0.2s);
}
.step.in::before { width: 100%; }
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue);
}
.step h3 { margin-top: 18px; font-size: 1.3rem; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.65; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact { background: var(--surface); border-top: 1px solid var(--line); }

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
}
.contact .h2 { margin-top: 20px; }
.contact .lead { margin-top: 20px; }

.contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.contact-item > svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--blue); }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.contact-value {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  font-weight: 600;
  line-height: 1.4;
}
.contact-value a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(0, 119, 190, 0.4);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
@media (hover: hover) { .contact-value a:hover { color: var(--blue); text-decoration-color: var(--blue); } }
.contact-value .ext { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--blue); text-decoration: none; }
.contact-value .ext svg { width: 14px; height: 14px; }
.contact-value .ext:hover { text-decoration: underline; }

.reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px dashed rgba(0, 119, 190, 0.55);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s, border-style 0.2s;
}
.reveal-btn svg { width: 16px; height: 16px; }
.reveal-btn:hover { background: var(--blue-50); border-style: solid; }

.copy-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-50); }
.copy-btn[data-copied="true"] { color: var(--green); border-color: var(--green); }
.copy-btn[data-copied="true"]::after {
  content: attr(data-copied-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  animation: fadeUp 0.3s var(--ease-out);
}

.revealed { animation: fadeUp 0.5s var(--ease-out); }

.map {
  position: relative;
  min-height: 340px;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}
.map-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background-image: radial-gradient(circle, rgba(11, 22, 34, 0.16) 1px, transparent 1.6px);
  background-size: 22px 22px;
}
.map-ph::before {
  content: "";
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 119, 190, 0.14), transparent);
  pointer-events: none;
}
.map-pin {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 119, 190, 0.65);
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  animation: pulse 2.4s ease-out infinite;
}
.map-pin svg { width: 24px; height: 24px; }
.map-ph strong { position: relative; font-family: var(--font-display); font-size: 1.1rem; }
.map-ph .map-note { position: relative; font-size: 0.8rem; color: var(--muted); max-width: 30ch; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy);
  color: var(--on-dark);
  padding: 72px 0 32px;
}
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; } }
.footer .brand { color: #fff; }
.footer-tag { margin-top: 18px; color: var(--on-dark-2); max-width: 30ch; font-size: 0.95rem; }
.footer h4 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--on-dark);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.footer li a svg { width: 14px; height: 14px; }
.footer li a:hover { opacity: 1; color: var(--cyan); }
.footer .lang { border-color: var(--line-dark); background: rgba(255, 255, 255, 0.05); }
.footer .lang button { color: var(--on-dark-2); }
.footer .lang button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--on-dark-2);
}
.footer-legal { font-size: 0.78rem; color: var(--on-dark-2); margin-top: 16px; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-6vw, 5vw); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scrollDot { 0% { top: -50%; } 100% { top: 110%; } }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .w > span { transform: none; }
  .js .fade-up, .js .reveal { opacity: 1; transform: none; }
  .hl path { stroke-dashoffset: 0; }
  .step::before { width: 100%; }
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; }
  .marquee ul:last-child { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .hero-glow, .hero-scroll { display: none; }
}

/* --------------------------------------------------------------------------
   Small follow-ups
   -------------------------------------------------------------------------- */
.mock-line, .mock-row { display: block; }
section[id], main[id] { scroll-margin-top: calc(var(--nav-h) - 8px); }
