/* 1) Palette / Tokens */
:root {
  --bg:       #f7f9fc;      /* Page background */
  --card:     #ffffff;      /* Card background */
  --muted:    #5b6675;      /* Muted text color */
  --text:     #0b1220;      /* Main text color */
  --line:     #e5eaf1;      /* Border / divider */
  --brand:    #2563eb;      /* Primary brand color */
  --brand-2:  #22c55e;      /* Secondary brand color */
  --shadow:   0 10px 30px rgba(16,24,40,.08); /* Default shadow */
}

/* 2) Base / Reset*/
* { box-sizing: border-box; } /* Include border/padding in element width */

html,
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover { opacity: .9; }

/* 3) Layout utilities */
.container {
  margin-inline: auto;
  width: min(1100px, 92%); /* Max 1100px or 92% of viewport */
}

.grid {
  display: grid;
  gap: 1.25rem;
}

/* 4) Generic UI elements*/
.badge {
  background: #eef2ff;
  border: 1px solid #dbe4ff;
  border-radius: 999px; /* Fully rounded pill */
  color: #334155;
  font-size: .8rem;
  padding: .25rem .6rem;
}

.btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: #fff;
  display: inline-block;
  font-weight: 700;
  padding: .7rem 1rem;
}
.btn.ghost {
  background: #eef2ff;
  border: 1px solid #dbe4ff;
  color: #1e293b;
}

/* 5) Site header / navigation */
.site-header {
  backdrop-filter: blur(10px); /* Glassy effect */
  background: rgba(255,255,255,.7);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: .9rem 0;
}
.nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  border-radius: 10px;
  padding: .4rem .7rem;
}
.nav a[aria-current="page"] {
  background: #eef2ff;
  border: 1px solid #dbe4ff;
}

.brand {
  align-items: center;
  display: flex;
  gap: .6rem;
  font-weight: 800;
}
.brand-logo {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 9px;
  color: #fff;
  display: grid;
  font-weight: 900;
  height: 34px;
  place-items: center; /* Center logo text/icon */
  width: 34px;
}

/* 6) Hero section */
.hero {
  padding: 4rem 0 2.5rem;
}
.hero .wrap {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.15fr .85fr; /* Text + image */
}
.hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.15;
  margin: .2rem 0;
}
.hero p {
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.hero .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}
.hero .portrait {
  aspect-ratio: 1/1;
  border: 8px solid #ffffff;
  border-radius: 50%; /* Circle portrait */
  box-shadow: 0 12px 30px rgba(2,6,23,.08);
  margin-inline: auto;
  max-width: 75vw;
  overflow: hidden;
  width: 260px;
}
.hero .portrait img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* 7) Sections */
.section {
  padding: 2.6rem 0;
}
.section h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 .6rem;
}
.lead { color: var(--muted); }

/* 8) Cards & Lists */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.card h3 {
  margin: .2rem 0 .4rem;
}

.kpis {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}
.kpi {
  background: #f6f9ff;
  border: 1px solid #e6edff;
  border-radius: 14px;
  padding: .8rem;
  text-align: center;
}
.kpi .num {
  font-size: 1.4rem;
  font-weight: 900;
}

/* 9) Forms */
form .row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr; /* Two-column layout */
}
form .row-1 { grid-template-columns: 1fr; } /* Single column */

input,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: .8rem;
}

label { font-weight: 600; }

/* 10) Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: #475569;
  padding: 2rem 0;
}
.small {
  color: #64748b;
  font-size: .9rem;
}

/* 11) Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  form .row { grid-template-columns: 1fr; }
}
