/* ================================================================
   CLIPPY — startup landing page, CAD / blueprint aesthetic
   ================================================================ */

:root {
  --bg: #F6F5F2;
  --bg-2: #EFEDE8;
  --bg-3: #E7E4DD;
  --bg-dark: #0E0E0D;
  --bg-dark-2: #1A1A18;
  --ink: #101010;
  --ink-2: #3a3a37;
  --muted: #8a8884;
  --rule: #1a1a19;
  --rule-soft: #cfccc4;
  --accent: #111;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(24px, 4vw, 64px);
  --maxw: 1440px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.muted { color: var(--muted); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-ghost-sm { padding: 8px 14px; font-size: 12px; border-color: var(--rule); }
.btn-ghost-sm:hover { background: var(--bg-2); }
.btn-lg { padding: 16px 22px; font-size: 14px; }

/* ===================== TOP BAR ===================== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(246, 245, 242, 0.82);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 20px; height: 20px; color: var(--ink); }
.brand-name { font-family: var(--mono); font-weight: 600; letter-spacing: 0.12em; }
.brand-tag  { font-family: var(--mono); color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }

.topnav {
  display: flex; gap: 22px; justify-content: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
}
.topnav a { opacity: 0.78; transition: opacity .15s ease; }
.topnav a:hover { opacity: 1; text-decoration: none; }

.top-cta { justify-self: end; }

@media (max-width: 880px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px var(--gutter) 48px;
  min-height: min(calc(100vh - 50px), 1080px);
  display: grid;
  grid-template-rows: auto auto auto;
  row-gap: 24px;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 60%, var(--bg-2) 100%);
}

.axis-y {
  position: absolute;
  left: 18px; top: 90px;
  margin: 0; padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 11px; color: var(--ink); opacity: 0.55;
  line-height: 1.1;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  row-gap: 0;
  height: calc(100% - 140px);
}
.axis-y li { letter-spacing: 0.04em; }

.hero-labels-top,
.hero-labels-bottom {
  position: absolute;
  left: 0; right: 0;
  padding: 0 var(--gutter);
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 11px; color: var(--ink); opacity: 0.7;
  pointer-events: none;
  line-height: 1.25;
}
.hero-labels-top { top: 76px; }
.hero-labels-bottom { bottom: 120px; }
.hero-labels-top span:nth-child(2) { text-align: center; }
.hero-labels-top span:nth-child(3),
.hero-labels-bottom span:last-child { text-align: right; }

/* title block */
.hero-title {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-left: 60px;
  padding-top: 56px;
}
.eyebrow {
  font-size: 11px; letter-spacing: 0.14em; color: var(--ink);
  opacity: 0.82;
  padding: 6px 12px 6px 8px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--rule);
  background: var(--bg);
}
.hero-title h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin: 22px 0 22px;
  color: var(--ink);
}
.hero-title h1 em {
  font-style: italic;
  position: relative;
}
.hero-title h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 1px;
  background: var(--ink);
  opacity: 0.25;
}
.lede {
  max-width: 640px;
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.55;
}
.lede .mono {
  font-size: 14px; background: var(--bg-2); padding: 1px 6px; border: 1px solid var(--rule-soft);
}
.lede strong { color: var(--ink); font-weight: 600; }

.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 26px;
  display: flex; flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.hero-trust .sep { opacity: 0.5; }

