:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --text: #000000;
  --muted: #222222;
  --line: #000000;
  --primary: #000000;
  --primary-2: #000000;
  --ring: rgba(0, 0, 0, 0.18);
  --shadow: none;
  --logo-invert: 0;
}

body.dark {
  color-scheme: dark;
  --bg: #000000;
  --bg-elev: #000000;
  --text: #ffffff;
  --muted: #e5e5e5;
  --line: #ffffff;
  --primary: #ffffff;
  --primary-2: #ffffff;
  --ring: rgba(255, 255, 255, 0.24);
  --shadow: none;
  --logo-invert: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 32px;
}

body,
body * {
  text-transform: lowercase;
}

.backdrop-grid {
  display: none;
}

.backdrop-orb {
  display: none;
}

.orb-a {
  top: -110px;
  left: -80px;
  background: transparent;
}

.orb-b {
  right: -80px;
  bottom: -100px;
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  background: var(--bg);
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 9px;
}

.brand-mark-dark {
  display: none;
}

body.dark .brand-mark-light {
  display: none;
}

body.dark .brand-mark-dark {
  display: block;
}

.brand-word {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 44px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  padding: 4px 0;
  max-width: 640px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-copy p {
  color: var(--muted);
  max-width: 60ch;
  font-size: clamp(17px, 1.75vw, 22px);
  line-height: 1.5;
  margin: 0 0 14px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}


.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills span {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg-elev);
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-visual {
  overflow: hidden;
  min-height: 0;
  position: relative;
}

.hero-visual img,
.section img {
  width: 100%;
  display: block;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
}

.section {
  margin-top: 52px;
  scroll-margin-top: 90px;
}

#product.section {
  margin-top: 58px;
}

.compare-strip {
  padding: 14px;
}

.compare-title {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.compare-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
}

.compare-row h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.compare-flow {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.2;
  color: var(--text);
}

.compare-without {
  opacity: 0.78;
}

.compare-with {
  box-shadow: inset 0 0 0 1px var(--text);
}

.auth-page {
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth-card {
  width: min(560px, 100%);
  padding: 18px;
}

.muted-copy {
  color: var(--muted);
}

.logo-strip {
  margin-top: 16px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-radius: 0;
}

.logo-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.logo-row span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--bg-elev);
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}

.logo-pill img {
  display: block;
  height: 16px;
  width: auto;
  filter: invert(var(--logo-invert));
}

.section-head h2 {
  font-size: 34px;
}

.section-head p {
  margin: 12px 0 0;
  max-width: 72ch;
  line-height: 1.55;
  color: var(--muted);
}

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

.feature {
  padding: 16px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature p {
  color: var(--muted);
}

#validation-and-icp {
  width: 100%;
}

#validation-and-icp .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 0 40px;
}

.validation h2,
.icp h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
}

.validation h2 {
  margin-bottom: 16px;
}

.validation-description {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.validation .proof-grid {
  margin-top: 40px;
  margin-bottom: 44px;
}

.validation-accordion {
  display: none;
}

.icp {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 44px;
}

.icp h2 {
  margin-bottom: 12px;
}

.icp-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin: 0;
}

.icp .proof-grid {
  margin-top: 32px;
}

.proof-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg-elev);
  min-height: 122px;
}

.proof-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.proof-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.icp-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.icp-list li {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.icp-list li:first-child {
  border-top: none;
}

.icp-list h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.icp-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.flow-diagram {
  padding: 8px 0;
}

.flow-diagram svg {
  width: 100%;
  display: block;
}

.steps ol {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.notice {
  margin-top: 12px;
  padding: 14px;
  color: var(--muted);
}

.console {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  margin-top: 14px;
}

.console-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  margin-top: 0;
  min-height: 100%;
  border-top: 1px solid var(--line);
}

.app-sidenav {
  padding: 14px 12px;
  border-right: 1px solid var(--line);
}

.app-sidenav-inner {
  display: grid;
  gap: 8px;
}

.side-nav-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-nav-item.active {
  background: var(--text);
  color: var(--bg);
}

.app-content {
  min-height: 520px;
  padding: 16px 20px;
}

.app-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.app-toolbar h3 {
  margin: 0;
}

.app-page {
  display: none;
}

.app-page.active {
  display: block;
}

.app-shell-page main.section {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  flex: 1;
}

.app-shell-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0;
}

