:root {
  color-scheme: dark;
  --bg: #090b0a;
  --bg-soft: #111410;
  --band: #151713;
  --panel: #151918;
  --panel-2: #1b2220;
  --line: rgba(169, 186, 203, 0.18);
  --line-strong: rgba(117, 201, 188, 0.34);
  --text: #edf4f7;
  --muted: #9cafbd;
  --soft: #c8d6dc;
  --cyan: #55c7d6;
  --teal: #49c5aa;
  --blue: #6aa8ff;
  --amber: #f4b860;
  --rose: #e8798a;
  --green: #79d67b;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(135deg, rgba(73,197,170,0.06), transparent 34%),
    linear-gradient(315deg, rgba(244,184,96,0.055), transparent 38%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.light-page {
  background: #f4f7f8;
  color: #14202b;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 18, 0.88);
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #041115;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16) inset;
  font-weight: 900;
}

.brand span:last-child {
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-links a,
.nav-dropdown button {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.active,
.nav-dropdown button:hover,
.nav-dropdown:focus-within button {
  color: var(--text);
}

.nav-menu-toggle {
  display: none;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255,255,255,0.045);
  font-weight: 850;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown button {
  border: 0;
  padding: 12px 0;
  background: transparent;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 320px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 18, 16, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.mega-menu.wide {
  width: 420px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mega-menu a {
  display: grid;
  gap: 4px;
  min-height: 74px;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.035);
}

.mega-menu a:hover {
  border-color: var(--line-strong);
  background: rgba(73,197,170,0.09);
}

.mega-menu strong {
  color: var(--text);
  font-size: 14px;
}

.mega-menu span {
  color: var(--muted);
  line-height: 1.35;
  font-size: 12px;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  font-weight: 760;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.075);
}

.btn.primary {
  color: #061216;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.btn.ghost {
  background: transparent;
}

.btn.dark {
  color: white;
  background: #111b25;
}

.light-page .btn:not(.primary):not(.dark) {
  color: #101820;
  border-color: #d6e0e4;
  background: #ffffff;
}

.light-page .btn:not(.primary):not(.dark):hover {
  border-color: #86bfc8;
  background: #f7fbfc;
}

.dash-card .btn:not(.primary):not(.dark) {
  color: #101820 !important;
  border-color: #d6e0e4;
  background: #ffffff;
}

.btn.full {
  width: 100%;
}

.section {
  padding: 88px 0;
}

.section.tight {
  padding: 48px 0 20px;
}

.section.band {
  background: rgba(16, 24, 33, 0.78);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 120px));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 54px 0 56px;
}

#signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255,255,255,0.045);
  font-size: 13px;
  font-weight: 720;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--teal);
  box-shadow: 0 0 16px rgba(73, 197, 170, 0.85);
  animation: pulseDot 2.8s ease-in-out infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin: 22px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 5.4vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  color: var(--soft);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
}

.trust-item {
  border-left: 2px solid var(--line-strong);
  padding-left: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.trust-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}

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

.product-screen {
  border: 1px solid rgba(157, 185, 204, 0.25);
  border-radius: 8px;
  background: #0d151d;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-screen.elevated {
  max-width: 620px;
  margin-left: auto;
  transform: perspective(1100px) rotateY(-5deg) rotateX(2deg);
  transform-origin: center;
  animation: floatScreen 7s ease-in-out infinite;
}

.screen-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--rose);
}

.screen-dot:nth-child(2) {
  background: var(--amber);
}

.screen-dot:nth-child(3) {
  background: var(--green);
}

.screen-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 200px;
  min-height: 480px;
}

.screen-rail,
.screen-side {
  padding: 18px;
  background: rgba(255,255,255,0.025);
}

.screen-main {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 18px;
}

.mini-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.rail-item,
.model-row,
.activity-row,
.usage-row {
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.035);
}

.rail-item {
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 13px;
}

.rail-item.active {
  border-color: rgba(73, 197, 170, 0.55);
  background: rgba(73, 197, 170, 0.11);
  color: white;
}

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

.bubble {
  max-width: 82%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px;
  color: var(--soft);
  background: rgba(255,255,255,0.045);
  line-height: 1.45;
  font-size: 14px;
}

