:root {
  color-scheme: light;
  --ink: #171614;
  --muted: #706d66;
  --paper: #f7f2e8;
  --paper-2: #ebe3d4;
  --line: rgba(23, 22, 20, 0.16);
  --accent: #2563eb;
  --accent-dark: #153a8a;
  --green: #0f9f6e;
  --panel: #fffaf0;
  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(--paper);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(22px, 5vw, 64px);
  color: var(--ink);
}

.site-header.scrolled {
  background: rgba(247, 242, 232, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 22, 20, 0.08);
}

.brand {
  font-size: 28px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: rgba(23, 22, 20, 0.72);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.62);
}

.hero {
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(26px, 6vw, 88px);
  padding: 84px clamp(22px, 5vw, 64px) 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.18), transparent 28%),
    linear-gradient(115deg, #fff8ea 0%, #f4ecdd 46%, #e5f0eb 100%);
}

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

.kicker {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 5.8vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 820px;
}

.hero-text {
  max-width: 520px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.38;
}

.setup-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  padding: 0;
  counter-reset: setup-step;
}

.setup-flow li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: rgba(23, 22, 20, 0.78);
  background: rgba(255, 250, 240, 0.56);
  font-size: 14px;
  font-weight: 720;
  list-style: none;
  counter-increment: setup-step;
}

.setup-flow li::before {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #fffaf0;
  background: var(--accent-dark);
  content: counter(setup-step);
  font-size: 12px;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-action {
  background: var(--ink);
  color: #fffaf0;
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 250, 240, 0.52);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.workspace-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  margin: 0;
  transform: translateY(20px);
  animation: rise-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms both;
}

.product-shot-frame {
  width: clamp(240px, 23vw, 300px);
  max-width: 100%;
  filter: drop-shadow(0 44px 74px rgba(23, 22, 20, 0.26));
}

.product-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(244, 243, 238, 0.1);
  border-radius: 32px;
  background: #0d0f12;
}

.scenarios,
.platforms,
.download {
  padding: clamp(72px, 11vw, 140px) clamp(22px, 5vw, 64px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 760px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scenario-list article {
  min-height: 330px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.scenario-list article:last-child {
  border-right: 0;
}

.scenario-list span {
  display: block;
  margin-bottom: 92px;
  color: var(--accent-dark);
  font-weight: 760;
}

h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.06;
}

.scenario-list p,
.platforms p,
.download p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.platforms {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 56px;
  align-items: start;
  background: #151719;
  color: #fffaf0;
}

.platforms .kicker {
  color: #8bb6ff;
}

.platforms p {
  color: rgba(255, 250, 240, 0.68);
  margin-top: 16px;
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(139, 182, 255, 0.32);
  border-radius: 999px;
  color: #cfe0ff;
  background: rgba(139, 182, 255, 0.1);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-compat-icons {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  color: rgba(207, 224, 255, 0.78);
}

.mobile-compat-icons svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platforms .setup-flow {
  margin-top: 24px;
  margin-bottom: 0;
}

.platforms .setup-flow li {
  border-color: rgba(255, 250, 240, 0.16);
  color: rgba(255, 250, 240, 0.86);
  background: rgba(255, 250, 240, 0.06);
}

.platforms .setup-flow li::before {
  color: #151719;
  background: #8bb6ff;
}

.download {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: 48px;
  align-items: start;
}

.download p {
  max-width: 620px;
  margin: 22px 0 0;
}

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

.beta-access-form label {
  display: grid;
  gap: 7px;
  color: rgba(23, 22, 20, 0.78);
  font-size: 13px;
  font-weight: 720;
}

.beta-access-form input,
.beta-access-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.72);
  font: inherit;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.4;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.beta-access-form input {
  min-height: 48px;
  padding: 0 14px;
}

.beta-access-form textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.beta-access-form input:focus,
.beta-access-form textarea:focus {
  border-color: rgba(21, 58, 138, 0.5);
  background: #fffaf0;
}

.beta-access-form .primary-action {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.beta-access-form .primary-action:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-status.error {
  color: #9f1d1d;
}

.platform-downloads {
  display: grid;
  gap: 10px;
  align-content: start;
}

.download-detected-copy {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.platform-downloads button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(23, 22, 20, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.62);
  font: inherit;
  font-weight: 740;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.platform-downloads button:hover {
  border-color: rgba(23, 22, 20, 0.28);
  background: #fffaf0;
  transform: translateY(-1px);
}

.platform-downloads button.detected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffaf0;
}

.platform-downloads button.detected:hover {
  background: #050505;
}

.download-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}

.platform-downloads strong {
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
}

.platform-downloads em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.platform-downloads em:empty {
  display: none;
}

.download-dialog {
  width: min(92vw, 460px);
  padding: 0;
  border: 1px solid rgba(23, 22, 20, 0.16);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(23, 22, 20, 0.26);
}

.download-dialog::backdrop {
  background: rgba(23, 22, 20, 0.36);
  backdrop-filter: blur(8px);
}

.download-dialog .beta-access-form {
  padding: 28px;
}

.dialog-heading .kicker {
  margin-bottom: 10px;
}

.dialog-heading h2 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.02;
}

.dialog-heading p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 10px;
}

