/* ============================================================================
   Fusion Habits — landing page
   White background, green theme, Apple App Store-inspired layout.
   ========================================================================== */

:root {
  --green: #16a34a;          /* primary action green */
  --green-600: #15994a;
  --green-700: #0f7a39;
  --green-50: #effdf4;       /* soft green wash */
  --lime: #c9f277;           /* brand accent (sparingly) */
  --ink: #0e1311;            /* brand charcoal-green (headings, logo badge) */
  --body: #495a4f;           /* muted body text */
  --line: #e7ece8;           /* hairline borders */
  --white: #ffffff;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 19, 17, 0.06), 0 8px 24px rgba(14, 19, 17, 0.05);
  --shadow-lg: 0 30px 80px -20px rgba(14, 19, 17, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---- Logo lockup ---------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo-badge {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.logo-badge img { width: 26px; }
.brand .name { font-size: 18px; font-weight: 300; letter-spacing: 0.2px; }
.brand .name b { font-weight: 600; }

/* ---- Nav ------------------------------------------------------------------ */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--body); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: none;
  border-radius: 999px; padding: 12px 22px; transition: transform 0.12s ease, box-shadow 0.2s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 24px -6px rgba(22, 163, 74, 0.5); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(22, 163, 74, 0.55); }
.btn-ghost { background: var(--green-50); color: var(--green-700); }
.btn-ghost:hover { background: #e3fbec; }

/* App-store-style download badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff;
  border-radius: 14px; padding: 10px 18px; min-width: 168px;
  transition: transform 0.12s ease, opacity 0.2s;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store-badge .s-small { font-size: 11px; opacity: 0.8; line-height: 1.1; }
.store-badge .s-big { font-size: 17px; font-weight: 600; line-height: 1.15; }
.soon { font-size: 13px; color: var(--body); margin-top: 12px; }
.soon b { color: var(--green-700); }

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -30% 30% 30% -10%;
  background: radial-gradient(60% 60% at 30% 30%, rgba(201, 242, 119, 0.5), transparent 70%),
              radial-gradient(50% 50% at 70% 60%, rgba(22, 163, 74, 0.12), transparent 70%);
  filter: blur(10px); z-index: 0; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-50); color: var(--green-700);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
h1.headline {
  font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -1.5px;
  font-weight: 700; margin: 22px 0 18px;
}
h1.headline .hl { color: var(--green); }
.subline { font-size: 19px; color: var(--body); max-width: 30ch; }

/* ---- iPhone mockup -------------------------------------------------------- */
.phone {
  position: relative; width: 300px; margin: 0 auto;
  background: #0b0f0d; border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(14, 19, 17, 0.04);
}
.phone .screen {
  position: relative; border-radius: 36px; overflow: hidden; background: #0e1311;
  aspect-ratio: 768 / 1376;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .island {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 95px; height: 26px; background: #000; border-radius: 14px; z-index: 2;
}
.phone-float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Generated 2-phone hero shot (Higgsfield / Nano Banana 2) */
.hero-shot {
  width: 100%; max-width: 580px; margin: 0 auto; display: block;
  filter: drop-shadow(0 34px 60px rgba(14, 19, 17, 0.22));
}

/* ---- Section scaffolding -------------------------------------------------- */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .kicker { color: var(--green-700); font-weight: 700; font-size: 14px; letter-spacing: 0.4px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; margin: 12px 0 14px; }
.section-head p { color: var(--body); font-size: 18px; }

/* ---- Feature cards -------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 26px; background: var(--green-50); margin-bottom: 18px;
}
.card h3 { font-size: 21px; letter-spacing: -0.3px; margin-bottom: 8px; }
.card p { color: var(--body); font-size: 16px; }

/* ---- Science band --------------------------------------------------------- */
.science { background: var(--green-50); border-radius: 32px; }
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.loop .step { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.loop .step .n { color: var(--green); font-weight: 800; font-size: 14px; }
.loop .step h4 { font-size: 19px; margin: 6px 0 6px; letter-spacing: -0.3px; }
.loop .step p { color: var(--body); font-size: 15px; }

/* ---- Showcase (split with phone) ----------------------------------------- */
.showcase-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 50px; align-items: center; }
.showcase-grid .copy h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.8px; margin-bottom: 16px; }
.showcase-grid .copy p { color: var(--body); font-size: 18px; margin-bottom: 22px; }
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checklist .ck {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--green);
  color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800;
}

/* ---- CTA band ------------------------------------------------------------- */
.cta-band { background: var(--ink); border-radius: 32px; text-align: center; padding: 64px 28px; color: #fff; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -1px; margin-bottom: 12px; }
.cta-band h2 .hl { color: var(--lime); }
.cta-band p { color: #c7d2cb; font-size: 18px; margin-bottom: 28px; }
.cta-band .stores { justify-content: center; }
.cta-band .store-badge { background: #fff; color: var(--ink); }

/* ---- Footer --------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot-inner .links { display: flex; gap: 24px; }
.foot-inner .links a { color: var(--body); font-size: 14px; }
.foot-inner .links a:hover { color: var(--ink); }
.copy { color: #93a59a; font-size: 13px; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid, .showcase-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; text-align: center; }
  .eyebrow { margin: 0 auto; }
  .subline { margin: 0 auto; }
  .stores { justify-content: center; }
  .hero .phone { margin-top: 44px; }
  .showcase-grid .copy { order: 2; text-align: center; }
  .checklist li { text-align: left; }
  .features, .loop { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  h1.headline { letter-spacing: -1px; }
}
