/* LifeOS Landing Page */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --bg: #000000;
  --surface: #060a04;
  --card: #0a120c;
  --border: #1a2c1e;
  --accent: #5ac53a;
  --accent-dim: rgba(90,197,58,.14);
  --accent-glow: rgba(90,197,58,.08);
  --text: #e4f0e6;
  --text-muted: #88b894;
  --text-dim: #507860;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Animated Background ── */
@keyframes gridScroll { 0%{background-position:0 0} 100%{background-position:50px 50px} }
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, var(--border) 0.5px, transparent 0.5px);
  background-size: 50px 50px;
  animation: gridScroll 12s linear infinite;
  opacity: .4;
}
.bg-glow {
  position: fixed; top: -30%; left: -10%; width: 60%; height: 80%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  z-index: 0; pointer-events: none;
  animation: glowDrift 20s ease-in-out infinite alternate;
}
@keyframes glowDrift { from{transform:translate(0,0)} to{transform:translate(15%,10%)} }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ── Top Bar ── */
.landing-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-icon { font-size: 20px; }
.topbar-name {
  font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.01em;
  text-shadow: 0 0 12px var(--accent-glow);
}
.topbar-divider {
  width: 1px; height: 16px; background: var(--border); margin: 0 4px;
}
.topbar-tag {
  font-size: 10px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .1em;
  padding: 2px 8px; border: 1px solid rgba(90,197,58,.3);
  border-radius: 4px; background: var(--accent-dim);
}
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-dim); letter-spacing: .04em;
  text-transform: uppercase; font-weight: 600;
}
@keyframes dotPulse {
  0%,100% { opacity: 1; box-shadow: 0 0 4px var(--accent); }
  50% { opacity: .5; box-shadow: 0 0 8px var(--accent); }
}
.topbar-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}
.topbar-signin {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: color .2s;
}
.topbar-signin:hover { color: var(--accent); text-decoration: none; }
.topbar-os { color: var(--accent); }

/* ── Animated Logo ── */
.logo-mark { position: relative; flex-shrink: 0; }
.logo-svg { display: block; }

@keyframes ringOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ringOrbitRev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes corePulse {
  0%,100% { r: 6; opacity: 1; }
  50% { r: 7.5; opacity: .8; }
}
@keyframes nodeFloat {
  0%,100% { opacity: .7; }
  50% { opacity: 1; }
}
@keyframes hexDraw {
  from { stroke-dashoffset: 300; }
  to { stroke-dashoffset: 0; }
}
@keyframes lineFlash {
  0%,100% { opacity: .2; }
  50% { opacity: .6; }
}

.logo-ring-outer { transform-origin: 50% 50%; animation: ringOrbit 20s linear infinite; }
.logo-ring-inner { transform-origin: 50% 50%; animation: ringOrbitRev 15s linear infinite; }
.logo-hex { stroke-dasharray: 300; animation: hexDraw 2s ease forwards; }
.logo-core { animation: corePulse 3s ease-in-out infinite; }
.logo-node { animation: nodeFloat 3s ease-in-out infinite; }
.logo-node:nth-child(odd) { animation-delay: .5s; }
.logo-node:nth-child(even) { animation-delay: 1s; }
.logo-line { animation: lineFlash 4s ease-in-out infinite; }
.logo-line:nth-child(2n) { animation-delay: .7s; }
.logo-line:nth-child(3n) { animation-delay: 1.4s; }

/* Hero logo — larger version */
.hero-logo-wrap {
  margin-bottom: 20px; display: inline-block; position: relative;
}
.hero-logo-svg { display: block; filter: drop-shadow(0 0 20px var(--accent-glow)); }
.hero-os { color: var(--accent); }

/* ── Hero ── */
.hero {
  text-align: center; padding: 120px 0 80px; position: relative;
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: var(--accent-dim); color: var(--accent); font-size: 13px; font-weight: 600;
  margin-bottom: 24px; letter-spacing: .04em;
  border: 1px solid rgba(90,197,58,.2);
}
@keyframes heroGlow {
  0%,100% { text-shadow: 0 0 30px var(--accent-glow); }
  50% { text-shadow: 0 0 60px var(--accent-glow), 0 0 100px var(--accent-glow); }
}
.hero-title {
  font-size: 64px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: heroGlow 4s ease-in-out infinite;
}
.hero-tagline {
  font-size: 22px; color: var(--accent); font-weight: 600; margin-bottom: 16px;
  letter-spacing: .02em;
}
.hero-sub {
  font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; }
