/* nxio.ai — replaces Tailwind. Colours and effects come from the previous
   globals.css so the page looks the same. */

/* Inter is served from this origin. A third-party font request would block
   rendering, leak the visitor's address to another host, and cannot carry a
   subresource integrity hash. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --neon-blue: #00d4ff;
  --papaya-orange: #ff9500;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --green-400: #4ade80;
  --red-400: #f87171;
  --container: 80rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ---------- Shared effects ---------- */

.gradient-text {
  background: linear-gradient(45deg, #00d4ff, #ff9500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.glow-blue {
  text-shadow: 0 0 20px rgb(0 212 255 / 50%);
}

.glow-orange {
  text-shadow: 0 0 20px rgb(255 149 0 / 50%);
}

.logo {
  font-size: 1.875rem;
  font-weight: 700;
}

.logo-ai {
  color: var(--papaya-orange);
  font-size: 0.875rem;
  font-weight: 700;
  vertical-align: super;
  text-shadow: 0 0 15px rgb(255 149 0 / 50%);
}

/* ---------- Buttons ---------- */

.btn-primary,
.btn-outline {
  display: inline-block;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(45deg, #00d4ff, #ff9500);
  color: #000;
  border: 0;
  padding: 0.5rem 1.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgb(0 212 255 / 40%);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  background: transparent;
}

.btn-outline:hover {
  background: var(--neon-blue);
  color: #000;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
  padding-block: 0.75rem;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Navigation ---------- */

#nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgb(0 0 0 / 90%);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--gray-800);
  transition: background 0.3s;
}

#nav.scrolled {
  background: rgb(0 0 0 / 95%);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--neon-blue);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  width: 1.5rem;
  height: 1.5rem;
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded='true'] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

.mobile-menu {
  background: rgb(0 0 0 / 95%);
  backdrop-filter: blur(4px);
  border-top: 1px solid var(--gray-800);
  padding: 0.5rem;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--gray-300);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--neon-blue);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 4rem;
  background: #000;
}

.hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-capabilities {
  font-size: 1.25rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.hero-copy {
  font-size: 1.125rem;
  color: var(--gray-400);
  line-height: 1.625;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

/* ---------- Sections ---------- */

.section {
  padding-block: 5rem;
}

.section-gray {
  background: var(--gray-900);
}

.section-black {
  background: #000;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-head p {
  font-size: 1.25rem;
  color: var(--gray-400);
  max-width: 48rem;
  margin-inline: auto;
}

/* ---------- Solution cards ---------- */

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

.card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgb(0 212 255 / 20%);
}

.card-blue:hover {
  border-color: var(--neon-blue);
}

.card-orange:hover {
  border-color: var(--papaya-orange);
}

.card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s;
}

.card-icon svg {
  width: 2rem;
  height: 2rem;
}

.card-blue .card-icon {
  background: rgb(0 212 255 / 20%);
  color: var(--neon-blue);
}

.card-blue:hover .card-icon {
  background: rgb(0 212 255 / 30%);
}

.card-orange .card-icon {
  background: rgb(255 149 0 / 20%);
  color: var(--papaya-orange);
}

.card-orange:hover .card-icon {
  background: rgb(255 149 0 / 30%);
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card > p {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-300);
}

.card li::before {
  content: '✓';
  display: inline-block;
  width: 1rem;
  margin-right: 0.5rem;
}

.card-blue li::before {
  color: var(--neon-blue);
}

.card-orange li::before {
  color: var(--papaya-orange);
}

/* ---------- Process ---------- */

.step-grid {
  display: grid;
  gap: 2rem;
}

.step {
  text-align: center;
}

.step-number {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  transition: background 0.3s;
}

.step-blue {
  background: rgb(0 212 255 / 20%);
  color: var(--neon-blue);
}

.step:hover .step-blue {
  background: rgb(0 212 255 / 30%);
}

.step-orange {
  background: rgb(255 149 0 / 20%);
  color: var(--papaya-orange);
}

.step:hover .step-orange {
  background: rgb(255 149 0 / 30%);
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.step p {
  color: var(--gray-400);
}

/* ---------- Stats ---------- */

.stat-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--gray-400);
}

/* ---------- Call to action ---------- */

.cta {
  max-width: 56rem;
  text-align: center;
}

.cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta > p {
  font-size: 1.25rem;
  color: var(--gray-400);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */

footer {
  background: #000;
  border-top: 1px solid var(--gray-800);
  padding-block: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-about .logo {
  margin-bottom: 1rem;
}

.footer-about p {
  color: var(--gray-400);
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gray-400);
}

.footer-heading-blue,
.footer-heading-orange {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-heading-blue {
  color: var(--neon-blue);
}

.footer-heading-orange {
  color: var(--papaya-orange);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-400);
}

/* ---------- Contact modal ---------- */

.modal {
  margin: auto;
  padding: 2rem;
  width: calc(100% - 2rem);
  max-width: 28rem;
  background: var(--gray-900);
  color: #fff;
  border: 1px solid var(--gray-700);
  border-radius: 0.75rem;
}

.modal::backdrop {
  background: rgb(0 0 0 / 75%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-head h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: 0;
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #fff;
}

.modal-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.modal label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.modal input,
.modal textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  background: var(--gray-800);
  border: 1px solid var(--gray-600);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1rem;
}

.modal textarea {
  resize: vertical;
}

.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
}

.turnstile {
  margin-bottom: 1rem;
  min-height: 65px;
}

.form-message {
  text-align: center;
  margin-bottom: 1rem;
}

.form-message[hidden] {
  display: none;
}

.form-message.is-success {
  color: var(--green-400);
}

.form-message.is-error {
  color: var(--red-400);
}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .button-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .container {
    padding-inline: 1.5rem;
  }

  .nav-links,
  .nav-cta {
    display: flex;
  }

  .nav-toggle,
  .mobile-menu {
    display: none;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .hero-capabilities {
    font-size: 1.5rem;
  }

  .section-head h2,
  .cta h2 {
    font-size: 3rem;
  }

  .stat-value {
    font-size: 3rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-grid,
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-about {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
