/* LifeOS — Design System */

:root {
  --bg:       #000000;
  --bg-2:     #0a0a0a;
  --bg-3:     #111111;
  --border:   rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text:     #f5f5f7;
  --text-2:   rgba(245, 245, 247, 0.55);
  --text-3:   rgba(245, 245, 247, 0.35);
  --accent:   #6366f1;
  --accent-h: #818cf8;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --radius:   12px;
  --radius-lg:20px;
  --max-w:    1120px;
  --font:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover { background: var(--accent-h); transform: translateY(-1px); }

/* ── Sections ─────────────────────────────────────────────────────────────────── */

section { padding: 96px 0; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-h);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 620px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────────── */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 32px;
}

.hero-badge span {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 580px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 16px;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--text);
  transform: translateY(-2px);
}

/* ── What is LifeOS ─────────────────────────────────────────────────────────── */

#what {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.what-body p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
}

.what-body p:last-child { margin-bottom: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-3);
  padding: 28px 24px;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-2);
}

/* ── Modules ─────────────────────────────────────────────────────────────────── */

#modules { background: var(--bg); }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}

.module-card {
  background: var(--bg-2);
  padding: 36px 32px;
  transition: background 0.2s;
}

.module-card:hover { background: var(--bg-3); }

.module-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.module-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.module-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.module-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-h);
}

/* ── Beta ─────────────────────────────────────────────────────────────────────── */

#beta {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

#beta .section-sub { margin: 0 auto 40px; }

.beta-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.beta-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  height: 52px;
  padding: 0 18px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.beta-form input[type="email"]::placeholder { color: var(--text-3); }
.beta-form input[type="email"]:focus { border-color: var(--accent); }

.beta-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
}

/* ── Contact ─────────────────────────────────────────────────────────────────── */

#contact { background: var(--bg); }

.contact-card {
  max-width: 560px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.contact-card p {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 24px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-h);
  padding: 12px 20px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.contact-email:hover {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.06);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-2); }

/* ── Legal pages ─────────────────────────────────────────────────────────────── */

.legal-page {
  padding-top: 120px;
  padding-bottom: 96px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-page a { color: var(--accent-h); }
.legal-page a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  section { padding: 72px 0; }

  .what-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .legal-page {
    padding: 0 24px;
    padding-top: 100px;
    padding-bottom: 72px;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .modules-grid {
    border-radius: var(--radius);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
