:root {
  color-scheme: light;
  --white: #FFFFFF;
  --pearl: #F8FAFC;
  --ink: #090D16;
  --slate: #475569;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --accent: #10B981;
  --accent-hover: #059669;
  --accent-solid: #047857;
  --accent-text: #047857;
  --mint: #6EE7B7;
  --mint-soft: #A7F3D0;
  --mint-pale: #ECFDF5;
  --emerald-deep: #065F46;
  --dark: #021A14;
  --dark-soft: #06281E;
  --card-shadow: 0 10px 30px -10px rgba(9, 13, 22, 0.06);
  --shadow-lg: 0 30px 80px -30px rgba(9, 13, 22, 0.22);
  --showcase-shadow: 0 40px 90px -30px rgba(9, 13, 22, 0.45);
  --glow: 0 0 0 4px rgba(16, 185, 129, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--line);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--mint-soft);
  color: var(--emerald-deep);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-solid);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 150ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(9, 13, 22, 0.06);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-wordmark {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

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

.nav > a:not(.btn) {
  color: var(--slate);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.nav > a:not(.btn):hover {
  color: var(--emerald-deep);
}

.nav-cta {
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease), color 150ms var(--ease);
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, #10B981 0%, var(--accent-solid) 42%);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.55);
}

.btn-primary:hover:not(:disabled) {
  border-color: var(--accent-hover);
  background: linear-gradient(135deg, #059669 0%, var(--emerald-deep) 42%);
  box-shadow: 0 12px 28px -10px rgba(5, 150, 105, 0.6);
}

.btn-glass {
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(9, 13, 22, 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  border-color: var(--accent);
  color: var(--emerald-deep);
  box-shadow: var(--glow);
}

.btn-lg {
  min-height: 50px;
  padding: 0 24px;
  font-size: 14px;
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
}

.btn-pill {
  min-height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

.hero {
  position: relative;
  padding: 110px 0 84px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -1px 0 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 50% -5%, rgba(16, 185, 129, 0.14), transparent);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 15%, #000000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 15%, #000000 0%, transparent 80%);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  background: #ECFDF5;
  color: #065F46;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  animation: live-pulse 2s var(--ease) infinite;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  background: #ECFDF5;
  color: #065F46;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  color: var(--slate);
  font-size: 11.5px;
  font-weight: 600;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.proof-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.hero-visual {
  position: relative;
}

.preview-card {
  --showcase-border: rgba(110, 231, 183, 0.16);
  --showcase-text: #FFFFFF;
  --showcase-muted: #A7F3D0;
  --showcase-surface: #06281E;
  --showcase-deep: #021A14;
  position: relative;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--showcase-border);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--showcase-surface), var(--showcase-deep));
  box-shadow: 0 25px 70px -15px rgba(16, 185, 129, 0.22), 0 20px 40px -20px rgba(2, 26, 20, 0.4);
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
  transition: transform 400ms var(--ease), border-color 200ms var(--ease);
}

.preview-card:hover {
  border-color: rgba(110, 231, 183, 0.3);
  transform: perspective(1400px) rotateY(0) rotateX(0);
}

.preview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 24%);
}

.preview-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 12px;
  border-bottom: 1px solid var(--showcase-border);
}

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

.window-dot:nth-child(2) {
  background: #FBBF24;
}

.window-dot:nth-child(3) {
  background: #34D399;
}

.preview-url {
  margin-left: auto;
  color: var(--showcase-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  opacity: 0.78;
}

.post {
  position: relative;
  padding: 16px 6px 14px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgba(110, 231, 183, 0.35);
  border-radius: 50%;
  background: var(--showcase-deep);
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
}

.post-author {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.post-author strong {
  color: var(--showcase-text);
  font-size: 12px;
  font-weight: 700;
}

.post-author > span {
  color: var(--showcase-muted);
  font-size: 9.5px;
  opacity: 0.78;
}

.post-time {
  margin-left: auto;
  color: var(--showcase-muted);
  font-size: 10px;
  opacity: 0.78;
}

.post-copy {
  margin: 14px 0 0;
  color: var(--showcase-text);
  font-size: 12.5px;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  color: var(--showcase-muted);
  font-size: 10px;
  opacity: 0.78;
}

.dock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid rgba(110, 231, 183, 0.22);
  border-radius: 11px;
  background: var(--showcase-deep);
  box-shadow: 0 8px 22px rgba(2, 26, 20, 0.45);
}

.dock-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--showcase-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dock-mark {
  display: block;
  width: 16px;
  height: 16px;
}

.dock-tones {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.tone {
  padding: 5px 8px;
  border: 1px solid rgba(110, 231, 183, 0);
  border-radius: 7px;
  background: rgba(110, 231, 183, 0);
  color: var(--showcase-muted);
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease), transform 150ms var(--ease);
}

.tone:hover {
  color: var(--showcase-text);
  background: rgba(110, 231, 183, 0.1);
  transform: translateY(-1px);
}

.tone[data-active='true'] {
  border-color: var(--white);
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.3);
}

