:root {
  --bg: #090b11;
  --panel: #10131c;
  --panel-2: #141926;
  --border: #252b3c;
  --text: #f7f8fb;
  --muted: #a7aec4;
  --accent: #7c5cff;
  --accent-2: #8da2ff;
  --success: #16c784;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top, #121725 0%, var(--bg) 58%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header, .site-footer {
  background: rgba(9, 11, 17, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.site-footer { border-top: 1px solid rgba(255,255,255,0.04); border-bottom: none; }
.header-row, .footer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0;
}
.brand { font-weight: 800; font-size: 1.15rem; }
.brand span { color: var(--accent-2); }
.nav-links { display: flex; align-items: center; gap: 18px; color: var(--muted); }
.lang-switch {
  color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
}
.hero-section { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: start; }
.badge {
  display: inline-flex; padding: 8px 14px; border: 1px solid rgba(141,162,255,0.25); border-radius: 999px;
  color: #dce3ff; background: rgba(124,92,255,0.08); font-size: .92rem; margin-bottom: 20px;
}
.hero-copy h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; margin: 0 0 18px; }
.hero-copy p { color: var(--muted); font-size: 1.08rem; line-height: 1.75; margin: 0 0 24px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row span {
  color: #d5daf0; font-size: .94rem; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02);
  padding: 10px 14px; border-radius: 12px;
}
.hero-panel {
  background: linear-gradient(180deg, rgba(20,25,38,0.95), rgba(16,19,28,0.95));
  border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.panel-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; }
.panel-top small, .estimated { color: var(--muted); }
.panel-top strong { display: block; margin-top: 6px; font-size: 1rem; }
.state-block { display: none; }
.state-block.active { display: block; }
.chat-bubble {
  border-radius: 18px; padding: 16px 18px; margin-bottom: 16px; max-width: 88%; line-height: 1.6;
}
.chat-bubble.system { background: #171d2b; border: 1px solid #2d3548; }
.chat-bubble.user { background: rgba(124,92,255,0.12); border: 1px solid rgba(124,92,255,0.22); margin-left: auto; }
.primary-btn, .ghost-btn {
  border: 0; border-radius: 16px; padding: 14px 18px; font-weight: 700; cursor: pointer; font-size: .98rem;
}
.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 16px 40px rgba(124,92,255,.22);
}
.ghost-btn {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.full-btn { width: 100%; }
.chat-container {
  min-height: 250px; max-height: 420px; overflow-y: auto; padding-right: 6px; margin-bottom: 14px;
}
.input-row textarea, .form-grid input {
  width: 100%; background: #0d1118; border: 1px solid var(--border); color: var(--text);
  border-radius: 16px; padding: 14px 16px; font-size: 1rem; outline: none;
}
.input-row textarea:focus, .form-grid input:focus { border-color: var(--accent-2); }
.actions-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.actions-row button { flex: 1; }
.summary-box {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; padding: 18px; margin-bottom: 16px;
}
.summary-box h3 { margin: 0 0 10px; }
.summary-box p { margin: 0; color: var(--muted); line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.privacy-text { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.success-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.success-card {
  width: min(640px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 30px; text-align: center;
}
.success-card h1 { margin-top: 0; }
.success-card p { color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, 100%); }
  .header-row, .footer-row, .nav-links { flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-section { padding-top: 42px; }
  .hero-copy h1 { font-size: 2rem; }
}
