/* Lex marketing site. One stylesheet, no framework. */

:root {
  --ink: #12121a;
  --ink-soft: #1b1a33;
  --paper: #f8f7ff;
  --paper-2: #f2f1f9;
  --surface: #ffffff;
  --border: #e5e4f0;
  --border-strong: #d8d7e4;
  --text: #12121a;
  --text-2: #5c5c6f;
  --text-3: #68687e;
  --accent: #5b5bd6;
  --accent-hover: #4f4fc4;
  --accent-soft: #eeedf6;
  --accent-pale: #f4f3fb;
  --success: #0b7f5b;
  --warning: #d97706;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(18, 18, 26, 0.04), 0 10px 30px rgba(18, 18, 26, 0.05);
  --shadow-lift: 0 30px 80px rgba(18, 18, 26, 0.18);
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

::selection {
  background: rgba(91, 91, 214, 0.22);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}

.skip:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 108px 0;
}

.section-tight {
  padding: 76px 0;
}

.section-paper {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: var(--paper-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(32px, 3.5vw, 50px);
  max-width: 820px;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.lead {
  margin-top: 20px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}

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

.section-head .lead {
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(91, 91, 214, 0.28);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-dark:hover {
  background: #242338;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-on-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.button-on-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent);
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 18, 26, 0.07);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand span {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(18, 18, 26, 0.04);
}

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

.nav-signin {
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

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

.nav-cta {
  min-height: 40px;
  padding: 0 17px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  background: #242338;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 19px;
  height: 19px;
}

.nav-toggle .icon-close {
  display: none;
}

.mobile-menu {
  display: none;
  padding: 10px 0 22px;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  display: block;
  padding: 11px 4px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.mobile-menu .button {
  width: 100%;
  margin-top: 12px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% 4%, rgba(91, 91, 214, 0.38), transparent 62%),
    radial-gradient(640px 460px at 4% 96%, rgba(91, 91, 214, 0.16), transparent 62%),
    var(--ink);
  color: #fff;
  padding: 92px 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
}

.hero .eyebrow {
  color: #b3b2ee;
}

.hero h1 {
  font-size: clamp(44px, 5.3vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.045em;
  max-width: 760px;
}

.hero h1 em {
  font-style: normal;
  color: #a9a8ff;
}

.hero-sub {
  margin-top: 26px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.68;
  color: #bcbad8;
}

.hero-actions {
  margin-top: 34px;
}

.hero-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: #8e8cab;
}

.hero-frameworks {
  position: relative;
  margin-top: 74px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0 28px;
}

.hero-frameworks p {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8e8cab;
  margin-bottom: 16px;
}

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

.framework-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.045);
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  color: #dedcf2;
}

.framework-chip svg {
  width: 13px;
  height: 13px;
  color: #a9a8ff;
}

/* ---------- App preview ---------- */

.hero-visual {
  min-width: 0;
}

.app-caption {
  margin-top: 12px;
  text-align: right;
  font-size: 11px;
  color: #8e8cab;
}

.app-frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  color: var(--text);
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  background: #f4f3fa;
  border-bottom: 1px solid var(--border);
}

.app-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7d5e4;
}

.app-url {
  margin-left: 7px;
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 8.5px;
  color: var(--text-3);
}

.app-body {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  min-height: 376px;
}

.app-side {
  background: #fbfaff;
  border-right: 1px solid var(--border);
  padding: 13px 10px;
}

.app-side-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 6px 12px;
}

.app-side-brand img {
  width: 16px;
  height: 16px;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-nav span {
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-2);
}

.app-nav span.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.app-main {
  padding: 16px;
  background: var(--paper);
}

.app-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-heading strong {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: -0.02em;
}

.app-heading span {
  font-size: 8.5px;
  color: var(--text-3);
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.app-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px;
}