.hero-btn {
  padding: 16px 36px; border-radius: 10px; font-size: 16px; font-weight: 700;
  text-decoration: none; transition: all .25s; display: inline-flex; align-items: center; gap: 8px;
}
.hero-btn-primary {
  background: var(--accent); color: #000;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.hero-btn-primary:hover { box-shadow: 0 0 40px var(--accent-glow); transform: translateY(-2px) scale(1.02); }
.hero-btn-ghost {
  background: none; color: var(--text); border: 1px solid var(--border);
}
.hero-btn-ghost:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }

/* ── Features ── */
.features { padding: 80px 0; }
.section-label {
  text-align: center; font-size: 12px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px;
}
.section-title {
  text-align: center; font-size: 36px; font-weight: 800; margin-bottom: 12px;
  color: var(--text);
}
.section-sub {
  text-align: center; font-size: 16px; color: var(--text-muted); max-width: 500px;
  margin: 0 auto 48px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
@keyframes featureIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
.feature-card {
  background: linear-gradient(135deg, var(--card), var(--surface));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 24px; position: relative; overflow: hidden;
  transition: all .3s ease;
  animation: featureIn .5s ease backwards;
  animation-delay: calc(var(--i, 0) * 80ms);
  box-shadow: 0 4px 20px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0; transition: opacity .3s;
}
.feature-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 20px var(--accent-glow);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── How It Works ── */
.how-it-works { padding: 80px 0; }
.steps {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  margin-top: 48px;
}
.step {
  text-align: center; flex: 1; min-width: 200px; max-width: 280px;
  position: relative;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #000;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: 14px; color: var(--text-muted); }
.step-connector {
  position: absolute; top: 28px; left: calc(50% + 36px); width: calc(100% - 72px);
  height: 2px; background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .3;
}
.step:last-child .step-connector { display: none; }

/* ── Tech Section ── */
.tech-section { padding: 80px 0; }
.tech-card {
  background: linear-gradient(135deg, var(--card), var(--accent-dim));
  border: 1px solid var(--accent); border-radius: 16px;
  padding: 48px; text-align: center; position: relative; overflow: hidden;
}
@keyframes techPulse {
  0%,100% { box-shadow: 0 0 30px var(--accent-glow); }
  50% { box-shadow: 0 0 60px var(--accent-glow); }
}
.tech-card { animation: techPulse 4s ease-in-out infinite; }
.tech-card::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%, var(--accent-glow) 0%, transparent 50%);
  animation: glowDrift 15s linear infinite;
  pointer-events: none; opacity: .4;
}
.tech-title { font-size: 30px; font-weight: 800; margin-bottom: 12px; position: relative; }
.tech-sub { font-size: 16px; color: var(--text-muted); max-width: 500px; margin: 0 auto 28px; position: relative; }
.tech-highlights {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; position: relative;
}
.tech-pill {
  padding: 10px 20px; background: rgba(0,0,0,.4); border: 1px solid var(--border);
  border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--accent);
}

/* ── Footer ── */
.landing-footer {
  padding: 48px 0; border-top: 1px solid var(--border); text-align: center;
}
.footer-cta { margin-bottom: 24px; }
.footer-links { display: flex; gap: 24px; justify-content: center; font-size: 13px; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { margin-top: 16px; font-size: 12px; color: var(--text-dim); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero { padding: 80px 0 50px; }
  .topbar-status { display: none; }
  .topbar-name { font-size: 16px; }
  .hero-title { font-size: 36px; }
  .hero-tagline { font-size: 18px; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-btn { width: 100%; max-width: 300px; justify-content: center; }
  .section-title { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-connector { display: none; }
  .tech-card { padding: 32px 20px; }
  .tech-title { font-size: 24px; }
  .tech-highlights { flex-direction: column; align-items: center; }
  .nav-logo-text { font-size: 18px; }
  .nav-btn { padding: 8px 16px; font-size: 13px; }
}
