/* ============================================================
   CryptoEscrowService.com — coming-soon landing
   Light & clean, zen.land-style. Handcrafted, no framework.
   ============================================================ */

@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  /* palette */
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e7ebf2;
  --line-soft: #eef1f6;

  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-tint: #eef2ff;
  --grad: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);

  /* type */
  --font: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* shape */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 6px 16px -4px rgba(15, 23, 42, .10), 0 2px 6px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 30px 60px -18px rgba(79, 70, 229, .28), 0 12px 28px -12px rgba(15, 23, 42, .12);

  /* layout */
  --container: 1120px;
  --container-narrow: 760px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv05' 1, 'ss01' 1;
}

h1, h2, h3 { color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); }

/* ---------- accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%);
  top: 10px; z-index: 100;
  background: var(--ink); color: #fff;
  padding: .6rem 1rem; border-radius: 10px; font-weight: 600;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateX(-50%) translateY(0); color: #fff; }

:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-name-dim { color: var(--muted); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: inherit; font-weight: 600; font-size: 1rem;
  padding: .82rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease;
}
.btn-sm { padding: .55rem 1rem; font-size: .94rem; }
.btn-primary {
  color: #fff;
  background-image: var(--grad);
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .6);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(79, 70, 229, .7); }
.btn-primary:active { transform: translateY(0); }
.btn-on-dark {
  color: var(--accent-strong);
  background: #fff;
  box-shadow: 0 8px 20px -10px rgba(2, 6, 23, .5);
}
.btn-on-dark:hover { color: var(--accent-strong); transform: translateY(-1px); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.9rem); }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 520px; z-index: 0;
  background:
    radial-gradient(60% 60% at 78% 8%, rgba(124, 58, 237, .14), transparent 70%),
    radial-gradient(55% 55% at 12% 0%, rgba(99, 102, 241, .14), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-tint); color: var(--accent-strong);
  font-weight: 600; font-size: .82rem; letter-spacing: .02em;
  padding: .4rem .8rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(79, 70, 229, .16);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(79, 70, 229, .55);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .5); }
  70% { box-shadow: 0 0 0 9px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.hero-title {
  margin: 1.1rem 0 0;
  font-size: clamp(2.35rem, 1.5rem + 4.2vw, 4rem);
  font-weight: 800; letter-spacing: -0.035em;
}
.hero-sub {
  margin-top: 1.25rem; max-width: 36ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  color: var(--muted); line-height: 1.6;
}

/* ---------- notify form ---------- */
.notify-form { margin-top: 1.9rem; max-width: 480px; }
.field-row {
  display: flex; gap: .5rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: .35rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field-row:focus-within { border-color: rgba(79, 70, 229, .55); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.field {
  flex: 1 1 auto; min-width: 0;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  border: 0; background: transparent; padding: .6rem .25rem .6rem 1rem;
}
.field::placeholder { color: #9aa6b8; }
.field:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin-top: .7rem; font-size: .86rem; color: var(--muted); }

/* On small phones, stack the input above a full-width button so nothing crowds. */
@media (max-width: 440px) {
  .field-row { flex-direction: column; align-items: stretch; gap: .5rem; border-radius: 20px; padding: .5rem; }
  .field { padding: .75rem 1rem; }
  .field-row .btn { width: 100%; }
}

.form-status { margin-top: .7rem; font-size: .95rem; font-weight: 500; min-height: 1.2em; }
.form-status[data-state="error"] { color: #c0362c; }
.form-status[data-state="ok"] { color: #047857; }

/* success state: collapse the input row, show the message prominently */
.notify-form.is-done .field-row,
.notify-form.is-done .form-note { display: none; }
.notify-form.is-done .form-status {
  font-size: 1.05rem; display: inline-flex; align-items: center; gap: .5rem;
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: 1.1rem 1.5rem;
  margin-top: 1.9rem; color: var(--muted); font-size: .92rem; font-weight: 500;
}
.trust-row li { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row .ico { width: 18px; height: 18px; color: var(--accent); }

/* ---------- hero product card ---------- */
.hero-visual { display: flex; justify-content: center; }
.deal-card {
  width: 100%; max-width: 380px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.deal-head { display: flex; align-items: center; justify-content: space-between; }
.deal-id { font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.deal-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #ecfdf5; color: #047857; font-size: .78rem; font-weight: 600;
  padding: .28rem .6rem; border-radius: var(--radius-pill);
}
.deal-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.deal-amount { margin: 1.05rem 0 .2rem; display: flex; align-items: baseline; gap: .45rem; }
.deal-amount-value { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.deal-amount-unit { font-weight: 600; color: var(--muted); }
.deal-net {
  align-self: center;
  font-size: .66rem; font-weight: 700; letter-spacing: .04em;
  color: var(--accent-strong); background: var(--accent-tint);
  border: 1px solid rgba(79, 70, 229, .18);
  padding: .16rem .45rem; border-radius: var(--radius-pill);
}
.deal-parties {
  display: flex; align-items: center; gap: .6rem; justify-content: space-between;
  margin: 1.1rem 0; padding: .85rem 1rem;
  background: var(--bg-alt); border-radius: var(--radius);
}
.party { display: flex; flex-direction: column; gap: .1rem; }
.party-role { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.party-addr { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.party-arrow { width: 22px; height: 22px; color: var(--accent); flex: none; }
.deal-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem;
  margin: 0 0 1.1rem; font-size: .72rem; color: var(--muted); text-align: center;
}
.deal-steps li { position: relative; padding-top: 1.1rem; }
.deal-steps li::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line);
}
.deal-steps li::after {
  content: ""; position: absolute; top: 5px; left: calc(50% + 8px); right: calc(-50% + 8px);
  height: 2px; background: var(--line);
}
.deal-steps li:last-child::after { display: none; }
.deal-steps li.done { color: var(--ink-soft); font-weight: 600; }
.deal-steps li.done::before { background: var(--accent); border-color: var(--accent); }
.deal-steps li.done::after { background: var(--accent); }
.deal-steps li.current { color: var(--accent-strong); font-weight: 700; }
.deal-steps li.current::before {
  background: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .16);
}
.deal-fee {
  display: flex; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--line-soft);
  font-size: .9rem; color: var(--muted);
}
.deal-fee span:last-child { color: var(--ink); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--accent);
}
.section-title {
  margin-top: .6rem;
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem); font-weight: 800;
}
.section-lead { margin-top: .9rem; max-width: 52ch; color: var(--muted); font-size: 1.08rem; }

/* ---------- steps ---------- */
.steps {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.5vw, 1.8rem);
  counter-reset: none;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-tint); color: var(--accent-strong);
  font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.step p { color: var(--muted); }

/* ---------- features ---------- */
.features {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem);
}
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-tint); color: var(--accent); margin-bottom: 1rem;
}
.feature-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.18rem; margin-bottom: .45rem; }
.feature p { color: var(--muted); }

