:root {
  --ink: #0B0F14;
  --surface: #151B23;
  --surface-2: #11161d;
  --hairline: #262E38;
  --text: #F4F6F8;
  --muted: #8A95A3;
  --mint: #3DDC97;
  --container: 1120px;
  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: rgba(61, 220, 151, 0.25); }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 20, 0.78); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: block; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.93rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero { padding: 104px 0 96px; border-bottom: 1px solid var(--hairline); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-bottom: 28px; }
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(61,220,151,0.15); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 600; margin-bottom: 24px; letter-spacing: -0.03em; }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 54ch; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 11px; font-weight: 600; font-size: 0.97rem; font-family: var(--body); transition: transform 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s; }
.btn-primary { background: var(--mint); color: #04140c; }
.btn-primary:hover { transform: translateY(-2px); background: #54e4a6; }
.btn-ghost { border: 1px solid var(--hairline); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* HERO VISUAL */
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(61,220,151,0.16), transparent 65%); filter: blur(20px); z-index: 0; }
.phone--tilt { transform: rotate(3deg); z-index: 1; }

/* PHONE FRAME */
.phone { width: 270px; aspect-ratio: 9 / 19.5; background: #05080c; border: 1px solid #2b3543; border-radius: 38px; padding: 9px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02) inset; position: relative; }
.phone .screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--ink); position: relative; }
.phone .shot { width: 100%; height: 100%; object-fit: cover; display: block; }

/* SECTIONS */
.section { padding: 100px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-head { margin-bottom: 52px; max-width: 60ch; }
.section-index { display: block; font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* APPS */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card { font-family: var(--body); text-align: left; cursor: pointer; appearance: none; width: 100%; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 30px; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s; color: var(--text); display: flex; flex-direction: column; }
.app-card:hover { transform: translateY(-4px); border-color: rgba(61,220,151,0.5); background: #182029; }
.app-card:hover .app-more { color: var(--mint); }
.app-card--soon { background: var(--surface-2); }
.app-icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61,220,151,0.22); color: var(--mint); margin-bottom: 22px; }
.app-icon svg { width: 25px; height: 25px; }
.app-card h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 7px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-tag { font-family: var(--display); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.app-desc { color: var(--muted); font-size: 0.96rem; line-height: 1.62; }
.app-more { margin-top: 16px; font-size: 0.86rem; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.badge { font-family: var(--body); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.09em; background: rgba(61, 220, 151, 0.12); color: var(--mint); border: 1px solid rgba(61,220,151,0.3); padding: 3px 9px; border-radius: 999px; font-weight: 600; }

/* APPROACH */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.approach-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--hairline); color: var(--mint); margin-bottom: 20px; }
.approach-icon svg { width: 24px; height: 24px; }
.approach-item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.approach-item p { color: var(--muted); font-size: 0.98rem; }

/* CONTACT */
.contact { text-align: center; max-width: 640px; margin: 0 auto; }
.contact .section-index { margin-bottom: 16px; }
.contact h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.contact-btn { margin-top: 30px; font-family: var(--display); letter-spacing: 0.01em; }

/* FOOTER */
.footer { border-top: 1px solid var(--hairline); padding: 56px 0 44px; background: var(--surface-2); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--hairline); }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--mint); }
.company-details { margin-top: 30px; color: var(--muted); font-size: 0.86rem; line-height: 1.85; }
.company-details .company-legal { color: var(--text); font-weight: 600; }
.company-details a { color: var(--mint); }
.footer-copy { margin-top: 22px; color: var(--muted); font-size: 0.85rem; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 12, 0.78); backdrop-filter: blur(8px); display: none; place-items: center; padding: 28px; }
.modal-overlay.open { display: grid; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; max-width: 820px; width: 100%; max-height: 88vh; overflow: auto; display: grid; grid-template-columns: auto 1fr; gap: 44px; padding: 44px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--hairline); color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.modal-close:hover { color: var(--text); border-color: var(--muted); }
.modal-close svg { width: 18px; height: 18px; }
.modal-visual { display: flex; align-items: center; justify-content: center; }
.modal-visual .phone { width: 230px; }
.modal-body { align-self: center; }
.modal-tag { font-family: var(--display); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mint); font-weight: 600; margin-bottom: 12px; }
.modal-body h3 { font-size: 1.9rem; margin-bottom: 16px; }
.modal-desc { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin-bottom: 22px; }
.modal-meta { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--hairline); padding-top: 18px; }

