/* Self-hosted DM Sans (variable). See fonts/README.txt to add the file.
   Falls back to native system fonts until the woff2 is present. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('fonts/dm-sans.woff2') format('woff2');
}

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

:root {
  --brand:       #1B3A6B;
  --sage:        #7A9E6E;
  --bili-amber:  #FFC107;
  --nutri-green: #4CAF50;
  --neutral-bg:  #FFFFFF;
  --surface:     #F7F8FA;
  --text-main:   #1B3A6B;
  --text-muted:  #6B7280;
  --white:       #FFFFFF;
  --border:      rgba(27,58,107,0.12);
  --radius-lg:   18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 16px; line-height: 1.6;
  background: var(--neutral-bg); color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 56px; width: auto; display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 14px; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--brand); }

/* HERO */
.hero {
  min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 132px 2rem 4rem;
}
.hero-logo { width: min(380px, 80vw); height: auto; margin: 0 auto 2.5rem; }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 600;
  color: var(--brand); line-height: 1.2; letter-spacing: -1px;
  max-width: 640px; margin: 0 auto 1.5rem;
}
.hero h1 span { color: var(--sage); }
.hero-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px;
  font-size: 13px; color: var(--brand); font-weight: 500;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* SECTION */
section { padding: 5rem 2rem; max-width: 1000px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--sage); margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600;
  color: var(--brand); letter-spacing: -0.5px; margin-bottom: 1rem;
}
.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 520px; margin-bottom: 3rem; }

/* APPS GRID */
.apps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1.5rem;
}
.app-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.app-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(27,58,107,0.08); }
.app-icon {
  width: 60px; height: 60px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; object-fit: contain; }
.icon-stillsafe { background: var(--white); border: 1px solid var(--border); padding: 4px; }
.icon-neostat   { background: var(--white); border: 1px solid var(--border); padding: 6px; }
.icon-bilicalc  { background: var(--bili-amber); }
.icon-nutricalc { background: var(--nutri-green); }
.app-status {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 100px;
}
.status-dev { background: rgba(122,158,110,0.15); color: #3d6b31; border: 1px solid rgba(122,158,110,0.3); }
.status-planned { background: rgba(27,58,107,0.07); color: var(--brand); border: 1px solid var(--border); }
.app-audience {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem;
}
.app-name { font-size: 1.25rem; font-weight: 600; color: var(--brand); margin-bottom: 0.5rem; letter-spacing: -0.3px; }
.app-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ABOUT STRIP */
.about-strip { background: var(--brand); color: var(--white); padding: 5rem 2rem; text-align: center; }
.about-strip h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600;
  letter-spacing: -0.5px; margin-bottom: 1rem; color: var(--white);
}
.about-strip p { font-size: 1rem; color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }
.about-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.about-pill {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500;
  padding: 6px 16px; border-radius: 100px;
}

/* DISCLAIMER */
.disclaimer {
  max-width: 720px; margin: 0 auto; padding: 3rem 2rem;
  text-align: center; font-size: 13px; color: var(--text-muted); line-height: 1.7;
}

/* LEGAL / CONTENT PAGES */
.legal {
  max-width: 720px; margin: 0 auto; padding: 140px 2rem 4rem;
}
.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600;
  color: var(--brand); letter-spacing: -0.5px; margin-bottom: 0.5rem;
}
.legal .updated { font-size: 13px; color: var(--text-muted); margin-bottom: 2.5rem; }
.legal h2 {
  font-size: 1.15rem; font-weight: 600; color: var(--brand);
  margin: 2.5rem 0 0.75rem;
}
.legal p { font-size: 0.95rem; color: #374151; line-height: 1.75; margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.25rem; }
.legal li { font-size: 0.95rem; color: #374151; line-height: 1.75; margin-bottom: 0.4rem; }
.legal a { color: var(--brand); }
.legal .back { display: inline-block; margin-bottom: 2rem; font-size: 14px; color: var(--text-muted); text-decoration: none; }
.legal .back:hover { color: var(--brand); }

/* FOOTER */
footer {
  text-align: center; padding: 2.5rem 2rem;
  border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted);
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--brand); }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }

@media (max-width: 600px) {
  nav { padding: 0 1rem; height: 70px; }
  .nav-logo img { height: 42px; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 13px; }
  section { padding: 3rem 1rem; }
  .hero { padding: 90px 1rem 3rem; }
  .legal { padding: 110px 1.25rem 3rem; }
}

@media (max-width: 380px) {
  .nav-logo img { height: 36px; }
  .nav-links { gap: 0.85rem; }
  .nav-links a { font-size: 12px; }
}
