/* CAD Connect v2 — editorial minimal
   Cream / ink palette default. Generous whitespace. Display type carries.
   No bracketed numbering, no scattered mono labels.
*/

:root {
  /* Cream / ink (default) */
  --bg: #f4efe5;
  --bg-elev: #faf6ec;
  --surface: #ede6d6;
  --border: rgba(20, 16, 8, 0.10);
  --border-strong: rgba(20, 16, 8, 0.22);
  --text: #14110a;
  --text-muted: rgba(20, 17, 10, 0.62);
  --text-dim: rgba(20, 17, 10, 0.40);
  --accent: #1e5a3d;
  --accent-soft: rgba(30, 90, 61, 0.08);
  --accent-on: #f6f4ee;

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Fraunces", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --maxw: 1180px;
  --gutter: 32px;
}

[data-theme="dark"] {
  --bg: #100f0c;
  --bg-elev: #1a1815;
  --surface: #25221d;
  --border: rgba(245, 240, 230, 0.10);
  --border-strong: rgba(245, 240, 230, 0.22);
  --text: #f5f0e6;
  --text-muted: rgba(245, 240, 230, 0.62);
  --text-dim: rgba(245, 240, 230, 0.38);
  --accent-on: #0f1a13;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-on); }

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

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

/* ── Layout ────────────────────────────────────────────────────────────── */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 120px 0;
  position: relative;
}
.section.tight { padding: 80px 0; }

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .section { padding: 72px 0; }
  body { font-size: 16px; }
}

.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
  margin: 0;
  border: 0;
}

/* ── Typography ────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
  color: var(--text);
  line-height: 1.02;
}

h1 {
  font-size: clamp(52px, 8.5vw, 132px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.94;
}
h2 {
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.0;
}
h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

p.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 56ch;
  text-wrap: pretty;
  margin: 0;
  font-weight: 400;
}

p { color: var(--text-muted); margin: 0; text-wrap: pretty; }

.kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

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

.btn-accent {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}
.btn-accent:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); }

.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.hero-layout-centered .cta-stack { align-items: center; }
.cta-note {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0;
  padding-left: 4px;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 19px;
  color: var(--text);
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
}
.brand-mark svg { width: 18px; height: 18px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-links a { transition: color .12s ease; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 40px;
  position: relative;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-eyebrow .pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero-eyebrow .pill .dot {
  width: 7px; height: 7px;
  background: var(--accent-on);
  border-radius: 50%;
  margin-right: 9px;
  display: inline-block;
  opacity: 0.85;
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 36px;
}
.hero h1 .serif {
  font-size: 1.06em;
  display: block;
  letter-spacing: -0.025em;
  line-height: 1.0;
}

.hero-sub {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: end;
}
.hero-sub .lead { max-width: 44ch; }
.hero-sub .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-self: end; align-items: flex-start; }
@media (max-width: 860px) {
  .hero-sub { grid-template-columns: 1fr; gap: 36px; }
  .hero-sub .actions { justify-self: start; }
}

.hero-visual {
  margin-top: 88px;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  aspect-ratio: 21 / 10;
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 30px 80px -40px rgba(20,16,8,.25);
}
[data-theme="dark"] .hero-visual { box-shadow: 0 30px 80px -40px rgba(0,0,0,.6); }

@media (max-width: 760px) {
  .hero-visual { aspect-ratio: 4/3; margin-top: 56px; }
}

/* hero layout: centered variant */
.hero-layout-centered { text-align: center; }
.hero-layout-centered h1 { margin-left: auto; margin-right: auto; max-width: 16ch; }
.hero-layout-centered .hero-sub {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 32px;
}
.hero-layout-centered .hero-sub .lead { text-align: center; }
.hero-layout-centered .hero-sub .actions { justify-self: center; }

/* hero layout: editorial — bigger serif accent, more dramatic */
.hero-layout-editorial h1 { font-size: clamp(64px, 10vw, 160px); line-height: 0.9; }
.hero-layout-editorial h1 .serif { font-size: 1.12em; }

