:root {
  --navy-900: #0b1730;
  --navy-800: #0f1e3d;
  --navy-700: #142a52;
  --orange-500: #f5871f;
  --orange-600: #e0740f;
  --ink-900: #101828;
  --ink-600: #475467;
  --ink-400: #98a2b3;
  --surface-0: #ffffff;
  --surface-100: #f5f6fa;
  --surface-200: #eef1f8;
  --line-200: #e4e7ee;
  --success: #12b76a;
  --radius: 5px;
  --shadow-card: 0 4px 24px rgba(16, 24, 40, 0.06);
  --shadow-card-hover: 0 10px 30px rgba(16, 24, 40, 0.10);
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-900);
  background: var(--surface-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

p { text-align: justify; text-justify: inter-word; color: var(--ink-600); margin: 0 0 1rem; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }

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

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange-500); color: #fff; }
.btn-primary:hover { background: var(--orange-600); box-shadow: var(--shadow-card-hover); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-outline-dark { background: transparent; border-color: var(--line-200); color: var(--ink-900); }
.btn-outline-dark:hover { background: var(--surface-100); }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: #fff; flex-shrink: 0;
}
.brand-text .name { font-size: 17px; font-weight: 700; line-height: 1.2; }
.brand-text .tagline { font-size: 11px; color: var(--ink-400); letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.78); font-size: 14.5px; }
.nav-links a.active, .nav-links a:hover { color: var(--orange-500); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  color: #fff;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  font-size: 18px;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 80% 0%, var(--navy-700), var(--navy-900) 60%);
  color: #fff;
  padding: 72px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}
.hero-visual { margin-top: -14px; }
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 135, 31, 0.14);
  color: var(--orange-500);
  border: 1px solid rgba(245, 135, 31, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--orange-500); }
.hero p.lead {
  color: rgba(255,255,255,0.72);
  text-align: left;
  font-size: 16.5px;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.trust-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px 8px; align-items: start; }
.trust-row .trust-label { grid-column: 1 / -1; font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-400); margin-bottom: 4px; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,0.65); text-align: center; }
.trust-item .icon-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
@media (max-width: 560px) {
  .trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 10px; }
  .trust-row .trust-label { grid-column: 1 / -1; }
}

