:root {
  --color-bg: #07070d;
  --color-surface: #0f0f1a;
  --color-surface-alt: #161628;
  --color-text: #f4f6ff;
  --color-muted: #b1b6d6;
  --color-border: #222237;
  --color-accent: #b35dff;
  --color-accent-strong: #853bff;
  --color-accent-soft: rgba(179, 93, 255, 0.12);
  --gutter: clamp(16px, 4vw, 64px);
  --max-width: 1120px;
  --font-sans: "Inter", "SF Pro Display", "Segoe UI", -apple-system, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, rgba(179, 93, 255, 0.1), transparent 55%), var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(26px);
  background: rgba(7, 7, 13, 0.85);
  border-bottom: 1px solid rgba(179, 93, 255, 0.08);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-right: auto;
}

.brand img {
  height: 36px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.primary-nav a {
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  color: var(--color-muted);
}

body.page-home .nav-link-home,
body.page-solutions .nav-link-solutions,
body.page-platform .nav-link-platform,
body.page-about .nav-link-about,
body.page-contact .nav-link-contact {
  color: var(--color-text);
  background: rgba(179, 93, 255, 0.16);
}

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

/* Hamburger menu button */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 15;
  position: relative;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Dropdown menu styles */
.nav-dropdown {
  position: relative;
}

.nav-link-solutions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  color: var(--color-muted);
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.nav-link-solutions:hover {
  color: var(--color-text);
  background: rgba(179, 93, 255, 0.12);
}

.nav-link-solutions svg {
  transition: transform 0.2s ease;
}

.nav-dropdown[aria-expanded="true"] .nav-link-solutions svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-surface);
  border: 1px solid rgba(179, 93, 255, 0.2);
  border-radius: 12px;
  padding: 0 8px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 20;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
}

.nav-dropdown[aria-expanded="true"] .nav-dropdown-menu {
  max-height: 200px;
  opacity: 1;
  padding: 8px;
}

.nav-dropdown-menu a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--color-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  color: var(--color-text);
  background: rgba(179, 93, 255, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(133, 59, 255, 0.35);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(133, 59, 255, 0.45);
}

.button.minimal {
  background: rgba(179, 93, 255, 0.14);
  color: #ffffff;
}

.button.minimal:hover {
  background: rgba(179, 93, 255, 0.22);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 120px;
}

.hero {
  padding: 96px 0 80px;
  display: grid;
  gap: 48px;
}

.hero-eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.hero h1 {
  margin: 16px 0 24px;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 600;
}

.hero-copy {
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.panel {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 26px 60px rgba(8, 8, 13, 0.4);
}

.panel.alt {
  background: var(--color-surface-alt);
}

.section {
  margin-top: 96px;
  display: grid;
  gap: 32px;
}

.section-header {
  max-width: 640px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.section-header p {
  color: var(--color-muted);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  display: grid;
  gap: 14px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border: 1px solid rgba(179, 93, 255, 0.4);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
}

.highlight {
  display: grid;
  gap: 20px;
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(179, 93, 255, 0.18), rgba(133, 59, 255, 0.12));
}

.highlight h3 {
  margin: 0;
  font-size: 1.6rem;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list-inline li {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(179, 93, 255, 0.14);
  color: #ffffff;
  font-size: 0.9rem;
}

.table-simple {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 15, 26, 0.7);
  border-radius: 18px;
  overflow: hidden;
}

.table-simple th,
.table-simple td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table-simple th {
  background: rgba(179, 93, 255, 0.16);
  font-weight: 600;
}

blockquote {
  margin: 0;
  padding: 24px 28px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 18px;
  color: var(--color-muted);
}

.site-footer {
  border-top: 1px solid rgba(179, 93, 255, 0.08);
  background: rgba(7, 7, 13, 0.92);
  padding: 60px var(--gutter);
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.footer-columns {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-column h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--color-text);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-column a {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.banner {
  padding: 18px 24px;
  border-radius: 18px;
  background: rgba(179, 93, 255, 0.18);
  color: #ffffff;
  font-size: 0.95rem;
}

/* Progressive hiding of nav links to prevent CTA wrapping */
@media (max-width: 1200px) {
  .nav-link-news {
    display: none;
  }
}

@media (max-width: 1100px) {
  .nav-link-contact {
    display: none;
  }
}

@media (max-width: 1000px) {
  .nav-link-about {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-link-platform {
    display: none;
  }
}

@media (max-width: 800px) {
  .nav-link-rapid {
    display: none;
  }
}

/* Mobile navigation */
@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hamburger-menu {
    display: flex;
    order: 3;
  }

  .brand {
    order: 1;
  }

  .button.primary {
    order: 2;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 7, 13, 0.98);
    border-bottom: 1px solid rgba(179, 93, 255, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  }

  .primary-nav.active {
    max-height: 500px;
    padding: 16px var(--gutter);
  }

  .primary-nav a,
  .nav-link-solutions {
    display: flex;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
  }

  .nav-link-home,
  .nav-link-solutions,
  .nav-link-rapid,
  .nav-link-platform,
  .nav-link-about,
  .nav-link-news,
  .nav-link-contact {
    display: flex !important;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    margin-left: 16px;
    box-shadow: none;
    border: none;
    background: rgba(179, 93, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.3s ease-out, margin-top 0.3s ease-out;
  }

  .nav-dropdown[aria-expanded="true"] .nav-dropdown-menu {
    max-height: 200px;
    margin-top: 4px;
  }

  main {
    padding-bottom: 80px;
  }

  .hero {
    padding: 72px 0 48px;
  }
}
