@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;850;900&family=Sora:wght@800&display=swap");

:root {
  color-scheme: dark;
  --bg: #070b10;
  --bg-2: #0b1016;
  --panel: #151b23;
  --panel-2: #10161d;
  --panel-3: #1a2322;
  --line: #273342;
  --line-strong: #364556;
  --muted: #8fb1d7;
  --text: #f7fbff;
  --soft: #c7dcf4;
  --emerald: #18c693;
  --emerald-2: #0d8b68;
  --cyan: #2fb8ff;
  --violet: #875cff;
  --pink: #ff4f8f;
  --amber: #ffad1f;
  --danger: #ff4f6a;
  --shadow: 0 28px 70px rgb(0 0 0 / 44%);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-2: #eef4f8;
  --panel: #ffffff;
  --panel-2: #f8fbfd;
  --panel-3: #eaf8f3;
  --line: #d7e0e9;
  --line-strong: #b8c6d5;
  --muted: #4d6683;
  --text: #061422;
  --soft: #26415f;
  --shadow: 0 22px 50px rgb(19 35 54 / 12%);
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100%;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 6%, rgb(24 198 147 / 15%), transparent 30rem),
    radial-gradient(circle at 8% 28%, rgb(47 184 255 / 12%), transparent 28rem),
    linear-gradient(180deg, #080d12 0%, var(--bg) 38%, #06090d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 80% 6%, rgb(24 198 147 / 16%), transparent 30rem),
    radial-gradient(circle at 8% 28%, rgb(47 184 255 / 13%), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef4f8 100%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgb(7 11 16 / 88%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .site-header {
  background: rgb(255 255 255 / 90%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 950;
  font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand span span { color: var(--emerald); }

.brand strong {
  margin-left: 4px;
  padding: 5px 9px;
  border: 1px solid rgb(24 198 147 / 48%);
  border-radius: 999px;
  color: var(--emerald);
  background: rgb(24 198 147 / 12%);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 850;
}

nav a:hover, nav a:focus-visible, .site-footer a:hover { color: var(--emerald); }

body.nav-open {
  overflow: hidden;
}

body.nav-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgb(2 7 12 / 62%);
  backdrop-filter: blur(8px);
}

.nav-toggle {
  display: none;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  background: var(--panel-2);
  padding: 0 12px;
  font-weight: 900;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgb(143 177 215 / 28%);
  border-radius: 999px;
  color: var(--soft);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 2%)),
    var(--panel-2);
  font-size: 0;
  font-weight: 950;
  line-height: 1;
  contain: layout paint;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 8%),
    0 12px 26px rgb(0 0 0 / 16%);
}

.theme-toggle::before {
  content: "";
  width: 25px;
  height: 25px;
  background-image: url("/assets/theme-sun.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 4px 9px rgb(0 0 0 / 22%));
}

.theme-toggle[aria-pressed="true"]::before {
  background-image: url("/assets/theme-moon.png");
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgb(24 198 147 / 48%);
  background:
    linear-gradient(180deg, rgb(24 198 147 / 14%), rgb(255 255 255 / 2%)),
    var(--panel-2);
}

.header-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.header-cta, .btn.primary {
  color: #04100d;
  border-color: var(--emerald);
  background: var(--emerald);
}

.btn.ghost {
  color: var(--soft);
  background: rgb(21 27 35 / 82%);
}

html[data-theme="light"] .btn.ghost {
  color: #102033;
  border-color: #c5d4e2;
  background: #ffffff;
  box-shadow: 0 12px 26px rgb(16 35 53 / 10%);
}

html[data-theme="light"] .btn.ghost:hover,
html[data-theme="light"] .btn.ghost:focus-visible {
  border-color: rgb(24 198 147 / 50%);
  background: #eefaf6;
}

.btn:hover, .header-cta:hover { transform: translateY(-1px); }
.btn.wide { width: 100%; }

.hero {
  display: grid;
  gap: clamp(22px, 3vw, 38px);
  justify-items: center;
  overflow: clip;
  padding: clamp(54px, 7vw, 92px) clamp(18px, 4vw, 64px) clamp(46px, 6vw, 86px);
}

.hero-premium {
  min-height: auto;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 1320px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: min(1220px, 100%);
  margin-bottom: 22px;
  font-size: clamp(2.9rem, 5vw, 5.25rem);
  font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.95rem, 3.6vw, 3.8rem);
  font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.14rem;
  font-weight: 800;
}

.hero-text, .page-hero p, .section p, .legal-page p, .legal-page li {
  color: var(--soft);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 820px;
}

.hero-actions, .action-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: center;
  gap: 8px;
  color: var(--soft);
  margin-top: 8px;
}