/* Hero visual mock */
.hero-visual { position: relative; min-width: 0; }
.device-frame {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.device-frame .bar { background: var(--surface-200); padding: 10px 14px; display: flex; gap: 6px; }
.device-frame .bar span { width: 9px; height: 9px; border-radius: 50%; background: #d0d5dd; }
.mock-dash { padding: 18px; }
.mock-dash .mock-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--ink-900); }
.mock-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.mock-stat { border-radius: var(--radius); padding: 8px; min-width: 0; overflow: hidden; }
.mock-stat .icon { font-size: 14px; margin-bottom: 4px; }
.mock-stat .num { font-size: 16px; font-weight: 700; }
.mock-stat .lbl { font-size: 10px; opacity: 0.75; }
.mock-stat.blue   { background: #eaf1ff; color: #2563eb; }
.mock-stat.green  { background: #e7faf1; color: #0d9155; }
.mock-stat.red    { background: #fdeaea; color: #d92d20; }
.mock-stat.orange { background: #fff1e6; color: var(--orange-600); }

.mock-panels { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-panel { background: var(--surface-100); border-radius: var(--radius); padding: 10px; min-width: 0; overflow: hidden; }
.mock-panel .panel-title { font-size: 10px; font-weight: 700; color: var(--ink-600); margin-bottom: 6px; }
.mock-donut {
  width: 64px; height: 64px; border-radius: 50%; margin: 4px auto;
  background: conic-gradient(#f5871f 0% 39%, #2563eb 39% 64%, #12b76a 64% 84%, #7c3aed 84% 100%);
  position: relative;
}
.mock-donut::after { content:''; position:absolute; inset:12px; background:#fff; border-radius:50%; }
.mock-legend { display:flex; flex-wrap:wrap; gap: 6px; margin-top: 8px; justify-content: center; }
.mock-legend span { display:inline-flex; align-items:center; gap:4px; font-size: 8.5px; color: var(--ink-600); }
.mock-legend i { width: 6px; height: 6px; border-radius: 50%; display:inline-block; }
.mock-row { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--ink-600); padding: 6px 0; border-bottom: 1px dashed var(--line-200); gap: 8px; min-width: 0; }
.mock-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row > span:last-child { flex-shrink: 0; }
.mock-row .avatar {
  width: 20px; height: 20px; border-radius: 50%; display:inline-flex; align-items:center; justify-content:center;
  font-size: 9px; font-weight: 700; color: #fff; margin-right: 6px;
}

.phone-float {
  position: absolute;
  left: -30px;
  bottom: -30px;
  width: 150px;
  background: var(--navy-900);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.phone-float .screen { background: #fff; border-radius: 14px; padding: 14px 10px; text-align: center; }
.phone-float .check-badge {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(18,183,106,0.12); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 6px auto; font-size: 20px;
}
.phone-float .status { font-size: 11px; font-weight: 700; }
.phone-float .time { font-size: 10px; color: var(--ink-400); }

/* ---------- Section shell ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--surface-100); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  color: var(--orange-500); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.06em; margin-bottom: 10px; display: block;
}
.section-head h2 { font-size: clamp(24px, 3vw, 32px); color: var(--navy-900); }

/* ---------- Feature / method cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-8 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }

.method-card {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.method-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.method-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.method-icon.blue { background: #eaf1ff; color: #2563eb; }
.method-icon.green { background: #e7faf1; color: #12b76a; }
.method-icon.orange { background: #fff1e6; color: var(--orange-500); }
.method-icon.purple { background: #f3edff; color: #7c3aed; }
.method-card h3 { font-size: 16.5px; color: var(--ink-900); margin-bottom: 8px; }
.method-card p { font-size: 14px; margin: 0; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--navy-900);
  border-radius: var(--radius);
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  color: #fff;
}
.stat-item { text-align: center; }
.stat-item .num { font-size: 22px; font-weight: 700; color: var(--orange-500); }
.stat-item .lbl { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ---------- Module icons row ---------- */
.module-item { text-align: center; padding: 18px 10px; }
.module-item .icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--surface-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--navy-800);
}
.module-item .label { font-size: 13.5px; font-weight: 500; color: var(--ink-900); }

/* ---------- Institution banner ---------- */
.institution-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.institution-banner .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,23,48,0.94) 0%, rgba(11,23,48,0.55) 55%, rgba(11,23,48,0.25) 100%);
}
.institution-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.institution-banner .content { position: relative; padding: 48px; max-width: 520px; }
.institution-banner p { color: rgba(255,255,255,0.75); text-align: left; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-pill {
  padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
}

/* ---------- Value props ---------- */
.value-card { text-align: center; padding: 8px; }
.value-card .icon-circle {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.value-card h4 { font-size: 15.5px; margin-bottom: 8px; color: var(--ink-900); }
.value-card p { font-size: 13.5px; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-band p { color: rgba(255,255,255,0.72); text-align: left; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 24px; align-items: start; }
.contact-row { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-icon {
  width: 40px; height: 40px; border-radius: var(--radius); flex-shrink: 0;
  background: #fff1e6; color: var(--orange-500);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.contact-label { font-size: 12px; font-weight: 700; color: var(--ink-400); letter-spacing: 0.04em; margin-bottom: 3px; }

.content-page { max-width: 860px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.65); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr 1.1fr; gap: 32px; margin-bottom: 40px; }
.footer-link-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-grid h5 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 13.5px; }
.footer-grid a:hover { color: var(--orange-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto 24px; }
  .cta-band { grid-template-columns: 1fr; text-align: center; }
  .cta-band p { text-align: center; }
  .institution-banner .content { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline, .nav-actions .btn-primary, .brand-text .tagline { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .institution-banner .content { padding: 32px 24px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .phone-float { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .mock-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-panels { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: none; margin-left: -14px; margin-right: -14px; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy-900);
  padding: 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #fff; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 15px; }
.mobile-nav .close-btn { align-self: flex-end; background: none; border: none; color: #fff; font-size: 22px; margin-bottom: 12px; }

/* ---------- Admin panel ---------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--surface-100); }
.admin-sidebar {
  width: 250px; flex-shrink: 0; background: var(--navy-900); color: #fff;
  padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand { margin-bottom: 24px; padding: 0 6px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: var(--radius);
  color: rgba(255,255,255,0.72); font-size: 14px; margin-bottom: 2px;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(245,135,31,0.14); color: var(--orange-500); }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--line-200);
  padding: 16px 28px; display: flex; align-items: center; justify-content: space-between;
}
.admin-content { padding: 28px; }
.card { background: #fff; border: 1px solid var(--line-200); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card-pad { padding: 22px; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-400); padding: 12px 14px; border-bottom: 1px solid var(--line-200); }
table.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-200); color: var(--ink-900); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-success { background: #e7faf1; color: var(--success); }
.badge-warn { background: #fff1e6; color: var(--orange-500); }
.badge-danger { background: #fdeaea; color: #d92d20; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; color: var(--ink-900); }
.form-control {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-200);
  border-radius: var(--radius); font-family: inherit; font-size: 14px; color: var(--ink-900);
}
.form-control:focus { outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 3px rgba(245,135,31,0.12); }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #e7faf1; color: #067647; }
.alert-danger { background: #fdeaea; color: #b42318; }

@media (max-width: 900px) {
  .admin-sidebar { position: fixed; left: -260px; z-index: 60; transition: left 0.2s ease; }
  .admin-sidebar.open { left: 0; }
  .admin-content { padding: 18px; }
}
