:root {
  --ink: #0E1A2B;
  --ink-2: #16243B;
  --ink-3: #1F2F49;
  --ivory: #F0E6D2;
  --ivory-2: #FBF8F1;
  --ivory-muted: #B8AE9A;
  --gold: #C9A961;
  --gold-2: #D4B574;
  --gold-soft: rgba(201, 169, 97, 0.12);
  --border: rgba(240, 230, 210, 0.12);
  --border-strong: rgba(240, 230, 210, 0.24);
  --border-dark: rgba(14, 26, 43, 0.12);
  --paper: #F7F2E5;
  --paper-2: #EFE8D6;
  --text-on-paper: #1A2438;
  --text-on-paper-muted: #5A6478;
  --danger: #C25B5B;

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.32);

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ivory);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: var(--gold-2); text-decoration: none; transition: color 180ms var(--ease); }
a:hover { color: var(--ivory-2); }

a[target="_blank"] { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a[target="_blank"]:hover { text-decoration-color: var(--gold); }

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 26, 43, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ivory-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--border-strong);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  color: var(--ivory);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  position: relative;
  padding-block: 0.25rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}

.site-nav a:hover { color: var(--ivory-2); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-cta { white-space: nowrap; }

@media (max-width: 820px) {
  .site-nav { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(201, 169, 97, 0.18);
}

.btn-primary:hover {
  background: var(--gold-2);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(201, 169, 97, 0.28);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(240, 230, 210, 0.06);
  color: var(--ivory-2);
}

.btn-link {
  background: transparent;
  color: var(--ivory-2);
  padding-inline: 0.5rem;
  border-radius: 0;
  position: relative;
}

.btn-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.55rem;
  height: 1px;
  background: var(--gold);
  transition: background 180ms var(--ease);
}

.btn-link:hover { color: var(--ivory-2); }
.btn-link:hover::after { background: var(--ivory-2); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; }

@media (max-width: 540px) {
  .btn-block-mobile { width: 100%; }
}

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

.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 9rem);
  background:
    radial-gradient(1100px 600px at 85% 20%, rgba(201, 169, 97, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(31, 47, 73, 0.6), transparent 60%),
    var(--ink);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.45rem 0.9rem;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin-bottom: 1.6rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(201, 169, 97, 0.04); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ivory-2);
  margin-bottom: 1.4rem;
  max-width: 14ch;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ivory);
  max-width: 36rem;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.hero-sub-highlight {
  display: inline-block;
  padding: 0.05em 0.4em;
  margin: 0 0.05em;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.2rem;
  margin-bottom: 2.4rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ivory-muted);
  font-size: 0.9rem;
}

.hero-trust svg { color: var(--gold); }

/* Hero visual: judicial stamp */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.hero-glow {
  position: absolute;
  inset: 10% 10%;
  background: radial-gradient(closest-side, rgba(201, 169, 97, 0.25), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.stamp {
  position: relative;
  z-index: 1;
  width: clamp(260px, 32vw, 380px);
  aspect-ratio: 1;
  color: var(--gold);
  transform: rotate(-6deg);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
  animation: stamp-in 900ms var(--ease) both;
}

.stamp-svg {
  width: 100%;
  height: 100%;
  animation: stamp-rotate 24s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-6deg) scale(0.6); }
  to   { opacity: 1; transform: rotate(-6deg) scale(1); }
}

@keyframes stamp-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 280px; }
  .stamp { width: 240px; }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
}

.section:first-of-type { border-top: 0; }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ivory-2);
  margin-bottom: 1rem;
}

.section-lede {
  font-size: 1.05rem;
  color: var(--ivory-muted);
  max-width: 38rem;
  line-height: 1.6;
}

.section-head-center .section-lede { margin-inline: auto; }

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

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-step {
  background: var(--ink-2);
  padding: 2rem 1.5rem;
  position: relative;
  transition: background 240ms var(--ease);
}

.process-step:hover { background: var(--ink-3); }

.process-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.2rem;
  color: var(--ivory-2);
  margin-bottom: 0.7rem;
}

.process-step p {
  font-size: 0.95rem;
  color: var(--ivory-muted);
  line-height: 1.55;
}

@media (max-width: 980px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- Benefits ---------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.benefit-card {
  padding: 2rem;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease);
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--ink-3);
}

.benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-strong);
}

.benefit-card h3 {
  font-size: 1.18rem;
  color: var(--ivory-2);
  margin-bottom: 0.6rem;
}