.signal-row span, .pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgb(143 177 215 / 22%);
  border-radius: 8px;
  background: rgb(16 22 29 / 72%);
  color: var(--soft);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.signal-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 16px rgb(24 198 147 / 45%);
}

.command-stack {
  position: relative;
  width: min(100%, 1040px);
}

.glass-panel, .product-frame, .proof-card, .price-card, .terms-card, .application-panel,
.contact-grid a, .docs-card, .tutorial-card, .feature-grid article, .note-panel, .faq-list details,
.plan-card, .future-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(25 33 43 / 92%), rgb(16 22 29 / 92%));
  box-shadow: var(--shadow);
}

html[data-theme="light"] .glass-panel,
html[data-theme="light"] .product-frame,
html[data-theme="light"] .proof-card,
html[data-theme="light"] .price-card,
html[data-theme="light"] .terms-card,
html[data-theme="light"] .application-panel,
html[data-theme="light"] .contact-grid a,
html[data-theme="light"] .docs-card,
html[data-theme="light"] .tutorial-card,
html[data-theme="light"] .feature-grid article,
html[data-theme="light"] .note-panel,
html[data-theme="light"] .faq-list details,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .future-card {
  border-color: #d5e0eb;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
  box-shadow: 0 18px 42px rgb(16 35 53 / 10%);
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: .86rem;
  font-weight: 900;
}

input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #0c1118;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: #ffffff;
}

html[data-theme="light"] .signal-row span,
html[data-theme="light"] .pill {
  border-color: #c9d8e6;
  background: #ffffff;
  color: #12304c;
  box-shadow: 0 8px 20px rgb(16 35 53 / 8%);
}

textarea { resize: vertical; }

.access-form button {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  color: #03110d;
  background: var(--emerald);
  font-weight: 950;
}

.premium-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #0b1016;
}

html[data-theme="light"] .premium-frame {
  background: #ffffff;
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #080c11;
}

html[data-theme="light"] .app-topbar,
html[data-theme="light"] .mini-sidebar {
  background: #f2f6fa;
}

.app-topbar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
}

.app-topbar em {
  margin-left: auto;
  color: var(--emerald);
  font-style: normal;
  font-weight: 950;
}

.app-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 460px;
}

.mini-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #121820;
}

.mini-sidebar strong, .mini-sidebar span {
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
}

.mini-sidebar .active {
  color: var(--emerald);
  background: rgb(24 198 147 / 15%);
}

.mini-dashboard { padding: 20px; }
.mini-dashboard h2 { margin-bottom: 18px; font-size: 1.55rem; }
.mini-dashboard h2 span { color: var(--emerald); }

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-row div {
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--emerald);
  border-radius: 8px;
  background: var(--panel);
}

small, .metric-row small, .work-block small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.metric-row b {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.5rem;
}

.metric-row span, .activity-list span { color: var(--muted); font-size: .82rem; }

.work-block {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.work-block div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.work-block span {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald) 40%, #27323f 40%);
}

.activity-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.activity-list p {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 12px 14px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.activity-list p:last-child { border-bottom: 0; }
.activity-list em { color: var(--emerald); font-style: normal; font-weight: 950; }

.section {
  padding: clamp(40px, 5vw, 78px) clamp(18px, 4vw, 64px);
}

.operations-band {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgb(24 198 147 / 10%), transparent);
}