.draft-card {
  position: relative;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--showcase-border);
  border-radius: 12px;
  background: var(--showcase-surface);
}

.draft-head,
.draft-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--showcase-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.78;
}

.draft-head span:last-child {
  color: var(--mint);
  opacity: 1;
}

.draft-card p {
  min-height: 62px;
  margin: 10px 0 12px;
  color: var(--showcase-text);
  font-size: 12px;
  line-height: 1.6;
}

[data-preview-output][data-typing='true']::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--mint);
  animation: caret-blink 0.8s steps(1) infinite;
}

.draft-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.post-comment {
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--dark);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}

.post-comment:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.post-comment:disabled {
  background: rgba(16, 185, 129, 0.28);
  color: var(--mint-soft);
  cursor: wait;
}

.post-comment[data-posted='true'] {
  background: var(--mint);
  color: var(--dark);
}

.post-state {
  color: var(--showcase-muted);
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0.78;
}

.draft-foot {
  letter-spacing: 0;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: none;
}

.draft-live {
  color: var(--mint);
  opacity: 1;
}

.floating-note {
  position: absolute;
  right: -18px;
  bottom: -22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--card-shadow), 0 16px 40px -18px rgba(9, 13, 22, 0.18);
  font-size: 10.5px;
  font-weight: 700;
}

.note-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.section {
  position: relative;
  padding: 92px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.65;
}

.spotlight-card {
  --x: 50%;
  --y: 50%;
  position: relative;
  overflow: hidden;
}

.spotlight-card > * {
  position: relative;
  z-index: 1;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(16, 185, 129, 0.6), rgba(16, 185, 129, 0) 62%);
  -webkit-mask: linear-gradient(#FFFFFF 0 0) content-box, linear-gradient(#FFFFFF 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#FFFFFF 0 0) content-box, linear-gradient(#FFFFFF 0 0);
  mask-composite: exclude;
  transition: opacity 180ms var(--ease);
}

.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(16, 185, 129, 0.07), rgba(16, 185, 129, 0) 62%);
  transition: opacity 180ms var(--ease);
}

.spotlight-card:hover::before,
.spotlight-card:hover::after {
  opacity: 1;
}

.features {
  background-color: var(--pearl);
  background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
  background-size: 24px 24px;
}

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

.bento-card {
  display: flex;
  flex-direction: column;
  min-height: 288px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px -16px rgba(16, 185, 129, 0.24);
}

.bento-context,
.bento-ownership {
  grid-column: span 7;
}

.bento-byok,
.bento-safe {
  grid-column: span 5;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  background: var(--mint-pale);
  color: var(--accent-hover);
}

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

.bento-card h3 {
  margin-top: 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bento-card p {
  margin: 10px 0 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.65;
}

.flow-diagram {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  overflow-x: auto;
}

.flow-node {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--pearl);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.flow-node.is-ai {
  border-color: var(--accent);
  background: var(--mint-pale);
  color: var(--emerald-deep);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.12);
}

.flow-arrow {
  color: var(--accent-hover);
  font-size: 13px;
}

.provider-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.provider-pills span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pearl);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}

.provider-pills span:first-child {
  border-color: var(--accent);
  background: var(--mint-pale);
  color: var(--emerald-deep);
}

.human-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--pearl);
}

.human-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
}

.human-check svg {
  width: 16px;
  height: 16px;
}

.human-badge strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.human-badge small {
  display: block;
  margin-top: 2px;
  color: var(--slate);
  font-size: 9.5px;
}

.ownership-compare {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.ownership-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--pearl);
  color: var(--slate);
  font-size: 11px;
}

.ownership-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.ownership-row.is-winning {
  border-color: var(--accent);
  background: var(--mint-pale);
}

.ownership-row.is-winning strong {
  color: var(--emerald-deep);
}

.how {
  border-top: 1px solid rgba(110, 231, 183, 0.14);
  border-bottom: 1px solid rgba(110, 231, 183, 0.14);
  background: #021A14;
  color: #FFFFFF;
}

.how .section-head h2 {
  color: #FFFFFF;
}

.how .section-head p {
  color: #A7F3D0;
}

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