/* dot animation reused */
.dot { width: 7px; height: 7px; border-radius: 50%; background: #111; display: inline-block; }
.dot-live { background: #2e7d32; box-shadow: 0 0 0 3px rgba(46,125,50,.15); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(46,125,50,0); } }

/* scene svg */
.scene {
  position: relative;
  width: 100%;
  margin-top: -40px;
  display: flex; justify-content: center;
  z-index: 1;
}
.scene-svg {
  width: 100%;
  max-width: 1500px;
  height: auto;
  display: block;
}

@media (max-width: 880px) {
  .axis-y, .hero-labels-top, .hero-labels-bottom { display: none; }
  .hero-title { padding-left: 0; }
  .scene { margin-top: 0; }
}

/* ===================== MARQUEE ===================== */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 18px 0;
}
.marquee-track {
  display: inline-flex;
  gap: 32px;
  align-items: center;
  white-space: nowrap;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.12em;
  animation: scroll 28s linear infinite;
  padding-left: 32px;
}
.marquee-track .m-dot { opacity: 0.45; }
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 120px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.section + .section { border-top: 1px solid var(--rule); }

.section-dark {
  background: var(--bg-dark);
  color: #EFEDE8;
  max-width: none;
  margin: 0;
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
}
.section-dark + .section,
.section + .section-dark { border-top: none; }
.section-dark .sec-no,
.section-dark .cap-tag,
.section-dark .rm-tag { color: #a9a79f; }
.section-dark h2,
.section-dark h3 { color: #f3f1ec; }
.section-dark p { color: #c9c6bd; }

.section-head { max-width: 880px; margin: 0 auto 64px; text-align: center; }
.section-head-2col {
  max-width: 1100px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  text-align: left;
}
.section-head-2col .sec-sub { margin: 0; }
.section-head-2col h2 { margin-bottom: 0; }
.product-head, .how-head { max-width: 900px; margin: 0 auto 64px; text-align: center; }

.sec-no {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 18px;
  padding: 4px 10px;
  border: 1px solid var(--rule-soft);
  background: var(--bg);
}
.section-dark .sec-no { background: transparent; border-color: #2c2c29; }

.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.sec-sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto;
}
.section-head:not(.section-head-2col) .sec-sub,
.product-head .sec-sub,
.how-head .sec-sub { margin-left: auto; margin-right: auto; }
.section-dark .sec-sub { color: #c9c6bd; }
.eq-inline { font-size: 15px; background: var(--bg-2); padding: 1px 6px; border: 1px solid var(--rule-soft); }

@media (max-width: 880px) {
  .section-head-2col { grid-template-columns: 1fr; }
  .section { padding: 80px var(--gutter); }
}

/* ===================== FEATURES (3-up product pitch) ===================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  max-width: 1200px;
  margin: 0 auto;
}
.feat {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 32px 44px;
  background: var(--bg);
  position: relative;
}
.feat-ico {
  width: 56px; height: 56px;
  margin-bottom: 24px;
  color: var(--ink);
}
.feat-ico svg { width: 100%; height: 100%; }
.feat-ico .ln { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.feat-ico .ln-thin { fill: none; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; opacity: 0.6; }
.feat-tag {
  font-size: 11px; letter-spacing: 0.16em; color: var(--muted);
  margin-bottom: 8px;
}
.feat h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}
.feat p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr; } }

/* ===================== HOW IT WORKS (4-step flow) ===================== */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}
.step {
  padding: 32px 24px;
  border: 1px solid #2a2a27;
  background: var(--bg-dark-2);
}
.step-num {
  font-size: 12px; letter-spacing: 0.18em; color: #9a978e;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px dashed #3a3a36;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 10px;
}
.step p { color: #b8b5ac; font-size: 14.5px; line-height: 1.55; margin: 0; }
.step-arrow {
  display: flex; align-items: center; justify-content: center;
  color: #4a4a46;
  width: 40px;
  padding: 0 2px;
}
.step-arrow svg { width: 36px; height: 14px; }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
}

/* ===================== CAPABILITIES (6-tile grid) ===================== */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.cap {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 26px 28px 32px;
  background: var(--bg);
  transition: background .15s ease;
}
.cap:hover { background: var(--bg-2); }
.cap-tag {
  font-size: 10.5px; letter-spacing: 0.18em; color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--rule-soft);
  display: inline-block;
  margin-bottom: 16px;
}
.cap h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.cap p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 0; }
@media (max-width: 880px) { .caps-grid { grid-template-columns: 1fr; } }

/* ===================== STATS BAR ===================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #2a2a27;
  border-left: 1px solid #2a2a27;
  margin-bottom: 80px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.sb-item {
  padding: 32px 26px;
  border-right: 1px solid #2a2a27;
  border-bottom: 1px solid #2a2a27;
  background: var(--bg-dark-2);
}
.sb-num {
  font-family: var(--serif);
  font-size: clamp(48px, 6.5vw, 78px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f3f1ec;
}
.sb-num .plus,
.sb-num .unit {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  vertical-align: super;
  color: #8a8780;
  padding-left: 3px;
}
.sb-lbl {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #8a8780;
}
@media (max-width: 880px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

/* ===================== QUOTES (stress-test proof) ===================== */
.quotes-head {
  font-size: 11px; letter-spacing: 0.18em; color: #8a8780;
  padding-bottom: 14px;
  border-bottom: 1px dashed #3a3a36;
  margin-bottom: 24px;
  max-width: 1200px;
  margin-left: auto; margin-right: auto;
}
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.quote {
  margin: 0;
  padding: 28px 26px;
  background: var(--bg-dark-2);
  border: 1px solid #2a2a27;
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  top: 4px; left: 14px;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: #4a4a46;
}
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.35;
  color: #f3f1ec;
  margin: 14px 0 18px;
}
.quote figcaption {
  color: #9a978e;
  font-size: 13px;
  line-height: 1.5;
}
.quote figcaption .mono {
  color: #c9c6bd;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  display: inline-block;
  margin-right: 4px;
}
@media (max-width: 880px) { .quotes { grid-template-columns: 1fr; } }

/* ===================== ROADMAP ===================== */
.roadmap {
  list-style: none; padding: 0; margin: 0 auto;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  counter-reset: rm;
}
.rm {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 28px 40px;
  background: var(--bg);
  position: relative;
}
.rm-tag {
  font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--rule-soft);
  display: inline-block;
  margin-bottom: 18px;
  background: var(--bg);
}
.rm-done .rm-tag { background: #E7E4DD; color: #3a3a37; }
.rm-active .rm-tag { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rm h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}
.rm h3 .mono { font-size: 0.7em; background: var(--bg-2); padding: 1px 6px; border: 1px solid var(--rule-soft); letter-spacing: 0.02em; }
.rm p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; }
.rm-active {
  background: var(--bg-2);
}
.rm-active::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--ink);
}
@media (max-width: 880px) { .roadmap { grid-template-columns: 1fr; } }