.dialog-actions .primary-action,
.dialog-actions .secondary-action {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.dialog-actions .secondary-action {
  border: 1px solid var(--line);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(20px) scale(1);
  }
}

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

@media (max-width: 980px) {
  .site-header {
    position: absolute;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 100px;
    min-height: 88svh;
    grid-template-columns: 1fr;
    padding-top: 104px;
  }

  .workspace-visual {
    min-height: 520px;
  }

  .product-shot-frame {
    width: min(52vw, 300px);
  }

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

  .scenario-list article:nth-child(2) {
    border-right: 0;
  }

  .scenario-list article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .platforms,
  .download {
    grid-template-columns: 1fr;
  }

  .platforms p {
    margin-top: 0;
  }

  .platform-downloads {
    grid-template-columns: 1fr;
  }
}

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

  .site-header {
    padding: 18px 18px;
  }

  nav {
    display: none;
  }

  .brand {
    font-size: 24px;
  }

  .hero {
    padding: 82px 18px 22px;
    min-height: 86svh;
  }

  .hero-copy,
  .kicker {
    max-width: calc(100vw - 36px);
  }

  h1 {
    width: 9.4em;
    max-width: 100%;
    margin-bottom: 16px;
    font-size: clamp(32px, 8.8vw, 40px);
    line-height: 1.02;
  }

  .hero-text {
    width: 22em;
    max-width: 100%;
    margin-bottom: 18px;
    font-size: 16px;
  }

  .kicker {
    margin-bottom: 12px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    width: 100%;
    max-width: 360px;
    flex-direction: column;
    gap: 9px;
  }

  .setup-flow {
    display: grid;
    max-width: 360px;
    margin-bottom: 22px;
  }

  .setup-flow li {
    min-height: 36px;
    font-size: 13px;
  }

  .primary-action,
  .secondary-action {
    min-height: 45px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .platform-downloads {
    display: grid;
    grid-template-columns: 1fr;
  }

  .download {
    gap: 28px;
  }

  .download-dialog .beta-access-form {
    padding: 22px;
  }

  .dialog-heading h2 {
    font-size: 28px;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }

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

  .product-shot-frame {
    width: min(62vw, 230px);
  }

  .product-shot-frame img {
    border-radius: 24px;
  }

  .scenarios,
  .platforms,
  .download {
    padding: 70px 18px;
  }

  .scenario-list {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .scenario-list article,
  .scenario-list article:nth-child(2) {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scenario-list article:last-child {
    border-bottom: 0;
  }

  .scenario-list span {
    margin-bottom: 54px;
  }
}
