/* ===================================================================
   StudyBiome — Fire Lily brand system (clean/professional direction)
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@500;600;700&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-tint: #FAEEE0;
  --card: #FFFFFF;
  --card-tint: #FFF8F0;
  --border: #E9E2D6;
  --accent: #FFA736;
  --accent-dark: #E0891F;
  --secondary: #FF3B3B;
  --text: #1E293B;
  --text-muted: #647488;
  --dark-bg: #1C1B19;
  --dark-card: #2A2925;
  --dark-border: #3A3833;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
p { margin: 0; }

.eyebrow {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* ---------- Placeholder asset boxes ---------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: repeating-linear-gradient(
    135deg, rgba(30,41,59,0.04), rgba(30,41,59,0.04) 10px,
    transparent 10px, transparent 20px
  ), var(--card-tint);
  border: 1.5px dashed #D8CCB4;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12.5px;
  text-align: center;
  padding: 12px;
}
.placeholder .ph-label { font-weight: 600; color: var(--text); }
.placeholder .ph-path { font-family: monospace; font-size: 11px; opacity: 0.75; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-logo .accent-word { color: var(--accent-dark); }

/* Logo mark — base size (used in header) */
.nav-logo .logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo .logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-logo .logo-mark.placeholder { font-size: 8px; padding: 0; }

/* Footer logo — smaller than header, no inline styles needed */
.footer-brand .nav-logo .logo-mark {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 14.5px; font-weight: 600; color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--accent-dark); }

@media (max-width: 780px) {
  .nav-links { display: none; }
}

/* ---------------- Hero ---------------- */
.hero { padding: 84px 0 0; text-align: center; }
.hero .wrap { max-width: 820px; }
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  border: 1px solid var(--border);
  background: var(--card-tint);
}
h1.hero-title {
  font-size: clamp(42px, 6vw, 68px);
  margin: 0 0 22px;
}
h1.hero-title .accent { color: var(--accent-dark); }
.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 34px;
}
.hero-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.hero-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 15px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}
.hero-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: var(--card-tint);
  color: var(--text);
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 10px;
  cursor: pointer;
}
.hero-note { margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.hero-note strong { color: var(--secondary); font-weight: 600; }
#waitlist-message { margin-top: 12px; font-size: 14px; font-weight: 600; }

.hero-visual {
  margin: 56px 0 0;
  padding: 0 28px;
}
.hero-visual .shot.desktop {
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16/9.5;
}

/* ---------------- Trust strip ---------------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; margin-top: 64px; }
.trust .wrap { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); opacity: 0.75; }

/* ---------------- Section shell ---------------- */
.section { padding: 100px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 12px; }
.section-head p { color: var(--text-muted); font-size: 17px; margin-top: 16px; }

/* ---------------- Trinity (pillars) ---------------- */
.trinity { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--card-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: default;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(30,41,59,0.14);
  border-color: var(--accent);
}
.pillar:hover .pillar-icon {
  background: var(--accent);
  border-color: var(--accent);
}
.pillar-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--border);
  transition: background .18s ease, border-color .18s ease;
}
.pillar h3 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.pillar > p.pillar-sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; }
.pillar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pillar li { font-size: 14.5px; color: var(--text); padding-left: 20px; position: relative; }
.pillar li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.pillar:nth-child(3) .pillar-icon { background: #fff; }
.pillar:nth-child(3):hover .pillar-icon { background: var(--secondary); border-color: var(--secondary); }
.pillar:nth-child(3):hover { border-color: var(--secondary); }
@media (max-width: 860px) { .trinity { grid-template-columns: 1fr; } }

/* ---------------- Screenshots / device tabs ---------------- */
.device-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; }
.device-tab {
  font-weight: 600; font-size: 14px; color: var(--text-muted);
  background: var(--card); border: 1px solid var(--border);
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.device-tab.is-active { background: var(--text); color: #fff; border-color: var(--text); }
.device-panel { display: none; }
.device-panel.is-active { display: block; }
.shots-row { display: flex; gap: 20px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.shot.placeholder { border-radius: 18px; aspect-ratio: 9/19.5; }
.shot.phone { width: 200px; }
.shot.tablet { width: 100%; max-width: 560px; aspect-ratio: 4/3; border-radius: 20px; }
.shot.desktop { width: 100%; max-width: 780px; aspect-ratio: 16/10; border-radius: 16px; }

/* ---------------- Feature grid (secondary tools) ---------------- */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(30,41,59,0.14);
  border-color: var(--accent);
}
.tool-card .tool-icon { font-size: 22px; margin-bottom: 12px; display: block; }
.tool-card h4 { font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.tool-card p { font-size: 13.5px; color: var(--text-muted); }
@media (max-width: 860px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- About ---------------- */
.about-section { background: var(--card-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 20px; }
.about-grid p { color: var(--text-muted); font-size: 16px; margin-bottom: 16px; }
.about-stats { display: flex; gap: 32px; margin-top: 28px; }
.about-stat .num { font-family: 'Instrument Sans', sans-serif; font-size: 30px; font-weight: 800; color: var(--accent-dark); }
.about-stat .label { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--dark-bg); color: #fff;
  border-radius: var(--radius-lg);
  margin: 0 28px; padding: 72px 40px; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); }
.cta-band p { color: #C9BFAE; margin-top: 14px; font-size: 16px; }
.cta-band .hero-form { margin: 28px auto 0; }
.cta-band .hero-form input { background: #2A2925; border-color: #3A3833; color: #fff; }
.cta-band .hero-note { color: #8f8676; }

/* ---------------- Footer (Notion-style columns) ---------------- */
footer { padding: 64px 0 40px; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 30ch; margin-bottom: 16px; }

.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.footer-social a:hover { border-color: var(--accent); transform: translateY(-2px); }
.footer-social .social-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 12px;
}

@media (max-width: 560px) {
  .hero-form, .cta-band .hero-form { flex-direction: column; }
  .tool-grid { grid-template-columns: 1fr; }
  .cta-band { margin: 0 16px; padding: 52px 24px; }
}