.bubble.user {
  justify-self: end;
  color: white;
  background: rgba(73, 197, 170, 0.12);
  border-color: rgba(73, 197, 170, 0.34);
}

.workstream {
  margin-top: 12px;
  border: 1px solid rgba(85, 199, 214, 0.26);
  border-radius: 8px;
  overflow: hidden;
}

.workstream-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: var(--soft);
  background: rgba(85, 199, 214, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.workstream-line {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-family: "Cascadia Code", "Fira Code", ui-monospace, monospace;
  font-size: 12px;
  animation: lineReveal 520ms ease both;
}

.workstream-line:nth-child(2) {
  animation-delay: 180ms;
}

.workstream-line:nth-child(3) {
  animation-delay: 380ms;
}

.workstream-line:nth-child(4) {
  animation-delay: 580ms;
}

.plus {
  color: var(--green);
}

.minus {
  color: var(--rose);
}

.model-row,
.activity-row,
.usage-row {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--soft);
}

.meter {
  height: 8px;
  margin-top: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.meter span {
  display: block;
  height: 100%;
  width: var(--value, 50%);
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.section-head p,
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.purchase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(18, 28, 38, 0.72);
}

.plan-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plan-selector button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--soft);
  background: rgba(255,255,255,0.04);
  font-weight: 800;
}

.plan-selector button.active,
.plan-selector button:hover {
  color: #061216;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.plan-preview {
  border: 1px solid rgba(85, 199, 214, 0.28);
  border-radius: 8px;
  padding: 20px;
  background: rgba(7, 14, 20, 0.66);
}

.plan-preview h3 {
  margin: 16px 0 8px;
  font-size: 24px;
}

.plan-preview p {
  color: var(--muted);
  line-height: 1.5;
}

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

.preview-metrics div {
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
}

.preview-metrics strong,
.preview-metrics span {
  display: block;
}

.preview-metrics strong {
  font-size: 18px;
}

.preview-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}

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

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

.feature-card,
.plan-card,
.update-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 28, 38, 0.88);
  padding: 22px;
}

.feature-card h3,
.detail-card h3,
.update-card h3 {
  margin-bottom: 9px;
  font-size: 21px;
}

.feature-card p,
.detail-card p,
.update-card p,
.plan-card p {
  color: var(--muted);
  line-height: 1.55;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #061216;
  background: var(--cyan);
  font-weight: 900;
}

.icon.teal { background: var(--teal); }
.icon.blue { background: var(--blue); }
.icon.amber { background: var(--amber); }
.icon.rose { background: var(--rose); color: white; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan-card.featured {
  border-color: rgba(73, 197, 170, 0.58);
  background: linear-gradient(180deg, rgba(73,197,170,0.12), rgba(18,28,38,0.92));
}

.plan-tag {
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.price {
  margin: 18px 0 8px;
  font-size: 34px;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-size: 14px;
}

.discount {
  color: var(--amber);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}

.plan-list {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--soft);
  font-size: 14px;
}

.plan-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
}

.plan-list li::before {
  content: "+";
  color: var(--teal);
  font-weight: 900;
}

.plan-card .btn {
  margin-top: auto;
}

.compare-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.compare-table th,
.compare-table td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  color: var(--soft);
  background: rgba(255,255,255,0.035);
}

.compare-table td {
  color: var(--muted);
}

.page-hero {
  padding: 92px 0 54px;
  background:
    linear-gradient(135deg, rgba(85,199,214,0.10), transparent 36%),
    linear-gradient(180deg, rgba(16,24,33,0.88), rgba(8,13,18,0));
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  gap: 42px;
  align-items: end;
}

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

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,0.045);
}

.stat strong {
  display: block;
  font-size: 24px;
  color: var(--text);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.update-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
}

.update-date {
  color: var(--cyan);
  font-weight: 900;
}

.footer {
  border-top: 1px solid var(--line);
  background: #070b10;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer h4 {
  margin: 0 0 12px;
}

.footer a,
.footer p {
  display: block;
  color: var(--muted);
  margin: 8px 0;
  line-height: 1.45;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(85,199,214,0.12), transparent 30%),
    linear-gradient(315deg, rgba(244,184,96,0.10), transparent 42%),
    #eef3f4;
}

