:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2937;
  --danger: #f97373;
  --radius: 0.75rem;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --shadow-hard: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 22px 70px rgba(15, 23, 42, 1);
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 0.9rem;
  background: conic-gradient(
    from 180deg,
    #22d3ee,
    #0ea5e9,
    #22c55e,
    #0ea5e9,
    #22d3ee
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.95),
    0 18px 45px rgba(8, 47, 73, 0.7);
}

.logo-mark span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0b1120;
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.logo-text-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.1s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(to right, #22d3ee, #0ea5e9);
  color: #0b1120;
  box-shadow: 0 18px 45px rgba(8, 47, 73, 0.8);
}

.btn-primary:hover {
  background: linear-gradient(to right, #06b6d4, #0284c7);
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(8, 47, 73, 0.95);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text);
  background: rgba(15, 23, 42, 0.92);
}

.btn-outline:hover {
  border-color: rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 1);
}

/* Hero */

.hero {
  padding: 3rem 1.5rem 1.5rem;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.3rem, 3vw, 2.8rem);
  font-weight: 750;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem;
}

.hero-title span {
  background: linear-gradient(to right, #22d3ee, #0ea5e9, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 35rem;
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.5rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.hero-panel {
  background: radial-gradient(circle at top, #0f172a, #020617);
  border-radius: 1.4rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.18);
  position: relative;
  overflow: hidden;
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-panel-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.16em;
}

.hero-panel-badge {
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.9rem;
}

.hero-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 0.9rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.hero-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
}

.hero-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.pill {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--muted);
}

.hero-risk-meter {
  margin-top: 0.35rem;
}

.hero-risk-meter-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.hero-risk-bar {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #eab308, #f97316, #ef4444);
  overflow: hidden;
  position: relative;
}

.hero-risk-indicator {
  position: absolute;
  left: 22%;
  top: -2px;
  width: 2px;
  height: 11px;
  background: #f9fafb;
  border-radius: 999px;
}

/* Sections */

.section {
  margin-top: 2.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.3rem;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 650;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Services cards (home + services) */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-card {
  background: rgba(15, 23, 42, 0.97);
  border-radius: 1rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.service-card p {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.service-list li {
  margin-bottom: 0.25rem;
}

.service-list li::before {
  content: "• ";
  color: var(--accent);
}

/* Process */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-step {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 0.9rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  font-size: 0.82rem;
  color: var(--muted);
}

.process-step-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.16em;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 1.5rem 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Generic content layouts */

.page-hero {
  padding: 3rem 1.5rem 1.5rem;
}

.page-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.page-title {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}

.page-subtitle {
  font-size: 0.94rem;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.7rem;
}

.card {
  background: rgba(15, 23, 42, 0.97);
  border-radius: 1rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  font-size: 0.86rem;
  color: var(--muted);
}

/* Forms */

.form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.form-group {
  display: grid;
  gap: 0.3rem;
}

.form label {
  font-size: 0.83rem;
  color: var(--muted);
}

.form input,
.form textarea,
.form select {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 0.6rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 0.6rem 0.7rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.form small {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Blog list */

.blog-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.blog-card {
  background: rgba(15, 23, 42, 0.97);
  border-radius: 0.9rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 1rem;
}

.blog-card h2 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.blog-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.blog-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 2.2rem;
  }
  .services-grid,
  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-header-inner {
    padding-inline: 1rem;
  }
  .wrapper {
    padding-inline: 1rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 0.7rem;
  }
  .hero-title {
    font-size: 2rem;
  }
}
