:root {
  --bg-primary: #0F0F14;
  --bg-secondary: #1C1C23;
  --bg-elevated: #27272E;
  --border-default: #2A2A35;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --text-primary: #E8E8F0;
  --text-secondary: #A0A0B0;
  --text-tertiary: #707080;
  --brand-primary: #8B6FF7;
  --brand-light: #A58FFA;
  --brand-dark: #7052E8;
  --accent-cyan: #22D3EE;
  --action-green: #34D399;
  --action-red: #F87171;
  --shadow-strong: rgba(0, 0, 0, 0.38);
  --shadow-soft: rgba(0, 0, 0, 0.26);
}

html {
  position: relative;
  min-height: 100%;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 3px;
  box-shadow: none;
}

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

.container,
.container-fluid {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-main {
  overflow: hidden;
}

a,
button,
.button {
  color: var(--brand-light);
}

a {
  text-underline-offset: 0.2em;
}

button,
.button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-elevated);
  text-decoration: none;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 15, 20, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.public-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.culture-nav {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.culture-nav select {
  min-height: 36px;
  min-width: 140px;
  padding: 6px 34px 6px 12px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.culture-nav select:hover,
.culture-nav select:focus {
  color: var(--text-primary);
  border-color: var(--brand-primary);
  outline: none;
}

.public-nav a {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
}

.public-nav a:hover {
  color: var(--brand-light);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(139, 111, 247, 0.28);
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--border-subtle);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: 58px;
  min-height: min(760px, calc(100svh - 74px));
  padding: 72px 0 66px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.hero-section h1,
.content-page h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: 5rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lead,
.page-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: 1.22rem;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.store-actions-compact {
  justify-content: flex-end;
  margin-top: 0;
}

.store-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 184px;
  min-height: 64px;
  padding: 10px 16px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 14px 34px var(--shadow-soft);
}

.store-button span {
  font-size: 0.72rem;
  line-height: 1.1;
}

.store-button strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.store-button-dark {
  color: #fff;
  background: var(--brand-primary);
  border-color: var(--brand-light);
}

.store-button-light {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.store-button-dark:hover,
.store-button-light:hover {
  transform: translateY(-1px);
}

.store-button-disabled {
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  border-color: var(--border-default);
  box-shadow: none;
}

.store-button-disabled strong {
  color: var(--text-secondary);
}

.hero-facts {
  display: grid;
  grid-column: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  padding: 0;
  margin: 34px 0 0;
}

.hero-facts div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: rgba(28, 28, 35, 0.78);
}

.hero-facts dt {
  margin: 0 0 5px;
  color: var(--text-primary);
  font-weight: 900;
}

.hero-facts dd {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.product-stage {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: min(100%, 540px);
  min-height: 620px;
  margin-left: auto;
}

.app-screen {
  position: absolute;
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  border: 7px solid #050508;
  border-radius: 30px;
  background: var(--bg-secondary);
  box-shadow: 0 34px 80px var(--shadow-strong), 0 0 0 1px var(--border-default);
}

.app-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-screen-main {
  top: 12px;
  right: 78px;
  z-index: 3;
  width: min(58%, 304px);
}

.app-screen-feed {
  top: 112px;
  left: 0;
  z-index: 2;
  width: min(42%, 218px);
  opacity: 0.92;
}

.app-screen-rich {
  right: 0;
  bottom: 18px;
  z-index: 1;
  width: min(45%, 236px);
  opacity: 0.95;
}

.feature-section,
.download-section {
  background: var(--bg-primary);
}

.feature-section {
  padding: 74px 0 82px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.conversation-copy h2,
.download-panel h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

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

.feature-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-secondary);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.feature-grid h3,
.content-stack h2,
.support-panel h2,
.conversation-board strong {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.feature-grid p,
.content-stack p,
.support-panel p,
.conversation-copy p,
.download-panel p,
.site-footer p {
  margin: 0;
  color: var(--text-secondary);
}

.conversation-section {
  padding: 78px 0;
  background: var(--bg-secondary);
}

.conversation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: 42px;
}

.conversation-copy p {
  max-width: 620px;
  margin-top: 18px;
  font-size: 1.08rem;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  font-weight: 900;
}

.conversation-board {
  display: grid;
  gap: 12px;
}

.conversation-board div {
  display: grid;
  grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-elevated);
}

.download-section {
  padding: 72px 0;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 30px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-secondary);
}

