:root {
  color-scheme: light;
  --ink: #1e1f23;
  --ink-soft: #373b43;
  --muted: #696f7c;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #d7dee8;
  --line-strong: #b8c4d4;
  --primary: #2557d6;
  --primary-dark: #173da1;
  --accent-red: #ff4d54;
  --teal: #0f766e;
  --green: #15803d;
  --amber: #b7791f;
  --red: #c2410c;
  --violet: #6d5bd0;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

a {
  color: inherit;
}

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

h1 {
  margin-bottom: 16px;
  max-width: 760px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  letter-spacing: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.landing .topbar {
  position: absolute;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 36px), 1060px);
  min-height: 46px;
  padding: 6px 8px 6px 14px;
  border: 1px solid rgba(17, 24, 39, 0.13);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 248, 252, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 16px 42px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12);
}

.landing .brand {
  gap: 10px;
  padding-right: 18px;
  border-right: 1px solid rgba(17, 24, 39, 0.1);
  font-size: 13px;
}

.landing .brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

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

.landing .nav {
  gap: 5px;
}

.nav a,
.button,
button,
label.file-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.landing .nav a {
  min-height: 32px;
  border-color: transparent;
  border-radius: 8px;
  padding: 6px 10px;
  background: transparent;
  color: rgba(30, 31, 35, 0.88);
  font-size: 13px;
  font-weight: 620;
}

.landing .button,
.landing button {
  min-height: 40px;
  border-radius: 12px;
  border-color: rgba(17, 24, 39, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 242, 247, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 24, 39, 0.1),
    0 1px 1px rgba(15, 23, 42, 0.07),
    0 4px 10px rgba(34, 42, 53, 0.11);
  color: #1e1f23;
  font-size: 14px;
  font-weight: 650;
}

.landing .nav .button {
  min-height: 32px;
  padding: 6px 12px;
  border-color: rgba(17, 24, 39, 0.16);
  border-radius: 10px;
  font-size: 13px;
}

.landing .button:hover,
.landing button:hover {
  border-color: rgba(17, 24, 39, 0.26);
  transform: translateY(-1px);
}

.button.primary,
button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.landing .button.primary,
.landing button.primary {
  border-color: rgba(17, 24, 39, 0.2);
  background: linear-gradient(180deg, #ffffff, #e9edf4 58%, #dbe2ec);
  color: #1e1f23;
}

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

.landing .button.primary:hover,
.landing button.primary:hover {
  background: linear-gradient(180deg, #ffffff, #eef1f6 58%, #e3e8f0);
}

.button.gold,
button.gold {
  border-color: #d89b3f;
  background: #fff7ed;
  color: #8a4b0f;
}

.button:disabled,
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(38px, 5vw, 72px) clamp(18px, 5vw, 72px) 36px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.landing .hero {
  position: relative;
  min-height: 790px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 32px;
  padding-top: 116px;
  padding-bottom: 0;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(226, 238, 255, 0.62), rgba(255, 255, 255, 0.9) 70%, #ffffff 100%),
    url("/hero-scene.png") center top / cover no-repeat;
}

.landing .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 68%);
  pointer-events: none;
}

.hero-copy {
  max-width: 720px;
}

.landing .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 930px;
}

.hero-copy p {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
}

.landing .hero-copy p {
  margin-left: auto;
  margin-right: auto;
  max-width: 690px;
  color: #1f2937;
  font-size: clamp(18px, 1.75vw, 22px);
}

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

.landing .hero-actions {
  justify-content: center;
}

.eyebrow,
.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.landing .eyebrow {
  margin-bottom: 16px;
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #2f333b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 20px rgba(15, 23, 42, 0.08);
  text-transform: none;
}

.landing .eyebrow::before {
  background: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 77, 84, 0.14);
}

.landing h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 930px;
  font-size: clamp(58px, 7vw, 92px);
  line-height: 0.92;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  color: #334155;
  font-size: 13px;
}

.avatar-stack {
  display: inline-flex;
  align-items: center;
}

.avatar-stack i {
  width: 28px;
  height: 28px;
  margin-left: -7px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #fbcfe8);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.avatar-stack i:first-child {
  margin-left: 0;
}

.avatar-stack i:nth-child(2) {
  background: linear-gradient(135deg, #14b8a6, #bfdbfe);
}

.avatar-stack i:nth-child(3) {
  background: linear-gradient(135deg, #7c3aed, #fde68a);
}

.stars {
  color: #f59e0b;
  letter-spacing: 0;
}

.flow-note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
  color: rgba(30, 31, 35, 0.7);
  font-size: 12px;
  font-weight: 720;
}

.flow-note i {
  width: 16px;
  height: 1px;
  background: rgba(30, 31, 35, 0.22);
}

.product-shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.landing .product-shot {
  z-index: 1;
  width: min(920px, calc(100vw - 32px));
  margin-bottom: -104px;
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 26px 80px rgba(15, 23, 42, 0.2);
}

.landing .shot-header {
  border-top: 0;
}

.shot-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.window-dots i:nth-child(2) {
  background: #ffbd2e;
}

.window-dots i:nth-child(3) {
  background: #28c840;
}

.domain-pill {
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 4px 14px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 760;
}

.shot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #111827;
  color: #ffffff;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.metric,
.retention {
  padding: 16px;
  background: var(--surface);
}

.metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.retention {
  grid-column: 1 / -1;
  min-height: 210px;
}

.bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 128px;
  padding-top: 18px;
}

