:root {
  --parchment: #F0EDE5;
  --parchment-deep: #E8E4DA;
  --ink: #1A1815;
  --ink-soft: #6B655C;
  --amber: #B8842A;
  --amber-light: #E8BC64;
  --amber-glow: #FFE9B8;
  --cosmic: #0A0A0F;
  --cosmic-warm: #1A1410;
  --hairline: rgba(26, 24, 21, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
  color: #F0EDE5;
  pointer-events: none;
}

.nav-brand {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.2s;
}

.nav-brand:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  gap: 28px;
  pointer-events: auto;
}

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, var(--cosmic-warm) 0%, var(--cosmic) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cosmic-bg {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(rgba(255, 233, 184, 0.6) 0.6px, transparent 1px),
    radial-gradient(rgba(255, 233, 184, 0.4) 0.4px, transparent 1px),
    radial-gradient(rgba(255, 233, 184, 0.5) 0.5px, transparent 1px);
  background-size: 110px 110px, 170px 170px, 80px 80px;
  background-position: 0 0, 55px 80px, 30px 30px;
  opacity: 0.28;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 1100px;
  height: 1100px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(184, 132, 42, 0.18) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 380px;
  height: 380px;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  z-index: 1;
  filter: drop-shadow(0 0 60px rgba(184, 132, 42, 0.35));
}

.hero-logo-inner {
  width: 100%;
  height: 100%;
  animation: spin 32s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-text {
  position: absolute;
  top: 72%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: var(--parchment);
  will-change: transform, opacity;
}

.hero-title {
  font-size: 88px;
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--parchment);
  text-transform: lowercase;
}

.hero-tagline {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 22px;
  color: var(--parchment);
  font-weight: 400;
}

.scroll-hint {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.45;
  z-index: 2;
  color: var(--parchment);
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  background: var(--cosmic);
  color: var(--parchment);
  padding: 200px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.philosophy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(184, 132, 42, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.philosophy.alt { background: var(--cosmic-warm); }

.big-quote {
  font-size: 64px;
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--parchment);
  position: relative;
}

.big-quote em {
  font-style: italic;
  color: var(--amber-light);
  font-weight: 300;
}

.strikethrough {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 0.45;
}

.amber { color: var(--amber-light); }

/* ===== SECTION SHARED ===== */
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
  font-weight: 500;
}

.section-title {
  font-size: 42px;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 60px;
  max-width: 780px;
  color: var(--ink);
}

.section-title .muted { color: var(--ink-soft); }

.lede {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.005em;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 60px;
  line-height: 1.55;
}

/* ===== FEATURES ===== */
.features {
  background: var(--parchment);
  padding: 160px 0 180px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.feature {
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.feature-num {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  font-weight: 500;
}

.feature h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--ink);
}

.feature p {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.65;
}

.features.stack .capability-list {
  list-style: none;
  margin-top: 12px;
}

.features.stack li {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-soft);
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  line-height: 1.55;
}

.features.stack li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.features.stack strong {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* ===== SHOWCASE / SCREENSHOT MOCK ===== */
.showcase {
  background: var(--parchment-deep);
  padding: 160px 0 180px;
  position: relative;
}

.screenshot {
  margin-top: 24px;
}

.screen-window {
  background: #1f1c19;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 40px 100px rgba(26, 24, 21, 0.18), 0 8px 24px rgba(26, 24, 21, 0.06);
  overflow: hidden;
}

.screen-traffic {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  background: var(--parchment-deep);
}

.screen-traffic span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF5F57;
}

.screen-traffic span:nth-child(2) { background: #FEBC2E; }
.screen-traffic span:nth-child(3) { background: #28C840; }

.screen-frame {
  display: flex;
  background: var(--parchment);
  aspect-ratio: 16 / 9.5;
  border-top: 1px solid var(--hairline);
}

.screen-sidebar {
  width: 200px;
  background: var(--parchment-deep);
  border-right: 1px solid var(--hairline);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
}

.screen-brand {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 4px 8px 12px;
}

.screen-label {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.5;
  padding: 12px 8px 6px;
}

.screen-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-soft);
}