.download-panel p {
  max-width: 560px;
  margin-top: 12px;
}

.content-page {
  width: min(880px, calc(100% - 40px));
  padding: 64px 0 80px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 4rem;
}

.content-stack {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.content-stack section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-document {
  max-width: 880px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-header h1 {
  max-width: 800px;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.12;
  margin-bottom: 24px;
}

.legal-meta {
  margin: 4px 0;
  color: var(--text-secondary);
}

.legal-toc {
  margin: 36px 0 48px;
  padding: 24px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-secondary);
}

.legal-toc h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
}

.legal-toc ol,
.legal-section ul {
  margin: 0;
  padding-left: 1.6em;
}

.legal-toc li + li {
  margin-top: 6px;
}

.legal-document a {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-document a:hover {
  color: var(--text-primary);
}

.legal-document :focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

.legal-document h2 {
  scroll-margin-top: 220px;
}

.legal-section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section h2 {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.35;
}

.legal-section p,
.legal-section ul,
.legal-table {
  margin: 0 0 20px;
}

.legal-section li + li {
  margin-top: 10px;
}

.legal-table {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-default);
  border-radius: 8px;
}

.legal-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-table th,
.legal-table td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-default);
}

.legal-table th {
  background: var(--bg-elevated);
}

.legal-table th:first-child {
  min-width: 160px;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-back {
  display: inline-block;
}

.support-panel {
  padding: 22px;
  margin-top: 32px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-secondary);
}

.site-footer {
  color: var(--text-primary);
  background: #0A0A0E;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.site-footer p {
  max-width: 520px;
  margin-top: 6px;
  color: var(--text-secondary);
}

.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-footer a {
  color: var(--text-primary);
}

.site-footer a:hover {
  color: var(--brand-light);
}

@media (max-width: 960px) {
  .hero-grid,
  .conversation-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .product-stage {
    grid-column: auto;
    grid-row: auto;
    width: min(100%, 520px);
    min-height: 520px;
    margin: 0 auto;
  }

  .hero-facts {
    grid-column: auto;
  }

  .app-screen-main {
    right: 72px;
    width: 260px;
  }

  .app-screen-feed {
    top: 90px;
    width: 190px;
  }

  .app-screen-rich {
    width: 200px;
  }

  .store-actions-compact {
    justify-content: flex-start;
  }

  .conversation-board div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .container,
  .container-fluid,
  .content-page {
    width: min(1160px, calc(100% - 28px));
  }

  .public-nav {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 16px 0;
  }

  .public-nav ul {
    justify-content: flex-start;
  }

  .culture-nav select {
    width: 100%;
  }

  .hero-grid {
    gap: 34px;
    padding: 48px 0 42px;
  }

  .hero-section h1,
  .content-page h1 {
    font-size: 3.2rem;
  }

  .hero-lead,
  .page-lead {
    font-size: 1.08rem;
  }

  .hero-facts,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .product-stage {
    min-height: 470px;
  }

  .app-screen {
    border-width: 6px;
    border-radius: 26px;
  }

  .app-screen-main {
    width: 236px;
  }

  .app-screen-feed {
    width: 168px;
  }

  .app-screen-rich {
    width: 176px;
  }

  .section-heading h2,
  .conversation-copy h2,
  .download-panel h2 {
    font-size: 2rem;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .hero-section h1,
  .content-page h1 {
    font-size: 2.55rem;
  }

  .store-button {
    width: 100%;
  }

  .product-stage {
    min-height: 380px;
  }

  .app-screen-main {
    right: 44px;
    width: 190px;
  }

  .app-screen-feed {
    top: 58px;
    width: 138px;
  }

  .app-screen-rich {
    width: 146px;
  }

  .download-panel {
    padding: 20px;
  }
}
