:root {
  --bg: #07090f;
  --bg-soft: #0f1420;
  --card: rgba(17, 24, 39, 0.9);
  --line: rgba(255,255,255,0.09);
  --text: #f5f7fb;
  --muted: #a7b0c0;
  --primary: #ffffff;
  --primary-text: #07090f;
  --accent: #7c8cff;
  --danger: #ff6b6b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(124,140,255,0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.08), transparent 25%),
    var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7,9,15,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { font-size: 1.2rem; font-weight: 800; }
.nav { display: flex; gap: 20px; color: var(--muted); }
.hero { padding: 88px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
.pill, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); text-transform: uppercase; letter-spacing: .22em; font-size: .75rem;
}
.hero h1 { font-size: clamp(2.7rem, 5vw, 5rem); line-height: 1.02; margin: 16px 0; }
.hero-text { color: var(--muted); font-size: 1.08rem; line-height: 1.8; max-width: 760px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card, .project-card, .contact-box, .admin-shell, .stat-box, .form-card, .flash {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.hero-card { padding: 26px; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric-box { padding: 18px; background: rgba(255,255,255,0.03); border-radius: 20px; border: 1px solid var(--line); }
.metric-box span { color: var(--muted); font-size: .9rem; }
.metric-box strong { display: block; font-size: 2rem; margin-top: 10px; }
.security-box { margin-top: 14px; padding: 18px; background: rgba(255,255,255,0.03); border-radius: 20px; border: 1px solid var(--line); }
.section { padding: 38px 0 72px; }
.section.alt { background: rgba(255,255,255,0.02); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 22px; }
.section h2 { font-size: clamp(2rem, 3vw, 3.2rem); margin: 12px 0; }
.section p, .muted { color: var(--muted); }
.search-input, .input, .textarea, .select {
  width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); color: var(--text); outline: none;
}
.textarea { min-height: 140px; resize: vertical; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { overflow: hidden; }
.project-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.project-content { padding: 18px; }
.title-row { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.title-row h3 { margin: 0 0 6px; font-size: 1.15rem; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tag {
  display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: #dce3f3; font-size: .8rem;
}
.tag.featured { background: #fff; color: #05070d; }
.project-actions, .admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 18px; border: 1px solid transparent; font-weight: 700; cursor: pointer;
}
.btn.small { padding: 10px 14px; font-size: .92rem; }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--text); }
.btn-danger { background: var(--danger); color: white; }
.contact-box { padding: 26px; display: grid; grid-template-columns: 1fr 0.9fr; gap: 26px; }
.contact-list { display: grid; gap: 12px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.hidden { display: none !important; }
.flash { padding: 14px 18px; margin-bottom: 18px; }
.flash.success { border-color: rgba(52, 211, 153, 0.35); }
.flash.error { border-color: rgba(248, 113, 113, 0.35); }
.admin-page { background: #090c14; }
.admin-shell { padding: 24px; }
.admin-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; }
.admin-list { display: grid; gap: 14px; }
.admin-item { padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(520px, 100%); padding: 26px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-box { padding: 18px; }
.stat-box span { display: block; color: var(--muted); }
.stat-box strong { display: block; margin-top: 10px; font-size: 1.8rem; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 22px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); }
@media (max-width: 980px) {
  .hero-grid, .contact-box, .admin-grid, .project-grid, .stats-row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding-top: 64px; }
}
