:root{
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #4b5563;
  --muted2: #6b7280;
  --border: #e5e7eb;
  --soft: #f8fafc;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);

  --ink: #0b1220;

  --radius: 16px;
  --max: 1120px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-display: "Montserrat", var(--font);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height:1.55;
}

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

a{ color:inherit; }
.inline-link{
  text-decoration: underline;
  text-decoration-color: rgba(11,18,32,.25);
}
.inline-link:hover{ text-decoration-color: rgba(11,18,32,.55); }

.sep{ margin: 0 8px; color: rgba(11,18,32,.25); }
.dotsep{ color: rgba(11,18,32,.25); }
.nowrap{ white-space: nowrap; }

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 12px;
}
.brand{
  display:flex;
  align-items:baseline;
  gap:10px;
  text-decoration:none;
}
.brand-mark{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .2px;
}
.brand-sub{ color: var(--muted2); font-size: 14px; }

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-link{
  text-decoration:none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-link:hover{
  background: var(--soft);
  color: var(--text);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .08s ease, opacity .15s ease, background .15s ease;
  white-space: nowrap;
  text-decoration:none;
}
.btn:hover{ opacity:.92; }
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity:.6; cursor:not-allowed; }

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

/* Layout */
.hero{ padding: 44px 0 18px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items:start;
}

.kicker{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .2px;
  text-transform: uppercase;
}

h1{
  font-family: var(--font-display);
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.08;
  margin: 0 0 12px;
}

.lead{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16.5px;
}

.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.section{ padding: 28px 0; }
.section-bottom{ padding-bottom: 56px; }

.section-head{ margin-bottom: 12px; }
.section-head.tight{ margin-bottom: 10px; }
.section-head h2{
  margin: 0 0 6px;
  font-family: var(--font-display);
  letter-spacing: .2px;
}
.meta{ margin: 0; color: var(--muted); }
.fine{ margin-top: 10px; font-size: 13px; color: var(--muted2); }
.muted{ color: var(--muted2); }

/* Cards */
.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h2{
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 18px;
}
.card h3{
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 16px;
}

.notice{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--text);
}
.success{
  border-color: rgba(16,185,129,.35);
  background: rgba(16,185,129,.08);
}

/* Forms */
.form{ margin-top: 12px; }
.field-label{
  display:block;
  font-size: 13px;
  color: var(--muted2);
  margin-bottom: 8px;
}
.form-row{
  display:flex;
  gap: 10px;
  align-items:center;
}
input[type="email"]{
  flex: 1;
  min-width: 180px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
}
input[type="email"]::placeholder{ color: rgba(11,18,32,.35); }
input[type="email"]:focus{
  border-color: rgba(11,18,32,.35);
  box-shadow: 0 0 0 4px rgba(11,18,32,.08);
}

/* Trust pills */
.trustline{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.trust-pill{
  font-size: 12px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Clock block */
.clock{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
}
.clock-label{
  margin: 0 0 8px;
  color: var(--muted2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.clock-question{
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
}
.clock-meta{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.bigprob{
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}
.bigprob-number{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: .2px;
}
.bigprob-sub{
  color: var(--muted2);
  font-size: 13px;
}

.gauge{ margin-top: 12px; }
.gauge-track{
  height: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.gauge-fill{
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
}
.gauge-scale{
  display:flex;
  justify-content:space-between;
  color: var(--muted2);
  font-size: 12px;
  margin-top: 8px;
}
.clock-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Note */
.note{
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--soft);
}

/* Two-column grid */
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Bullets */
.bullets{
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li{ margin: 8px 0; }

/* Chain table */
.chain{
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.chain-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chain-row:first-child{ border-top: 0; }
.chain-k{
  color: var(--muted2);
  font-size: 13px;
  white-space: nowrap;
}
.chain-v{
  color: var(--text);
  font-size: 13px;
  text-align:right;
}

/* Slim card with scope boxes */
.card.slim{ margin-top: 14px; }
.scope{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.scope-item{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.scope-title{
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 13px;
}
.scope-text{
  color: var(--muted);
  font-size: 13px;
}
.scope-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Demo */
.demo{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items:start;
}
.form-inline .field-label{ display:none; }

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-title{
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-row{ color: var(--muted); }
.footer-fine{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted2);
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .clock{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .scope{ grid-template-columns: 1fr; }
  .demo{ grid-template-columns: 1fr; }
  .form-row{ flex-direction: column; align-items: stretch; }
}

/* Preview carousel */
.card.preview { padding: 16px; }

.preview-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f7f8fb;
  border: 1px solid rgba(0,0,0,0.06);
}

/* The "screen-fitted" viewport */
.preview-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;     /* pick what matches your screenshots best */
  max-height: 70vh;         /* don't exceed viewport height */
}

/* Each slide stacks, only one visible */
.preview-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 180ms ease;
  display: grid;
  place-items: center;
  padding: 12px;
}

.preview-slide.is-active { opacity: 1; }

/* Fit image inside without cropping */
.preview-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* key: fits on screen */
  border-radius: 12px;
}

/* Nav buttons */
.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.preview-nav:hover { background: rgba(255,255,255,0.95); }
.preview-nav:active { transform: translateY(-50%) scale(0.98); }
.preview-nav.prev { left: 12px; }
.preview-nav.next { right: 12px; }

/* Caption + dots */
.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.preview-caption {
  font-size: 14px;
  color: rgba(0,0,0,0.70);
}

.preview-dots {
  display: flex;
  gap: 8px;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.10);
  cursor: pointer;
}

.preview-dot.is-active {
  background: rgba(0,0,0,0.45);
  border-color: rgba(0,0,0,0.25);
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .preview-nav { width: 36px; height: 36px; font-size: 22px; }
  .preview-viewport { aspect-ratio: 4 / 3; }
}