.operations-meter {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgb(24 198 147 / 34%);
  border-radius: 12px;
  background: rgb(21 27 35 / 78%);
}

html[data-theme="light"] .operations-meter {
  border-color: rgb(24 198 147 / 38%);
  background: linear-gradient(180deg, #ffffff, #f4fbf9);
  box-shadow: 0 18px 38px rgb(16 35 53 / 10%);
}

html[data-theme="light"] .operations-meter span {
  color: #12304c;
}

html[data-theme="light"] .operations-meter small {
  color: #435c76;
}

.operations-meter strong {
  color: var(--emerald);
  font-size: 3rem;
  line-height: 1;
}

.operations-meter small { text-transform: none; letter-spacing: 0; line-height: 1.45; }

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 32px;
  align-items: start;
}

.feature-grid, .three-cards, .contact-grid, .docs-grid, .tutorial-grid, .future-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.plans-grid h2 {
  font-size: clamp(1.95rem, 3.6vw, 2.8rem);
}

.feature-grid article, .proof-card, .price-card, .contact-grid a, .docs-card, .tutorial-card,
.note-panel, .plan-card, .future-card, .terms-card {
  padding: 24px;
}

.feature-grid article span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--emerald);
  font-weight: 950;
}

.premium-grid article:nth-child(1) { border-top: 3px solid var(--emerald); }
.premium-grid article:nth-child(2) { border-top: 3px solid var(--cyan); }
.premium-grid article:nth-child(3) { border-top: 3px solid var(--violet); }
.premium-grid article:nth-child(4) { border-top: 3px solid var(--amber); }
.premium-grid article:nth-child(5) { border-top: 3px solid var(--pink); }
.premium-grid article:nth-child(6) { border-top: 3px solid var(--emerald); }

ul { padding-left: 20px; color: var(--soft); line-height: 1.9; }

.pricing-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px clamp(18px, 4vw, 64px) 40px;
  border: 1px solid rgb(24 198 147 / 34%);
  border-radius: 14px;
  background: linear-gradient(135deg, rgb(24 198 147 / 15%), rgb(47 184 255 / 8%));
}

.pricing-strip .btn {
  min-width: 220px;
}

.launch-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgb(24 198 147 / 34%);
  border-radius: 10px;
  color: var(--soft);
  background: rgb(24 198 147 / 10%);
  font-weight: 850;
}

.addon-section {
  display: grid;
  gap: 18px;
}

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

.addon-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(25 33 43 / 92%), rgb(16 22 29 / 92%));
  box-shadow: var(--shadow);
}

html[data-theme="light"] .addon-card {
  border-color: #d5e0eb;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
  box-shadow: 0 18px 42px rgb(16 35 53 / 10%);
}

.addon-card h3 {
  margin-bottom: 14px;
}

.addon-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-weight: 900;
}

.addon-row strong {
  color: var(--emerald);
}

html[data-theme="light"] .glass-panel,
html[data-theme="light"] .product-frame,
html[data-theme="light"] .proof-card,
html[data-theme="light"] .price-card,
html[data-theme="light"] .terms-card,
html[data-theme="light"] .application-panel,
html[data-theme="light"] .contact-grid a,
html[data-theme="light"] .docs-card,
html[data-theme="light"] .tutorial-card,
html[data-theme="light"] .feature-grid article,
html[data-theme="light"] .note-panel,
html[data-theme="light"] .faq-list details,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .future-card,
html[data-theme="light"] .addon-card {
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
}

.faq-section { padding-top: 32px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 0; overflow: hidden; }
.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 950;
}
.faq-list details p { padding: 0 20px 20px; margin: 0; }

.page-hero {
  padding: clamp(52px, 7vw, 100px) clamp(18px, 4vw, 64px) 26px;
}

.page-hero h1 {
  max-width: 1080px;
  font-size: clamp(2.35rem, 4.4vw, 4.8rem);
}

.launch-layout {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 22px;
}

