/* === Base === */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #111827;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.1);
  --accent-alt: #38bdf8;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(circle at top left, #111827, #020617 55%, #000 100%);
}

/* Containers & layout */

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  padding: 4rem 0;
  background: radial-gradient(circle at top right, #020617, #020617 60%, #000 100%);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  max-width: 640px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 40%;
  background: radial-gradient(circle at top, var(--accent-alt), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #022c22;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 600;
  font-size: 0.98rem;
}

.logo-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: all 0.16s ease-out;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
}

.main-nav a.active {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.nav-cta {
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Hero */

.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 3vw + 1rem, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-points span {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.6);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #022c22;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(15, 118, 110, 0.55);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text);
  background: rgba(15, 23, 42, 0.5);
}

.btn-outline:hover {
  border-color: var(--accent-alt);
  color: var(--accent-alt);
}

.btn.small {
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
}

/* Hero visual cards */

.hero-visual {
  display: grid;
  gap: 1rem;
}

.card-metric {
  background: radial-gradient(circle at top, #1f2937, #020617);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
}

.card-metric h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.metric-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 600;
}

.metric-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metric-trend {
  margin-top: 0.4rem;
  font-size: 0.8rem;
}

.metric-trend.up {
  color: #4ade80;
}

/* Grid helpers */

.grid {
  display: grid;
  gap: 1.8rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.2rem;
}

.approach-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

.about-grid {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2rem;
  margin-top: 1.8rem;
}

/* Cards */

.card {
  background: radial-gradient(circle at top left, #020617, #020617 50%, #000 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.4);
}

.card h3 {
  margin-top: 0;
}

.card-list {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-list li + li {
  margin-top: 0.25rem;
}

/* Values & steps */

.steps {
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.steps li + li {
  margin-top: 0.4rem;
}

.values-list {
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.values-list li + li {
  margin-top: 0.4rem;
}

/* About */

.about-highlight {
  background: radial-gradient(circle at top, #020617, #020617 55%, #000 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.3rem 1.4rem;
  font-size: 0.9rem;
}

.about-highlight .label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.contact-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-form {
  max-width: 480px;
}

.contact-form label {
  display: block;
  font-size: 0.83rem;
  margin-bottom: 0.75rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--accent-alt);
  border-color: var(--accent-alt);
}

.form-note,
.form-footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.5rem 0 1.8rem;
  background: #020617;
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-sub {
  margin-top: 0.25rem;
}

/* Dashboard layout */

.dashboard-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  background: radial-gradient(circle at top left, #020617, #000 60%, #000 100%);
}

.dash-sidebar {
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 1.4rem;
  background: radial-gradient(circle at top, #020617, #020617 60%, #000 100%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dash-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.dash-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.16s ease-out, color 0.16s ease-out;
}

.dash-nav a:hover {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
}

.dash-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.dash-sidebar-foot {
  margin-top: auto;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.dash-main {
  padding: 1.5rem 1.6rem 2rem;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dash-header-actions select {
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 0.82rem;
}

.dash-grid-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card .metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.metric-card .metric-value {
  font-size: 1.8rem;
  margin: 0.35rem 0;
}

.metric-card .metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metric-card .metric-sub.up {
  color: #4ade80;
}

.dash-grid-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: 1.3rem;
}

/* Charts & tables */

.chart-card {
  grid-column: 1 / -1;
}

.chart-placeholder {
  border-radius: 0.9rem;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  padding: 1.2rem;
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.chart-desc {
  margin-top: 0.4rem;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.simple-table th,
.simple-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.simple-table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
}

/* Status pills & badges */

.status-pill {
  display: inline-flex;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid transparent;
}

.status-pill.ok {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.5);
}

.status-pill.warn {
  background: rgba(234, 179, 8, 0.1);
  color: #fbbf24;
  border-color: rgba(234, 179, 8, 0.45);
}

.status-pill.info {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.45);
}

.alerts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.alerts-list li + li {
  margin-top: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  margin-right: 0.4rem;
}

.badge-warn {
  background: rgba(234, 179, 8, 0.1);
  color: #facc15;
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

.badge-ok {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}

.notes-list {
  padding-left: 1.1rem;
  font-size: 0.85rem;
}

/* Utilities */

.small {
  font-size: 0.78rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .dash-sidebar-foot {
    display: none;
  }

  .dash-main {
    padding-top: 1rem;
  }

  .dash-grid-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none; /* Keep it simple for now – could be turned into mobile menu later */
  }

  .header-inner {
    justify-content: center;
  }

  .hero {
    padding-top: 2.5rem;
  }
}
