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

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --primary: #0f3460;
  --primary-hover: #16213e;
  --text: #1a1a2e;
  --text-muted: #5a6178;
  --border: #e2e5ea;
  --accent: #e94560;
  --green: #27ae60;
  --red: #c0392b;
  --radius: 12px;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--primary-hover); text-decoration: none; }

/* --- Features --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Stats --- */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
  margin-bottom: 3rem;
}
.stat { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* --- Card (login, dashboard) --- */
.page-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 2rem;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
}
.card h2 { text-align: center; margin-bottom: 0.5rem; }
.card .subtitle { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }

label { display: block; font-weight: 500; margin-bottom: 0.5rem; }
input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
input[type="email"]:focus { border-color: var(--primary); }

.btn-full { width: 100%; margin-top: 1rem; text-align: center; }

.msg { margin-top: 1rem; font-size: 0.9rem; text-align: center; }
.msg.error { color: var(--red); }
.msg.success { color: var(--green); }

/* --- Dashboard --- */
.dashboard-card {
  max-width: 560px;
}
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.badge-active { background: #d4edda; color: #155724; }
.badge-trial { background: #d1ecf1; color: #0c5460; }
.badge-inactive { background: #f8d7da; color: #721c24; }
.badge-expired { background: #f8d7da; color: #721c24; }

.status-message {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.mcp-config {
  background: #f4f6f8;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.mcp-config h4 { font-size: 0.95rem; margin-bottom: 0.75rem; }
.mcp-config pre {
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  overflow-x: auto;
  line-height: 1.5;
}
.mcp-config code { font-family: 'SF Mono', 'Fira Code', monospace; }

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
.footer a { color: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .stats { gap: 1.5rem; }
  .nav { padding: 1rem; }
}