.app-stat label {
  display: block;
  font-size: 7.5px;
  color: var(--text-3);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-stat strong {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.app-stat.hero-stat strong {
  color: var(--accent);
}

.app-panel {
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px;
}

.app-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.app-panel-title strong {
  font-family: var(--display);
  font-size: 9px;
}

.app-panel-title span {
  font-size: 7.5px;
  color: var(--text-3);
}

.app-bar {
  display: flex;
  height: 8px;
  border-radius: 100px;
  overflow: hidden;
  background: #eeedf6;
}

.app-bar i {
  display: block;
  height: 100%;
}

.app-bar .seg-1 {
  width: 64%;
  background: var(--success);
}

.app-bar .seg-2 {
  width: 21%;
  background: var(--warning);
}

.app-bar .seg-3 {
  width: 11%;
  background: #c9c8da;
}

.app-bar .seg-4 {
  width: 4%;
  background: #e5e4f0;
}

.app-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
  font-size: 7.5px;
  color: var(--text-3);
}

.app-legend span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.app-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.app-fw {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.app-fw:first-of-type {
  border-top: 0;
}

.app-fw-mark {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 7px;
  font-weight: 800;
  flex: none;
}

.app-fw-text {
  flex: 1;
  min-width: 0;
}

.app-fw-text strong {
  display: block;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-fw-text span {
  font-size: 6.8px;
  color: var(--text-3);
}

.app-fw-pct {
  font-family: var(--display);
  font-size: 8px;
  font-weight: 700;
  color: var(--success);
}

.app-float {
  position: absolute;
  right: -18px;
  bottom: 34px;
  width: 178px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: 0 18px 40px rgba(18, 18, 26, 0.18);
  padding: 11px 12px;
}

.app-float-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 5px;
}

.app-float-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.app-float strong {
  display: block;
  font-family: var(--display);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.app-float span {
  display: block;
  margin-top: 4px;
  font-size: 7.5px;
  color: var(--text-3);
}

/* ---------- Metrics ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  background: var(--surface);
  padding: 30px 32px;
}

.metric strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.metric span {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- Problem cards ---------- */

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

.problem-card {
  position: relative;
  padding: 30px 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.problem-num {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.problem-card h3 {
  margin-top: 40px;
}

.problem-card p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ---------- Feature grid ---------- */

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

.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.feature-card h3 {
  font-size: 17px;
}

.feature-card p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.feature-card .feature-tag {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Framework cards ---------- */

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

.framework-card {
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.framework-card .mono {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-pale);
  color: var(--accent);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.mono-wide {
  width: 46px;
  font-size: 8px;
  letter-spacing: 0;
  white-space: nowrap;
}

.framework-card strong {
  display: block;
  font-family: var(--display);
  font-size: 13.5px;
  line-height: 1.3;
}

.framework-card span {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-3);
}

.framework-card .status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 10px;
  font-weight: 600;
  color: var(--success);
}

.framework-card .status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Dark feature band (FAIM) ---------- */

.band-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 88% 0%, rgba(91, 91, 214, 0.34), transparent 62%),
    var(--ink);
  color: #fff;
  padding: 100px 0;
}

.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.band-dark .container {
  position: relative;
}

.band-dark .eyebrow {
  color: #b3b2ee;
}

.band-dark h2 {
  color: #fff;
}

.band-dark .lead {
  color: #bcbad8;
}

.band-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}

.band-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.band-item {
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.band-item strong {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.band-item span {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #a9a7c4;
}

.band-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 34px;
}

.band-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.band-stat span {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  color: #a9a7c4;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border-strong);
}

.step {
  padding: 28px 28px 0 0;
  border-right: 1px solid var(--border);
}

.step:last-child {
  border-right: 0;
}

.step-num {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.step h3 {
  margin-top: 28px;
  font-size: 17px;
}

.step p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ---------- Security ---------- */

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.security-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.security-fact {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.security-fact svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  margin-bottom: 16px;
}

.security-fact strong {
  display: block;
  font-family: var(--display);
  font-size: 13.5px;
}

.security-fact span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
}

.security-note {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--text-3);
  max-width: 560px;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.price-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 28px;
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-name {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.price-card.featured .price-name {
  color: #a9a8ff;
}

.price-amount {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.price-amount span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-3);
}

.price-card.featured .price-amount span {
  color: #a9a7c4;
}

.price-desc {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  min-height: 42px;
}

.price-card.featured .price-desc {
  color: #bcbad8;
}

.price-features {
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.price-features li svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
  color: var(--success);
}

.price-card.featured .price-features li {
  color: #d5d3ea;
}

.price-card.featured .price-features li svg {
  color: #6fe0b0;
}

.price-card .button {
  margin-top: auto;
  width: 100%;
}

.price-card.featured .button-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.price-card.featured .button-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.price-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  border-top: 1px solid var(--border-strong);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 4px 24px;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(91, 91, 214, 0.4), transparent 66%),
    var(--ink);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000, transparent 72%);
  pointer-events: none;
}