.auth-card {
  width: min(440px, 100%);
  border: 1px solid #d6e0e4;
  border-radius: 8px;
  padding: 30px;
  background: white;
  box-shadow: 0 24px 80px rgba(16, 31, 43, 0.12);
  animation: panelIn 420ms ease both;
}

.auth-card h1 {
  color: #101820;
  margin-bottom: 8px;
}

.auth-card p,
.auth-card label,
.auth-card .muted {
  color: #667885;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.google-entry {
  margin: 18px 0 10px;
}

.google-inline {
  margin: 10px 0 14px;
}

.register-name-step {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe4e8;
  border-radius: 8px;
  padding: 12px;
  background: #f7fafb;
}

.register-name-step > span {
  color: #526774;
  font-size: 13px;
  font-weight: 850;
}

.name-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.name-options button {
  min-height: 40px;
  border: 1px solid #cfd9de;
  border-radius: 8px;
  color: #526774;
  background: #ffffff;
  font-weight: 850;
}

.name-options button.active {
  color: #052225;
  border-color: rgba(73, 197, 170, 0.55);
  background: linear-gradient(135deg, rgba(85,199,214,0.22), rgba(73,197,170,0.20));
}

.input {
  width: 100%;
  height: 44px;
  border: 1px solid #cfd9de;
  border-radius: 8px;
  padding: 0 12px;
  color: #101820;
  background: #fbfdfe;
  outline: none;
}

.input:focus {
  border-color: #49aeba;
  box-shadow: 0 0 0 3px rgba(73, 174, 186, 0.18);
}

.error-box {
  display: none;
  padding: 10px 12px;
  border: 1px solid #f2b8c1;
  border-radius: 8px;
  color: #9b2035;
  background: #fff1f3;
  font-size: 14px;
}

.error-box.visible {
  display: block;
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px 1fr;
  background:
    linear-gradient(135deg, rgba(85,199,214,0.08), transparent 30%),
    linear-gradient(315deg, rgba(244,184,96,0.07), transparent 38%),
    #f4f7f8;
  color: #14202b;
}

.dash-side {
  border-right: 1px solid #dbe4e8;
  background:
    linear-gradient(180deg, rgba(73,197,170,0.08), transparent 34%),
    #101820;
  color: #dce7eb;
  padding: 18px;
}

.dash-side nav {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.dash-side a,
.dash-side button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  color: #b8c8d0;
  background: transparent;
  text-align: left;
  font-weight: 750;
}

.dash-side a.active,
.dash-side a:hover,
.dash-side button:hover {
  color: white;
  background: rgba(255,255,255,0.08);
}

.dash-main {
  min-width: 0;
  padding: 28px;
}

.dash-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.dash-top h1 {
  color: #101820;
  margin-bottom: 6px;
}

.dash-top p {
  color: #667885;
}

.dash-summary-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.6fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dash-summary-strip div,
.desktop-link-state div,
.plan-adaptive-metrics div {
  border: 1px solid #dbe4e8;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 10px 30px rgba(16,31,43,0.045);
}