.step {
  padding: 26px;
  border: 1px solid rgba(110, 231, 183, 0.2);
  border-radius: 18px;
  background: #06281E;
  box-shadow: 0 10px 30px -10px rgba(2, 26, 20, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-solid);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.step h3 {
  margin-top: 18px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
}

.step p {
  margin: 9px 0 0;
  color: #A7F3D0;
  font-size: 13px;
  line-height: 1.65;
}

.pricing {
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card:not(.is-featured):hover {
  border-color: var(--accent);
}

.price-card.is-featured {
  border-color: var(--accent);
  background: linear-gradient(155deg, var(--dark-soft), var(--dark) 70%);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.24), 0 30px 70px -24px rgba(16, 185, 129, 0.36), var(--shadow-lg);
}

.price-card.is-featured.spotlight-card::before {
  opacity: 1;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(110, 231, 183, 0.85), rgba(110, 231, 183, 0) 62%), linear-gradient(140deg, #6EE7B7, #10B981 45%, rgba(110, 231, 183, 0.22));
}

.plan-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--dark);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.launch-badge {
  display: inline-flex;
  margin: 0 0 16px 8px;
  padding: 6px 11px;
  border: 1px solid rgba(110, 231, 183, 0.28);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #6EE7B7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.plan-name {
  display: block;
  color: var(--emerald-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card.is-featured .plan-name {
  color: var(--mint-soft);
}

.price {
  margin-top: 14px;
  color: var(--ink);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.price-card.is-featured .price {
  color: var(--white);
}

.price span {
  color: var(--slate);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.price-card.is-featured .price span {
  color: var(--mint-soft);
}

.price-card .price span.old-price {
  margin-right: 8px;
  color: var(--mint);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  vertical-align: 0.28em;
}

.plan-copy {
  margin: 12px 0 0;
  color: var(--slate);
  font-size: 13px;
}

.price-card.is-featured .plan-copy {
  color: var(--mint-soft);
}

.plan-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 13px;
}

.price-card.is-featured .plan-list li {
  color: var(--white);
}

.plan-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-text);
  font-weight: 800;
}

.price-card.is-featured .plan-list li::before {
  color: var(--mint);
}

.price-card.is-featured .btn-primary {
  margin-top: auto;
}

.legal {
  background-color: var(--pearl);
  background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
  background-size: 24px 24px;
}

.legal-layout {
  display: grid;
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.legal-tab {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--slate);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: color 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.legal-tab:hover {
  color: var(--emerald-deep);
  border-color: var(--accent);
}

.legal-tab[aria-selected='true'] {
  border-color: var(--accent);
  background: var(--accent-solid);
  color: var(--white);
  box-shadow: 0 8px 20px -10px rgba(16, 185, 129, 0.6);
}

.legal-panel {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.legal-panel:not([hidden]) {
  animation: legal-in 240ms var(--ease) both;
}

.legal-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.legal-panel summary::after {
  content: '+';
  color: var(--accent-hover);
  font-size: 18px;
}

.legal-panel details[open] summary::after {
  content: '−';
}

.legal-panel p {
  margin: 12px 0 0;
  color: var(--slate);
  font-size: 12.5px;
  line-height: 1.7;
}

.legal-panel a,
.install-steps a,
.modal-note a {
  color: var(--accent-text);
  font-weight: 700;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--pearl);
  color: var(--emerald-deep);
  font-size: 0.92em;
}

.final-cta {
  padding-top: 0;
  background: var(--white);
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 56px 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(ellipse 70% 120% at 50% -20%, rgba(16, 185, 129, 0.12), transparent), var(--white);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta-card > * {
  position: relative;
}

.cta-card h2 {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.cta-card p {
  margin: 14px 0 0;
  color: var(--slate);
  font-size: 15px;
}

.cta-card .hero-actions {
  justify-content: center;
}

.site-footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
}

.footer-brand p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--slate);
  font-size: 11px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--slate);
  font-size: 12px;
  text-decoration: none;
  transition: color 150ms var(--ease);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 10.5px;
  line-height: 1.6;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p:first-child {
  max-width: 720px;
}

.install-modal {
  width: min(560px, calc(100% - 32px));
  max-height: min(90vh, 760px);
  padding: 28px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 30px 80px -24px rgba(9, 13, 22, 0.28);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.install-modal::backdrop {
  background: rgba(9, 13, 22, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}

.modal-close:hover {
  color: var(--emerald-deep);
  border-color: var(--accent);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.install-modal h2 {
  margin-top: 18px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.install-steps {
  display: grid;
  gap: 18px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
}

.install-steps h3 {
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.install-steps p,
.modal-note {
  color: var(--slate);
}

.install-steps p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.install-steps .btn {
  margin-top: 12px;
}

.modal-note {
  margin: 20px 0 0;
  font-size: 11.5px;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes legal-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

  .hero-visual {
    max-width: 640px;
  }

  .bento-context,
  .bento-ownership {
    grid-column: span 12;
  }

  .bento-byok,
  .bento-safe {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 18px 40px -18px rgba(9, 13, 22, 0.2);
  }

  .nav.is-open {
    display: flex;
  }

  .nav > a:not(.btn) {
    padding: 10px 12px;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

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

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

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section {
    padding: 68px 0;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .preview-card {
    padding: 10px;
    transform: none;
  }

  .floating-note {
    right: 8px;
    bottom: -16px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .legal-tabs {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 42px 22px;
  }

  .bento-card {
    grid-column: span 12;
    min-height: 0;
    padding: 24px;
  }

  .dock-tones {
    width: 100%;
  }

  .tone {
    flex: 1 1 auto;
  }

  .ownership-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