/* ── Marquee ──────────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marq 42s linear infinite;
  white-space: nowrap;
  width: max-content;
  align-items: center;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 24px;
}
.marquee-item::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes marq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Section header ────────────────────────────────────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
}
.section-head .lead { max-width: 50ch; }
.section-head h2 .serif { font-size: 1.05em; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* ── Features ──────────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.feature .num {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.feature h3 { margin-top: 4px; }
.feature p { font-size: 15.5px; line-height: 1.55; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .feature { padding: 32px 26px; min-height: 0; }
}

/* ── Spotlight rows — alternating image + copy ─────────────────────────── */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 32px 0;
}
.spotlight + .spotlight { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 80px; }
.spotlight.reverse .spot-visual { order: 2; }
.spotlight.reverse .spot-copy { order: 1; }
.spot-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 48ch;
}
.spot-copy h3 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 700;
}
.spot-copy h3 .serif { font-size: 1.1em; }
.spot-copy ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spot-copy ul li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--text);
}
.spot-copy ul li svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.spot-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; gap: 36px; padding: 32px 0; }
  .spotlight.reverse .spot-visual { order: 1; }
  .spotlight.reverse .spot-copy { order: 2; }
  .spotlight + .spotlight { padding-top: 56px; }
}

/* ── Compatibility chips ───────────────────────────────────────────────── */
.compat {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.compat-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.compat-group {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: baseline;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.compat-group:first-child { border-top: 0; padding-top: 0; }
.compat-group-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0;
}
.compat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.compat-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-elev);
}
.compat-chip::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
@media (max-width: 760px) {
  .compat { grid-template-columns: 1fr; gap: 24px; }
  .compat-group { grid-template-columns: 1fr; gap: 12px; }
}

/* ── Pricing ───────────────────────────────────────────────────────────── */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .pricing-wrap { grid-template-columns: 1fr; gap: 36px; }
}

.price-card {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.price-card .price-tag {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 13px;
  letter-spacing: 0;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
  font-weight: 500;
}
.price-card .label {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 500;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: -8px;
}
.price-amount .num {
  font-family: var(--font-display);
  font-size: clamp(80px, 11vw, 144px);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--bg);
  line-height: 0.9;
}
.price-amount .currency {
  font-size: 22px;
  font-weight: 500;
  color: color-mix(in oklab, var(--bg) 75%, transparent);
}
.price-amount .interval {
  font-size: 15px;
  color: color-mix(in oklab, var(--bg) 65%, transparent);
  margin-left: 6px;
}
.price-amount .interval .serif {
  font-size: 1.2em;
}
.price-card .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.price-card .btn-primary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--bg);
}
.price-card .btn-primary:hover { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.price-card .secure {
  font-size: 13px;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.price-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}
.price-bullets li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: color-mix(in oklab, var(--bg) 92%, transparent);
  font-size: 15px;
}
.price-bullets li svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.price-side h3 {
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.price-side h3 .serif { font-size: 1.1em; }
.price-side p { font-size: 17px; max-width: 36ch; margin-bottom: 28px; }

.specs {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.specs li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  align-items: baseline;
}
.specs .k {
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
}
.specs .v { color: var(--text); font-weight: 500; }

/* ── CTA closing ───────────────────────────────────────────────────────── */
.cta-final {
  padding: 160px 0 140px;
  text-align: center;
  position: relative;
}
.cta-final h2 {
  font-size: clamp(56px, 9vw, 140px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 36px;
}
.cta-final h2 .serif { font-size: 1.1em; }
.cta-final .actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cta-final p { font-size: 17px; max-width: 42ch; margin: 0 auto; }
@media (max-width: 760px) {
  .cta-final { padding: 96px 0; }
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { font-size: 15px; color: var(--text-muted); max-width: 36ch; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
  padding: 0; margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.footer-links a:hover { color: var(--text); }
.footer-meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}

/* utility */
.acc { color: var(--accent); }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
