/* ============================================================
   CALIPER — Light Editorial Landing Page
   Strict palette: #f5f4f0 / #ffffff / #1a1a1a / #6b6b6b / #b5600d / #e0ddd6
   No gradients. No heavy shadows. No dark theme.
   ============================================================ */

:root {
  --bg-page:     #f5f4f0;
  --bg-section:  #ffffff;
  --text-primary:#1a1a1a;
  --text-muted:  #6b6b6b;
  --accent:      #9a5105;
  --border:      #e0ddd6;

  --font-display: 'Literata', Georgia, serif;
  --font-sans:    'Outfit', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.04);
  --radius:     10px;
  --radius-sm:  6px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-page);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { color: var(--text-primary); }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; }
h3, h4 { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.015em; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(154, 81, 5, 0.15); color: var(--text-primary); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ────────────────────────────────────────
   NAVBAR
──────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(245, 244, 240, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar__logo {
  flex-shrink: 0;
}
.navbar__title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-primary);
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__links a:not(.navbar__cta) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.navbar__links a:not(.navbar__cta):hover {
  color: var(--text-primary);
}
.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text-primary);
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.15s;
}
.navbar__cta:hover { opacity: 0.85; }

/* ────────────────────────────────────────
   HERO — two-column
──────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero__content--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  background: var(--bg-section);
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hero__title-accent {
  position: relative;
  display: inline;
}
.hero__title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.5;
}
.hero__subtitle {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn {
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}
.btn--primary:hover {
  opacity: 0.88;
}
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: #c0bdb6;
  background: var(--bg-section);
}

/* Hero preview */
.hero__preview--large {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--border), 0 16px 48px rgba(26, 26, 26, 0.08);
  background: var(--bg-section);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__preview--large:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--border), 0 24px 64px rgba(26, 26, 26, 0.12);
}
.window-header {
  background: #f0ede8;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  position: relative;
}
.window-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.window-content {
  line-height: 0;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  overflow: hidden;
}
.window-content video,
.window-content img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* ────────────────────────────────────────
   TICKER
──────────────────────────────────────── */
.ticker-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
  padding: 12px 24px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}
.ticker-track span {
  flex-shrink: 0;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track span::before {
  content: '//';
  margin-right: 10px;
  opacity: 0.35;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ────────────────────────────────────────
   SECTION HEADERS
──────────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* ────────────────────────────────────────
   FEATURES — 2-column card grid
──────────────────────────────────────── */
.features {
  padding: 96px 0 64px;
}
.features__header {
  margin-bottom: 56px;
  text-align: center;
}
.features__header .section-subtitle {
  margin: 0 auto;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.feature-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.06);
  border-color: var(--accent);
}
.feature-card__content {
  margin-bottom: 32px;
}
.feature-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.feature-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.25;
  color: var(--text-primary);
}
.feature-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.feature-card__snippet {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: #faf9f6;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: block;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}
.feature-card__snippet .accent { color: var(--accent); font-weight: 500; }

.feature-card__visual {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf9f6;
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid rgba(224, 221, 214, 0.5);
  height: 220px;
  position: relative;
  overflow: hidden;
}
.feature-card__visual svg {
  width: 100%;
  height: 100%;
  max-height: 170px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover .feature-card__visual svg {
  transform: scale(1.04);
}

/* ────────────────────────────────────────
   QUICKSTART — horizontal timeline
──────────────────────────────────────── */
.quickstart {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.quickstart__header {
  margin-bottom: 56px;
}
.quickstart__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.qs-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xs);
}
.qs-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: #c8c4bc;
}
.qs-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}
.qs-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
}
.qs-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
/* Light connector line between steps */
.quickstart__steps::before {
  display: none; /* handled by individual card spacing */
}

/* Code box — light theme */
.code-box {
  background: #faf9f6;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.code-box__header {
  background: #f0ede8;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.code-box__dots { display: flex; gap: 5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--red    { background: #e5706a; opacity: 0.55; }
.dot--yellow { background: #deb34b; opacity: 0.55; }
.dot--green  { background: #5ec26a; opacity: 0.55; }
.code-box__filename {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}
.code-box__copy {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.code-box__copy:hover {
  background: var(--bg-section);
  color: var(--accent);
  border-color: #c8c4bc;
}
.code-box__copy.copied {
  color: #34d399;
  border-color: #34d399;
}
.code-box__body {
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0;
}
.code-box__body code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.85;
  display: block;
}
/* Light syntax tokens */
.kw             { color: #b5600d; font-weight: 500; }
.fn             { color: #6f42c1; }
.str            { color: #0a7d3e; }
.op             { color: #1a1a1a; }
.terminal-prompt { color: #b5600d; font-weight: 600; user-select: none; }
.terminal-cmd    { color: #1a1a1a; }
.terminal-out    { color: #999; font-size: 12px; }

/* ────────────────────────────────────────
   FOOTER
──────────────────────────────────────── */
.footer {
  background: var(--bg-section);
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-primary);
}
.footer__tagline {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer__links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--accent); }
.footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}
.footer__author {
  color: var(--accent);
  font-weight: 500;
}
.footer__offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 3px 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

/* ────────────────────────────────────────
   SCROLL REVEAL
──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.feature-card.reveal:nth-child(1) { transition-delay: 0ms; }
.feature-card.reveal:nth-child(2) { transition-delay: 50ms; }
.feature-card.reveal:nth-child(3) { transition-delay: 100ms; }
.feature-card.reveal:nth-child(4) { transition-delay: 150ms; }
.feature-card.reveal:nth-child(5) { transition-delay: 200ms; }
.feature-card.reveal:nth-child(6) { transition-delay: 250ms; }
.qs-card.reveal:nth-child(1) { transition-delay: 0ms; }
.qs-card.reveal:nth-child(2) { transition-delay: 80ms; }
.qs-card.reveal:nth-child(3) { transition-delay: 160ms; }

/* ────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────── */
@media (max-width: 960px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .hero__title { font-size: 44px; }
  .hero__preview--large { max-width: 100%; }
  .quickstart__steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .features__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .navbar__links a:not(.navbar__cta) { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero__title { font-size: 36px; }
  .hero__subtitle { font-size: 15px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .section-title { font-size: 28px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__meta { flex-direction: column; align-items: flex-start; }
}

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