/* ==========================================
   SAFEKEEP — Landing Page Theme
   ========================================== */

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

:root {
  --bg: #090910;
  --bg-2: #0e0e1a;
  --bg-3: #13131f;
  --fg: #e8e8f0;
  --fg-dim: #7a7a96;
  --fg-muted: #4a4a6a;
  --cyan: #00e5ff;
  --cyan-dim: #00e5ff40;
  --cyan-glow: #00e5ff20;
  --green: #00ff88;
  --red: #ff3366;
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* dot-grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, #00e5ff18 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #00e5ff12;
  background: #090910e0;
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--fg-dim);
  font-family: var(--font-body);
}

.nav-cta {
  margin-left: 16px;
  padding: 7px 18px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
  font-family: var(--font-head);
}
.nav-cta:hover { opacity: 0.85; }

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 120px 32px 80px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-headline br { display: block; }

.hero-sub {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 440px;
}

/* monitor card */
.monitor {
  background: var(--bg-2);
  border: 1px solid #00e5ff18;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px #00e5ff0a, 0 24px 48px #00000060;
}

.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #00e5ff12;
  background: #0e0e1a;
}

.mh-left { display: flex; flex-direction: column; gap: 2px; }
.mh-label { font-size: 9px; letter-spacing: 0.12em; color: var(--fg-muted); font-family: var(--font-body); text-transform: uppercase; }
.mh-name { font-size: 13px; font-family: var(--font-head); font-weight: 600; color: var(--fg); }

.mh-right { display: flex; align-items: center; gap: 6px; }
.mh-status { width: 7px; height: 7px; border-radius: 50%; }
.mh-status.online { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2.5s ease-in-out infinite; }
.mh-status-text { font-size: 10px; letter-spacing: 0.1em; color: var(--green); font-family: var(--font-body); }

.monitor-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }

.mb-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.mb-label { font-size: 9px; letter-spacing: 0.1em; color: var(--fg-muted); font-family: var(--font-body); text-transform: uppercase; white-space: nowrap; }
.mb-val { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--fg); }
.mb-val.cyan { color: var(--cyan); }
.mb-time { font-size: 10px; color: var(--fg-muted); text-align: right; }
.mb-spark { height: 30px; width: 80px; }
.mb-spark svg { width: 100%; height: 100%; }
.mb-divider { height: 1px; background: #00e5ff10; }

.mb-log { display: flex; flex-direction: column; gap: 7px; }
.log-entry { display: flex; gap: 12px; font-size: 11px; align-items: baseline; }
.log-time { color: var(--fg-muted); font-family: 'Courier New', monospace; flex-shrink: 0; }
.log-msg { color: var(--fg-dim); }
.log-green .log-msg { color: var(--fg); }
.log-dim .log-msg { color: var(--fg-dim); }

.monitor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid #00e5ff12;
  background: #0b0b18;
}

.mf-text { font-size: 10px; color: var(--fg-muted); letter-spacing: 0.06em; }
.mf-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  opacity: 0.5;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ===== STATS ===== */
.stats {
  position: relative;
  z-index: 1;
  padding: 0 32px 80px;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid #00e5ff15;
  border-radius: 10px;
  overflow: hidden;
}

.stat { flex: 1; padding: 28px 32px; text-align: center; }
.stat-sep { width: 1px; height: 60px; background: #00e5ff15; flex-shrink: 0; }
.stat-num { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: var(--cyan); letter-spacing: -1px; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--fg-dim); line-height: 1.4; }

/* ===== HOW IT WORKS ===== */
.howitworks {
  position: relative;
  z-index: 1;
  padding: 0 32px 100px;
}

.hiw-inner { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 11px; letter-spacing: 0.14em; color: var(--cyan); text-transform: uppercase; font-family: var(--font-body); margin-bottom: 16px; }
.section-headline { font-family: var(--font-head); font-size: clamp(28px, 3.5vw, 48px); font-weight: 700; letter-spacing: -1px; line-height: 1.15; color: var(--fg); max-width: 600px; margin-bottom: 56px; }

.hiw-steps { display: flex; align-items: center; gap: 24px; }
.hiw-step { flex: 1; background: var(--bg-2); border: 1px solid #00e5ff15; border-radius: 10px; padding: 28px; }
.step-num { font-family: var(--font-head); font-size: 11px; font-weight: 700; color: var(--cyan); letter-spacing: 0.1em; margin-bottom: 16px; }
.step-body h3 { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--fg); margin-bottom: 10px; letter-spacing: -0.3px; }
.step-body p { font-size: 14px; color: var(--fg-dim); line-height: 1.6; }
.hiw-arrow { flex-shrink: 0; color: var(--cyan); opacity: 0.5; }

/* ===== FEATURES ===== */
.features {
  position: relative;
  z-index: 1;
  padding: 0 32px 100px;
}

.features-inner { max-width: 1200px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #00e5ff10; border-radius: 12px; overflow: hidden; }

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

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

.fc-icon { margin-bottom: 20px; }
.feature-card h3 { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--fg); margin-bottom: 10px; letter-spacing: -0.2px; }
.feature-card p { font-size: 14px; color: var(--fg-dim); line-height: 1.65; }

/* ===== PRINCIPLES ===== */
.principles {
  position: relative;
  z-index: 1;
  padding: 0 32px 100px;
}

.principles-inner { max-width: 1200px; margin: 0 auto; }
.p-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; background: #00e5ff10; border-radius: 10px; overflow: hidden; }
.p-item { background: var(--bg-2); padding: 36px 32px; }
.p-label { font-size: 11px; letter-spacing: 0.1em; color: var(--cyan); text-transform: uppercase; font-family: var(--font-body); margin-bottom: 12px; }
.p-text { font-family: var(--font-head); font-size: 16px; font-weight: 500; color: var(--fg); line-height: 1.5; letter-spacing: -0.2px; }

/* ===== CLOSING ===== */
.closing {
  position: relative;
  z-index: 1;
  padding: 0 32px 120px;
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.closing-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, #00e5ff12 0%, transparent 70%);
  pointer-events: none;
}

.closing-statement {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  color: var(--fg);
  text-align: center;
  line-height: 1.4;
  letter-spacing: -0.5px;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid #00e5ff12;
  padding: 28px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-dim);
}

.footer-note { font-size: 13px; color: var(--fg-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-headline br { display: none; }
  .hiw-steps { flex-direction: column; }
  .hiw-arrow { transform: rotate(90deg); }
  .features-grid { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; }
  .stat-sep { width: 100%; height: 1px; }
  .stat { text-align: left; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .hero { padding: 100px 24px 60px; }
  .monitor-body { padding: 14px; }
}

@media (max-width: 480px) {
  .stats, .howitworks, .features, .principles, .closing { padding-left: 24px; padding-right: 24px; }
  .stat { padding: 20px 24px; }
}