/*
 *= require_self
 *= require_tree .
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --primary-color: #00ff9d;
  --secondary-color: #00b8ff;
  --accent-color: #ff0055;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', sans-serif;
  --font-hero: 'Fira Sans', sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #050505; /* match canvas — prevents white iOS overscroll flash */
}

body {
  background-color: transparent;
  color: var(--text-color);
  font-family: var(--font-hero);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

/* ============================================================
   BACKGROUND CANVAS
   ============================================================ */

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #050505;
  pointer-events: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__logo {
  height: 63px;
}

.site-nav__name {
  font-weight: bold;
  font-size: 1.6rem;
}

.site-nav__name span {
  color: var(--primary-color);
}

.site-nav__links {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 1.1rem;
}

/* Hamburger — hidden on desktop */
.site-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.site-nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X animation when open */
.site-nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.site-nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__link {
  color: #fff;
  transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--primary-color);
  font-weight: bold;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 40px 0;
  text-align: center;
  background: #000;
  color: #666;
  border-top: 1px solid #222;
  position: relative;
  z-index: 10;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.6);
}

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

.btn-outline-primary:hover {
  background: rgba(0, 255, 157, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

/* Large CTA variant */
.btn--large {
  padding: 18px 48px;
  font-size: 1.1rem;
  letter-spacing: 2px;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .btn--large {
    padding: 15px 28px;
    font-size: 1rem;
    width: 100%;
    max-width: 360px;
  }
}

/* ============================================================
   GLASS CARD
   ============================================================ */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.3), inset 0 0 20px rgba(0, 255, 157, 0.1);
  border-color: var(--primary-color);
}

/* ============================================================
   NEON EFFECTS
   ============================================================ */

.neon-text-green {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.7), 0 0 20px rgba(0, 255, 157, 0.5);
}

.neon-border {
  position: relative;
}

