/* Crypto Juris - Light mode legal recovery design */
:root {
  --navy: #0a1628;
  --navy-soft: #1a2d4a;
  --swiss-red: #c62828;
  --swiss-red-hover: #a61f1f;
  --gold: #b8963e;
  --gold-soft: #d4b56a;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5a6577;
  --border: #e2e7ef;
  --success: #1b7a4e;
  --shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1180px;
  --a11y-font-scale: 1;
  --a11y-contrast: normal;
}

html.a11y-large {
  --a11y-font-scale: 1.18;
}

html.a11y-xlarge {
  --a11y-font-scale: 1.32;
}

html.a11y-contrast {
  --text: #000;
  --muted: #222;
  --bg: #fff;
  --border: #000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: calc(17px * var(--a11y-font-scale));
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(200, 40, 40, 0.06), transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(184, 150, 62, 0.1), transparent 45%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 40%, #eef2f8 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--swiss-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--swiss-red-hover);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(10, 22, 40, 0.12);
  background: #fff;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav a {
  color: var(--navy-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--swiss-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--swiss-red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(198, 40, 40, 0.25);
}

.btn-primary:hover {
  background: var(--swiss-red-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-call {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 248, 251, 0.78) 42%, rgba(255, 255, 255, 0.55) 100%),
    url("../assets/images/hero-office.png") center/cover no-repeat;
  z-index: -1;
}

.visual-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.visual-band img,
.scene-frame img {
  width: 100%;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.scene-frame {
  margin: 1.25rem 0 0;
}

.markets-visual {
  margin-bottom: 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.markets-visual img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 36rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-soft);
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.04);
}

.trust-pill img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hero-form-card,
.lead-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.hero-form-card h2,
.lead-form-card h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  color: var(--navy);
}

.form-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-soft);
  margin-bottom: 0.3rem;
}

label input,
label select,
label textarea {
  margin-top: 0.3rem;
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fbfcfe;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(198, 40, 40, 0.35);
  border-color: var(--swiss-red);
  background: #fff;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.form-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--swiss-red);
}

.hidden-other {
  display: none;
}

.hidden-other.show {
  display: block;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-tight {
  padding: 2rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.7);
  border-block: 1px solid var(--border);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.section h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin: 1.75rem 0 0.55rem;
}

.section p,
.prose p {
  color: var(--text);
  margin: 0 0 1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.security-banner {
  background: linear-gradient(90deg, #fff8f8, #fff);
  border: 1px solid #f0d0d0;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.security-banner strong {
  color: var(--swiss-red);
}

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

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

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

.market-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.market-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  color: inherit;
}

.market-card img {
  width: 42px;
  height: 30px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 0.8rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.market-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.market-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  max-width: 760px;
}

.prose.wide {
  max-width: 900px;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1.1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.partner-link {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
}

.partner-link:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.35rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--navy);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
}

.site-footer a:hover {
  color: var(--swiss-red);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.jurisdiction-note {
  background: #fff7e8;
  border: 1px solid #f0d9a0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: min(100%, 520px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: none;
  background: #f1f3f7;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* Cookie + a11y */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1500;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem;
  display: none;
  max-width: 720px;
  margin-inline: auto;
}

.cookie-banner.show {
  display: block;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.a11y-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1400;
}

.a11y-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}

.a11y-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: var(--shadow);
}

.a11y-menu.open {
  display: block;
}

.a11y-menu button {
  width: 100%;
  margin-bottom: 0.4rem;
  border: 1px solid var(--border);
  background: #f7f8fb;
  border-radius: 8px;
  padding: 0.55rem;
  cursor: pointer;
  font: inherit;
}

.sticky-security {
  position: sticky;
  bottom: 0;
  z-index: 800;
  background: #fff5f5;
  border-top: 1px solid #efd0d0;
  padding: 0.55rem 0;
  font-size: 0.82rem;
  color: var(--navy-soft);
}

.sticky-security .container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Page interior */
.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  color: var(--navy);
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.content-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.75rem;
  align-items: start;
}

.sidebar-sticky {
  position: sticky;
  top: 90px;
}

.related-list a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--navy-soft);
  font-weight: 600;
}

/* Animations */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: riseIn 0.7s ease both;
}

.animate-in.delay-1 {
  animation-delay: 0.12s;
}

.animate-in.delay-2 {
  animation-delay: 0.24s;
}

@media (max-width: 960px) {
  .hero-grid,
  .content-layout,
  .footer-grid,
  .steps,
  .markets,
  .partner-grid,
  .visual-band {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .btn-call span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