.price {
  margin: 18px 0;
  color: var(--text);
  font-size: 3.9rem;
  font-weight: 950;
  line-height: 1;
}

.price span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}

.subprice { color: var(--emerald) !important; font-weight: 950; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-list + .note-panel {
  margin-top: 18px;
}

.tag-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgb(143 177 215 / 10%);
  font-size: .83rem;
  font-weight: 900;
}

.application-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  padding: 24px;
}

.access-form {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-note, .status-note {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.contact-grid a span, .three-cards a, .future-card span, .docs-card span {
  display: inline-block;
  margin-top: 10px;
  color: var(--emerald);
  font-weight: 950;
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.docs-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
}

.docs-nav a:hover { color: var(--emerald); background: rgb(24 198 147 / 10%); }

.support-search {
  position: relative;
  margin-bottom: 20px;
}

.tutorial-grid + .note-panel,
.note-panel + .note-panel {
  margin-top: 20px;
}

.feature-showcase {
  display: grid;
  gap: 22px;
}

.showcase-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.6fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: stretch;
  overflow: hidden;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgb(25 33 43 / 92%), rgb(16 22 29 / 92%));
  box-shadow: var(--shadow);
}

.showcase-panel.reverse {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
}

.showcase-panel.reverse .showcase-copy {
  order: 2;
}

.showcase-copy {
  display: grid;
  align-content: center;
  min-width: 0;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 30px;
  margin-bottom: 18px;
  border: 1px solid rgb(24 198 147 / 36%);
  border-radius: 8px;
  color: var(--emerald);
  background: rgb(24 198 147 / 10%);
  font-size: .82rem;
  font-weight: 950;
}

.showcase-copy h2 {
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.screenshot-frame {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 330px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent),
    #080c11;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}

.screenshot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(24 198 147 / 12%), transparent 28%),
    linear-gradient(90deg, rgb(0 0 0 / 34%), transparent 14%, transparent 86%, rgb(0 0 0 / 28%));
  opacity: .42;
  z-index: 1;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: left top;
}

.showcase-ui {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080c11;
}

html[data-theme="light"] .showcase-panel {
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
}

html[data-theme="light"] .showcase-ui,
html[data-theme="light"] .screenshot-frame {
  background: #ffffff;
}

.timer-preview,
.board-preview,
.log-preview,
.invoice-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.timer-card,
.board-col,
.log-row,
.invoice-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.timer-card {
  padding: 18px;
}

.timer-card strong {
  display: block;
  color: var(--emerald);
  text-align: center;
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .13em;
}

.timer-card b {
  display: block;
  margin: 10px 0 4px;
  text-align: center;
  font-size: 2.25rem;
  font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
}

.timer-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.timer-actions span {
  padding: 12px;
  text-align: center;
  color: var(--emerald);
  font-weight: 950;
}

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

.board-col {
  min-height: 180px;
  padding: 12px;
}

.board-col h3 {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgb(24 198 147 / 18%);
  font-size: .85rem;
}

.task-card-mini {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 9px;
  color: #07111b;
  background: #f7fbff;
  font-weight: 900;
}

.task-card-mini span {
  color: var(--emerald-2);
  font-size: .78rem;
}

.log-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.log-row b {
  color: var(--emerald);
}

.log-row span {
  color: var(--muted);
  font-size: .88rem;
}

.invoice-box {
  padding: 18px;
  background: #f7fbff;
  color: #07111b;
}

.invoice-box header,
.invoice-line,
.invoice-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.invoice-box header {
  padding-bottom: 16px;
  border-bottom: 1px solid #d9e2eb;
}

.invoice-line {
  padding: 13px 0;
  border-bottom: 1px solid #d9e2eb;
}

.invoice-total {
  padding-top: 14px;
  color: var(--emerald-2);
  font-weight: 950;
}

.tutorial-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--soft);
  line-height: 1.9;
}

.tutorial-card h3 { color: var(--text); }
.tutorial-card mark {
  border-radius: 4px;
  color: #04100d;
  background: var(--emerald);
  padding: 0 4px;
}

