:root {
  --bg: #0f1221;
  --surface: #171a2f;
  --surface-alt: #1c2040;
  --text-primary: #f1f3ff;
  --text-secondary: rgba(214, 217, 255, 0.85);
  --text-muted: rgba(173, 178, 224, 0.7);
  --accent-alt: #59ffa8;
  --border: rgba(143, 166, 255, 0.25);
  --focus: #59ffa8;
  --header-height: 4.5rem;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 30px rgba(5, 8, 20, 0.28);
  --font-heading: "Space Grotesk", "Avenir Next", sans-serif;
  --font-body: "IBM Plex Sans", "Avenir Next", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

a {
  color: var(--accent-alt);
}

a:hover {
  color: #7effba;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.15rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: clamp(3.5rem, 5vw, 5.75rem) 0;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 18, 33, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.brand img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
}

.site-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav li {
  display: flex;
  align-items: center;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  line-height: 1;
  min-height: 2rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
}

.site-nav a:hover {
  color: var(--text-primary);
  background: rgba(143, 166, 255, 0.12);
}

.hero {
  padding-top: clamp(3.75rem, 5vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--accent-alt);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.8rem);
  margin-bottom: 1rem;
}

.lead,
.section-intro {
  max-width: 58ch;
  color: var(--text-secondary);
}

.cta-row {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent-alt);
  color: #061210;
}

.button-primary:hover {
  background: #7effba;
  color: #04100d;
}

.button-secondary {
  color: var(--text-primary);
  border-color: var(--border);
  background: rgba(143, 166, 255, 0.08);
}

.button-secondary:hover {
  background: rgba(143, 166, 255, 0.18);
}

.hero-aside {
  padding: 1rem;
}

.logo-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.1rem, 2.8vw, 2rem);
}

.logo-card img {
  width: min(260px, 100%);
  margin: 0 auto;
}

.meta-line {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.section h2 {
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  margin-bottom: 0.8rem;
}

.section-intro {
  margin-bottom: 1.8rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.panel h3 {
  font-size: 1.23rem;
  margin-bottom: 0.65rem;
}

.panel p {
  color: var(--text-secondary);
}

.panel ul {
  margin-top: 0.9rem;
  color: var(--text-muted);
}

.inline-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-alt);
  font-weight: 600;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

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

.about-grid p {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.contact-section {
  padding-top: 1.25rem;
}

.contact-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: clamp(1.35rem, 4vw, 2.2rem);
  box-shadow: var(--shadow-soft);
}

.contact-card p {
  margin-top: 0.9rem;
}

.contact-card .button {
  margin-top: 1.35rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.3rem 0 2.4rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.4rem;
  z-index: 100;
  border-radius: 8px;
  background: var(--accent-alt);
  color: #04110d;
  padding: 0.55rem 0.75rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.6rem;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.reveal {
  animation: rise-in 520ms ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .three-col {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 0;
    gap: 0.7rem;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .container {
    width: min(1120px, calc(100% - 1.6rem));
  }

  .section {
    scroll-margin-top: 7.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
  }
}