/* APP MOCK SCREENS */
.mock { padding: 16px 16px 18px; color: var(--text); font-family: var(--body); display: flex; flex-direction: column; }
.mock-status { display: flex; align-items: center; justify-content: space-between; font-size: 0.62rem; color: var(--muted); margin-bottom: 18px; }
.mock-island { width: 52px; height: 14px; background: #05080c; border-radius: 999px; }
.mock-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mock-figure { font-family: var(--display); font-size: 1.7rem; font-weight: 700; margin-top: 2px; }
.mock-figure-sm { font-family: var(--display); font-size: 1.05rem; font-weight: 600; text-align: center; margin-top: 14px; }
.mock-delta { color: var(--mint); font-size: 0.74rem; font-weight: 600; margin-top: 2px; }
.mock-chips { display: flex; gap: 6px; margin: 16px 0; }
.mock-chips span { font-size: 0.62rem; padding: 4px 9px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--hairline); }
.mock-chips span.on { background: rgba(61,220,151,0.14); color: var(--mint); border-color: rgba(61,220,151,0.3); }
.mock-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid rgba(38,46,56,0.6); font-size: 0.76rem; }
.mock-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mock-row span:nth-child(2) { flex: 1; color: var(--text); }
.mock-row b { color: var(--muted); font-weight: 600; }
.mock-row b.pos { color: var(--mint); }

/* Somni */
.mock-somni .ring { width: 96px; height: 96px; border-radius: 50%; margin: 18px auto 14px; display: grid; place-items: center; background: conic-gradient(var(--mint) 82%, var(--hairline) 0); position: relative; }
.mock-somni .ring::before { content: ''; position: absolute; inset: 9px; background: var(--ink); border-radius: 50%; }
.mock-somni .ring span { position: relative; font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.mock-somni .ring small { position: relative; display: none; }
.mock-somni .bars { display: flex; align-items: flex-end; gap: 5px; height: 60px; margin: 8px 4px 16px; }
.mock-somni .bars i { flex: 1; background: linear-gradient(var(--mint), rgba(61,220,151,0.3)); border-radius: 3px; }
.mock-stats { display: flex; gap: 10px; }
.mock-stats div { flex: 1; background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 9px; }
.mock-stats b { display: block; font-family: var(--display); font-size: 0.95rem; }
.mock-stats span { font-size: 0.6rem; color: var(--muted); }

/* OurBaby */
.mock-ourbaby .parents { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }
.ava { width: 46px; height: 46px; border-radius: 50%; display: block; }
.ava-a { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.ava-b { background: linear-gradient(135deg, #fb7185, #f59e0b); }
.mock-ourbaby .plus { color: var(--muted); font-size: 1.1rem; }
.mock-ourbaby .baby { display: flex; justify-content: center; margin-top: 18px; }
.ava-baby { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #f472b6); box-shadow: 0 0 0 4px rgba(244,114,182,0.15); }
.mock-pill { margin-top: 16px; text-align: center; font-size: 0.72rem; font-weight: 600; color: var(--mint); background: rgba(61,220,151,0.12); border: 1px solid rgba(61,220,151,0.3); border-radius: 999px; padding: 8px; }

/* Health */
.mock-health .cal { display: flex; justify-content: space-between; margin: 16px 0; }
.mock-health .cal span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 0.66rem; color: var(--muted); background: var(--surface); border: 1px solid var(--hairline); }
.mock-health .cal span.on { background: var(--mint); color: #04140c; border-color: var(--mint); font-weight: 700; }
.mock-sub { font-size: 0.78rem; color: var(--text); margin-bottom: 12px; }
.mock-health .tags { display: flex; flex-direction: column; gap: 7px; }
.mock-health .tags span { font-size: 0.72rem; padding: 8px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--hairline); color: var(--muted); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: 1fr; gap: 36px; }
  .modal { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; text-align: center; }
  .modal-visual .phone { width: 200px; }
  .modal-meta { text-align: center; }
}
@media (max-width: 600px) {
  .apps-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .nav-links a:nth-child(2) { display: none; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 76px 0; }
}
