:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #f8fafc;
  --primary: #4f46e5;
  --primary-2: #0ea5e9;
  --success: #16a34a;
  --danger: #dc2626;
  --sidebar: #1d2327;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px min(6vw, 72px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-weight: 700; }
.actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.btn.primary { color: #fff; border-color: var(--primary); background: var(--primary); }
.btn.danger { color: #fff; border-color: var(--danger); background: var(--danger); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 46px;
  align-items: center;
  min-height: 680px;
  padding: 70px min(6vw, 72px);
  background: radial-gradient(circle at 80% 20%, #dbeafe 0, transparent 28%), linear-gradient(180deg, #fff, #f8fafc);
}
.hero h1 { margin: 0; font-size: clamp(38px, 6vw, 76px); line-height: .95; letter-spacing: 0; }
.hero p { color: var(--muted); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mockup {
  min-height: 430px;
  border: 1px solid #c7d2fe;
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(79,70,229,.18);
}
.mockup-bar { height: 42px; border-radius: 12px; background: #eef2ff; margin-bottom: 16px; }
.mockup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mockup-card { min-height: 100px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #f8fafc; }

.section { padding: 72px min(6vw, 72px); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 46px); }
.section p { color: var(--muted); line-height: 1.6; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.05);
}
.card h3 { margin: 0 0 8px; }
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price { font-size: 36px; font-weight: 900; margin: 14px 0; }
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.site-footer { padding: 34px min(6vw, 72px); color: var(--muted); border-top: 1px solid var(--line); background: #f8fafc; }

.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 22px;
  background: linear-gradient(135deg, #eef2ff, #fff);
}
.auth-card { width: min(460px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.12); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; color: var(--muted); font-weight: 800; font-size: 13px; }
.form input, .form select, .form textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }

.app-shell { min-height: 100vh; background: var(--bg); }
.app-topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.app-layout { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 65px); }
.app-sidebar { padding: 18px; color: #c3c4c7; background: var(--sidebar); }
.app-sidebar a { display: block; padding: 11px 12px; border-radius: 6px; }
.app-sidebar a:hover, .app-sidebar a.active { color: #fff; background: #2c3338; }
.app-main { padding: 24px; }
.toolbar { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.notice { padding: 12px 14px; border-left: 4px solid var(--primary); background: #eef2ff; border-radius: 6px; }

.wp-admin { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #f0f0f1; }
.wp-sidebar { background: #1d2327; color: #c3c4c7; padding: 14px 0; }
.wp-logo { color: #fff; font-size: 18px; font-weight: 900; padding: 14px 18px 22px; }
.wp-menu a { display: block; padding: 10px 18px; color: #c3c4c7; }
.wp-menu a:hover, .wp-menu a.active { color: #fff; background: #2271b1; }
.wp-content { min-width: 0; }
.wp-topbar { height: 52px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; background: #fff; border-bottom: 1px solid #dcdcde; }
.wp-main { padding: 24px; }
.wp-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.wp-card { padding: 18px; border: 1px solid #dcdcde; background: #fff; border-radius: 4px; }
.wp-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #c3c4c7; margin-top: 18px; }
.wp-table th, .wp-table td { padding: 12px; border-bottom: 1px solid #dcdcde; text-align: left; }
.editor-layout { display: grid; grid-template-columns: 280px 1fr 320px; gap: 16px; }
.block-list, .editor-preview, .editor-settings { min-height: 520px; padding: 16px; border: 1px solid #dcdcde; background: #fff; }
.block-item { padding: 10px; border: 1px solid #dcdcde; margin-bottom: 8px; border-radius: 4px; cursor: pointer; }

@media (max-width: 900px) {
  .site-header, .nav, .actions { flex-wrap: wrap; }
  .hero, .app-layout, .wp-admin, .editor-layout { grid-template-columns: 1fr; }
  .grid, .plans, .wp-cards { grid-template-columns: 1fr; }
  .app-sidebar, .wp-sidebar { position: static; }
}