/* ---------- faq ---------- */
.faq { margin-top: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: .8rem; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .25rem 1.2rem;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: rgba(79, 70, 229, .28); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; font-weight: 600; color: var(--ink); font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq-body { padding: 0 0 1.1rem; color: var(--muted); max-width: 64ch; }

/* ---------- final CTA ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: clamp(20px, 3vw, 30px);
  background:
    radial-gradient(120% 140% at 0% 0%, #5b54e8 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, #7c3aed 0%, transparent 55%),
    linear-gradient(135deg, #4338ca, #4f46e5);
  color: #fff;
  padding: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-glow {
  position: absolute; inset: auto 0 -40% 0; height: 60%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 255, 255, .18), transparent 70%);
}
.cta-title { position: relative; color: #fff; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 800; }
.cta-sub { position: relative; margin: .9rem auto 0; max-width: 48ch; color: rgba(255, 255, 255, .85); font-size: 1.08rem; }
.cta-band .notify-form { position: relative; margin-inline: auto; margin-top: 1.8rem; }
.notify-form-inverse .field-row { border-color: transparent; box-shadow: 0 16px 40px -16px rgba(2, 6, 23, .5); }
.notify-form-inverse .form-note { color: rgba(255, 255, 255, .8); }
.notify-form-inverse .form-status[data-state="ok"] { color: #d1fae5; }
.notify-form-inverse .form-status[data-state="error"] { color: #fecaca; }
.notify-form-inverse.is-done .form-status { color: #fff; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: clamp(2.2rem, 4vw, 3rem) 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; }
.footer-note { color: var(--muted); font-size: .95rem; max-width: 46ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: center; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: #94a3b8; font-size: .85rem; }

/* legal / prose pages (privacy) */
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); }
.legal .updated { margin-top: .5rem; color: var(--muted); font-size: .92rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.legal p { margin-top: .9rem; color: var(--ink-soft); }
.legal ul { margin-top: .9rem; padding-left: 1.25rem; list-style: disc; }
.legal li { margin-top: .4rem; color: var(--ink-soft); }
.legal a { text-decoration: underline; }
.legal-back { margin-top: 2.4rem; }

/* ---------- reveal-on-scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .badge-dot { animation: none; }
}
