@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --bg-soft: #0f1319;
  --bg-strong: #0f1319;
  --card: #131821;
  --border: rgba(255, 255, 255, 0.06);
  --text: #e6e8eb;
  --text-secondary: #aeb4be;
  --text-muted: #7e8694;
  --text-disabled: #5e6572;
  --brand: #8f2a2a;
  --brand-hover: #a73636;
  --brand-pressed: #742121;
  --gold: #c6b48a;
  --accent-line: #7fa0c3;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 45%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  padding: 26px 0 80px;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 140px;
  height: 520px;
  background: url("../assets/head-top-bg.png") center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 30px;
  background: rgba(15, 19, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}

.brand {
  max-width: 170px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-signin {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-signin:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 24px;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn-primary:active {
  background: var(--brand-pressed);
}

.hero {
  padding: 110px 0 160px;
}

.hero-inner {
  text-align: center;
}

.insights-hero .lead {
  margin: 0;
  max-width: 720px;
  text-align: left;
}

.insights-article h2 {
  font-size: clamp(1.7rem, 2.2vw, 1.9rem);
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(198, 180, 138, 0.12);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.34rem, 3.6vw, 3.24rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}

.lead {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  margin: 42px 0 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-links a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.hero-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.hero-tiles-secondary {
  margin: 20px 0 30px;
}

.tile {
  background: rgba(20, 23, 29, 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: left;
  box-shadow: var(--shadow);
}

.tile h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 600;
}

.tile p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.section {
  padding: 130px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-secondary);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: left;
}

.card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.icon-pill {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(201, 179, 124, 0.08);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

.card-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.card h3 {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.2;
  min-height: calc(1.2em * 2);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: rgba(174, 180, 190, 0.65);
  margin-bottom: 8px;
}

.card-icon i {
  font-size: 16px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.market-card {
  border: 1px solid var(--border);
  box-shadow: none;
}

.market-card h3 {
  margin-bottom: 8px;
}

.market-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.list-title {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
  opacity: 0.8;
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.85;
  padding-left: 18px;
  position: relative;
}

.list li {
  position: relative;
}

.list li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(198, 180, 138, 0.7);
}

.list.considerations li::before {
  background: rgba(143, 42, 42, 0.6);
}

.venue-group {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.venue-group span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.venue-list {
  color: rgba(174, 180, 190, 0.6);
  font-size: 0.85rem;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.strategy-grid .card {
  border: 1px solid var(--border);
  box-shadow: none;
}

.strategy-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.strategy-support {
  margin-top: 36px;
  text-align: left;
}

.strategy-support h3 {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 12px;
}

.strategy-support ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  padding-left: 0;
  margin-bottom: 12px;
}

.strategy-support li {
  position: relative;
  padding-left: 16px;
}

.strategy-support li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(198, 180, 138, 0.6);
}

.strategy-support p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.chart-grid {
  width: 100%;
  height: 140px;
  margin: 10px 0 16px;
}

.chart-grid .grid line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.chart-grid .trace {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 1.5;
}

.chart-grid .trace-secondary {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.5;
  opacity: 0.7;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

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

.insights-section .section-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.insights-section .section-head p {
  max-width: 720px;
}

.insights-section .grid {
  margin-top: 8px;
}

.insights-card {
  background: rgba(16, 20, 26, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.insights-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  background: rgba(14, 18, 24, 0.95);
}

.insights-micro {
  display: inline-flex;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(174, 180, 190, 0.55);
  margin-bottom: 6px;
}

.insights-card h3 {
  font-weight: 650;
  margin-bottom: 8px;
}

.insights-card p {
  color: rgba(230, 232, 235, 0.7);
  font-size: 0.9rem;
}

.insights-link {
  color: var(--text);
  text-decoration: none;
}

.insights-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.insights-arrow {
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 6px;
}

.cta {
  padding-bottom: 140px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: rgba(20, 23, 29, 0.7);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 24px;
  background: #0a0d11;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 22px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-top: 6px;
}

.footer-brand span {
  display: block;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-brand small {
  display: block;
  margin-top: 6px;
  color: var(--text-disabled);
  font-size: 0.78rem;
}

.footer-logo {
  max-width: 120px;
  margin-bottom: 16px;
  opacity: 0.55;
  filter: grayscale(1) brightness(1.2);
}

.footer-grid h4 {
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-grid a {
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.legal .section-head {
  margin-bottom: 36px;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.updates .section-head {
  margin-bottom: 32px;
}

.updates-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.update h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 6px;
}

.update span {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.update p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 8px;
}

.legal-content ul {
  list-style: none;
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.legal-content li {
  position: relative;
}

.legal-content li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(198, 180, 138, 0.6);
}

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.auth-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: none;
}

.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.auth-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-form input {
  background: #0f1319;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
}

.auth-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-link:hover {
  color: var(--text);
}

.demo {
  min-height: 100vh;
}

.demo-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.demo-header p {
  color: var(--text-muted);
  max-width: 680px;
}

.demo-frame {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  background: var(--card);
}

.demo-placeholder {
  height: 360px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 20px;
  width: min(680px, calc(100% - 48px));
  background: rgba(18, 22, 29, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  display: none;
  gap: 6px;
  align-items: flex-start;
  flex-direction: column;
  z-index: 50;
  box-shadow: none;
}

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

.cookie-title {
  color: var(--text);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  order: 0;
}

.cookie-text {
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.35;
  margin-top: 2px;
  order: 2;
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cookie-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  order: 1;
}

.cookie-actions .btn {
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 10px;
  box-shadow: none;
}

.cookie-banner .btn-primary {
  background: #7b2f2f;
  border-color: #7b2f2f;
}

.cookie-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 12, 0.6);
  z-index: 60;
  padding: 24px;
}

.cookie-modal.is-open {
  display: flex;
}

.cookie-modal-card {
  width: 100%;
  max-width: 520px;
  background: rgba(15, 19, 25, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cookie-modal-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.cookie-close {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
}

.cookie-modal-section {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-modal-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cookie-modal-section h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.cookie-modal-section p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.cookie-toggle input {
  accent-color: var(--brand);
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    padding-top: 12px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-actions .btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .nav-signin {
    font-size: 0.9rem;
  }

  .hero {
    padding: 80px 0 70px;
  }

  .section {
    padding: 90px 0;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .cta-card {
    padding: 24px;
  }

  .btn {
    width: 100%;
  }

  .nav-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .nav-actions .btn {
    width: auto;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .nav-signin {
    font-size: 0.85rem;
    text-align: center;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    max-width: unset;
    flex-direction: column;
    align-items: stretch;
  }
}
