/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base: #0d1117;
  --bg-surface: #161b22;
  --bg-card: #1c2230;
  --bg-card-alt: #1a2035;
  --accent: #2ecc71;
  --accent-hover: #27ae60;
  --accent-dim: rgba(46, 204, 113, .12);
  --border: rgba(255, 255, 255, .07);
  --text-primary: #e6edf3;
  --text-muted: #8b949e;
  --text-link: #2ecc71;
  --red-dim: rgba(255, 90, 90, .15);
  --font: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 32px rgba(0, 0, 0, .45);
  --transition: 0.22s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: .78;
  text-decoration: underline;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--text-muted);
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -.2px;
}

.brand-icon {
  font-size: 18px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  background: var(--accent-dim);
  color: var(--accent);
  text-decoration: none;
  opacity: 1;
}

.nav-links a.nav-active {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  gap: 2px;
  background: var(--bg-surface);
}

.nav-mobile a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-mobile a:hover {
  background: var(--accent-dim);
  color: var(--accent);
  text-decoration: none;
  opacity: 1;
}

.nav-mobile a.nav-active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

.nav-mobile.open {
  display: flex;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }
}

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  background: linear-gradient(160deg, #0a1628 0%, #0d1117 60%);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 44px;
}

.page-hero-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -.4px;
  color: #f0f6fc;
  margin: 10px 0 6px;
}

.page-hero-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ===== LEGAL NARROW ===== */
.legal-narrow {
  max-width: 760px;
}

/* ===== LEGAL FOOTER LINKS ===== */
.legal-footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===== LEGAL BANNER (index.html) ===== */
.legal-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.legal-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-banner-inner>p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.legal-banner-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== HERO ===== */
.hero {
  padding: 72px 0 60px;
  background: linear-gradient(160deg, #0a1628 0%, #0d1117 60%);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.6px;
  margin-bottom: 18px;
  color: #f0f6fc;
}

.accent {
  color: var(--accent);
}

.hero-sub {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 28px;
  line-height: 1.75;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: .1px;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
}

.btn-primary:hover {
  background: var(--accent-hover);
  opacity: 1;
  text-decoration: none;
  color: #0d1117;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, .3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition);
}

.card:hover {
  border-color: rgba(46, 204, 113, .25);
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #f0f6fc;
  letter-spacing: -.3px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 40px 0 20px;
}

.content-col {
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 12.5px;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 14px;
}

/* ===== LISTS ===== */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.check-list li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent);
}

/* ===== DISCLAIMER BOX ===== */
.disclaimer-box {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #aad9b8;
  margin: 20px 0;
  line-height: 1.6;
}

/* ===== FAQ TABLE ===== */
.faq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.faq-table th {
  text-align: left;
  padding: 9px 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.faq-table td {
  padding: 11px 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.faq-table tr:hover td {
  background: rgba(255, 255, 255, .025);
}

.faq-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
  max-width: 160px;
}

/* ===== SIDEBAR ===== */
.sidebar-col {
  position: sticky;
  top: 72px;
}

.sidebar-card {
  background: var(--bg-card-alt);
}

.signal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.signal-list li {
  font-size: 13.5px;
  padding: 7px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.signal-list .ok {
  background: var(--accent-dim);
  color: #7ed9a0;
}

.signal-list .bad {
  background: var(--red-dim);
  color: #f4aaaa;
}

.reg-box {
  background: rgba(255, 255, 255, .04);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
}

.reg-box h3 {
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted) !important;
  margin-bottom: 6px !important;
  margin-top: 0 !important;
}

.reg-box p {
  font-size: 13px;
  color: var(--text-muted);
}

.sidebar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== SUBSCRIBE ===== */
.subscribe-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
}

.subscribe-inner {
  max-width: 680px;
}

.subscribe-text h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -.3px;
}

.subscribe-text p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.input-email {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.input-email:focus {
  border-color: var(--accent);
}

.input-email::placeholder {
  color: var(--text-muted);
}

.subscribe-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.subscribe-consent input {
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

.subscribe-msg,
.contact-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
}

.subscribe-msg.success,
.contact-msg.success {
  background: var(--accent-dim);
  color: #7ed9a0;
  border-left: 3px solid var(--accent);
}

.subscribe-msg.error,
.contact-msg.error {
  background: var(--red-dim);
  color: #f4aaaa;
  border-left: 3px solid #e74c3c;
}

/* ===== LEGAL SECTIONS ===== */
.legal-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.alt-bg {
  background: var(--bg-surface);
}

.legal-header {
  margin-bottom: 32px;
}

.legal-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(46, 204, 113, .3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.legal-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  letter-spacing: -.4px;
  color: #f0f6fc;
  margin-bottom: 6px;
}

.legal-date {
  font-size: 12.5px;
  color: var(--text-muted);
}

.legal-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.legal-body p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.75;
}

.legal-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.legal-body ul {
  padding-left: 18px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal-body ul li {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== CONTACT ===== */
.contact-section {
  padding: 64px 0;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 780px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.contact-text>p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 12px 0 28px;
  line-height: 1.75;
}

.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  transition: border-color var(--transition);
}

.contact-info-item:hover {
  border-color: rgba(46, 204, 113, .3);
}

.ci-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.contact-info-item a {
  font-size: 12.5px;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-card);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.dot {
  color: var(--border);
  font-size: 16px;
}

/* ===== UTILITIES ===== */
.hide-sm {
  display: block;
}

@media (max-width: 500px) {
  .hide-sm {
    display: none;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .2);
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(46, 204, 113, .25);
  color: #f0f6fc;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner>* {
  animation: fadeInUp .55s ease both;
}

.hero-inner>*:nth-child(1) {
  animation-delay: .05s;
}

.hero-inner>*:nth-child(2) {
  animation-delay: .12s;
}

.hero-inner>*:nth-child(3) {
  animation-delay: .19s;
}

.hero-inner>*:nth-child(4) {
  animation-delay: .26s;
}

.hero-inner>*:nth-child(5) {
  animation-delay: .33s;
}