@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --navy: #fafafb;
  --navy-soft: #f2f2f6;
  --slate: #f0f0f5;
  --slate-light: #dcdce6;
  --blue: #6c5ce7;
  --blue-light: #5b4fd6;
  --gradient-brand: linear-gradient(135deg, #2f8fff, #7c3aed);
  --text: #14141c;
  --text-muted: #55536b;
  --text-faint: #8b899e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.mono-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
}

a { color: var(--blue-light); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.brand-mark-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: #FFFFFF;
  padding: 2px;
  box-sizing: border-box;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

/* ---------- Hero with vault-dial signature ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}
.dial-ring {
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 2px solid rgba(108, 92, 231, 0.25);
  pointer-events: none;
}
.dial-ring::before {
  content: '';
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  border: 1px solid rgba(108, 92, 231, 0.18);
}
.dial-ticks {
  position: absolute;
  inset: 0;
}
.dial-ticks span {
  position: absolute;
  width: 2px;
  height: 16px;
  background: rgba(108, 92, 231, 0.3);
  left: 50%;
  top: 0;
  transform-origin: 1px 320px;
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 20px 0 34px;
}
.pill-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--slate);
  border: 1px solid var(--slate-light);
  color: var(--text-muted);
}

/* ---------- Feature grid ---------- */
.section { padding: 80px 0; }
.section-head { max-width: 560px; margin-bottom: 48px; }
.section-head h2 { font-size: 1.9rem; }
.section-head p { color: var(--text-muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--slate);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  padding: 28px;
}
.feature-card .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--blue-light);
  margin-bottom: 14px;
  display: block;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 40px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; font-size: 0.88rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--text-faint); font-size: 0.85rem; }

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .dial-ring { right: -300px; opacity: 0.6; }
  .hero { padding: 80px 0 60px; }
}

/* ---------- App4Me hub: app-dock signature + apps grid ---------- */
.app-dock {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(3, 84px);
  gap: 16px;
  opacity: 0.9;
}
.dock-tile {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 12px 30px rgba(20,20,28,0.12);
}
.dock-tile.filled { background: linear-gradient(160deg, #6c5ce7, #2f8fff); }
.dock-tile-img { padding: 12px; background: #FFFFFF !important; }
.dock-tile-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.dock-tile.empty {
  background: transparent;
  border: 2px dashed rgba(148, 163, 184, 0.25);
  color: rgba(148, 163, 184, 0.4);
  box-shadow: none;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.app-card {
  background: var(--slate);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 18px;
  padding: 30px;
  text-decoration: none;
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.app-card:hover { transform: translateY(-3px); border-color: rgba(108,92,231,0.5); }
.app-card .app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.app-card .app-icon-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 18px;
  display: block;
}
.app-card h3 { color: var(--text); font-size: 1.15rem; margin-bottom: 8px; }
.app-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 14px; }
.app-card .status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.app-card.soon {
  border-style: dashed;
  opacity: 0.6;
  pointer-events: none;
}

.idea-cta {
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(124,58,237,0.10));
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}
.idea-cta h2 { font-size: 1.6rem; margin-bottom: 10px; }
.idea-cta p { color: var(--text-muted); max-width: 460px; margin: 0 auto 26px; }
.idea-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.idea-input, .idea-textarea {
  background: var(--navy);
  border: 1px solid var(--slate-light);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  resize: vertical;
}
.idea-input::placeholder, .idea-textarea::placeholder { color: var(--text-faint); }
.idea-form button.btn {
  display: inline-block;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 28px;
  border-radius: 10px;
}
.idea-cta a.btn {
  display: inline-block;
  background: var(--gradient-brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 28px;
  border-radius: 10px;
}

@media (max-width: 760px) {
  .app-dock { display: none; }
  .apps-grid { grid-template-columns: 1fr; }
}

.legal-page { padding: 64px 0 100px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal-updated { color: var(--text-faint); font-size: 0.88rem; margin-bottom: 48px; }
.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 42px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.legal-page h2:first-of-type { border-top: none; margin-top: 0; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.98rem; }
.legal-page ul { padding-left: 20px; }
.legal-page strong { color: var(--text); }
.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}
.back-link:hover { color: var(--text); }
