:root {
  --bg: #0f1115;
  --bg-2: #14171d;
  --card: #1a1d24;
  --card-2: #1f232b;
  --border: #2a2d35;
  --text: #e8e8e8;
  --muted: #9099a8;
  --accent: #4f7cff;
  --accent-hover: #6b90ff;
  --accent-ink: #ffffff;
  --brass: #e2c87e;
  --success: #7ee2a8;
  --success-bg: #1e3a2b;
  --warn: #e2c87e;
  --warn-bg: #3a3620;
  --danger: #ff6b6b;
  --danger-bg: #4a2323;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--text); }
.muted { color: var(--muted); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Nav --------------------------------------------------------------- */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(15,17,21,.92);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 50;
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: .92rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-select { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .35rem .5rem; font-size: .82rem; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .7rem 1.3rem; border-radius: var(--radius-sm); border: none; cursor: pointer;
  font-weight: 600; font-size: .92rem; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--card-2); color: var(--text); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem .8rem; font-size: .82rem; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: 72px 0 56px; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); text-wrap: balance; }
.hero .lede { font-size: 1.08rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.6rem 0 .8rem; }
.hero-note { font-size: .82rem; color: var(--muted); }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art img { width: 100%; max-width: 480px; height: auto; }
.art-placeholder {
  width: 100%; aspect-ratio: 3/2; border-radius: var(--radius); background: linear-gradient(160deg, var(--card), var(--bg-2));
  border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .8rem; text-align: center; padding: 1rem;
}
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } .hero-art { order: -1; } }

/* --- Sections ------------------------------------------------------------- */
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-alt { background: var(--bg-2); }

/* --- How it works ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 0 12px; }
.step-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.step-icon img { width: 36px; height: 36px; }
.step h3 { font-size: 1.05rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* --- Feature grid ---------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature-card .icon { width: 40px; height: 40px; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.02rem; }
.feature-card p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* --- Pricing --------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; }
.price-card .name { font-weight: 600; margin-bottom: 6px; }
.price-card .price { font-size: 1.8rem; font-weight: 700; margin: 6px 0 18px; }
.price-card .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }

/* --- Trial callout ------------------------------------------------------------ */
.callout {
  background: linear-gradient(135deg, var(--card), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; text-align: center; margin: 0 auto;
}
.callout h2 { font-size: 1.6rem; }

/* --- Footer ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: .85rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.copyright { font-size: .8rem; color: var(--muted); }

/* --- Forms / cards --------------------------------------------------------------- */
.auth-shell { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.card-narrow { width: 100%; max-width: 400px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: .65rem .8rem; font-size: .95rem;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 16px; text-align: center; }
.alert { padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .87rem; margin-bottom: 16px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }

/* --- Cabinet layout ------------------------------------------------------------------- */
.cabinet-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.cabinet-side { border-right: 1px solid var(--border); padding: 28px 16px; }
.cabinet-side nav { display: flex; flex-direction: column; gap: 4px; }
.cabinet-side a { color: var(--muted); padding: .55rem .8rem; border-radius: var(--radius-sm); font-size: .9rem; }
.cabinet-side a:hover { background: var(--card); color: var(--text); }
.cabinet-side a.active { background: var(--card); color: var(--text); font-weight: 600; }
.cabinet-main { padding: 32px 32px 60px; max-width: 760px; }
.cabinet-main h1 { font-size: 1.5rem; }
@media (max-width: 820px) {
  .cabinet-shell { grid-template-columns: 1fr; }
  .cabinet-side { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 16px; }
  .cabinet-side nav { flex-direction: row; overflow-x: auto; }
  .cabinet-main { padding: 24px 20px 48px; }
}

.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.stat-card h2 { font-size: 1.1rem; }
.badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; background: var(--bg-2); color: var(--muted); }
.badge-success { background: var(--success-bg); color: var(--success); }

table.sub-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
table.sub-table th, table.sub-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border); font-size: .87rem; }
table.sub-table th { color: var(--muted); font-weight: 500; }

.link-box {
  display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .6rem .8rem; font-family: ui-monospace, monospace; font-size: .82rem;
  overflow-x: auto; white-space: nowrap;
}
.link-box code { flex: 1; overflow-x: auto; }

.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 8px 0 20px; }
.method-option { display: block; }
.method-option input { position: absolute; opacity: 0; }
.method-option .box {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; font-size: .9rem;
  background: var(--bg-2);
}
.method-option input:checked + .box { border-color: var(--accent); background: rgba(79,124,255,.12); }
.method-option input:disabled + .box { opacity: .5; cursor: not-allowed; }

.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { margin-top: 2em; font-size: 1.2rem; }
