:root {
  --accent: #7c3aed;
  --accent-dark: #5b21b6;
  --ink: #1e1b29;
  --muted: #5b5768;
  --bg: #f7f5fb;
  --bg-soft: #f7f5fb;
  --border: #e7e3f0;
  --radius: 12px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

body > main {
  flex: 1 0 auto;
}

body > .site-footer {
  flex-shrink: 0;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.brand img { height: 36px; width: auto; }
.brand:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  padding-bottom: 4px;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  width: 100%;
}

nav.main-nav a.active { color: var(--accent-dark); }

.main-nav .nav-cta {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 20px;
}
.main-nav a.nav-cta::after {
  display: none;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-dark);
}
.btn-outline:hover {
  background: var(--bg-soft);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 20% 0%, #3b1d78 0%, #1e1b29 60%, #17141f 100%);
  color: #fff;
  padding: 80px 0 90px;
}

.starfield-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* CSS-only ambient starfield (no canvas/JS) */
.starfield-css::before,
.starfield-css::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 220px 160px;
}

.starfield-css::before {
  background-image:
    radial-gradient(1.6px 1.6px at 18px 24px, rgba(255, 255, 255, 0.85), transparent 100%),
    radial-gradient(1.2px 1.2px at 70px 90px, rgba(255, 255, 255, 0.55), transparent 100%),
    radial-gradient(1.6px 1.6px at 130px 40px, rgba(124, 58, 237, 0.6), transparent 100%),
    radial-gradient(1.2px 1.2px at 170px 120px, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(1.6px 1.6px at 40px 140px, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1.2px 1.2px at 200px 20px, rgba(124, 58, 237, 0.55), transparent 100%);
  opacity: 0.9;
}

.starfield-css::after {
  background-image:
    radial-gradient(1.4px 1.4px at 50px 60px, rgba(255, 255, 255, 0.8), transparent 100%),
    radial-gradient(1.2px 1.2px at 110px 150px, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1.4px 1.4px at 190px 90px, rgba(124, 58, 237, 0.5), transparent 100%),
    radial-gradient(1.2px 1.2px at 20px 100px, rgba(255, 255, 255, 0.6), transparent 100%);
  animation: starfield-twinkle 5s ease-in-out infinite;
}

@keyframes starfield-twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  .starfield-css::after {
    animation: none;
    opacity: 0.35;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 16px;
  line-height: 1.2;
}

.hero p.lead {
  font-size: 1.1rem;
  color: #d9d3ec;
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero-art {
  overflow: visible;
}

.hero-art canvas {
  display: block;
  width: 100%;
  mix-blend-mode: screen;
}

@media (min-width: 861px) {
  .hero-art canvas {
    transform: scale(1.14);
    transform-origin: center;
  }
}

/* Page hero (non-home pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 160% at 50% 0%, #3b1d78 0%, #1e1b29 60%, #17141f 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px 0;
  text-align: center;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 { margin: 0 0 10px; font-size: 2rem; }
.page-hero p { color: #d9d3ec; max-width: 60ch; margin: 0 auto; }

/* Sections */
section { padding: 70px 0; }
.section-alt { background: var(--bg-soft); }

.section-title { text-align: center; margin: 0 0 12px; font-size: 1.9rem; }
.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 44px;
}

.section-action {
  text-align: center;
  margin-top: 36px;
}

/* Cards / grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.16);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0 0 14px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card ul li { margin-bottom: 6px; }

/* Feature tiles (Why AxivusLogic) */
.feature-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 8px;
}
.feature-tile .icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #fff;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.15);
}
.feature-tile h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature-tile p { margin: 0; color: var(--muted); }

/* Dark section (Why AxivusLogic) */
.section-dark {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 160% at 50% 0%, #3b1d78 0%, #1e1b29 60%, #17141f 100%);
  color: #fff;
}
.section-dark .container {
  position: relative;
  z-index: 1;
}
.section-dark .feature-tile h3 { color: #fff; }
.section-dark .feature-tile p { color: #c9c3db; }
.section-dark .feature-tile .icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: none;
}

/* Split section (Our Products teaser, About teaser) */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.split-visual {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.split-visual video {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

.split-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.split-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.split-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.split-heading {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 20px;
}

.split-text {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

.split-list {
  display: flex;
  flex-direction: column;
}

.split-row {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.split-row summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.25rem;
}
.split-row summary::-webkit-details-marker { display: none; }

.split-row .toggle-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.split-row summary:hover .toggle-icon {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.split-row[open] .toggle-icon { transform: rotate(45deg); }

.split-row p {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 60ch;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 24px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-dark);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 160% at 50% 0%, #3b1d78 0%, #1e1b29 60%, #17141f 100%);
  color: #fff;
  text-align: center;
}
.cta-band .container {
  position: relative;
  z-index: 1;
}
.cta-band h2 { margin: 0 0 10px; }
.cta-band p { color: #c9c3db; margin: 0 0 26px; }

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.value-list { list-style: none; padding: 0; margin: 24px 0 0; }
.value-list li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.value-list li:first-child { border-top: none; }
.value-list strong { display: block; margin-bottom: 4px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.contact-info .card { height: auto; margin-bottom: 18px; }

form.contact-form { display: grid; gap: 18px; }

.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.95rem; }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
textarea { resize: vertical; min-height: 140px; }

/* honeypot field must stay invisible to humans but present in the DOM */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}
.form-status.success { display: block; background: #eafbf0; color: #157347; border: 1px solid #bfe9cf; }
.form-status.error { display: block; background: #fdeceb; color: #b3261e; border: 1px solid #f3c6c2; }

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: #17141f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px 0;
  color: #b8b2c9;
  font-size: 0.9rem;
}
.site-footer .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grid-3 > [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.grid-3 > [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.grid-2 > [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.grid-2 > [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.grid-2 > [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.value-list > [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.value-list > [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.about-grid > [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.contact-info > [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.split-list > [data-reveal]:nth-child(2) { transition-delay: 0.06s; }
.split-list > [data-reveal]:nth-child(3) { transition-delay: 0.12s; }
.split-list > [data-reveal]:nth-child(4) { transition-delay: 0.18s; }
.faq-list > [data-reveal]:nth-child(2) { transition-delay: 0.06s; }
.faq-list > [data-reveal]:nth-child(3) { transition-delay: 0.12s; }
.faq-list > [data-reveal]:nth-child(4) { transition-delay: 0.18s; }
.faq-list > [data-reveal]:nth-child(5) { transition-delay: 0.24s; }

/* Responsive */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .about-grid, .contact-grid, .split-section { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 20px;
  }
  nav.main-nav ul li { padding: 10px 0; border-top: 1px solid var(--border); }
  nav.main-nav ul li:first-child { border-top: none; }
  .site-header .container { position: relative; flex-wrap: wrap; }
}