.screen-row.active {
  background: rgba(184, 132, 42, 0.08);
  color: var(--ink);
}

.screen-row .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(184, 132, 42, 0.5);
}

.screen-row .dot.active-dot { background: var(--amber); }

.screen-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.screen-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--parchment);
}

.screen-nav {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.screen-url {
  flex: 1;
  background: rgba(26, 24, 21, 0.03);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 10px;
  color: var(--ink);
}

.screen-star {
  font-size: 12px;
  color: var(--amber);
}

.screen-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.4) 100%),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&q=70&auto=format&fit=crop') center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #F0EDE5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.screen-greeting {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  opacity: 0.92;
}

.screen-clock {
  font-size: 64px;
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.screen-date {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ===== DOWNLOAD ===== */
.download {
  background: var(--cosmic);
  color: var(--parchment);
  padding: 180px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(184, 132, 42, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.download .section-eyebrow { color: var(--amber-light); }
.download .section-title {
  color: var(--parchment);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.download .lede {
  color: rgba(240, 237, 229, 0.7);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===== Primary download button ===== */
.cta-download {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 44px;
  background: var(--amber-light);
  color: var(--cosmic);
  text-decoration: none;
  border-radius: 8px;
  font-family: inherit;
  margin-top: 24px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  box-shadow: 0 0 50px rgba(232, 188, 100, 0.32);
}

.cta-download:hover {
  background: var(--amber-glow);
  transform: translateY(-2px);
  box-shadow: 0 0 80px rgba(232, 188, 100, 0.5);
}

.cta-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-size {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  font-weight: 500;
}

.download-meta {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(240, 237, 229, 0.5);
  margin-top: 18px;
}

.download-secondary {
  margin: 64px auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(240, 237, 229, 0.08);
  max-width: 520px;
}

.ds-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(240, 237, 229, 0.55);
  margin-bottom: 14px;
}

.download-secondary .cta-shell { margin-top: 0; }

/* ===== CTA: morphing button → form ===== */
.cta-shell {
  position: relative;
  height: 52px;
  width: 200px;
  margin: 20px auto 0;
  transition: width 0.5s cubic-bezier(.2,.7,.2,1);
}

.cta-shell.expanded {
  width: min(460px, calc(100vw - 64px));
}

.cta-initial {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cosmic);
  background: var(--amber-light);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.18s, box-shadow 0.18s;
  box-shadow: 0 0 30px rgba(232, 188, 100, 0.22);
  white-space: nowrap;
}

.cta-initial:hover {
  background: var(--amber-glow);
  transform: translateY(-1px);
  box-shadow: 0 0 50px rgba(232, 188, 100, 0.35);
}

.cta-shell.expanded .cta-initial {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
}

.cta-form {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease 0.15s;
}

.cta-shell.expanded .cta-form {
  opacity: 1;
  pointer-events: auto;
}

.cta-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  color: var(--parchment);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  height: 52px;
  -webkit-appearance: none;
}

.cta-form input[type="email"]:focus {
  border-color: var(--amber-light);
  background: rgba(255, 255, 255, 0.1);
}

.cta-form input[type="email"]::placeholder {
  color: rgba(240, 237, 229, 0.4);
}

.cta-submit {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cosmic);
  background: var(--amber-light);
  border: none;
  border-radius: 6px;
  padding: 0 20px;
  height: 52px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  white-space: nowrap;
}

.cta-submit:hover:not(:disabled) {
  background: var(--amber-glow);
  transform: translateY(-1px);
}

.cta-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.cta-thanks {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 300;
  color: var(--amber-light);
  margin-top: 24px;
}

.cta-thanks-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber-light);
  color: var(--cosmic);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 600px) {
  .cta-shell.expanded {
    width: calc(100vw - 48px);
    max-width: 360px;
  }
  .cta-submit { padding: 0 14px; font-size: 11px; }
}