.bars i {
  flex: 1;
  display: block;
  min-width: 10px;
  border-radius: 4px 4px 0 0;
  background: var(--primary);
}

.bars i:nth-child(3n + 2) {
  background: var(--teal);
}

.bars i:nth-child(3n) {
  background: var(--violet);
}

.section {
  padding: 56px clamp(18px, 5vw, 72px);
}

.landing .section {
  padding-top: 142px;
  background: #ffffff;
}

.section h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.panel-pad {
  padding: 18px;
}

.panel h2 {
  margin-bottom: 12px;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.16;
}

.panel h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.panel p,
.legal p,
.legal li {
  color: var(--ink-soft);
  line-height: 1.55;
}

.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 18px;
}

.sidebar::before {
  content: "Workspace";
  display: block;
  margin: 2px 10px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar nav {
  display: grid;
  gap: 6px;
}

.sidebar a {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.sidebar a.active,
.sidebar a:hover {
  border-color: #dbeafe;
  background: #eff6ff;
  color: var(--primary-dark);
}

.main {
  padding: 24px;
}

.main-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.main-header h1 {
  margin-bottom: 6px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.04;
}

.app-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: start;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.stat {
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
  background: transparent;
}

.stat span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 830;
  text-transform: uppercase;
}

.stat strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.video-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.video-cell img {
  width: 52px;
  height: 68px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-soft);
}

.chart {
  position: relative;
  height: 180px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.chart span {
  flex: 1;
  min-width: 10px;
  border-radius: 4px 4px 0 0;
  background: var(--primary);
}

.chart span:nth-child(3n + 2) {
  background: var(--teal);
}

.chart span:nth-child(3n) {
  background: var(--violet);
}

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

input[type="file"],
input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37, 87, 214, 0.15);
  border-color: var(--primary);
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

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

.notice {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 12px;
  background: #fff7ed;
  color: #8a4b0f;
}

.notice.good {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

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

.direct-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 760;
}

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

.checkbox-grid label,
.toggle-row,
.consent-box {
  min-height: 44px;
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
  line-height: 1.35;
}

.checkbox-grid label.disabled {
  opacity: 0.55;
}

.hidden {
  display: none !important;
}

.small-avatar {
  width: 52px;
  height: 52px;
}

.endpoint {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
  color: var(--primary-dark);
}

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

.event-item {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(170px, auto) minmax(120px, auto);
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(15, 118, 110, 0.18);
  padding-bottom: 8px;
}

.event-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal {
  max-width: 960px;
  margin: 36px auto 84px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 58px clamp(22px, 5vw, 72px) 70px;
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(16, 24, 40, 0.08);
}

.legal h1 {
  max-width: none;
  margin-bottom: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
}

.legal h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.24;
}

.legal p,
.legal li {
  font-size: 15.5px;
}

.legal ul {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal strong {
  color: var(--ink);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .app-shell,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .feature-grid,
  .stats-grid,
  .publish-grid,
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .landing .product-shot {
    margin-bottom: -70px;
  }
}

@media (max-width: 620px) {
  body.landing {
    overflow-x: hidden;
  }

  .topbar,
  .main-header {
    align-items: stretch;
    flex-direction: column;
  }

  .nav,
  .hero-actions {
    width: 100%;
  }

  .nav a,
  .button,
  button {
    flex: 1;
    text-align: center;
  }

  .landing .topbar {
    top: 10px;
    width: calc(100% - 20px);
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .landing .brand {
    flex: 0 0 auto;
    padding-right: 12px;
  }

  .landing .brand span,
  .landing .nav a:not(.button) {
    display: none;
  }

  .landing .nav {
    flex: 0 0 auto;
    width: auto;
  }

  .landing .nav .button {
    flex: none;
  }

  .feature-grid,
  .stats-grid,
  .shot-grid,
  .publish-grid,
  .event-item {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .landing .hero {
    max-width: 100vw;
    min-height: 710px;
    padding: 92px 14px 0;
  }

  .landing .hero-copy {
    width: 100%;
    min-width: 0;
  }

  .landing h1 {
    max-width: 100%;
    font-size: 35px;
    line-height: 1;
    overflow-wrap: break-word;
  }

  .landing .eyebrow {
    max-width: calc(100vw - 48px);
    justify-content: center;
    white-space: normal;
    line-height: 1.25;
  }

  .landing .hero-copy p {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.5;
  }

  .proof-row {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .proof-row strong {
    flex-basis: 100%;
  }

  .stars {
    flex-basis: 100%;
  }

  .landing .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }

  .flow-note {
    gap: 7px;
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
  }

  .landing .product-shot {
    width: calc(100vw - 24px);
    margin-bottom: -42px;
  }

  .shot-chrome {
    height: 40px;
    padding: 0 12px;
  }

  .window-dots i {
    width: 9px;
    height: 9px;
  }

  .domain-pill {
    padding: 3px 9px;
    font-size: 11px;
  }

  .landing .section {
    padding-top: 82px;
  }

  .legal {
    margin: 16px 10px 44px;
    padding: 34px 18px 44px;
  }

  h1 {
    font-size: 40px;
  }
}
