:root {
  --bg: #060d14;
  --bg2: #0b1622;
  --card: rgba(14, 28, 42, 0.88);
  --text: #eef4f9;
  --muted: #8fa8bc;
  --gold: #d4af37;
  --gold-dim: #9a7b2e;
  --accent: #2ec4a8;
  --accent2: #4a9eff;
  --warn: #e8c547;
  --err: #f07178;
  --border: rgba(212, 175, 55, 0.18);
  --max: 1140px;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.page-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 175, 55, 0.12), transparent),
    linear-gradient(180deg, rgba(6, 13, 20, 0.3) 0%, var(--bg) 85%);
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--gold); }

header.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(6, 13, 20, 0.82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.brand:hover { color: var(--gold); text-decoration: none; }

.brand-icon { filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35)); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0a0f14;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

.hero-inner { max-width: 760px; }

.hero-inner .btn-hero { margin-right: 0.65rem; margin-top: 0.5rem; }

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

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.btn-hero-secondary { display: inline-block; }

.hero-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
}

.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
}

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

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(11, 22, 34, 0.7);
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #b8942a);
  color: #0a0f14;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s, filter 0.15s;
  text-decoration: none;
}

.btn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; color: #0a0f14; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.section { margin-bottom: 3rem; }

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.25rem;
  max-width: 640px;
}

.warn-box {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border: 1px solid rgba(232, 197, 71, 0.35);
  border-left: 4px solid var(--warn);
  background: rgba(26, 22, 8, 0.65);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  font-size: 0.92rem;
  color: #e8d9a8;
}

.warn-box p { margin: 0; }
.warn-icon { flex-shrink: 0; opacity: 0.85; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.logo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  transition: border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}

.logo-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.logo-card img {
  max-width: 100%;
  max-height: 32px;
  object-fit: contain;
}

.logo-card-tether {
  border-color: rgba(38, 161, 123, 0.35);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.card-feature .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--gold);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
}

.card p:not(.pricing-price) { color: var(--muted); font-size: 0.92rem; margin: 0; }

.precedents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.prec-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  backdrop-filter: blur(10px);
}

.prec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.prec-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.prec-verified {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(46, 196, 168, 0.15);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.prec-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}

.prec-amount {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}

.prec-summary {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.prec-steps {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.prec-steps li { margin-bottom: 0.25rem; }

.prec-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.prec-sources a {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--accent2);
  background: rgba(74, 158, 255, 0.08);
}

.prec-sources a:hover {
  border-color: var(--accent2);
  text-decoration: none;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0a0f14;
  font-weight: 700;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
}

.form-card { margin-top: 1rem; }

.form-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  margin: 0 0 0.35rem;
}

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

.form-row-hidden { display: none; }

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

input, select, textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(6, 13, 20, 0.75);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.form-msg {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  min-height: 1.2rem;
}

.form-msg.ok { color: var(--accent); }
.form-msg.err { color: var(--err); }

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(6, 13, 20, 0.9);
}

footer p { margin: 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pricing-card { position: relative; }

.pricing-card-free {
  border-color: rgba(46, 196, 168, 0.35);
}

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

.pricing-card .pricing-price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  margin: 0.65rem 0 1rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
}

.pricing-calc { margin: 1.25rem 0; }

.pricing-calc h3 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.calc-row { margin-bottom: 0.75rem; }

.calc-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(6, 13, 20, 0.6);
  font-size: 0.92rem;
  color: var(--muted);
}

.calc-result ul { margin: 0.35rem 0 0; padding-left: 1.2rem; }

.payment-stages { margin-top: 1.5rem; }

.payment-stages h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0 0 0.75rem;
}

.steps-compact li { padding: 0.75rem 1rem 0.75rem 3.25rem; }

.pricing-note {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 0.85rem;
}

@media (max-width: 768px) {
  .header-inner { justify-content: center; }
  .main-nav { justify-content: center; }
  .lang-switch { margin: 0 auto; }
  .precedents-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-btn { padding: 0.3rem 0.5rem; font-size: 0.72rem; }
  .pricing-card .pricing-price { font-size: 2rem; }
}

/* Ops panel */
.panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.panel-toolbar label { margin: 0; font-size: 1rem; color: var(--muted); }

.panel-toolbar input {
  max-width: 280px;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  text-align: center;
}

.stat b { display: block; font-size: 1.75rem; color: var(--gold); }
.stat span { font-size: 0.95rem; color: var(--muted); }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.table-wrap-tall { max-height: 55vh; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg2);
  color: var(--muted);
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:hover td { background: rgba(18, 34, 49, 0.5); }

td.empty { text-align: center; color: var(--muted); padding: 1.5rem; }
