/* ================================================
   ChiliPaste — chilipaste.app
   ================================================ */
/* Cache bust: after changing this file, set ?t=<unix_seconds> on every
   HTML link to style.css (run: date +%s). */

/* ---- Custom Properties ---- */
:root {
  --bg:           #fffbf7;
  --bg-hero:      #1a3a28;
  --bg-features:  #f5f0eb;
  --bg-steps:     var(--bg-hero);
  --text:         #2c2420;
  --text-secondary: #7a6e65;
  --accent:       #e8372c;
  --accent-hover: #c72d23;
  --green:        #1a3a28;
  --green-light:  #2d5a3d;
  --green-subtle: rgba(45, 90, 61, 0.10);
  --border:       #e0d8d0;
  --radius:       14px;
  --radius-sm:    8px;
  --max-w:        960px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0c0c0d;
    --bg-hero:      #0f2218;
    --bg-features:  #141413;
    --bg-steps:     var(--bg-hero);
    --text:         #f0ece8;
    --text-secondary: #9a9089;
    --border:       #2a2725;
    --green:        #1a3a28;
    --green-light:  #5a9e72;
    --green-subtle: rgba(90, 158, 114, 0.12);
  }
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(26, 58, 40, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-decoration: none;
  color: #fff;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  padding: 13px 26px;
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 12px rgba(232, 55, 44, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 55, 44, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(232, 55, 44, 0.3);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-nav:hover {
  background: var(--accent-hover);
}

/* Button-looking placeholder for pre-launch states */
.is-coming-soon {
  cursor: not-allowed;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(145deg, #d7665f 0%, #c54f48 100%);
  opacity: 0.92;
  box-shadow: 0 1px 10px rgba(197, 79, 72, 0.28);
}

.btn-primary.is-coming-soon,
.btn-nav.is-coming-soon {
  color: rgba(255, 255, 255, 0.94);
}

.btn-primary.is-coming-soon::after,
.btn-nav.is-coming-soon::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  margin-left: 9px;
}

/* ---- Hero ---- */
.hero {
  background: var(--bg-hero);
  padding: 64px 24px 56px;
  text-align: center;
  color: #fff;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 0 auto 18px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-eyebrow-brand {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-eyebrow-sep {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
  user-select: none;
}

.hero-eyebrow-rest {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.hero-title .hero-title-lede {
  display: block;
}

.hero-title .hero-title-sub {
  display: block;
  margin-top: 8px;
}

.hero-title .hero-title-accent {
  display: inline;
  font-style: italic;
  font-weight: 600;
}

.hero h1 {
  color: #fff;
}

.hero .tagline {
  color: rgba(255, 255, 255, 0.75);
}

.hero .cta-meta {
  color: rgba(255, 255, 255, 0.6);
}

.hero .trust-note {
  color: rgba(255, 255, 255, 0.55);
}

/* App icon */
.app-icon-wrap {
  margin-bottom: 28px;
}

.app-icon {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.25));
}

.app-icon-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ff6b5b 0%, #e8372c 55%, #b52219 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  box-shadow: 0 8px 32px rgba(232,55,44,0.35);
}

/* Headline */
h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 18px;
}

.tagline {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto 36px;
}

/* CTA */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cta-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Trust note */
.trust-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---- Pitch (what ChiliPaste is) ---- */
.pitch {
  background: var(--bg-features);
  padding: 56px 24px 22px;
  text-align: center;
}

.pitch .container {
  display: flex;
  justify-content: center;
}

.pitch-inner {
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.pitch-quote {
  margin: 0 0 20px;
  padding: 0;
  border: none;
}

/* Large typographic quotation marks (“ ”) — serif curls, brand accent */
.pitch-quote .pitch-lede::before,
.pitch-quote .pitch-lede::after {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.55em;
  line-height: 0;
  color: var(--accent);
  opacity: 0.94;
}

.pitch-quote .pitch-lede::before {
  content: "\201C";
  vertical-align: -0.15em;
  margin-right: 0.06em;
}

.pitch-quote .pitch-lede::after {
  content: "\201D";
  vertical-align: -0.15em;
  margin-left: 0.06em;
}

.pitch-lede {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.22;
  color: var(--text);
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

.pitch-detail {
  margin: 0 auto;
  max-width: 34rem;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: center;
}

/* ---- Features ---- */
.features {
  background: var(--bg-features);
  padding: 28px 24px 72px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Demo video ---- */
.demo-video {
  background: var(--bg-steps);
  padding: 72px 24px;
  color: #fff;
}

.section-heading {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.8px;
  text-align: center;
  margin-bottom: 12px;
}

.demo-video-heading {
  color: #fff;
}

.demo-video-lead {
  text-align: center;
  font-size: clamp(15px, 2vw, 17px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.demo-video-frame {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.25);
}

.demo-video-el {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---- Interior pages (download, privacy, release index) ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px 14px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.is-active {
  color: #fff;
}

.page-main {
  padding: 40px 0 72px;
  min-height: 46vh;
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
  color: var(--text);
}

.page-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 52ch;
}

.page-code {
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--green-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.download-panel {
  max-width: 480px;
  padding: 28px 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.download-panel-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.download-icon {
  width: 72px;
  height: auto;
  border-radius: 16px;
  flex-shrink: 0;
}

.download-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.download-hint {
  font-size: 14px;
  color: var(--text-secondary);
}

.download-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
}

.download-meta {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
}

.download-secondary {
  font-size: 13px;
  color: var(--text-secondary);
}

.download-secondary a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.download-secondary a:hover {
  text-decoration: underline;
}

.prose {
  max-width: 640px;
}

.prose .page-lead {
  margin-bottom: 28px;
}

.prose-heading {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px;
  letter-spacing: -0.2px;
}

.prose p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.release-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 640px;
}

.release-index li + li {
  border-top: 1px solid var(--border);
}

.release-index-link {
  display: grid;
  grid-template-columns: minmax(3.5rem, auto) 1fr auto;
  gap: 8px 20px;
  align-items: baseline;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.release-index-link:hover {
  background: var(--green-subtle);
}

.release-index-version {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.release-index-title {
  color: var(--text-secondary);
}

.release-index-date {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero {
    padding: 48px 20px 40px;
  }

  .app-icon {
    max-width: 200px;
  }

  h1 {
    letter-spacing: -1px;
  }

  .tagline {
    font-size: 17px;
  }

  .release-index-link {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .release-index-date {
    grid-column: 1;
  }

  .pitch {
    padding: 48px 20px 18px;
  }

  .features {
    padding: 22px 20px 52px;
  }

  .feature-card {
    padding: 22px 22px 26px;
  }

  .demo-video {
    padding: 52px 20px;
  }

  .demo-video-lead {
    margin-bottom: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
