/* VxNewton public website — shared design system.
   Tokens mirror the approved app UI in web/styles.css. */

:root {
  --bg: #000000;
  --panel-soft: #2f2f2f;
  --panel-raised: #212121;
  --code: #171717;
  --border: #303030;
  --border-strong: #424242;

  --text: #f5f5f5;
  --body: #c9c9c9;
  --muted: #b4b4b4;
  --muted-2: #8f8f8f;

  --accent: #f5f5f5;
  --accent-ink: #0d0d0d;
  --accent-blue: #66b5ff;
  --accent-dim: rgba(255, 255, 255, 0.07);
  --accent-edge: rgba(255, 255, 255, 0.18);
  --accent-ring: rgba(102, 181, 255, 0.55);

  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-float: 0 8px 28px rgba(0, 0, 0, 0.4);

  --r-xl: 18px;
  --r-lg: 14px;
  --r-md: 11px;
  --r-sm: 9px;

  /* VxNewton brand glyph — dark silhouette on the light squircle */
  --falcon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='%230d0d0d'%20d='M12%204C12.8%204%2013.4%204.7%2013.5%205.7C16.5%205%2019.8%205.3%2022.5%207C19.5%207.8%2017.2%208.7%2015.6%2010.2C17.8%2010.3%2019.4%2011%2020.8%2012.6C18%2013.2%2015.2%2013.1%2013.4%2012.6L12.9%2013.6L12%2020L11.1%2013.6L10.6%2012.6C8.8%2013.1%206%2013.2%203.2%2012.6C4.6%2011%206.2%2010.3%208.4%2010.2C6.8%208.7%204.5%207.8%201.5%207C4.2%205.3%207.5%205%2010.5%205.7C10.6%204.7%2011.2%204%2012%204Z'/%3E%3C/svg%3E");

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono",
    monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(102, 181, 255, 0.3);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ------------------------------------------------------------------ */
/* Navigation                                                          */
/* ------------------------------------------------------------------ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
  background: var(--accent) var(--falcon) center / 19px no-repeat;
  box-shadow: var(--shadow-float);
}

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

.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding-inline: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-size: 14px;
  font-weight: 600;
}

.nav-cta:hover {
  text-decoration: none;
  background: #ffffff;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  height: 52px;
  padding-inline: 30px;
  font-size: 16.5px;
  box-shadow: var(--shadow-float);
}

.btn-primary:hover {
  background: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.is-disabled,
.btn.is-disabled:hover {
  cursor: default;
  opacity: 0.58;
  background: var(--accent);
  box-shadow: none;
  pointer-events: none;
  transform: none;
}

.btn-quiet {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  height: 52px;
  padding-inline: 26px;
  font-size: 16px;
}

.btn-quiet:hover {
  background: var(--accent-dim);
  text-decoration: none;
}

.apple-glyph {
  font-size: 1.1em;
  line-height: 1;
  position: relative;
  top: -1px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  padding: 104px 0 56px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(2.7rem, 6.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero-sub {
  margin: 26px auto 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-cta {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted-2);
}

.hero-note .dot {
  margin-inline: 8px;
  opacity: 0.6;
}

/* ------------------------------------------------------------------ */
/* App mock (faithful replica of the VxNewton window)                  */
/* ------------------------------------------------------------------ */

.mock-wrap {
  padding: 40px 0 96px;
}

.window {
  max-width: 980px;
  margin-inline: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--border);
  background: #0a0a0a;
}

.titlebar .light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--panel-soft);
}

.window-body {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 480px;
}

.mock-sidebar {
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 12px;
  font-weight: 700;
  font-size: 14.5px;
}

.mock-brand .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background-size: 17px;
  box-shadow: none;
}

.mock-newchat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-soft);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 12px;
}

.mock-newchat .plus {
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
}

