/* EzdeLity — premium landing & legal pages */

:root {
  --bg: #f0f4fa;
  --bg-2: #e4ecf7;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --ink: #0b1528;
  --ink-2: #2a3a55;
  --muted: #5f708a;
  --line: rgba(15, 35, 70, 0.1);
  --brand-900: #042a52;
  --brand-800: #063d78;
  --brand-700: #0a5cad;
  --brand-500: #1a8fd4;
  --brand-300: #4ec8f0;
  --brand-100: #b8ecff;
  --accent: #00c9b8;
  --accent-2: #00e5ff;
  --grad: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-500) 48%, var(--accent-2) 100%);
  --grad-soft: linear-gradient(135deg, rgba(6, 61, 120, 0.08), rgba(0, 229, 255, 0.1));
  --shadow-xs: 0 1px 2px rgba(8, 24, 48, 0.04);
  --shadow-sm: 0 4px 20px rgba(8, 24, 48, 0.06);
  --shadow-md: 0 12px 40px rgba(6, 45, 90, 0.1);
  --shadow-lg: 0 24px 60px rgba(4, 42, 82, 0.14);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 20px 50px rgba(10, 92, 173, 0.18);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
  --header: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 60% at 0% -10%, rgba(0, 229, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(10, 92, 173, 0.1), transparent 50%),
    linear-gradient(180deg, #f6f9fd 0%, var(--bg) 40%, #eef3fa 100%);
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--brand-700);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover { color: var(--brand-900); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: box-shadow 0.28s var(--ease), background-color 0.28s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: clamp(40px, 8vw, 52px);
  width: auto;
  object-fit: contain;
}

.logo-footer-badge {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.logo-footer-badge .logo-img {
  height: 44px;
}

.nav-toggle { display: none; }

.nav-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle-btn span,
.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: 0.25s var(--ease);
}

.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-btn span::before { top: -6px; }
.nav-toggle-btn span::after { top: 6px; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  padding: 0.45rem 0.2rem;
  position: relative;
}

.nav a:hover,
.nav a.is-active { color: var(--ink); }

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 0.62rem 1.1rem !important;
  border-radius: 999px;
  background: var(--grad) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px rgba(6, 61, 120, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s !important;
}

.nav-cta:hover {
  color: #fff !important;
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(6, 61, 120, 0.34);
}

/* ─── Mesh / orbs (shared visuals) ─── */
.mesh {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(10, 92, 173, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 92, 173, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: 5%;
  background: rgba(0, 229, 255, 0.35);
}

.orb-2 {
  width: 280px;
  height: 280px;
  bottom: -60px;
  left: 0;
  background: rgba(26, 143, 212, 0.28);
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.05); }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__copy { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-800);
  margin-bottom: 1.25rem;
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 201, 184, 0.2);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 34rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.chip {
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-800);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.88rem 1.45rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover { color: #fff; filter: brightness(1.04); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover {
  border-color: rgba(10, 92, 173, 0.25);
  color: var(--brand-800);
}

/* Hero visual — network card */
.hero-visual {
  position: relative;
  z-index: 1;
}

.visual-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  pointer-events: none;
}

.network-viz {
  position: relative;
  aspect-ratio: 1.1;
  margin-bottom: 1.25rem;
  border-radius: calc(var(--radius-lg) - 8px);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #f8fbff, #edf4fc);
  border: 1px solid var(--line);
  overflow: hidden;
}

.network-viz svg {
  width: 100%;
  height: 100%;
}

.network-viz .node {
  animation: nodePulse 3s ease-in-out infinite;
}

.network-viz .node:nth-child(2) { animation-delay: 0.4s; }
.network-viz .node:nth-child(3) { animation-delay: 0.8s; }
.network-viz .node:nth-child(4) { animation-delay: 1.2s; }
.network-viz .link { stroke-dasharray: 6 8; animation: dash 8s linear infinite; }

@keyframes nodePulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes dash { to { stroke-dashoffset: -80; } }

.visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  position: relative;
}

.stat-pill {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.stat-pill strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-pill span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Sections ─── */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.35));
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-head.centered {
  text-align: center;
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 0.6rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: var(--grad-soft);
  border: 1px solid rgba(10, 92, 173, 0.08);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* How it works */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.how-step {
  position: relative;
  padding: 1.45rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.how-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.how-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(0, 201, 184, 0.1);
  margin-bottom: 0.85rem;
}

.how-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
}

