/* ── Illumin-IT — app.css ─────────────────────────────────── */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #1b2733;
  --muted: #5b6878;
  --primary: #0c223d;
  --primary-dark: #081a30;
  --accent: #f04e23;
  --accent-bright: #ff6a3d;
  --line: #e2e7ee;
  --ok: #187a45;
  --err: #b3261e;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 84px; max-width: none; padding: 0 28px; }
.brand { font-size: 1.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.brand span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: var(--ink); font-weight: 500; }
.main-nav a:hover { color: var(--primary); }
.who { color: var(--muted); font-size: .9rem; }

/* buttons */
.btn { display: inline-block; background: var(--primary); color: #fff !important; padding: 10px 22px; border-radius: 8px; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--primary-dark); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-outline { background: transparent; color: var(--primary) !important; border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff !important; }
.btn-accent { background: var(--accent); color: #fff !important; } .btn-accent:hover { background: var(--accent-bright); }
.btn-danger { background: var(--err); }

/* hero */
.hero { background: linear-gradient(135deg, #060f1d, var(--primary) 55%, #1d3f66); color: #fff; padding: 90px 0; }
.hero h1 { font-size: 2.8rem; line-height: 1.15; max-width: 640px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { margin: 18px 0 30px; max-width: 560px; font-size: 1.15rem; color: #cfd9e6; }
.hero .btn-accent { margin-right: 10px; }

/* sections */
.section { padding: 64px 0; }
.section h2 { font-size: 1.9rem; margin-bottom: 8px; }
.section .sub { color: var(--muted); margin-bottom: 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card .cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); font-weight: 700; }
.card p { color: var(--muted); font-size: .93rem; flex: 1; }
.card .meta { font-size: .85rem; color: var(--muted); margin: 10px 0; }
.badge { display: inline-block; background: #edf1f6; color: var(--primary); border-radius: 20px; padding: 2px 12px; font-size: .78rem; font-weight: 600; }
.badge.ok { background: #e5f5ec; color: var(--ok); }
.badge.warn { background: #fdf1dc; color: #8a5b00; }
.badge.err { background: #fbe9e7; color: var(--err); }

/* features strip */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature { text-align: center; padding: 26px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature .ico { font-size: 1.9rem; }
.feature h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .9rem; }

/* forms */
form.stack label { display: block; font-weight: 600; margin: 14px 0 4px; font-size: .92rem; }
form.stack input, form.stack select, form.stack textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 1rem; background: #fff; font-family: inherit;
}
form.stack input:focus, form.stack select:focus, form.stack textarea:focus { outline: none; border-color: var(--primary); }
.form-card { max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin: 40px auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-actions { margin-top: 22px; }

/* tables */
table.grid { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.grid th, table.grid td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
table.grid th { background: #eef2f7; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .4px; }
table.grid tr:hover td { background: #fafbff; }
table.grid .num { text-align: right; }

/* portal */
.portal-main { padding: 34px 20px 60px; }
.portal-main h1 { font-size: 1.6rem; margin-bottom: 20px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 34px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .n { font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.stat .l { color: var(--muted); font-size: .88rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }

/* flash */
.flash { padding: 12px 18px; border-radius: 8px; margin: 14px 0; font-weight: 500; }
.flash-success { background: #e5f5ec; color: var(--ok); }
.flash-error { background: #fbe9e7; color: var(--err); }

/* footer */
.site-footer { background: #081a30; color: #b9bdd4; margin-top: 60px; padding: 0 0 20px; position: relative; }
.site-footer::before { content: ''; display: block; height: 14px; margin-bottom: 44px;
  background: repeating-conic-gradient(#0c223d 0% 25%, #f04e23 0% 50%) 0 0 / 28px 14px; opacity: .85; }
.footer-emblem { display: flex; justify-content: center; margin: 26px 0 6px; }
.footer-emblem svg { opacity: .55; transition: opacity .4s; }
.footer-emblem svg:hover { opacity: 1; }
.copyright { text-align: center; }
.copyright .motto { color: #f04e23; letter-spacing: 3px; font-variant: small-caps; }
.site-footer h4 { color: var(--accent-bright); margin-bottom: 10px; }
.site-footer a { color: #b9bdd4; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; padding-bottom: 26px; border-bottom: 1px solid #1d3a5c; }
.copyright { padding-top: 16px; font-size: .85rem; color: #7d829e; }

@media (max-width: 720px) {
  .hero h1 { font-size: 2rem; }
  .nav-row { flex-direction: column; height: auto; padding: 12px 0; gap: 8px; }
}

/* brand logo */
.brand img { height: 64px; display: block; }
.site-footer .foot-logo { height: 72px; margin-bottom: 10px; filter: drop-shadow(0 0 1px rgba(0,0,0,.4)); }

/* sticky table header */
table.sticky-head thead th, table.sticky-head tr:first-child th { position: sticky; top: 0; z-index: 5; }
table.sticky-head th { box-shadow: inset 0 -1px 0 var(--line); }