.dash-summary-strip span,
.desktop-link-state span,
.plan-adaptive-panel span,
.plan-adaptive-metrics span {
  display: block;
  color: #6b7f8b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-summary-strip strong,
.desktop-link-state strong,
.plan-adaptive-metrics strong {
  display: block;
  min-width: 0;
  margin-top: 5px;
  overflow: hidden;
  color: #101820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.dash-card {
  border: 1px solid #dbe4e8;
  border-radius: 8px;
  padding: 20px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 40px rgba(16,31,43,0.06);
  animation: panelIn 420ms ease both;
}

.dash-card:nth-child(2) {
  animation-delay: 60ms;
}

.dash-card:nth-child(3) {
  animation-delay: 120ms;
}

.dash-card:nth-child(4) {
  animation-delay: 180ms;
}

.dash-card h2 {
  color: #101820;
  margin-bottom: 10px;
}

.dash-card p {
  color: #667885;
  line-height: 1.5;
}

.download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.download-actions .btn {
  min-width: 148px;
}

.download-status {
  min-height: 20px;
  margin-top: 10px;
  color: #667885;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0b3d3a;
  background: #dbf5ef;
  font-size: 12px;
  font-weight: 900;
}

.usage-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.usage-stat {
  display: grid;
  gap: 6px;
}

.usage-stat strong {
  color: #101820;
}

.usage-stat a {
  color: #0b6570;
  font-weight: 800;
}

.text-link {
  border: 0;
  padding: 0;
  color: #0b6570;
  background: transparent;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.light-meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2eaee;
}

.light-meter span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  background: linear-gradient(90deg, #49c5aa, #55c7d6);
  background-size: 180% 100%;
  animation: meterSheen 2.8s ease-in-out infinite;
}

.feature-state {
  position: relative;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #e1e9ed;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbfc;
}

.feature-state span {
  color: #607481;
  font-size: 12px;
  font-weight: 850;
}

.feature-state.is-on {
  border-color: rgba(73,197,170,0.32);
  background: linear-gradient(135deg, rgba(73,197,170,0.10), rgba(255,255,255,0.86));
}

.feature-state.is-off {
  opacity: 0.74;
}

.plan-adaptive-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.78fr);
  gap: 12px;
  margin: 16px 0 4px;
  border: 1px solid rgba(73, 197, 170, 0.28);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(73,197,170,0.12), transparent 46%),
    linear-gradient(315deg, rgba(244,184,96,0.09), transparent 52%),
    #f8fbfc;
}

.plan-adaptive-panel strong {
  display: block;
  margin: 5px 0 6px;
  color: #101820;
  font-size: 20px;
}

.plan-adaptive-panel p {
  margin: 0;
  color: #526774;
  font-size: 14px;
}

.plan-adaptive-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.desktop-panel {
  overflow: hidden;
}

.desktop-link-state {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

body[data-plan="pro"] .badge,
body[data-plan="pro"] .plan-adaptive-panel {
  border-color: rgba(106,168,255,0.38);
}

body[data-plan="ultra"] .badge,
body[data-plan="ultra"] .plan-adaptive-panel {
  border-color: rgba(244,184,96,0.45);
}

body[data-plan="mega_x5"] .badge,
body[data-plan="mega_x5"] .plan-adaptive-panel {
  border-color: rgba(73,197,170,0.50);
}

body[data-plan="enterprise"] .badge,
body[data-plan="enterprise"] .plan-adaptive-panel {
  border-color: rgba(232,121,138,0.38);
}

.team-panel {
  display: none;
}

.team-panel.visible {
  display: block;
}

.workspace-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed #98aab4;
  border-radius: 8px;
  padding: 12px;
  color: #101820;
  background: #f7fafb;
  font-family: "Cascadia Code", ui-monospace, monospace;
  overflow-wrap: anywhere;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 13, 18, 0.56);
  backdrop-filter: blur(14px);
}

.profile-card {
  width: min(460px, 100%);
  border: 1px solid #d6e0e4;
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(16,31,43,0.18);
  animation: panelIn 360ms ease both;
}

.profile-card h2 {
  margin: 8px 0;
  color: #101820;
}

.profile-card p,
.profile-card label {
  color: #667885;
}

.profile-kicker {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(73,197,170,0.32);
  border-radius: 999px;
  padding: 0 10px;
  color: #0b6570;
  background: rgba(73,197,170,0.09);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-name-field {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  font-weight: 760;
}

.profile-error {
  min-height: 20px;
  margin: 8px 0;
  color: #9b2035;
  font-size: 13px;
}

.hero-copy-block {
  min-width: 0;
}

.hero-visual {
  perspective: 1100px;
}

.hero-visual .product-screen.elevated {
  max-width: 580px;
}

.hero-visual .screen-body {
  min-height: 410px;
}

.hero-visual .screen-main,
.hero-visual .screen-rail,
.hero-visual .screen-side {
  padding: 14px;
}

.hero-visual .artifact-strip {
  display: none;
}

.hero-visual .workstream-line:nth-child(n+4) {
  display: none;
}

@media (max-height: 760px) and (min-width: 900px) {
  .hero .trust-row {
    display: none;
  }
}

.artifact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.artifact-strip div,
.operation-card,
.security-layer,
.scenario-grid article {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.artifact-strip div {
  padding: 10px;
}

.artifact-strip strong,
.artifact-strip span {
  display: block;
}

.artifact-strip strong {
  font-size: 20px;
}

.artifact-strip span {
  color: var(--muted);
  font-size: 12px;
}

.operations-grid,
.security-grid,
.scenario-grid {
  display: grid;
  gap: 14px;
}

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

.operation-card {
  position: relative;
  min-height: 230px;
  padding: 22px;
  overflow: hidden;
}

.operation-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--rose));
  opacity: 0.72;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #061216;
  background: var(--amber);
  font-weight: 900;
  margin-bottom: 18px;
}