.legal-page {
  width: min(1120px, calc(100% - 36px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 18px 90px;
  overflow: visible;
}

.legal-page h1 { font-size: clamp(2.2rem, 5vw, 4.7rem); }
.legal-page h2 { margin-top: 34px; font-size: 1.45rem; }

.legal-note, .embed-placeholder {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  background: var(--panel);
}

.embed-placeholder {
  display: grid;
  min-height: 240px;
  margin-top: 24px;
  place-content: center;
  text-align: center;
}

.policy-shell {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: visible;
}

.policy_embed_div {
  width: 100% !important;
  min-height: 70vh;
  height: auto !important;
  max-width: 100%;
  overflow: visible;
  color: var(--text);
}

.legal-risk-addendum {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgb(245 158 11 / 40%);
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(245 158 11 / 13%), rgb(24 198 147 / 8%)), var(--panel);
  box-shadow: var(--shadow);
}

.legal-risk-addendum h2 {
  margin-top: 8px;
}

.legal-risk-addendum p {
  max-width: 980px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: var(--panel-2);
  font-weight: 850;
  font-size: .9rem;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  border-color: var(--emerald);
  color: var(--emerald);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, .7fr)) minmax(220px, .9fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(38px, 5vw, 72px) clamp(18px, 4vw, 64px) 30px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgb(24 198 147 / 12%), transparent 24rem),
    linear-gradient(180deg, rgb(13 19 26 / 94%), rgb(6 10 14 / 98%));
  color: var(--soft);
}