.how-step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1rem 3rem 1rem 1.1rem;
  color: var(--ink-2);
  font-weight: 600;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.faq-item summary:hover {
  background: rgba(0, 201, 184, 0.08);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "▾";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: center;
  color: var(--accent);
  font-size: 1rem;
  transition: transform 0.22s var(--ease);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s var(--ease);
}

.faq-content p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 1.1rem 0;
  color: var(--ink-2);
}

.faq-item[open] .faq-content {
  grid-template-rows: 1fr;
}

.faq-item[open] .faq-content p {
  padding: 0.1rem 1.1rem 1rem;
}

/* How it works — timeline */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-2));
  opacity: 0.35;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 24px rgba(6, 61, 120, 0.25);
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.step p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Pricing */
.pricing-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.price-row:last-child { border-bottom: none; }
.price-row:hover { background: var(--surface-2); }

.price-row span:first-child { color: var(--ink-2); font-weight: 500; }

.price-row span:last-child {
  font-weight: 700;
  color: var(--brand-800);
  white-space: nowrap;
}

/* Legal cards */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.legal-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  min-height: 100%;
}

.legal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.legal-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(6, 61, 120, 0.2);
}

.legal-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.legal-card h3 a { color: inherit; }
.legal-card h3 a:hover { color: var(--brand-700); }

.legal-card p {
  margin: 0 0 1.25rem;
  flex: 1;
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-card .link-arrow {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-700);
}

/* Contacts */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child { border-bottom: none; }

.contact-list .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ─── Legal document pages ─── */
.page-hero {
  position: relative;
  padding: 2.5rem 0 2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(240,244,250,0.5));
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.breadcrumbs a { color: var(--brand-700); font-weight: 500; }

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.legal-doc {
  padding: 2.5rem 0 4.5rem;
}

.legal-doc-inner {
  width: min(100% - 2rem, 820px);
  margin-inline: auto;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.legal-doc h1 { display: none; }

.legal-doc h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-800);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(10, 92, 173, 0.1);
}

.legal-doc h3 {
  margin-top: 1.35rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.legal-doc p,
.legal-doc li { color: var(--ink-2); }

.legal-doc ul { padding-left: 1.2rem; }

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.legal-doc th,
.legal-doc td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.legal-doc th {
  background: var(--surface-2);
  font-weight: 600;
}

.legal-doc blockquote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--brand-500);
  background: var(--grad-soft);
  border-radius: 0 14px 14px 0;
}

.legal-doc pre {
  background: #0b1528;
  color: #d8e8f8;
  border-radius: 14px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.88rem;
}

.legal-doc hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 2rem 0;
}

/* Success page */
.success-page {
  min-height: calc(100vh - var(--header) - 120px);
  display: grid;
  place-items: center;
  padding: 3rem 0;
}

.success-card {
  text-align: center;
  max-width: 28rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.success-ring {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 201, 184, 0.12), rgba(0, 229, 255, 0.15));
  border: 2px solid rgba(0, 201, 184, 0.25);
  animation: successPop 0.6s var(--ease);
}

@keyframes successPop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-card h1 {
  margin: 0 0 0.65rem;
  font-size: 1.65rem;
  font-weight: 800;
}

.success-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* ─── Footer ─── */
.site-footer {
  position: relative;
  background: #071222;
  color: #9eb0c8;
  padding: 3.5rem 0 1.75rem;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.footer-brand p {
  margin: 0.85rem 0 0;
  max-width: 22rem;
  line-height: 1.6;
  font-size: 0.92rem;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: #c5d4e8;
  font-size: 0.92rem;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #6d8098;
}

.back-top {
  color: var(--brand-300) !important;
  font-weight: 600;
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; margin-inline: auto; }
  .how-it-works-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .steps::before { display: none; }
  .contact-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle-btn { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header) - 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .nav a {
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-of-type { border-bottom: none; }

  .nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }

  .nav-toggle:checked ~ .nav { display: flex; }

  .header-inner { position: relative; flex-wrap: wrap; }

  .nav-toggle:checked + .nav-toggle-btn span { background: transparent; }
  .nav-toggle:checked + .nav-toggle-btn span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-btn span::after { transform: translateY(-6px) rotate(-45deg); }

  .visual-stats { grid-template-columns: 1fr; }
  .legal-doc-inner { padding: 1.35rem 1.15rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
