:root {
  --bg: #090504;
  --bg-alt: #120905;
  --panel: rgba(25, 13, 8, 0.92);
  --panel-strong: rgba(32, 17, 10, 0.98);
  --surface: #1a0f0b;
  --surface-soft: #24140d;
  --line: rgba(255, 136, 33, 0.2);
  --line-strong: rgba(255, 136, 33, 0.34);
  --text: #fff4eb;
  --muted: #d8c3b6;
  --gold: #ff8a21;
  --gold-deep: #d46200;
  --green: #8f3400;
  --green-soft: #ff9d3d;
  --danger: #d37272;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --container: min(1240px, calc(100vw - 32px));
  --content: min(860px, calc(100vw - 32px));
  --heading: "Georgia", "Times New Roman", serif;
  --body: "Trebuchet MS", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  line-height: 1.7;
  background:
    radial-gradient(circle at top right, rgba(255, 138, 33, 0.22), transparent 26%),
    radial-gradient(circle at top left, rgba(255, 111, 0, 0.14), transparent 32%),
    linear-gradient(180deg, #060201 0%, #120703 42%, #090403 100%);
}

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

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

a:hover {
  color: #ffb86c;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 138, 33, 0.72);
  outline-offset: 3px;
}

p,
li {
  font-size: 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--heading);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.9rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.site-shell {
  overflow: clip;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 999px;
  background: #ff8a21;
  color: #1f1005;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container,
.section,
.site-header__inner,
.site-footer__inner,
.promo-band,
.breadcrumbs {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section--dense {
  padding: 56px 0;
}

.section--panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(22, 11, 7, 0.72);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 138, 33, 0.1);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-head {
  margin-bottom: 28px;
}

.section-head p {
  max-width: 70ch;
  color: var(--muted);
  margin: 14px 0 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(8, 3, 2, 0.88);
  border-bottom: 1px solid rgba(255, 138, 33, 0.14);
}

.site-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand__mark {
  width: clamp(148px, 16vw, 224px);
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 138, 33, 0.24);
  background: rgba(0, 0, 0, 0.9);
  flex-shrink: 0;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__copy strong {
  font-family: var(--heading);
  font-size: 1.08rem;
  color: #fff2e8;
}

.brand__copy span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  color: #fff2e8;
  font-size: 0.94rem;
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn,
.pill-link,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.btn:hover,
.pill-link:hover,
.button-link:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), #ffab4f);
  color: #261106;
  box-shadow: 0 16px 30px rgba(255, 138, 33, 0.26);
}

.btn--ghost {
  border-color: rgba(255, 138, 33, 0.28);
  background: rgba(255, 138, 33, 0.06);
  color: var(--text);
}

.btn--dark {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(19, 9, 6, 0.84);
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 138, 33, 0.22);
  background: rgba(255, 138, 33, 0.08);
  color: var(--text);
}

.mobile-drawer {
  display: none;
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 18px;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer[hidden] {
  display: none !important;
}

.mobile-drawer a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(25, 13, 8, 0.92);
  border: 1px solid rgba(255, 138, 33, 0.14);
  color: var(--text);
}

.mobile-drawer .btn {
  width: 100%;
}

.hero {
  padding: 44px 0 28px;
}

.hero-grid,
.hero-grid--reverse {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 28px;
  align-items: stretch;
}

