:root {
  --ink: #101720;
  --navy: #13213a;
  --panel: #17243c;
  --panel-2: #22314b;
  --paper: #f6f2e8;
  --paper-2: #fffaf0;
  --line: rgba(20, 28, 42, 0.16);
  --muted: #667085;
  --gold: #d7a84f;
  --teal: #48b8a8;
  --cyan: #5ca7d8;
  --rose: #c95d63;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(13, 22, 37, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--paper-2);
  background: rgba(15, 24, 40, 0.94);
  border-bottom: 1px solid rgba(255, 250, 240, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), #f0db9b);
  border: 1px solid rgba(255, 250, 240, 0.42);
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.8rem;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.74rem;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
}

.site-nav a {
  padding: 10px 12px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.88rem;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--paper-2);
  background: rgba(255, 250, 240, 0.1);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.section.dark {
  color: var(--paper-2);
  background: var(--navy);
}

.section.light {
  background: var(--paper-2);
}

.section.accent {
  background: #e9f0ea;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero {
  position: relative;
  color: var(--paper-2);
  background:
    linear-gradient(90deg, rgba(13, 22, 37, 0.98), rgba(19, 33, 58, 0.82) 52%, rgba(19, 33, 58, 0.22)),
    #13213a;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  min-height: min(760px, calc(100vh - 76px));
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(40px, 7vw, 88px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #f6df9d;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6.8vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 800px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.18;
}

.lead {
  max-width: 730px;
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}

.light .lead,
.accent .lead,
.page-hero .lead {
  color: #445066;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  padding: 12px 18px;
  border: 1px solid transparent;
}

.button.primary {
  color: #17130a;
  background: linear-gradient(180deg, #f0d78b, var(--gold));
  box-shadow: 0 12px 24px rgba(215, 168, 79, 0.24);
}

.button.secondary {
  color: var(--paper-2);
  border-color: rgba(255, 250, 240, 0.28);
  background: rgba(255, 250, 240, 0.08);
}

.button.dark-secondary {
  color: var(--ink);
  border-color: rgba(16, 23, 32, 0.22);
  background: rgba(255, 255, 255, 0.56);
}

.hero-media {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media img {
  width: min(760px, 100%);
  filter: drop-shadow(0 32px 80px rgba(0, 0, 0, 0.35));
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 250, 240, 0.16);
  border-top: 1px solid rgba(255, 250, 240, 0.16);
}

.metric {
  min-height: 112px;
  padding: 22px clamp(18px, 3vw, 38px);
  background: rgba(10, 18, 31, 0.62);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 1.15rem;
}

.metric span {
  color: rgba(255, 250, 240, 0.72);
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.feature-grid,
.plan-grid,
.doc-grid,
.mode-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.plan-grid {
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  align-items: stretch;
  margin-top: 34px;
}

.doc-grid,
.mode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.feature,
.plan-card,
.doc-card,
.mode-card,
.note-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 34px rgba(13, 22, 37, 0.08);
}

.feature,
.doc-card,
.mode-card,
.note-panel {
  padding: 24px;
}

.feature h3,
.doc-card h3,
.mode-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--teal);
}

.icon-dot.gold {
  background: var(--gold);
}

.icon-dot.cyan {
  background: var(--cyan);
}

.icon-dot.rose {
  background: var(--rose);
}

.feature p,
.doc-card p,
.mode-card p,
.plan-card p,
.note-panel p,
.check-list {
  color: #475467;
  line-height: 1.55;
}

.diagram-frame {
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 8px;
  background: #111b2d;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.light .diagram-frame,
.accent .diagram-frame {
  border-color: rgba(16, 23, 32, 0.12);
}

.diagram-frame img {
  display: block;
  width: 100%;
}

.page-hero {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, var(--paper-2), #efe8d8);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.6fr);
  gap: 36px;
  align-items: center;
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.7rem, 5.6vw, 5.2rem);
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 24px;
}

.badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 9px;
  color: #211707;
  background: #f4d982;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.78rem;
}

.price {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 850;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--teal);
}

.table-wrap {
  margin-top: 30px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(19, 33, 58, 0.08);
  font-size: 0.84rem;
}

tr:last-child td {
  border-bottom: 0;
}

.code-block {
  overflow-x: auto;
  padding: 18px;
  color: #f7f0df;
  background: #101720;
  border-radius: 8px;
  line-height: 1.55;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 250, 240, 0.72);
  background: #101720;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--paper-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--paper-2);
  text-decoration: none;
}

@media (max-width: 1080px) {
  .hero .container,
  .split,
  .page-hero .container {
    grid-template-columns: 1fr;
  }

  .hero .container {
    min-height: auto;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .metric-row,
  .feature-grid,
  .doc-grid,
  .mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-actions,
  .button-row,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .site-nav a {
    width: 100%;
  }

  .site-nav {
    width: 100%;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: auto;
  }
}