.neon-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(45deg, var(--primary-color), transparent, var(--secondary-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

/* ============================================================
   GRADIENT TEXT
   ============================================================ */

.text-gradient-primary {
  background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: linear-gradient(135deg, #fff 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   ANIMATIONS (keyframes)
   ============================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 255, 157, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
  }
}

@keyframes scan {
  0% {
    top: 0;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 0;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  height: 100vh;
  height: 100dvh;
  /* dynamic viewport height — accounts for mobile browser chrome */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #050505;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero__scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent 50%,
      rgba(0, 255, 157, 0.1) 51%,
      transparent 52%);
  background-size: 100% 20px;
  animation: scan 3s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-bottom: 60px;
  width: 100%;
}

.hero__title {
  font-family: var(--font-hero);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.hero__title span {
  color: var(--primary-color);
}

.hero__subtitle {
  font-family: var(--font-hero);
  font-size: 1rem;
  color: #ccc;
  max-width: 700px;
  margin: 0 auto 24px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.5s;
}

.hero__cta {
  opacity: 0;
  animation: fadeIn 1s ease forwards 1s;
}

.hero__cta .btn {
  font-size: 1.2rem;
  padding: 15px 40px;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.features {
  background: transparent;
  position: relative;
  z-index: 1;
}

.features__heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--secondary-color);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
  }

  .bento-span-2 {
    grid-column: span 2;
  }

  .bento-tall {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.card__icon {
  margin-bottom: 20px;
}

.card__title {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.card__text {
  color: #aaa;
}

/* ============================================================
   INTEGRATIONS SECTION
   ============================================================ */

.integrations {
  background: transparent;
}

.integrations__heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.integrations__subtext {
  text-align: center;
  color: #888;
  margin-bottom: 60px;
}

.integrations__grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.integration-card {
  cursor: pointer;
  text-align: center;
  width: 200px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card-icon {
  margin-bottom: 15px;
  opacity: 0.5;
  display: flex;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.card-icon svg {
  transition: stroke 0.3s ease;
}

.integration-status {
  font-size: 0.8rem;
  margin-top: 10px;
  color: #666;
  transition: color 0.3s ease;
}

/* ============================================================
   ENTERPRISE SECTION
   ============================================================ */

.enterprise-hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.enterprise-hero__grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 255, 157, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 157, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.enterprise-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.enterprise-hero__title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.enterprise-hero__subtitle {
  font-size: 1.2rem;
  color: #aaa;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.3s;
}

.enterprise-hero__cta {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.6s;
}

.services {
  background: transparent;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card__text {
  color: #ccc;
  margin-bottom: 20px;
}

.service-card__list {
  list-style: none;
  color: #888;
}

.service-card__list li {
  margin-bottom: 10px;
}

.service-card__list li:last-child {
  margin-bottom: 0;
}

/* ============================================================
   ANIMATE-IN (Stimulus IntersectionObserver)
   ============================================================ */

.animate-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ACCESSIBILITY — reduce motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
    /* Hide video, show background fallback colour instead */
  }

  .hero__scanner {
    animation: none;
  }

  .hero__title,
  .hero__subtitle,
  .hero__cta {
    opacity: 1;
    animation: none;
  }

  .animate-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   RESPONSIVE — TABLET  (max 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .site-nav__name {
    font-size: 1.2rem;
  }

  .hero {
    height: 100vh;
    height: 100dvh;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .features__heading,
  .integrations__heading {
    font-size: 2rem;
  }

  .enterprise-hero__title {
    font-size: 2.8rem;
  }

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

/* ============================================================
   RESPONSIVE — MOBILE  (max 640px)
   ============================================================ */

@media (max-width: 640px) {

  /* --- Layout --- */
  .section {
    padding: 60px 0;
  }

  /* --- Navigation --- */
  .site-nav {
    padding: 14px 0;
  }

  .site-nav__logo {
    height: 41px;
  }

  .site-nav__name {
    font-size: 1.2rem;
  }

  .site-nav__hamburger {
    display: flex;
  }

  .site-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 255, 157, 0.2);
    padding: 12px 0;
    z-index: 99;
  }

  .site-nav__links--open {
    display: flex;
  }

  .site-nav__link {
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
  }

  .site-nav__link:last-child {
    border-bottom: none;
  }

  .site-nav {
    position: fixed;
  }

  /* --- Hero / Video --- */
  .hero__video {
    object-position: center 30%;
    /* shift focus upward for portrait video */
  }

  .hero__content {
    padding-bottom: 40px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero__title {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  .hero__cta .btn {
    font-size: 1rem;
    padding: 12px 28px;
  }

  .hero__glow {
    width: 300px;
    height: 300px;
  }

  /* --- Features --- */
  .features__heading {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  /* bento-grid already 1-column on mobile via base styles */
  .bento-tall {
    grid-row: auto;
  }

  .card__title {
    font-size: 1.2rem;
  }

  /* --- Integrations --- */
  .integrations__heading {
    font-size: 1.6rem;
  }

  .integrations__grid {
    gap: 16px;
  }

  .integration-card {
    width: calc(50% - 8px);
    min-width: 140px;
  }

  /* --- Enterprise --- */
  .enterprise-hero {
    height: auto;
    min-height: 60vh;
    padding: 100px 0 60px;
  }

  .enterprise-hero__title {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .enterprise-hero__subtitle {
    font-size: 1rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
   RESPONSIVE — EXTRA SMALL  (max 380px)
   ============================================================ */

@media (max-width: 380px) {
  .site-nav__name {
    display: none;
    /* Logo alone is enough on very small screens */
  }

  .hero__title {
    font-size: 1.3rem;
  }

  .integration-card {
    width: 100%;
  }

  .enterprise-hero__title {
    font-size: 1.5rem;
  }
}

/* ============================================================
   MODAL
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal--open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.modal__box {
  position: relative;
  z-index: 1;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(0, 255, 157, 0.3);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0, 255, 157, 0.15);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal__close:hover {
  color: var(--primary-color);
}

.modal__title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.modal__subtitle {
  color: #888;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

body.modal-open {
  overflow: hidden;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  /* font-family: var(--font-main); */
  font-family: var(--font-hero);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.15);
}

.form-input option {
  background: #111;
  color: #fff;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
}

.form-errors {
  background: rgba(255, 0, 85, 0.1);
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #ff6688;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success__icon {
  margin-bottom: 20px;
}

.form-success__title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.form-success__text {
  color: #aaa;
  line-height: 1.7;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-mission__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-mission__heading {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-mission__text p {
  color: #aaa;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-mission__text strong {
  color: #fff;
}

.about-mission__stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  overflow: hidden;
  word-break: break-word;
}

.stat-card__number {
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  font-family: var(--font-hero);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  display: block;
  color: #888;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
}

.about-tech__heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}

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

.about-team__heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-team__subtext {
  text-align: center;
  color: #888;
  margin-bottom: 50px;
}

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

.team-card {
  text-align: center;
  padding: 36px 24px;
}

.team-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000;
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.team-card__name {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: #fff;
}

.team-card__role {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.team-card__bio {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.7;
}

.about-cta__inner {
  text-align: center;
  padding: 60px;
  background: var(--glass-bg);
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: 20px;
}

.about-cta__heading {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-cta__text {
  color: #aaa;
  margin-bottom: 32px;
}

.about-cta__btn {
  font-size: 1.1rem;
  padding: 14px 40px;
}

@media (max-width: 768px) {
  .about-mission__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-mission__stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-card {
    width: 100%;
    flex: none;
    padding: 20px 16px;
  }

  .about-cta__inner {
    padding: 40px 20px;
  }

  .about-mission__heading {
    font-size: 1.5rem;
  }

  .team-grid,
  .about-tech__grid {
    grid-template-columns: 1fr;
  }
}