.operation-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.operation-card p,
.security-layer p,
.scenario-grid p,
.mini-list,
.guardrail {
  color: var(--muted);
  line-height: 1.55;
}

.split-section,
.visual-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: center;
}

.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--soft);
  background: rgba(255,255,255,0.04);
  font-weight: 820;
}

.module-tabs button.active,
.module-tabs button:hover {
  color: #061216;
  border-color: transparent;
  background: linear-gradient(135deg, var(--amber), var(--teal));
}

.module-panel {
  min-height: 330px;
  border: 1px solid rgba(85, 199, 214, 0.28);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(85,199,214,0.10), transparent 46%),
    rgba(12, 17, 16, 0.82);
  box-shadow: var(--shadow);
}

.module-panel h3 {
  margin: 18px 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
}

.module-panel p {
  color: var(--soft);
  line-height: 1.6;
}

.visual-section {
  background:
    linear-gradient(180deg, rgba(21,23,19,0.2), rgba(21,23,19,0.88)),
    var(--bg);
}

.visual-copy h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
}

.visual-copy p {
  color: var(--soft);
  line-height: 1.65;
  font-size: 18px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.feature-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--soft);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  font-weight: 760;
}

.visual-stack {
  position: relative;
  min-height: 460px;
  perspective: 1000px;
}

.video-frame {
  position: absolute;
  inset: 34px 34px 74px 34px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    #101412;
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateY(7deg) rotateX(2deg);
}

.video-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(73,197,170,0.20), transparent);
  height: 42%;
  animation: scanVideo 4.2s linear infinite;
}

.video-title {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(73,197,170,0.42);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(0,0,0,0.28);
  font-weight: 850;
}

.video-bars {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.video-bars span {
  height: 84px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--cyan), rgba(85,199,214,0.08));
  transform-origin: bottom;
  animation: meterMove 2.6s ease-in-out infinite;
}

.video-bars span:nth-child(2) {
  background: linear-gradient(180deg, var(--amber), rgba(244,184,96,0.08));
  animation-delay: 220ms;
}

.video-bars span:nth-child(3) {
  background: linear-gradient(180deg, var(--teal), rgba(73,197,170,0.08));
  animation-delay: 420ms;
}

.video-bars span:nth-child(4) {
  background: linear-gradient(180deg, var(--rose), rgba(232,121,138,0.08));
  animation-delay: 620ms;
}

.floating-panel {
  position: absolute;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--soft);
  background: rgba(18, 24, 22, 0.92);
  box-shadow: 0 16px 42px rgba(0,0,0,0.22);
  font-weight: 800;
  animation: panelLift 4s ease-in-out infinite;
}

.panel-a {
  top: 0;
  right: 18px;
}

.panel-b {
  left: 0;
  bottom: 94px;
  animation-delay: 360ms;
}

.panel-c {
  right: 0;
  bottom: 26px;
  animation-delay: 720ms;
}

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

.security-layer {
  padding: 22px;
  background: rgba(255,255,255,0.035);
}

.security-layer span,
.scenario-grid span,
.plan-meta span {
  display: block;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.security-layer strong {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(244,184,96,0.10), transparent 42%),
    rgba(18,28,38,0.72);
}

.cta-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.cta-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.pricing-hero {
  background:
    linear-gradient(135deg, rgba(244,184,96,0.13), transparent 32%),
    linear-gradient(180deg, rgba(21,23,19,0.88), rgba(8,13,18,0));
}

