/* Vector Studio website: editorial interface system */

:root {
  --paper: #f5efe2;
  --paper-2: #fff9ec;
  --paper-3: #e9ddc7;
  --ink: #14120f;
  --ink-2: #2b2822;
  --muted: #706859;
  --muted-2: #9b907c;
  --line: #cdbf9f;
  --line-strong: #14120f;
  --cyan: #04a6c2;
  --cyan-dark: #08758f;
  --orange: #f56600;
  --yellow: #f4bd29;
  --green: #2f8c62;
  --red: #c83f32;
  --white: #fffdf5;
  --shadow: 12px 12px 0 rgba(20, 18, 15, 0.13);
  --radius: 8px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 18, 15, 0.045) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(20, 18, 15, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--paper);
  font-family: var(--sans);
  font-feature-settings: "cv02", "cv03", "cv04";
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  line-height: 1.55;
  overflow-x: hidden;
}

body::selection {
  background: rgba(245, 102, 0, 0.22);
}

button,
input,
textarea,
select {
  font: inherit;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 239, 226, 0.9);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(16px);
}

.site-nav .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 68px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  line-height: 1;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
}

.brand span {
  font-size: 18px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

.nav-links a:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper-2);
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(20, 18, 15, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav-action:hover,
.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(20, 18, 15, 0.18);
}

.button.secondary {
  background: var(--paper-2);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 132px);
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background:
    linear-gradient(117deg, rgba(245, 102, 0, 0.16) 0 18%, transparent 18% 100%),
    linear-gradient(63deg, transparent 0 68%, rgba(4, 166, 194, 0.15) 68% 100%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 2px solid rgba(20, 18, 15, 0.2);
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  right: -170px;
  bottom: -180px;
  width: 760px;
  max-width: none;
  transform: rotate(-7deg);
  filter: saturate(1.08) contrast(1.02);
}

.hero .container {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 132px);
  display: grid;
  align-content: center;
  padding: 58px 0 70px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--cyan-dark);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 10px;
  background:
    linear-gradient(90deg, var(--cyan) 0 33%, var(--orange) 33% 66%, var(--yellow) 66% 100%);
  border: 2px solid var(--ink);
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: 76px;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--ink-2);
  font-size: 21px;
  line-height: 1.5;
}

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

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(880px, 100%);
  margin-top: 58px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.signal-strip div {
  padding: 18px;
  border-right: 2px solid var(--ink);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.signal-strip dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 900;
}

.ticker {
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 26s linear infinite;
}

.ticker span {
  padding: 12px 24px;
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 96px 0;
  border-bottom: 3px solid var(--ink);
}

.section.dark {
  background:
    linear-gradient(90deg, rgba(255, 249, 236, 0.06) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(rgba(255, 249, 236, 0.055) 1px, transparent 1px) 0 0 / 38px 38px,
    var(--ink);
  color: var(--paper-2);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(260px, 460px) minmax(260px, 1fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section h2,
.manual-hero h1,
.legal-content h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.dark .section-header p {
  color: #d8cfbb;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.process-step {
  min-height: 300px;
  padding: 24px;
  border-right: 2px solid var(--ink);
  display: grid;
  align-content: space-between;
  position: relative;
}

.process-step:last-child {
  border-right: 0;
}

.process-step:nth-child(2) {
  background: rgba(244, 189, 41, 0.25);
}

.process-step:nth-child(3) {
  background: rgba(4, 166, 194, 0.13);
}

.process-step:nth-child(4) {
  background: rgba(245, 102, 0, 0.12);
}

.step-index {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}

.process-step h3 {
  margin: 74px 0 10px;
  font-size: 28px;
  line-height: 1;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

.process-step::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, transparent 0 46%, var(--ink) 46% 54%, transparent 54% 100%),
    var(--paper);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1.05fr;
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
}

.panel {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 8px 8px 0 rgba(255, 249, 236, 0.12);
}

.panel.large {
  grid-row: span 2;
}

.panel.wide {
  grid-column: span 2;
}

.panel.orange {
  background: var(--orange);
}

.panel.cyan {
  background: var(--cyan);
}

.panel.ink {
  background: var(--ink-2);
  color: var(--paper-2);
}

.panel.yellow {
  background: var(--yellow);
}

.panel h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.05;
}

.panel p {
  max-width: 420px;
  margin: 16px 0 0;
  color: inherit;
}

.panel small {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-weight: 900;
  text-transform: uppercase;
}

.code-slab {
  margin-top: 28px;
  padding: 16px;
  border: 2px solid currentColor;
  background: rgba(255, 249, 236, 0.82);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}

.ink .code-slab {
  background: rgba(255, 249, 236, 0.08);
  color: var(--paper-2);
}

.meter-stack {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.meter {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}

.meter i {
  display: block;
  height: 12px;
  border: 2px solid currentColor;
  background: linear-gradient(90deg, currentColor var(--fill), transparent 0);
}

.provider-wall {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.provider-copy {
  padding: 34px;
  border-right: 2px solid var(--ink);
}

.provider-copy h3 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.05;
}

.provider-copy p {
  margin: 0;
  color: var(--muted);
}

.provider-table {
  display: grid;
}

.provider-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 96px;
  border-bottom: 2px solid var(--ink);
}

.provider-row:last-child {
  border-bottom: 0;
}

.provider-row div {
  display: grid;
  align-content: center;
  padding: 18px;
  border-right: 2px solid var(--ink);
}

.provider-row div:last-child {
  border-right: 0;
}

.provider-row strong {
  font-size: 18px;
}

.provider-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.download-console {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.78fr);
  gap: 0;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.download-copy {
  padding: 42px;
  background:
    repeating-linear-gradient(90deg, rgba(20, 18, 15, 0.06) 0 1px, transparent 1px 20px),
    var(--paper-2);
}

.download-copy h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.04;
}