html[data-theme="light"] .site-footer {
  background:
    radial-gradient(circle at 12% 0%, rgb(24 198 147 / 13%), transparent 24rem),
    linear-gradient(180deg, #ffffff, #edf4f7);
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-brand .brand {
  width: max-content;
}

.footer-brand p,
.footer-cta p {
  margin: 0;
  max-width: 31rem;
  color: var(--muted);
  line-height: 1.65;
}

.footer-total {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgb(24 198 147 / 28%);
  border-radius: 999px;
  color: var(--emerald);
  background: rgb(24 198 147 / 10%);
  font-weight: 950;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column strong,
.footer-cta strong {
  color: var(--text);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--muted);
  font-weight: 850;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--emerald);
}

.footer-cta {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgb(24 198 147 / 24%);
  border-radius: 14px;
  background: rgb(24 198 147 / 8%);
}

.footer-cta .btn {
  width: 100%;
  min-width: 0;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .hero, .launch-layout, .application-panel, .docs-layout { grid-template-columns: 1fr; }
  .command-stack { min-height: auto; }
  .premium-frame { width: auto; inset: auto; }
  .feature-grid, .plans-grid, .future-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-nav { position: relative; top: auto; grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-cta { grid-column: span 2; }
  .showcase-panel,
  .showcase-panel.reverse { grid-template-columns: 1fr; }
  .showcase-panel.reverse .showcase-copy { order: 0; }
}

@media (max-width: 1280px) {
  .feature-showcase {
    gap: 28px;
  }
  .showcase-panel,
  .showcase-panel.reverse {
    grid-template-columns: 1fr;
  }
  .showcase-panel.reverse .showcase-copy {
    order: 0;
  }
  .showcase-copy {
    max-width: 860px;
  }
}

@media (max-width: 840px) {
  .site-header { gap: 12px; min-height: 68px; padding: 12px 18px; }
  .nav-toggle {
    position: relative;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-color: rgb(24 198 147 / 34%);
  }
  .header-cta { display: none; }
  nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 110;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    width: min(88vw, 380px);
    height: 100vh;
    margin-left: 0;
    padding: 92px 22px 24px;
    border-left: 1px solid var(--line);
    background:
      radial-gradient(circle at 85% 8%, rgb(24 198 147 / 18%), transparent 14rem),
      var(--panel);
    box-shadow: -30px 0 70px rgb(0 0 0 / 42%);
    transform: translateX(105%);
    transition: transform .22s ease;
  }
  nav::before {
    content: "WorkRate navigation";
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  nav.open {
    transform: translateX(0);
  }
  nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--soft);
    background: var(--panel-2);
  }
  nav a:hover,
  nav a:focus-visible {
    border-color: rgb(24 198 147 / 44%);
    background: rgb(24 198 147 / 10%);
  }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand,
  .footer-cta,
  .footer-bottom {
    grid-column: 1 / -1;
  }
  /*
    The mobile nav is a drawer. Keep these old inline-nav properties inactive
    so "Menu" never dumps a grid of links into the header.
  */
  nav:not(.open) {
    pointer-events: none;
  }
  nav.open {
    pointer-events: auto;
  }
  .hero-premium { min-height: auto; }
  .hero {
    padding-top: clamp(44px, 11vw, 68px);
  }
  .operations-band, .split { grid-template-columns: 1fr; }
  .pricing-strip { display: grid; }
  .addon-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand { font-size: 1.1rem; }
  .brand img { width: 30px; height: 30px; }
  .brand strong { display: none; }
  .nav-toggle {
    min-width: 76px;
    min-height: 42px;
  }
  .theme-toggle {
    width: 42px;
    min-height: 42px;
  }
  h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 11.4vw, 3.05rem);
    line-height: 1.15;
  }
  .hero-copy {
    width: 100%;
  }
  .hero-text {
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.58;
  }
  .signal-row {
    width: min(100%, 360px);
    grid-template-columns: 1fr;
  }
  .signal-row span {
    justify-content: flex-start;
    min-height: 38px;
  }
  .app-grid { grid-template-columns: 1fr; }
  .mini-sidebar { display: none; }
  .metric-row, .feature-grid, .three-cards, .contact-grid, .docs-grid, .tutorial-grid, .plans-grid, .future-grid,
  .form-grid, .docs-nav { grid-template-columns: 1fr; }
  .work-block div { display: grid; }
  .activity-list p { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .btn {
    min-width: 0;
    white-space: normal;
  }
  .board-preview { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 1fr; }
  .screenshot-frame,
  .screenshot-frame img {
    min-height: 240px;
  }
  .site-footer { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
}

@media (max-width: 420px) {
  .site-header {
    gap: 9px;
    padding-inline: 12px;
  }
  .brand {
    font-size: .98rem;
    gap: 7px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .nav-toggle {
    min-width: 68px;
    padding-inline: 10px;
  }
  h1 {
    font-size: clamp(2rem, 10.6vw, 2.75rem);
  }
  .hero {
    padding-inline: 14px;
  }
}






/* =========================
   MOBILE NAV FIX (CRITICAL)
========================= */

/* ✅ Stop page from expanding horizontally */
html, body {
  overflow-x: hidden !important;
}

/* ✅ Modern clamp (better than hidden in newer browsers) */
body {
  overflow-x: clip;
}

/* ✅ Ensure nav cannot affect layout width */
nav {
  max-width: 100vw;
}


/* Default: hidden nav has no shadow */
nav {
  box-shadow: none;
}

/* ✅ When open → add depth */
nav.open {
  box-shadow: -30px 0 80px rgb(0 0 0 / 65%);
}


/* ✅ Fix off-canvas behavior */
@media (max-width: 840px) {
  nav {
    position: fixed;
    top: 0;
    right: 0;

    /* 👇 KEY FIX */
    transform: translateX(100%);

    /* smooth + premium feel */
    transition: transform 0.32s cubic-bezier(.22,1,.36,1);

    /* performance */
    will-change: transform;

    /* prevent weird overflow calc bugs */
    contain: layout paint;
  }

  /* ✅ When open */
  nav.open {
    transform: translateX(0);
  }

  /* ✅ Prevent background scroll when open */
  body.nav-open {
    overflow: hidden;
  }

  /* ✅ Clean backdrop overlay */
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgb(2 7 12 / 62%);
    backdrop-filter: blur(10px);
    transition: opacity 0.2s ease;
  }
}