/* ===== SUB-PAGE LAYOUT ===== */
.page-body {
  background: var(--parchment);
}

.page {
  padding-top: 72px;
  min-height: calc(100vh - 180px);
}

.nav-light {
  /* sub-pages have light bg, nav text needs to stay dark */
  mix-blend-mode: normal;
  color: var(--ink);
}

.page-hero {
  background: var(--parchment);
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
  font-size: 56px;
  font-weight: 200;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  margin-top: 8px;
}

.page-lede {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-soft);
  margin-top: 20px;
  max-width: 560px;
  line-height: 1.55;
}

/* ===== LEGAL CONTENT ===== */
.legal {
  background: var(--parchment);
  padding: 64px 0 140px;
}

.legal-content {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink);
  font-weight: 300;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--ink);
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.legal-content .updated {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  font-style: italic;
  margin-bottom: 36px;
}

.legal-content ul {
  margin: 6px 0 18px 22px;
  color: var(--ink-soft);
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content strong {
  font-weight: 500;
  color: var(--ink);
}

.legal-content a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal-content a:hover { text-decoration: none; }

/* ===== CONTACT PAGE ===== */
.contact-page {
  background: var(--parchment);
  padding: 64px 0 140px;
}

.contact-page .contact-form-wrap {
  max-width: 560px;
}

/* ===== CONTACT FORM (shared, used on contact.html) ===== */

.contact-form .field { margin-bottom: 20px; }

.contact-form label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  background: rgba(26, 24, 21, 0.025);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  -webkit-appearance: none;
  line-height: 1.5;
}

.contact-form textarea {
  resize: vertical;
  font-family: inherit;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--amber);
  background: rgba(184, 132, 42, 0.04);
}

.contact-submit {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--ink);
  border: none;
  border-radius: 5px;
  padding: 15px 32px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  margin-top: 6px;
}

.contact-submit:hover {
  background: #2A2522;
  transform: translateY(-1px);
}

.contact-thanks {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  padding: 32px 0;
}

.contact-thanks .cta-thanks-icon {
  background: var(--amber);
  color: var(--parchment);
}

@media (max-width: 880px) {
  .contact-page { padding: 40px 0 100px; }
  .page-hero { padding: 64px 0 40px; }
  .page-hero h1 { font-size: 38px; }
  .legal { padding: 48px 0 100px; }
  .legal-content { font-size: 14px; line-height: 1.7; }
}

/* ===== FOOTER LINKS ===== */
.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; color: var(--amber-light); }

@media (max-width: 700px) {
  .footer-row {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-links { justify-content: center; }
}

/* ===== FOOTER ===== */
footer {
  background: var(--cosmic);
  color: var(--parchment);
  padding: 36px 0;
  border-top: 1px solid rgba(240, 237, 229, 0.06);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.55;
}

.footer-brand {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.footer-meta {
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .container { padding: 0 24px; }
  .nav { padding: 18px 24px; }
  .nav-links { display: none; }
  .hero-logo { width: 260px; height: 260px; top: 36%; }
  .hero-title { font-size: 64px; }
  .hero-tagline { font-size: 10.5px; letter-spacing: 0.24em; }
  .big-quote { font-size: 38px; }
  .section-title { font-size: 30px; margin-bottom: 40px; }
  .features-grid { grid-template-columns: 1fr; gap: 36px; }
  .features { padding: 100px 0 120px; }
  .showcase { padding: 100px 0 120px; }
  .philosophy { padding: 140px 0; }
  .download { padding: 120px 0; }
  .screen-sidebar { width: 140px; padding: 12px 6px; }
  .screen-clock { font-size: 48px; }
}