.mock-section {
  padding: 2px 10px 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.mock-chat {
  padding: 7px 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-chat.active {
  background: var(--accent-dim);
  color: var(--text);
}

.mock-sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 8px 4px;
  border-top: 1px solid var(--border);
}

.account-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  background: var(--accent) var(--falcon) center / 17px no-repeat;
}

.mock-account-name {
  font-size: 13px;
  font-weight: 600;
}

.mock-account-sub {
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.2;
}

.mock-main {
  display: flex;
  flex-direction: column;
}

.mock-header {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}

.mock-header .title {
  font-weight: 700;
  font-size: 14.5px;
}

.mock-header .subtitle {
  font-size: 12px;
  color: var(--muted-2);
}

.mock-thread {
  flex: 1;
  padding: 26px 28px 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
  width: 100%;
  margin-inline: auto;
}

.mock-user {
  align-self: flex-end;
  max-width: 78%;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-sm);
  padding: 10px 16px;
  font-weight: 500;
}

.mock-assistant {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mock-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: none;
  margin-top: 2px;
  background: var(--accent) var(--falcon) center / 17px no-repeat;
}

.mock-assistant p {
  margin: 0 0 10px;
  color: var(--text);
}

.mock-assistant p:last-child {
  margin-bottom: 0;
}

.mock-sources {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.mock-source {
  font-size: 12px;
  color: var(--accent-blue);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 11px;
}

.mock-composer {
  padding: 14px 28px 20px;
  max-width: 680px;
  width: 100%;
  margin-inline: auto;
}

.mock-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 8px 12px 20px;
  color: var(--muted-2);
}

.mock-input .placeholder {
  flex: 1;
}

.mock-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 14px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 30px;
}

/* Feature rows — calm, hairline-separated */

.feature-rows {
  margin-top: 44px;
  border-top: 1px solid var(--border);
}

.feature-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

/* ------------------------------------------------------------------ */
/* Download                                                            */
/* ------------------------------------------------------------------ */

.download {
  text-align: center;
}

.download .section-intro {
  margin-inline: auto;
}

.download-cta {
  margin-top: 8px;
}

.download-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted-2);
}

.download-checksum {
  max-width: 720px;
  margin: 10px auto 0;
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.requirements {
  margin: 48px auto 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.requirement {
  padding: 22px 18px;
  border-left: 1px solid var(--border);
}

.requirement:first-child {
  border-left: none;
}

.requirement .value {
  font-weight: 650;
  font-size: 16px;
}

.requirement .label {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 4px;
}

.install-steps {
  margin: 44px auto 0;
  max-width: 460px;
  text-align: left;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.install-steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--body);
}

.install-steps li:last-child {
  border-bottom: none;
}

.install-steps li::before {
  content: counter(step);
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  align-self: center;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 56px;
}

.footer-brand-col {
  max-width: 420px;
}

.footer-brand-col .brand {
  margin-bottom: 14px;
}

.footer-brand-col p {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-col a {
  display: block;
  color: var(--muted);
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ */
/* Doc pages (privacy / support / releases)                            */
/* ------------------------------------------------------------------ */

.doc {
  max-width: 720px;
  margin-inline: auto;
  padding: 72px 24px 104px;
}

.doc h1 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.doc-updated {
  color: var(--muted-2);
  font-size: 14px;
  margin: 0 0 40px;
}

.doc h2 {
  margin: 46px 0 12px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 30px 0 8px;
  font-size: 17px;
}

.doc p,
.doc li {
  color: var(--body);
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
}

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--code);
  color: var(--muted);
  font-size: 14.5px;
}

.callout strong {
  color: var(--text);
}

/* Release entries */

.release {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.release:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.release-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.release-head h2 {
  margin: 0;
}

.release-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 11px;
}

.release-meta {
  color: var(--muted-2);
  font-size: 14px;
  margin: 0 0 14px;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }
}

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }

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

  .mock-sidebar {
    display: none;
  }

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

  .requirement {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .requirement:first-child {
    border-top: none;
  }

  .section {
    padding: 64px 0;
  }
}
