:root {
  --bg: #FAFAFB;
  --bg-alt: #F1F0EE;
  --card: #FFFFFF;
  --text: #241F31;
  --muted: #5E5C64;
  --line: #DEDDDA;
  --jam: #E01B5A;
  --jam-dark: #A51D2D;
  --gold: #F5C211;
  --gold-dark: #E5A50A;
  --orange: #FF7800;
  --orange-dark: #C64600;
  --blue: #3584E4;
  --purple: #C061CB;
  --shadow: 0 1px 2px rgba(36, 31, 49, .06), 0 8px 24px rgba(36, 31, 49, .06);
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1E1E;
    --bg-alt: #242424;
    --card: #2A2A2A;
    --text: #F6F5F4;
    --muted: #A8A6AE;
    --line: #3A3A3A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Adwaita Sans", Cantarell, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .9em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; }
.brand b { font-weight: 800; }
.brand.small { font-size: 16px; }
.nav-links { display: flex; gap: 24px; }
.nav-apps { display: none; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 88px 0 72px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--jam) 12%, transparent); color: var(--jam);
  font-weight: 600; font-size: 14px;
}
h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 20px; font-weight: 800; }
.jam { color: var(--jam); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 16px;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--jam); color: #fff; box-shadow: 0 4px 0 var(--jam-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--jam-dark); }
.btn-ghost { border: 1.5px solid var(--line); background: var(--card); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-disabled { background: var(--bg-alt); color: var(--muted); border: 1.5px dashed var(--line); cursor: not-allowed; }

.hero-art { position: relative; justify-self: center; width: 340px; height: 340px; }
.jar-glow {
  position: absolute; inset: 10%;
  background: radial-gradient(circle, color-mix(in srgb, var(--jam) 35%, transparent), transparent 70%);
  filter: blur(20px);
}
.jar { position: relative; width: 280px; margin: 30px auto 0; animation: bob 6s ease-in-out infinite; }
.orbit { position: absolute; width: 96px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.15)); }
.orbit-a { left: -24px; bottom: 24px; animation: bob 5s ease-in-out infinite reverse; }
.orbit-b { right: -24px; top: 24px; animation: bob 7s ease-in-out infinite; }
.orbit-c { right: -8px; bottom: -4px; animation: bob 6.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .jar, .orbit { animation: none; } }

/* Sections */
.section-title { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.02em; margin: 0 0 8px; font-weight: 800; }
.section-sub { color: var(--muted); margin: 0 0 40px; }

.apps { padding: 72px 0; background: var(--bg-alt); }
.app {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px; margin-bottom: 24px;
}
.app-photosplash { --accent: var(--gold); }
.app-cinematica { --accent: var(--orange); }
.app-blobr { --accent: var(--purple); }
.app-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.app-head img { width: 112px; }
.app-head h3 { font-size: 32px; margin: 0; letter-spacing: -.02em; }
.app-kind { margin: 0; color: var(--muted); font-weight: 500; }
.pill { margin-left: auto; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.pill-soon { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--text); }
.pill-dev { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--text); }
.pill-blobr { background: color-mix(in srgb, var(--purple) 20%, transparent); color: var(--text); }
.app-blurb { font-size: 18px; margin: 20px 0; max-width: 44em; }
.app-shot { margin: 0 0 28px; }
.app-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.features {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px;
}
.features li { position: relative; padding-left: 26px; color: var(--muted); }
.features li b { color: var(--text); }
.features li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px;
  border-radius: 4px; background: var(--accent);
}
.app-more { display: flex; align-items: center; gap: 24px; border: 2px dashed var(--line); box-shadow: none; }
.app-more h3 { margin: 0; font-size: 24px; }
.app-more .app-blurb { margin: 4px 0 0; color: var(--muted); font-size: 17px; }
.more-jar {
  flex: none; width: 72px; height: 72px; border-radius: 20px;
  display: grid; place-items: center; font-size: 36px; font-weight: 700;
  background: color-mix(in srgb, var(--jam) 12%, transparent); color: var(--jam);
}

.why { padding: 72px 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.why-card h4 { margin: 0 0 6px; font-size: 18px; }
.why-card p { margin: 0; color: var(--muted); font-size: 15px; }

.install { padding: 72px 0 96px; background: var(--bg-alt); }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.install-card { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.install-card h4 { margin: 0 0 6px; font-size: 20px; }
.install-card p { margin: 0 0 18px; color: var(--muted); }
pre {
  margin: 0; padding: 16px 18px; border-radius: 12px; overflow-x: auto;
  background: #241F31; color: #F6F5F4; font-size: 14px; line-height: 1.7;
}

.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 15px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .hero-art { width: 280px; height: 280px; }
  .jar { width: 220px; }
  .orbit { width: 72px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { gap: 16px; }
  .nav-links a[href="#install"] { display: none; }
  /* One "Apps" link instead of one per app, so the bar fits a phone. */
  .nav-links .nav-app { display: none; }
  .nav-links .nav-apps { display: inline; }
  .app { padding: 24px; }
  .app-head img { width: 80px; }
  .pill { margin-left: 0; }
  .features, .why-grid, .install-grid { grid-template-columns: 1fr; }
  .app-more { flex-direction: column; text-align: center; }
}
