*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-alt: #020617;
  --surface: #020617;
  --surface-elevated: #020617;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --primary: #22d3ee;
  --primary-soft: rgba(34, 211, 238, 0.12);
  --accent: #38bdf8;
  --text-main: #e5e7eb;
  --text-muted: #94a3b8;
  --danger: #f97373;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --nav-height: 72px;
}

body.light {
  --bg: #f3f4f6;
  --bg-alt: #e5e7eb;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --text-main: #020617;
  --text-muted: #64748b;
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.12);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020617 45%, #020617 100%);
  color: var(--text-main);
}

body {
  min-height: 100vh;
}

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

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.88));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: radial-gradient(circle at top, #22d3ee, #0f172a 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #0b1120;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 14px 28px rgba(8, 47, 73, 0.85);
}

.brand-mark.small {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Nav links */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #22d3ee, #38bdf8);
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Buttons */

.btn-primary,
.btn-ghost,
.btn-outline {
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  color: #0b1120;
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.7);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(8, 47, 73, 0.95);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: #22d3ee;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), rgba(15, 23, 42, 0.95));
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
}

.btn-outline:hover {
  color: var(--text-main);
  border-color: #22d3ee;
}

.btn-outline.small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.full-width {
  width: 100%;
}

/* Nav toggle (mobile) */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 16px;
  background: #e5e7eb;
  border-radius: 999px;
}

/* Hero */

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.75rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #38bdf8;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.4rem, 3vw, 3rem);
  line-height: 1.09;
  margin: 0 0 0.85rem;
}

.hero h1 .accent {
  display: block;
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-body {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.7rem 0 1.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Hero panel */

.hero-panel {
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.12), rgba(15, 23, 42, 1));
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot.green {
  background: #22c55e;
}

.dot.amber {
  background: #facc15;
}

.dot.red {
  background: #f97373;
}

.panel-title {
  margin-left: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.panel-body {
  padding: 1.1rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.metric-value {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.1rem;
}

.metric-bar {
  position: relative;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.metric-bar span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #22d3ee);
}

.metric-bar.risk span {
  background: linear-gradient(90deg, #f97373, #facc15);
}

.panel-note {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 54%);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.8rem;
  margin: 0;
}

.section-body {
  max-width: 38rem;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cards & grids */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.card {
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.07), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.85);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-list li::before {
  content: "•";
  color: #22d3ee;
  margin-right: 0.5rem;
}

/* Frameworks */

.framework-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.framework-column h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  margin-bottom: 0.4rem;
}

.framework-desc {
  margin-top: 0;
  margin-bottom: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.framework-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
}

.framework-card h4 {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.98rem;
}

.framework-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.framework-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e5e7eb;
}

.rmf-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.rmf-steps li span {
  font-weight: 600;
  color: #e5e7eb;
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.about-copy h2 {
  margin-top: 0;
}

.about-copy p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.about-copy p + p {
  margin-top: 0.7rem;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.about-list li::before {
  content: "▹";
  color: #22d3ee;
  margin-right: 0.5rem;
}

/* Aside */

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aside-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.05), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1.1rem 1.1rem 1rem;
}

.aside-card h3 {
  margin-top: 0;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.badge-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-size: 0.78rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.9);
  padding: 1.5rem 1.4rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
}

.field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

input,
select,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.45);
}

textarea {
  resize: vertical;
}

.form-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.98);
  padding: 1.6rem 0 1.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.7fr);
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  align-items: flex-end;
}

.footer-contact a {
  color: #22d3ee;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Animations */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .framework-layout,
  .about-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-contact {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 1.5rem;
    top: var(--nav-height);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0.7rem 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .nav {
    padding-inline: 0.5rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .container {
    padding-inline: 1.1rem;
  }
}