.cta .container {
  position: relative;
}

.cta h2 {
  margin: 0 auto;
  max-width: 760px;
  color: #fff;
}

.cta p {
  margin: 20px auto 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.65;
  color: #bcbad8;
}

.cta .button-row {
  justify-content: center;
  margin-top: 34px;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -140px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(91, 91, 214, 0.12), transparent 68%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  max-width: 860px;
}

.page-hero p {
  margin-top: 18px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}

.page-hero .button-row {
  margin-top: 28px;
}

/* ---------- Content prose (security, legal) ---------- */

.prose {
  max-width: 780px;
}

.prose h2 {
  margin-top: 48px;
  font-size: 25px;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 32px;
  font-size: 17px;
}

.prose p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.prose ul {
  margin-top: 16px;
  padding-left: 22px;
  color: var(--text-2);
}

.prose li {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
}

.prose a {
  color: var(--accent);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th {
  text-align: left;
  padding: 13px 18px;
  background: var(--paper-2);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}

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

td strong {
  color: var(--text);
}

/* ---------- Contact cards ---------- */

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

.contact-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-card svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-bottom: 18px;
}

.contact-card strong {
  display: block;
  font-family: var(--display);
  font-size: 14px;
}

.contact-card p {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.contact-card a {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 30px;
}

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

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 300px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
}

.footer-brand .footer-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-3);
}

.footer-col h3 {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-2);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: var(--text-3);
}

.footer-bottom a {
  color: var(--text-3);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 62vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.notfound .container {
  max-width: 620px;
}

.notfound h1 {
  font-size: clamp(64px, 10vw, 120px);
  color: var(--accent);
  letter-spacing: -0.06em;
}

.notfound p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-2);
}

.notfound .button-row {
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero {
    padding-top: 76px;
  }

  .app-frame {
    max-width: 660px;
  }

  .app-float {
    right: 18px;
  }

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

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

  .band-split,
  .security-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

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

  .step {
    padding: 26px 24px 26px 0;
    border-bottom: 1px solid var(--border);
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(3),
  .step:nth-child(4) {
    border-bottom: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

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

@media (max-width: 860px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.open .nav-toggle .icon-open {
    display: none;
  }

  .site-header.open .nav-toggle .icon-close {
    display: block;
  }

  .site-header.open .mobile-menu {
    display: block;
  }

  .section {
    padding: 76px 0;
  }

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

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

  .problem-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .problem-card h3 {
    margin-top: 24px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    padding: 24px 26px;
  }

  .band-list {
    grid-template-columns: 1fr;
  }

  .security-facts {
    grid-template-columns: 1fr;
  }

  .cta,
  .band-dark {
    padding: 76px 0;
  }

  .page-hero {
    padding: 56px 0 48px;
  }

  .hero-frameworks {
    margin-top: 52px;
  }
}

@media (max-width: 620px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero-sub {
    font-size: 16.5px;
  }

  .button {
    width: 100%;
    padding: 0 20px;
  }

  .button-row {
    flex-direction: column;
  }

  .hero-actions .button-row {
    align-items: stretch;
  }

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

  .app-body {
    grid-template-columns: 1fr;
  }

  .app-side {
    display: none;
  }

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

  .app-float {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .price-card {
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .button:hover,
  .feature-card:hover {
    transform: none;
  }
}