/* ===================== CTA ===================== */
.cta-section {
  background: var(--bg-dark);
  color: #EFEDE8;
  padding: 120px var(--gutter);
  position: relative;
  overflow: hidden;
}
.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(to right, #2a2a27 0 8px, transparent 8px 16px);
}
.cta-section::before { top: 40px; }
.cta-section::after  { bottom: 40px; }

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-text .sec-no { color: #a9a79f; background: transparent; border-color: #2c2c29; }
.cta-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: #f3f1ec;
}
.cta-text p {
  color: #c9c6bd;
  font-size: 17px;
  max-width: 48ch;
  line-height: 1.55;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--bg-dark-2);
  border: 1px solid #2a2a27;
}
.cta-field { display: flex; flex-direction: column; gap: 8px; }
.cta-field label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: #8a8780;
}
.cta-field input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #3a3a36;
  padding: 10px 0 12px;
  font-family: var(--mono);
  font-size: 15px;
  color: #f3f1ec;
  outline: none;
}
.cta-field input::placeholder { color: #6a6862; }
.cta-field input:focus { border-color: #f3f1ec; }

.cta-form .btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
  justify-content: center;
}
.cta-form .btn-primary:hover { background: #fff; }
.cta-form .btn-primary[disabled] { opacity: .7; cursor: default; transform: none; }

.cta-meta {
  font-size: 10.5px;
  color: #6a6862;
  letter-spacing: 0.14em;
  margin: 0;
  text-align: center;
}
@media (max-width: 880px) { .cta-inner { grid-template-columns: 1fr; gap: 40px; } .cta-section { padding: 80px var(--gutter); } }

/* ===================== FOOTER ===================== */
.foot {
  border-top: 1px solid var(--rule);
  padding: 48px var(--gutter) 36px;
  background: var(--bg);
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.foot-h { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-note { font-size: 11px; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.foot-col-meta p { font-size: 12px; color: var(--muted); max-width: 32ch; }
@media (max-width: 880px) { .foot-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