.app-shell-page .page-footer {
  display: block;
  margin-top: 0;
}

.side {
  padding: 14px;
  height: fit-content;
  display: grid;
  gap: 14px;
}

.side p {
  color: var(--muted);
  margin-top: 6px;
}

.side-menu {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-menu-title {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.side-menu-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

.side-menu-item.active {
  background: var(--text);
  color: var(--bg);
}

.side-form h4 {
  margin-bottom: 2px;
}

.main-console {
  display: grid;
  gap: 10px;
}

.tabs {
  display: flex;
  gap: 10px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
}

.tab.active {
  color: var(--text);
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

.tab-panel {
  display: none;
  padding: 14px;
}

.tab-panel.active {
  display: block;
  animation: fadeInUp 240ms ease;
}

form {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

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

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: transparent;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 9px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

textarea {
  resize: vertical;
}

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

.btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.btn.primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.btn.ghost {
  background: transparent;
}

.page-footer {
  margin-top: 12px;
  padding: 10px 18px 6px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.theme-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-switch .track {
  width: 48px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: transparent;
  position: relative;
  transition: background 180ms ease, border-color 180ms ease;
}

.theme-switch .knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: none;
  transition: transform 180ms ease;
}

.mode-icon {
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
  transition: color 180ms ease;
  width: 14px;
  display: inline-flex;
  justify-content: center;
}

.theme-switch input:checked + .track .knob {
  transform: translateX(22px);
}

.theme-switch input:checked + .track {
  border-color: var(--text);
  background: transparent;
}

.theme-switch input:checked + .track .knob {
  background: var(--text);
}

body.dark .theme-switch .track {
  border-color: var(--line);
  background: transparent;
}

body.dark .theme-switch .knob {
  background: var(--muted);
}

body.dark .mode-icon {
  color: var(--muted);
}

.theme-switch input:not(:checked) ~ .sun-icon {
  color: var(--text);
}

.theme-switch input:checked ~ .moon-icon {
  color: var(--text);
}

.btn.mini {
  padding: 6px 10px;
  font-size: 12px;
}

.btn:hover {
  transform: translateY(-1px);
  filter: none;
}

.output {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  padding: 12px;
  min-height: 80px;
  max-height: 260px;
  overflow: auto;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.output-small {
  min-height: 54px;
  max-height: 180px;
}

.output.empty {
  color: var(--muted);
  font-style: italic;
}

.hidden {
  display: none !important;
}

.hotspot-editor {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.small-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.hotspot-canvas-wrap {
  min-width: 0;
}

.hotspot-canvas {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-height: 240px;
  background: var(--bg-elev);
}

.hotspot-canvas img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

#hotspotLayer {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}

.hotspot-rect {
  position: absolute;
  border: 2px solid var(--text);
  background: transparent;
  border-radius: 6px;
}

.hotspot-rect span {
  position: absolute;
  top: -22px;
  left: 0;
  font-size: 10px;
  color: var(--bg);
  background: var(--text);
  border-radius: 4px;
  padding: 2px 5px;
  white-space: nowrap;
}

.drawing-rect {
  position: absolute;
  border: 2px dashed var(--text);
  background: transparent;
  border-radius: 6px;
  pointer-events: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal-card {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.auth-form {
  margin-bottom: 10px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin: 10px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.tiny {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.request-success {
  margin-top: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.request-success h3 {
  margin: 0;
}

.request-success p {
  margin: 0;
  color: var(--muted);
}

.floating-logout {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 4px solid var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 150ms ease;
  z-index: 60;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

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

@media (max-width: 980px) {
  .brand-word {
    font-size: 20px;
  }

  .hero,
  .split,
  .console,
  .console-shell {
    grid-template-columns: 1fr;
  }

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

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

  .hotspot-editor {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1024px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #validation-and-icp .container {
    padding: 72px 0;
  }

  .proof-grid {
    display: none;
  }

  .validation-accordion {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    margin-bottom: 56px;
  }

  .proof-accordion-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-elev);
    padding: 0 14px;
  }

  .proof-accordion-item summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 0;
  }

  .proof-accordion-item p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
  }
}