.premium-panel {
  background:
    linear-gradient(135deg, rgba(73,197,170,0.11), transparent 44%),
    rgba(18, 28, 38, 0.72);
}

.mini-list {
  margin: 0 0 18px;
  padding-left: 18px;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.membership-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(18, 28, 38, 0.88);
}

.membership-card.featured {
  border-color: rgba(73, 197, 170, 0.62);
  background:
    linear-gradient(180deg, rgba(73,197,170,0.13), rgba(18,28,38,0.92));
}

.membership-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.membership-head .price {
  margin-top: 0;
  text-align: right;
}

.membership-card p {
  color: var(--muted);
  line-height: 1.55;
}

.plan-meta {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.035);
}

.plan-meta strong {
  display: block;
  color: var(--text);
}

.guardrail {
  min-height: 68px;
  border: 1px solid rgba(244,184,96,0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(244,184,96,0.07);
  font-size: 13px;
  margin: auto 0 16px;
}

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

.scenario-grid article {
  min-height: 205px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
}

.scenario-grid strong {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
}

.faq-grid {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
}

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
}

.faq-list p {
  color: var(--muted);
  line-height: 1.55;
  margin: 12px 0 0;
}

@keyframes scanVideo {
  0% { transform: translateY(-110%); }
  100% { transform: translateY(240%); }
}

@keyframes meterMove {
  0%, 100% { transform: scaleY(0.38); }
  50% { transform: scaleY(0.94); }
}

@keyframes panelLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatScreen {
  0%, 100% { transform: perspective(1100px) rotateY(-5deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1100px) rotateY(-4deg) rotateX(2.4deg) translateY(-10px); }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.28); opacity: 1; }
}

@keyframes lineReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes meterSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (max-width: 1050px) {
  .hero-grid,
  .page-hero .container,
  .dash-grid,
  .purchase-panel,
  .split-section,
  .visual-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid,
  .grid-4,
  .operations-grid,
  .security-grid,
  .scenario-grid,
  .membership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .screen-rail,
  .screen-side {
    display: none;
  }

  .product-screen.elevated {
    transform: none;
    animation: none;
  }

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

@media (max-width: 760px) {
  .nav-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand {
    margin-right: auto;
  }

  .nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-left: 0;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-actions {
    margin-left: auto;
  }

  .top-nav.has-primary-action .nav-actions .btn.ghost {
    display: none;
  }

  .top-nav.nav-open .nav-links {
    display: grid;
  }

  .nav-links a,
  .nav-dropdown button {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    color: var(--soft);
    background: rgba(255,255,255,0.035);
    text-align: left;
  }

  .nav-links a.active {
    border-color: rgba(73,197,170,0.42);
    color: var(--text);
    background: rgba(73,197,170,0.10);
  }

  .hero {
    padding-top: 42px;
  }

  .grid-3,
  .grid-4,
  .plans-grid,
  .operations-grid,
  .security-grid,
  .scenario-grid,
  .membership-grid,
  .trust-row,
  .artifact-strip,
  .stat-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mega-menu,
  .mega-menu.wide {
    position: static;
    width: min(520px, 100%);
    transform: none;
    display: none;
    opacity: 1;
    pointer-events: auto;
    grid-template-columns: 1fr;
    margin-top: 6px;
  }

  .nav-dropdown:hover .mega-menu,
  .nav-dropdown:focus-within .mega-menu {
    display: grid;
    transform: none;
  }

  .nav-dropdown {
    min-width: 128px;
  }

  .cta-panel,
  .membership-head {
    align-items: stretch;
    flex-direction: column;
  }

  .visual-stack {
    min-height: 360px;
  }

  .video-frame {
    inset: 28px 0 72px;
    transform: none;
  }

  .floating-panel {
    max-width: 78%;
  }

  .update-card {
    grid-template-columns: 1fr;
  }

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

  .dash-side {
    position: static;
  }

  .dash-summary-strip,
  .desktop-link-state,
  .plan-adaptive-panel,
  .plan-adaptive-metrics {
    grid-template-columns: 1fr;
  }

  .name-options {
    grid-template-columns: 1fr;
  }
}

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