:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface2: #232736;
  --border: #2e3347;
  --text: #e8eaf0;
  --muted: #8b91a8;
  --accent: #22d3ee;
  --accent2: #f97316;
  --green: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;
  --blue: #60a5fa;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  min-height: 100vh;
}

a { color: inherit; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; border: none;
  font-family: var(--font);
  transition: opacity .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.btn:hover { opacity: .85; }
.btn-primary { background: var(--accent); color: #062024; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

.logo-icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }

/* ── Home / marketing ─────────────────────────────────────── */
.home-page { position: relative; max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; overflow: hidden; }
.home-glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.24), rgba(34, 211, 238, 0) 70%);
}
.home-nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 12px 0 40px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--accent); text-decoration: none; }
.home-nav-links { display: flex; align-items: center; gap: 20px; }
.home-nav-links a:not(.btn) { color: var(--muted); font-size: 14px; text-decoration: none; }
.home-nav-links a:not(.btn):hover { color: var(--text); }

.home-hero { position: relative; z-index: 1; text-align: center; max-width: 680px; margin: 0 auto 48px; padding: 40px 0 0; }
.home-badge {
  display: inline-block; padding: 6px 14px; margin-bottom: 20px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.2px;
}
.home-hero h1 { font-size: 46px; font-weight: 800; letter-spacing: -1px; line-height: 1.12; margin-bottom: 18px; }
.home-gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-hero p { color: var(--muted); font-size: 17px; line-height: 1.6; margin-bottom: 32px; }
.home-hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* Apps section */
.home-apps { position: relative; z-index: 1; margin-bottom: 40px; }
.home-section-title {
  text-align: center; font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.home-apps-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.home-app-card { text-align: left; transition: border-color 0.15s, transform 0.15s; position: relative; display: block; text-decoration: none; color: inherit; }
.home-app-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.home-app-icon { width: 44px; height: 44px; object-fit: contain; margin-bottom: 12px; display: block; }
.home-app-icon-placeholder {
  width: 44px; height: 44px; border-radius: 10px; background: var(--surface2);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.home-app-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.home-app-body { color: var(--muted); font-size: 13px; line-height: 1.55; }
.home-app-status {
  position: absolute; top: 20px; right: 20px; font-size: 10px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.status-available { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.status-planned { background: var(--surface2); color: var(--muted); }
.status-testing { background: rgba(96, 165, 250, 0.15); color: var(--muted); }

/* Features */
.home-features { position: relative; z-index: 1; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 40px; }
.home-feature-card { transition: border-color 0.15s, transform 0.15s; }
.home-feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.home-feature-icon { font-size: 22px; margin-bottom: 10px; }
.home-feature-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.home-feature-body { color: var(--muted); font-size: 13px; line-height: 1.55; }
.home-footer { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.home-footer-links { display: flex; gap: 16px; }
.home-footer-links a { color: var(--muted); text-decoration: none; }
.home-footer-links a:hover { color: var(--text); }

/* Legal pages */
.legal-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto 48px; padding: 20px 0 0; color: var(--text); }
.legal-content h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.legal-content h2 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; }
.legal-content p { color: var(--muted); font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
.legal-content ul { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 0 14px; padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }
.legal-content li strong { color: var(--text); }
.legal-content a { color: var(--accent); }
.legal-updated { font-size: 13px !important; margin-bottom: 28px !important; }

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .home-hero h1 { font-size: 32px; }
  .home-hero p { font-size: 15px; }
  .home-app-status { position: static; display: inline-block; margin-bottom: 10px; }
}
