:root {
  --bg: #061726;
  --bg-2: #0b2740;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: #ffffff;
  --text: #0e1a2b;
  --muted: #58708a;
  --gold: #c8a25a;
  --gold-2: #e3c98a;
  --line: rgba(14, 26, 43, 0.10);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.10);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(200, 162, 90, 0.14), transparent 24%),
    linear-gradient(180deg, #071a2b 0%, #0a2034 42%, #f3f6fa 42%, #eef3f8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 24px auto 48px;
  padding: 22px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(200, 162, 90, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

.hero {
  padding: 34px 30px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(8, 25, 42, 0.98), rgba(7, 21, 35, 0.98));
  color: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subtitle,
.positioning {
  max-width: 860px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #d8b66d, #bf9445);
  color: #132235;
  box-shadow: 0 12px 28px rgba(200, 162, 90, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.section-block {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(13, 25, 40, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.section-block h2 {
  margin: 0 0 16px;
  color: #132235;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 6;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(8, 18, 30, 0.06);
}

.card h3 {
  margin: 0 0 8px;
  color: #102033;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.card .btn {
  color: #102033;
  border-color: rgba(13, 25, 40, 0.12);
  background: #fff;
}

.card .btn-primary {
  color: #132235;
  background: linear-gradient(180deg, #e6c97f, #c9a154);
}

.card .btn-secondary {
  background: rgba(11, 39, 64, 0.04);
}

.dashboard-grid .card {
  grid-column: span 3;
  min-height: 132px;
}

.demo-value {
  margin-top: 10px !important;
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(200, 162, 90, 0.10);
  color: #7b5a1d !important;
  font-weight: 700;
  font-size: 0.92rem;
}

/* Gated member sections are hidden by default until app.js enables verified mode */
[data-gated="member"] {
  display: none;
}

body[data-mode="verified"] [data-gated="member"],
body.is-verified [data-gated="member"],
html[data-mode="verified"] [data-gated="member"] {
  display: block;
}

body[data-mode="public"] [data-gated="member"],
body.is-public [data-gated="member"],
html[data-mode="public"] [data-gated="member"] {
  display: none;
}

/* Locked/demo-only button state */
button.is-locked,
.btn.is-locked,
button[disabled],
.btn[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: saturate(0.7);
}

button.is-locked::after,
.btn.is-locked::after {
  content: " Locked";
  font-size: 0.78em;
  font-weight: 700;
  opacity: 0.9;
}

/* Responsive layout */
@media (max-width: 980px) {
  .card,
  .dashboard-grid .card {
    grid-column: span 12;
  }

  .hero,
  .section-block {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(calc(100% - 20px), var(--max));
    margin: 10px auto 28px;
    padding: 10px 0;
  }

  .demo-badge {
    margin-left: 10px;
  }

  .hero {
    border-radius: 22px;
  }

  .cta-row,
  .card-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section-block {
    border-radius: 18px;
  }
}