.download-copy p {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.download-options {
  display: grid;
  border-left: 2px solid var(--ink);
}

.download-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 26px;
  border-bottom: 2px solid var(--ink);
}

.download-option:last-child {
  border-bottom: 0;
}

.download-option strong {
  display: block;
  font-size: 20px;
}

.download-option span {
  color: var(--muted);
  font-size: 13px;
}

.download-option a {
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  font-weight: 900;
}

.site-footer {
  background: var(--ink);
  color: var(--paper-2);
  padding: 52px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 38px;
}

.site-footer h4 {
  margin: 0 0 12px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
  color: #d8cfbb;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: #d8cfbb;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 249, 236, 0.22);
  padding-top: 20px;
  color: #b9af99;
  font-size: 12px;
}

/* Documentation */

.manual-hero {
  padding: 82px 0 58px;
  border-bottom: 3px solid var(--ink);
  background:
    linear-gradient(120deg, rgba(4, 166, 194, 0.15), transparent 34%),
    linear-gradient(70deg, transparent 62%, rgba(244, 189, 41, 0.28) 62%),
    var(--paper);
}

.manual-hero p {
  max-width: 740px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 46px;
  padding: 56px 0 96px;
}

.manual-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 8px 8px 0 rgba(20, 18, 15, 0.12);
}

.manual-nav h2 {
  margin: 0;
  padding: 16px;
  border-bottom: 2px solid var(--ink);
  background: var(--yellow);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.manual-nav a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
}

.manual-nav a:hover {
  background: rgba(4, 166, 194, 0.12);
}

.manual-content {
  min-width: 0;
}

.manual-section {
  scroll-margin-top: 92px;
  margin-bottom: 28px;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.manual-section:nth-child(3n + 1) {
  background: rgba(4, 166, 194, 0.11);
}

.manual-section:nth-child(3n + 2) {
  background: rgba(244, 189, 41, 0.2);
}

.manual-section h2 {
  margin: 0 0 16px;
  font-size: 31px;
  line-height: 1.08;
}

.manual-section h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.manual-section p,
.manual-section li {
  color: var(--ink-2);
}

.manual-section p {
  margin: 12px 0;
}

.manual-section ul,
.manual-section ol {
  padding-left: 24px;
}

.manual-section code {
  padding: 2px 6px;
  border: 1px solid var(--ink);
  background: rgba(255, 249, 236, 0.68);
  font-family: var(--mono);
  font-size: 0.92em;
}

.manual-section pre {
  overflow-x: auto;
  padding: 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 13px;
}

.manual-section pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.note {
  margin: 22px 0 0;
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--orange);
  color: var(--paper-2);
}

.note strong {
  color: var(--paper-2);
}

/* Legal pages */

.legal-shell {
  padding: 72px 0 96px;
  border-bottom: 3px solid var(--ink);
}

.legal-content {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.legal-date {
  margin: 10px 0 36px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.legal-content h2 {
  margin: 32px 0 10px;
  font-size: 22px;
}

.legal-content h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.legal-content p,
.legal-content li {
  color: var(--ink-2);
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content a {
  color: var(--cyan-dark);
  font-weight: 800;
  text-decoration: underline;
}

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

@media (max-width: 980px) {
  .site-nav .container {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-mark {
    right: -260px;
    opacity: 0.42;
  }

  .section-header,
  .provider-wall,
  .download-console,
  .docs-layout {
    grid-template-columns: 1fr;
  }

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

  .process-step:nth-child(2) {
    border-right: 0;
  }

  .process-step:nth-child(1),
  .process-step:nth-child(2) {
    border-bottom: 2px solid var(--ink);
  }

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

  .provider-copy,
  .download-options {
    border-right: 0;
    border-left: 0;
  }

  .download-options {
    border-top: 2px solid var(--ink);
  }

  .manual-nav {
    position: static;
  }
}

@media (max-width: 700px) {
  .container,
  .legal-content {
    width: min(calc(100% - 28px), 1180px);
  }

  .site-nav .container {
    grid-template-columns: 1fr;
    min-height: 62px;
    gap: 14px;
  }

  .brand span {
    font-size: 16px;
  }

  .nav-action {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    inset: 14px;
  }

  .hero .container {
    min-height: auto;
    padding: 44px 0 36px;
  }

  .hero h1 {
    font-size: 46px;
    line-height: 1;
  }

  .hero-subtitle,
  .manual-hero p {
    font-size: 18px;
  }

  .hero-subtitle {
    max-width: 330px;
    margin-top: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 310px;
    margin-top: 24px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-mark {
    width: 560px;
    right: -310px;
    bottom: -150px;
    opacity: 0.28;
  }

  .signal-strip,
  .process-grid,
  .provider-row,
  .download-option,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip div,
  .provider-row div {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .signal-strip {
    margin-top: 28px;
  }

  .signal-strip div {
    padding: 14px 18px;
  }

  .signal-strip div:last-child,
  .provider-row div:last-child {
    border-bottom: 0;
  }

  .section,
  .manual-hero,
  .legal-shell {
    padding: 64px 0;
  }

  .section h2,
  .manual-hero h1,
  .legal-content h1,
  .download-copy h2 {
    font-size: 36px;
  }

  .manual-hero h1,
  .manual-hero p {
    max-width: 330px;
  }

  .process-grid,
  .mosaic {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .panel.large,
  .panel.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .download-copy,
  .manual-section,
  .legal-content {
    padding: 24px;
  }
}
