:root {
  --bg: #f4f6fb;
  --sidebar: #1e2233;
  --sidebar-active: #2f3550;
  --accent: #4f6ef7;
  --accent-dark: #3a55d6;
  --text: #1c1e26;
  --muted: #7a8194;
  --card: #ffffff;
  --border: #e6e9f0;
  --ok: #1a9d54;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout with sidebar */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; background: var(--sidebar); color: #cfd4e4;
  display: flex; flex-direction: column; padding: 24px 0;
}
.sidebar .brand { font-size: 18px; font-weight: 700; color: #fff; padding: 0 24px 20px; }
.sidebar nav a {
  display: block; color: #cfd4e4; padding: 12px 24px; font-size: 15px;
}
.sidebar nav a:hover { background: var(--sidebar-active); text-decoration: none; color: #fff; }
.sidebar nav a.active { background: var(--sidebar-active); color: #fff; border-left: 3px solid var(--accent); }
.sidebar .spacer { flex: 1; }
.sidebar form { padding: 0 24px; }
.content { flex: 1; padding: 32px 40px; }
h1 { margin: 0 0 6px; font-size: 26px; }
.subtitle { color: var(--muted); margin: 0 0 28px; }

/* Cards */
.cards { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 26px; min-width: 180px; box-shadow: 0 1px 3px rgba(20,30,60,.04);
}
.card .label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.card .value { font-size: 30px; font-weight: 700; margin-top: 6px; }

/* Tables */
table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,30,60,.04); }
th, td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
th { background: #eef1f7; color: #47506a; font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Forms & buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  padding: 11px 20px; border-radius: 9px; font-size: 15px; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: #cfd4e4; border: 1px solid #3a4059; }
.btn.ghost:hover { background: var(--sidebar-active); }
input[type=text], input[type=email], input[type=password] {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 15px; margin-top: 6px;
}
label { font-size: 14px; color: #47506a; display: block; margin-top: 16px; }

/* Auth card */
.auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 36px 40px; width: 100%; max-width: 400px; box-shadow: 0 6px 24px rgba(20,30,60,.08); }
.auth-card h1 { font-size: 22px; }
.error { background: #fdecec; color: #a11; border: 1px solid #f3c3c3; padding: 10px 14px; border-radius: 9px; margin: 14px 0; font-size: 14px; }
.muted { color: var(--muted); }
code { background: #eef1f7; padding: 2px 7px; border-radius: 6px; font-size: 13px; word-break: break-all; }
.copy { cursor: pointer; }
.desc { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.material { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-bottom: 18px; }

/* Landing */
body.landing { background: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 11px; font-weight: 600; }
.btn.ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn.ghost-dark:hover { background: rgba(255,255,255,.12); }

.lp-nav { border-bottom: 1px solid var(--border); }
.lp-nav-inner { max-width: 1080px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.lp-brand { font-size: 20px; font-weight: 800; color: var(--sidebar); }
.lp-nav-links { display: flex; align-items: center; gap: 24px; }
.lp-nav-links a { color: var(--text); font-size: 15px; }
.lp-nav-links a.btn { color: #fff; }

.lp-hero { background: linear-gradient(135deg, #2f3550 0%, #4f6ef7 100%); color: #fff; }
.lp-hero-inner { max-width: 820px; margin: 0 auto; padding: 88px 24px 96px; text-align: center; }
.lp-badge { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 7px 16px; border-radius: 30px; font-size: 14px; margin-bottom: 26px; }
.lp-hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 22px; color: #fff; }
.lp-lead { font-size: 18px; line-height: 1.6; color: #e4e8f7; margin: 0 auto 34px; max-width: 640px; }
.lp-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.lp-section { max-width: 1080px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.lp-section h2 { font-size: 32px; margin: 0 0 10px; }
.lp-section-sub { color: var(--muted); font-size: 17px; margin: 0 0 44px; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.lp-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 34px 30px; text-align: left; box-shadow: 0 2px 10px rgba(20,30,60,.05); transition: transform .15s, box-shadow .15s; }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(20,30,60,.10); }
.lp-card-icon { font-size: 40px; margin-bottom: 14px; }
.lp-card h3 { font-size: 21px; margin: 0 0 10px; }
.lp-card p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 14px; }
.lp-card-link { font-weight: 600; }

.lp-how { background: var(--bg); max-width: none; }
.lp-steps { max-width: 1080px; margin: 44px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.lp-step { text-align: left; }
.lp-step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.lp-step h4 { font-size: 19px; margin: 0 0 8px; }
.lp-step p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }

.lp-final { text-align: center; padding: 84px 24px; }
.lp-final h2 { font-size: 30px; margin: 0 0 12px; }
.lp-final p { color: var(--muted); font-size: 17px; margin: 0 0 30px; }

.lp-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; text-align: center; padding: 28px 24px; }

@media (max-width: 640px) {
  .lp-hero h1 { font-size: 32px; }
  .lp-nav-links { gap: 14px; }
}