.benefit-card p {
  font-size: 0.96rem;
  color: var(--ivory-muted);
  line-height: 1.55;
}

@media (max-width: 720px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ---------- Qualifier (light) ---------- */

.section-qualifier {
  background: var(--paper);
  color: var(--text-on-paper);
  border-top: 0;
}

.section-qualifier .section-eyebrow { color: #8B6B22; }
.section-qualifier .section-title { color: var(--text-on-paper); }
.section-qualifier .section-lede { color: var(--text-on-paper-muted); }

.qualifier-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.qualifier-list {
  display: grid;
  gap: 1.2rem;
}

.qualifier-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  background: var(--paper-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}

.qualifier-check {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold-2);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.section-qualifier .qualifier-check { background: var(--ink); color: var(--gold-2); }

.qualifier-list h3 {
  font-size: 1.05rem;
  color: var(--text-on-paper);
  margin-bottom: 0.35rem;
}

.qualifier-list p {
  font-size: 0.92rem;
  color: var(--text-on-paper-muted);
  line-height: 1.5;
}

@media (max-width: 820px) {
  .qualifier-inner { grid-template-columns: 1fr; }
}

/* ---------- Form (light) ---------- */

.section-form {
  background: var(--paper);
  color: var(--text-on-paper);
  border-top: 1px solid var(--border-dark);
}

.section-form .section-eyebrow { color: #8B6B22; }
.section-form .section-title { color: var(--text-on-paper); }
.section-form .section-lede { color: var(--text-on-paper-muted); }

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.form-side .form-points {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--text-on-paper);
}

.form-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.form {
  background: var(--ivory-2);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.6rem;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.2rem;
}

.form fieldset + fieldset {
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-dark);
}

.form-legend {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B6B22;
  margin-bottom: 0.2rem;
  padding: 0;
}

.field { display: grid; gap: 0.45rem; }

.field label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-on-paper);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--text-on-paper);
  font-size: 0.95rem;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.field input::placeholder { color: #9aa3b3; }

.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.field input.is-invalid {
  border-color: var(--danger);
  background: #fff5f5;
}

.field-error {
  display: none;
  font-size: 0.82rem;
  color: var(--danger);
  margin-top: 0.15rem;
}

.field.has-error .field-error { display: block; }

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-paper);
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio:hover { border-color: var(--gold); }

.radio:has(input:checked) {
  background: var(--ink);
  color: var(--ivory-2);
  border-color: var(--ink);
}

.radio:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-on-paper-muted);
  text-align: center;
}

.form-error {
  padding: 0.8rem 1rem;
  background: #fff5f5;
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.88rem;
  text-align: center;
}

.form-success {
  display: none;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.2rem 1.3rem;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  color: var(--text-on-paper);
}

.form-success strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.2rem; }
.form-success p { font-size: 0.92rem; color: var(--text-on-paper-muted); }
.form-success .qualifier-check { background: var(--gold); color: var(--ink); }
.form.is-success .form-success { display: flex; }
.form.is-success > fieldset, .form.is-success > .btn-block, .form.is-success > .form-note { display: none; }

@media (max-width: 820px) {
  .form-wrap { grid-template-columns: 1fr; }
}

/* ---------- CTA section ---------- */

.section-cta {
  background:
    radial-gradient(800px 400px at 20% 100%, rgba(201, 169, 97, 0.12), transparent 60%),
    var(--ink);
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--ivory-2);
  margin-bottom: 0.5rem;
  max-width: 22ch;
}

.cta-sub {
  color: var(--ivory-muted);
  max-width: 40rem;
}

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

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  color: var(--ivory-muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .brand { color: var(--ivory-2); margin-bottom: 0.8rem; }

.footer-tag {
  font-size: 0.95rem;
  color: var(--ivory-muted);
  max-width: 24rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-cols h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  font-weight: 500;
}

.footer-cols ul { display: grid; gap: 0.5rem; }
.footer-cols a { color: var(--ivory-muted); }
.footer-cols a:hover { color: var(--ivory-2); }
.footer-contact li { font-size: 0.92rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.footer-disclaimer {
  max-width: 40rem;
  text-align: right;
  color: #6a7184;
}

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; }
  .footer-disclaimer { text-align: left; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 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;
  }
  .reveal { opacity: 1; transform: none; }
  .stamp { animation: none; }
  .stamp-svg { animation: none; }
  .eyebrow-dot { animation: none; }
}

/* ---------- Focus visibility ---------- */

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