.hero-grid--reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.hero-copy,
.hero-visual,
.hero-card {
  min-width: 0;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 66ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric {
  background: linear-gradient(180deg, rgba(38, 18, 10, 0.96), rgba(23, 10, 6, 0.94));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.metric strong {
  display: block;
  color: var(--gold);
  font-size: 1.6rem;
  font-family: var(--heading);
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.visual-panel {
  position: relative;
  height: 100%;
  min-height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 7, 4, 0.32), rgba(18, 7, 4, 0.82)),
    linear-gradient(135deg, #3b1808 0%, #190904 52%, #2a1007 100%);
  border: 1px solid rgba(255, 138, 33, 0.16);
  box-shadow: var(--shadow);
}

.visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  backdrop-filter: blur(14px);
  background: rgba(24, 11, 7, 0.88);
  border: 1px solid rgba(255, 138, 33, 0.2);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

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

.floating-card p,
.floating-card li {
  color: var(--muted);
  font-size: 0.9rem;
}

.floating-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.floating-card--top {
  top: 22px;
  left: 22px;
  width: min(300px, calc(100% - 44px));
}

.floating-card--bottom {
  right: 22px;
  bottom: 22px;
  width: min(260px, calc(100% - 44px));
}

.floating-card--center {
  left: 22px;
  bottom: 22px;
  width: min(280px, calc(100% - 44px));
}

.grid-2,
.grid-3,
.grid-4,
.grid-auto {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card,
.table-card,
.chart-card,
.timeline-card,
.accent-card {
  background: linear-gradient(180deg, rgba(33, 16, 9, 0.96), rgba(19, 9, 6, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.card,
.chart-card,
.accent-card {
  padding: 24px;
}

.card p,
.card li,
.chart-card p,
.accent-card p {
  color: var(--muted);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 138, 33, 0.14);
  border: 1px solid rgba(255, 138, 33, 0.28);
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.table-card {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

thead {
  background: linear-gradient(135deg, rgba(255, 138, 33, 0.2), rgba(143, 52, 0, 0.28));
}

tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

td,
th {
  font-size: 0.92rem;
}

.table-scroll {
  overflow-x: auto;
}

.chart-card canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.chart-title {
  margin-bottom: 14px;
}

.bar-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar-item {
  display: grid;
  grid-template-columns: 130px 1fr 64px;
  gap: 12px;
  align-items: center;
}

.bar-item span,
.bar-item strong {
  font-size: 0.88rem;
}

.bar-item span {
  color: var(--muted);
}

.bar-item strong {
  color: #fff;
  text-align: right;
}

.bar-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--green-soft));
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-tag {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 138, 33, 0.14);
  color: var(--gold);
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
}

.timeline-card p {
  color: var(--muted);
}

.content-shell,
.seo-content {
  width: var(--content);
  margin: 0 auto;
}

.seo-content p {
  color: var(--muted);
  margin: 0 0 20px;
}

.seo-content h2,
.seo-content h3 {
  margin: 34px 0 16px;
}

.seo-content ul {
  color: var(--muted);
  margin: 0 0 20px;
  padding-left: 22px;
}

.quote-panel {
  padding: 24px;
  border-left: 4px solid var(--gold);
  border-radius: 18px;
  background: rgba(255, 138, 33, 0.08);
  margin: 28px 0;
}

.quote-panel p:last-child {
  margin-bottom: 0;
}

.comparison-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.comparison-strip .accent-card {
  min-height: 100%;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--text);
  background: rgba(143, 52, 0, 0.18);
  border: 1px solid rgba(255, 138, 33, 0.34);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.feature-item strong {
  color: var(--gold);
}

.feature-item p {
  margin: 0;
  color: var(--muted);
}

.highlight-box {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 138, 33, 0.18), rgba(143, 52, 0, 0.22));
  border: 1px solid rgba(255, 138, 33, 0.26);
}

.promo-band {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 138, 33, 0.16), rgba(143, 52, 0, 0.22));
  border: 1px solid rgba(255, 138, 33, 0.18);
  color: #fff1de;
  font-size: 0.9rem;
}

.breadcrumbs {
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.cta-band {
  margin-top: 30px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(143, 52, 0, 0.34), rgba(255, 138, 33, 0.18));
  border: 1px solid rgba(255, 138, 33, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-band p {
  color: var(--muted);
  margin: 8px 0 0;
}

.app-shell,
.auth-shell {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.auth-panel {
  padding: 34px;
}

.auth-panel p {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 138, 33, 0.18);
  background: rgba(17, 8, 5, 0.9);
  color: var(--text);
  font: inherit;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  border-top: 1px solid rgba(255, 138, 33, 0.12);
  background: rgba(7, 3, 2, 0.94);
}

.site-footer__inner {
  padding: 38px 0 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer h3 {
  margin-bottom: 12px;
}

.footer-links,
.footer-legal {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
}

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

.author-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.author-photo {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.author-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.content-visual {
  margin-bottom: 24px;
  overflow: hidden;
  padding: 0;
}

.content-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-visual--portrait img {
  aspect-ratio: 4 / 5;
}

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

.number-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(31, 14, 8, 0.92);
}

.number-card strong {
  display: block;
  color: var(--gold);
  font-family: var(--heading);
  font-size: 2rem;
}

.number-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.split-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.site-note {
  font-size: 0.84rem;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .brand__copy span {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .comparison-strip,
  .number-cards,
  .site-footer__grid,
  .author-card,
  .app-shell,
  .auth-shell,
  .split-band,
  .hero-grid,
  .hero-grid--reverse {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .site-header__inner {
    min-height: 74px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand__mark {
    width: 140px;
    height: 50px;
    border-radius: 14px;
  }

  .brand__copy strong {
    font-size: 0.94rem;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn--ghost,
  .header-actions .btn--dark {
    display: none;
  }

  .header-actions .btn--primary {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.86rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .hero {
    padding-top: 26px;
  }

  .visual-panel {
    min-height: 420px;
  }

  .floating-card {
    position: static;
    width: auto;
    margin: 14px;
  }

  .hero-meta,
  .grid-2,
  .grid-3,
  .grid-4,
  .timeline-item,
  .bar-item {
    grid-template-columns: 1fr;
  }

  .bar-item strong {
    text-align: left;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  th,
  td {
    padding: 12px 14px;
  }
}

@media (max-width: 520px) {
  .container,
  .section,
  .site-header__inner,
  .site-footer__inner,
  .promo-band,
  .breadcrumbs {
    width: min(100vw - 20px, 1240px);
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .brand__copy span {
    font-size: 0.7rem;
  }

  .brand__copy strong {
    font-size: 0.84rem;
  }

  .brand__mark {
    width: 116px;
    height: 42px;
    border-radius: 12px;
  }

  .site-header__inner {
    gap: 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn--primary {
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 0.74rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .metric,
  .card,
  .chart-card,
  .accent-card,
  .auth-panel {
    padding: 20px;
  }
}
