/* ================================================================
   Monologic ApS – Design system (dark theme, green accent)
   Adapted from the Monolith ApS design system.
   ================================================================ */

/* -----------------------------------------------------------
   DESIGN TOKENS
   ----------------------------------------------------------- */
:root {
  --bg: hsl(220, 20%, 6%);
  --surface-1: hsl(220, 18%, 8%);
  --card: hsl(220, 18%, 10%);
  --border: hsl(220, 14%, 18%);
  --fg: hsl(210, 40%, 96%);
  --fg-muted: hsl(215, 20%, 65%);

  --primary: hsl(82, 85%, 50%);
  --primary-dark: hsl(82, 85%, 40%);
  --primary-light: hsl(82, 75%, 68%);

  --grad-primary: linear-gradient(135deg, hsl(82, 85%, 50%), hsl(150, 70%, 45%));
  --glow-primary: 0 0 20px hsla(82, 85%, 50%, .25), 0 0 40px hsla(82, 85%, 50%, .1);
  --shadow-card: 0 4px 24px hsla(220, 20%, 3%, .4);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: .375rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;

  --header-h: 4rem;
  --max-w: 1200px;
}

/* -----------------------------------------------------------
   RESET & BASE
   ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

p {
  margin-bottom: 0.75em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
}

/* -----------------------------------------------------------
   AMBIENT GRID EFFECT (canvas)
   ----------------------------------------------------------- */
#grid-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-wrapper {
  position: relative;
  z-index: 1;
}

/* -----------------------------------------------------------
   LAYOUT HELPERS
   ----------------------------------------------------------- */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}

.section {
  padding-block: 5rem;
}

.section-dark {
  background: var(--surface-1);
}

.section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: .75rem;
}

.section-heading p {
  color: var(--fg-muted);
  max-width: 42rem;
  margin-inline: auto;
}

/* -----------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ----------------------------------------------------------- */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-primary {
  color: var(--primary);
}

.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .25rem .75rem;
  background: hsla(82, 85%, 50%, .12);
  border: 1px solid hsla(82, 85%, 50%, .3);
  border-radius: 999px;
  color: var(--primary);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* -----------------------------------------------------------
   BUTTONS
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  transition: all .2s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: hsl(220, 20%, 5%);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--fg-muted);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* -----------------------------------------------------------
   HEADER
   ----------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: hsla(220, 20%, 6%, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
  margin-right: auto;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--fg);
}

.logo-dot {
  color: var(--primary);
}

.menu-check {
  display: none;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.menu-check:checked~.menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-check:checked~.menu-btn span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-check:checked~.menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color .2s;
}

.nav-link:hover {
  color: var(--fg);
}

@media (max-width: 767px) {
  .menu-btn {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: hsla(220, 20%, 5%, .98);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .menu-check:checked~.site-nav {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: .875rem 0;
    font-size: 1rem;
    color: var(--fg);
  }

  .nav-cta {
    margin-top: 1.25rem;
    text-align: center;
  }
}

/* -----------------------------------------------------------
   HERO
   ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.hero-content {
  padding-block: 5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* -----------------------------------------------------------
   CAPABILITY CARDS
   ----------------------------------------------------------- */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cap-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
}

.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-primary);
}

.cap-card h3 {
  font-size: 1.125rem;
  margin-bottom: .5rem;
}

.cap-card p {
  font-size: .875rem;
  color: var(--fg-muted);
}

/* -----------------------------------------------------------
   ABOUT
   ----------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem .75rem;
}

.feature-list li {
  font-size: .875rem;
  color: var(--fg-muted);
  padding-left: 1rem;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* -----------------------------------------------------------
   CTA SECTION
   ----------------------------------------------------------- */
.cta-section {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

/* -----------------------------------------------------------
   FOOTER
   ----------------------------------------------------------- */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand p {
  font-size: .875rem;
  color: var(--fg-muted);
  margin-top: 1rem;
  line-height: 1.7;
  max-width: 20rem;
}

.footer-col h4 {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.footer-col a {
  font-size: .875rem;
  color: var(--fg-muted);
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--fg);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
}

.footer-bottom p {
  font-size: .8125rem;
  color: var(--fg-muted);
  text-align: center;
}

.footer-bottom a {
  color: var(--fg-muted);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* -----------------------------------------------------------
   SCROLL REVEAL
   ----------------------------------------------------------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    transition: none;
  }
}