:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #0f766e;
  --accent-soft: #ecfdf5;
  --accent-border: #a7f3d0;
  --tg: #229ed9;
  --tg-hover: #1b87bc;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-ink: #78350f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 10px 30px rgba(15, 23, 42, 0.04);
  --max-w: 960px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

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

/* Main */
main {
  padding: 36px 0 64px;
}

.section {
  margin-top: 40px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

/* Hero Card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 660px;
  margin: 0 auto 28px;
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
}

.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--tg);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.25);
}

.btn-tg:hover {
  background: var(--tg-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(27, 135, 188, 0.3);
}

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

.micro-caption {
  font-size: 13px;
  color: var(--muted);
}

/* Grid 2x2 */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.topic-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.topic-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.topic-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq-body {
  padding: 0 20px 18px;
  font-size: 14.5px;
  color: var(--text);
  border-top: 1px solid var(--surface-alt);
  padding-top: 12px;
}

/* Secondary CTA Card */
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--ink);
}

.cta-card p {
  margin: 0 auto 22px;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
}

/* Risk & Meta Disclaimer */
.disclaimer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.65;
}

.disclaimer-box h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.disclaimer-box p {
  margin: 0 0 10px;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

.meta-notice {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* Legal Document Pages */
.legal-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.legal-doc h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0 0 24px;
  font-size: 13.5px;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.legal-doc h2 {
  margin: 26px 0 10px;
  font-size: 18px;
  color: var(--ink);
}

.legal-doc p {
  margin: 0 0 12px;
  font-size: 15px;
}

.legal-doc ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-doc li {
  margin-bottom: 6px;
  font-size: 15px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
  color: var(--muted);
}

.back-link:hover {
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--ink);
}

.contact-card p {
  margin: 0;
  font-size: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0 36px;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-links a {
  color: var(--text);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--muted);
}

/* Cookie Bar */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 760px;
  margin: 0 auto;
  background: var(--ink);
  color: #f8fafc;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.25);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-bar.is-visible {
  display: flex;
}

.cookie-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: #e2e8f0;
}

.cookie-text a {
  color: #5eead4;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: #14b8a6;
  color: #042f2e;
}

.cookie-btn-primary:hover {
  background: #2dd4bf;
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 760px) {
  .topics-grid,
  .steps-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 28px 20px;
  }

  .legal-doc {
    padding: 24px 18px;
  }

  .nav {
    gap: 12px;
  }

  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}
