/* Inflow — redesigned. Near-black ink, warm-white type, product-first. */

:root {
  --bg: #060605;
  --bg-soft: #0b0b0a;
  --surface: #101010;
  --elevated: #171716;
  --ink: #f4f1ea;
  --text: #ece9e2;
  --text-secondary: #b9b6ae;
  --text-tertiary: #8a877f;
  --border: #232322;
  --border-soft: #1b1b1a;
  --accent: #f4f1ea;
  --radius: 16px;
  --max-w: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle top glow */
body::before {
  content: "";
  position: fixed;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(244,241,234,0.055), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: rgba(6, 6, 5, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.site-nav { display: flex; gap: 28px; align-items: center; }

.site-nav a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--ink); }

.nav-cta {
  color: var(--bg) !important;
  background: var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px !important;
  transition: transform 0.15s ease, opacity 0.15s ease !important;
}

.nav-cta:hover { transform: translateY(-1px); opacity: 0.92; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 84px 28px 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  color: var(--text-tertiary);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 750;
  margin: 0 0 24px;
  color: var(--ink);
}

.lede {
  max-width: 480px;
  color: var(--text-secondary);
  font-size: 18.5px;
  line-height: 1.7;
  margin: 0 0 38px;
}

.keys { white-space: nowrap; }

kbd {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--surface);
  font-family: var(--font);
  font-size: 0.82em;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  margin: 0 1px;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #060605;
  font-weight: 650;
  font-size: 16.5px;
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  box-shadow: 0 8px 28px rgba(244, 241, 234, 0.12);
}

.btn-primary:hover:not(.is-disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(244, 241, 234, 0.18);
}

.btn-primary:active:not(.is-disabled) { transform: translateY(0); }

.btn-primary.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-large { font-size: 18px; padding: 17px 40px; }

.download-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-tertiary);
}

.meta-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  color: var(--text-tertiary);
  font-size: 13.5px;
}

.meta-row li { display: flex; align-items: center; gap: 8px; }
.meta-row li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.6;
}

/* ---------- app window mockup (matches the real Inflow popover) ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.app-window {
  width: 100%;
  max-width: 380px;
  background: #060605;
  border: 1px solid #2a2a28;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(244, 241, 234, 0.04),
    0 0 80px rgba(244, 241, 234, 0.05);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-visual:hover .app-window {
  transform: perspective(1200px) rotateY(-2deg) rotateX(0deg);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}

.wind-icon { color: rgba(255, 255, 255, 0.45); flex-shrink: 0; }

.app-header-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  flex: 1;
}

.gear-icon { color: rgba(255, 255, 255, 0.38); flex-shrink: 0; }

.app-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.app-editor {
  margin: 12px 16px 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px;
  min-height: 92px;
}

.composer-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #F7F5EF;
}

.composer-text:empty::before {
  content: "What's weighing on you?";
  color: rgba(255, 255, 255, 0.3);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #F4F1EA;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 14px;
}

.app-hints {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.28);
}

.send-btn {
  display: inline-flex;
  align-items: center;
  background: #F4F1EA;
  color: #141210;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9px;
}

.hotkey-chip {
  position: absolute;
  bottom: -22px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.hotkey-chip kbd { font-size: 12px; }

/* ---------- section titles ---------- */
.section-title {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 48px;
  text-align: center;
}

/* ---------- how it works ---------- */
.how {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 28px 96px;
}

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

.how-step {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.how-step:hover {
  transform: translateY(-3px);
  border-color: var(--border);
}

.how-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.how-step h3 {
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.how-step p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

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

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

.feature {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border);
}

.feature h3 {
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.feature p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.7; }

/* ---------- download CTA ---------- */
.download-cta {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 28px 104px;
}

.download-card {
  background: linear-gradient(180deg, #111110, #0b0b0a);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(244,241,234,0.08), transparent 65%);
  pointer-events: none;
}

.download-card h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
  position: relative;
}

.download-card > p {
  color: var(--text-secondary);
  margin: 0 0 36px;
  font-size: 17px;
  position: relative;
}

.download-card .btn-primary { position: relative; }

.fine-print {
  margin: 24px 0 0 !important;
  font-size: 13.5px !important;
  color: var(--text-tertiary) !important;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 28px 110px;
}

.faq-list details {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 12px;
  background: var(--bg-soft);
  transition: border-color 0.2s ease;
}

.faq-list details:hover { border-color: var(--border); }
.faq-list details[open] { border-color: var(--border); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "–";
  transform: rotate(0deg);
}

.faq details p {
  margin: 12px 0 4px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 36px 28px 48px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 14px;
}

.footer-inner a { color: var(--text-secondary); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 72px; }
  .hero { padding: 64px 24px 80px; }
  .hero-visual { order: -1; }
  .app-window { transform: none; max-width: 360px; }
  .how-grid, .features-grid { grid-template-columns: 1fr; }
  .site-nav a:not(.nav-cta) { display: none; }
  .download-card { padding: 56px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .caret { animation: none; }
  html { scroll-behavior: auto; }
}
