:root {
  --ink: #0f1115;
  --muted: #6f7782;
  --line: #21252c;
  --panel: #141821;
  --panel-2: #0f1218;
  --accent: #25c2a0;
  --accent-2: #8bf0d1;
  --cream: #f5f1e9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", "Neue Haas Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

/* Landing */
.landing-body {
  background: #0b0d12;
  color: #e7ecf2;
}

.landing-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 400px at 10% 20%, rgba(37, 194, 160, 0.2), transparent 60%),
    radial-gradient(600px 300px at 80% 10%, rgba(120, 120, 255, 0.15), transparent 60%),
    linear-gradient(180deg, #0b0d12 0%, #0f1218 100%);
  z-index: -1;
}

.landing-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 18px;
}

.nav { display: flex; gap: 16px; color: #b3bcc7; }
.nav a:hover { color: #ffffff; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  font-weight: 600;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d0d7e2;
}

.landing-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: center;
  padding: 40px 0 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: #8bf0d1;
}

.hero h1 {
  font-size: 48px;
  margin: 12px 0;
}

.lead {
  color: #b7c0cc;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 12px; margin: 20px 0; }

.hero-note { color: #8a93a0; font-size: 13px; }

.hero-card {
  background: rgba(20, 24, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.card-title { color: #9ca6b4; margin-bottom: 18px; }

.metric {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.metric strong { color: #ffffff; }

.pulse {
  position: absolute;
  inset: -40% 40% 40% -40%;
  background: radial-gradient(circle, rgba(37, 194, 160, 0.3), transparent 60%);
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.section { padding: 40px 0; }
.section h2 { margin-bottom: 16px; }

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature {
  background: rgba(20, 24, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px;
  color: #c1cad5;
}

.flow {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.flow-step {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  color: #c1cad5;
}

.flow-step span {
  display: inline-block;
  font-weight: 700;
  color: #8bf0d1;
  margin-bottom: 6px;
}

.security {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cta-strip {
  margin-top: 40px;
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(37, 194, 160, 0.15), rgba(139, 240, 209, 0.08));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.landing-footer {
  text-align: center;
  padding: 24px;
  color: #7b8592;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
  .landing-top { grid-template-columns: 1fr; justify-items: start; }
  .hero h1 { font-size: 34px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* App (Linear-inspired) */
.app-body {
  background: #0b0d12;
  color: #e7ecf2;
}

.app-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 380px at 10% 20%, rgba(37, 194, 160, 0.16), transparent 60%),
    radial-gradient(600px 300px at 85% 10%, rgba(99, 102, 241, 0.12), transparent 60%),
    linear-gradient(180deg, #0b0d12 0%, #0f1218 100%);
  z-index: -1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 18, 24, 0.7);
  backdrop-filter: blur(10px);
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

.shell {
  max-width: 1100px;
  margin: 28px auto 80px;
  padding: 0 20px;
}

.panel {
  background: rgba(20, 24, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hidden { display: none; }

h1, h2 { margin: 0 0 12px; }

.muted { color: #a0a9b6; }

.tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #c7d0dc;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  border-color: transparent;
}

label { display: block; margin-top: 12px; font-size: 14px; }

input, select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #10141b;
  color: #e7ecf2;
}

button {
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #10141b;
  color: #e7ecf2;
  padding: 10px 14px;
}

button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  border-color: transparent;
}

button.ghost {
  background: transparent;
  color: #c7d0dc;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(15, 18, 24, 0.7);
}

.metric-num {
  font-size: 22px;
  margin-top: 10px;
  color: #ffffff;
}

.admin-section {
  margin-top: 28px;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.list-item {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(15, 18, 24, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 10px 14px;
  background: #0f1115;
  color: white;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 720px) {
  .top { padding: 14px 16px; }
  .shell { margin-top: 18px; }
}
