/* Indusphere Nexus Inc. — Brand system */
:root {
  --accent: #3366FF;
  --accent-soft: #5B8CFF;
  --accent-deep: #1F4FE0;
  --navy: #0E1729;
  --navy-soft: #162238;
  --ink: #0E1729;
  --muted: #6B7280;
  --line: rgba(14, 23, 41, 0.12);
  --fog: #E8ECF5;
  --fog-2: #F4F6FB;
  --white: #FFFFFF;
  --ok: #76B900;
  --radius: 4px;
  --max: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--fog-2);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.theme-light {
  background: rgba(244, 246, 251, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.site-header.theme-dark {
  background: rgba(14, 23, 41, 0.55);
  backdrop-filter: blur(14px);
}

.site-header.theme-dark.is-scrolled {
  background: rgba(14, 23, 41, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand .brand-mark {
  width: auto;
  height: 44px;
  flex-shrink: 0;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.brand-word .top {
  color: var(--navy);
}

.brand-word .bottom {
  color: var(--accent);
  margin-top: 0.2rem;
}

.theme-dark .brand-word .top {
  color: var(--white);
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-lockup img {
  height: 58px;
  width: auto;
}

.logo-lockup .brand-word {
  font-size: 1.35rem;
}

.logo-lockup.on-dark .brand-word .top {
  color: var(--white);
}

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

.footer-brand .logo-lockup img {
  height: 48px;
}

.footer-brand .logo-lockup .brand-word {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color 0.25s;
}

.theme-dark .nav a {
  color: rgba(255, 255, 255, 0.72);
}

.nav a:hover,
.nav a.is-active {
  color: var(--navy);
}

.theme-dark .nav a:hover,
.theme-dark .nav a.is-active {
  color: var(--white);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  background: var(--accent);
  color: white !important;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: background 0.25s, transform 0.25s;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  color: white !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.theme-dark .menu-toggle {
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-dark .menu-toggle span {
  background: white;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.06);
}

.btn-dark {
  background: var(--navy);
  color: white;
}

.btn-dark:hover {
  background: #182640;
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: white;
  overflow: hidden;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 23, 41, 0.55) 0%, rgba(14, 23, 41, 0.42) 35%, rgba(14, 23, 41, 0.88) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(51, 102, 255, 0.28), transparent 55%);
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(232, 236, 245, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 236, 245, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 4rem) 0 4.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero-brand {
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.1s forwards;
}

.hero-brand img {
  height: 64px;
  width: auto;
}

.hero-brand .brand-word {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.hero h1 {
  margin: 0;
  max-width: 15ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.22s forwards;
}

.hero h1 .accent {
  color: var(--accent-soft);
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.34s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.46s forwards;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-tight {
  padding: 4.5rem 0;
}

.section-dark {
  background: var(--navy);
  color: white;
}

.section-fog {
  background: var(--fog);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.section-lead {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.section-head {
  margin-bottom: 2.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-copy {
  order: 2;
}

.split-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  min-height: 360px;
}

.split-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.feature-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.85rem;
  align-items: start;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(51, 102, 255, 0.15);
}

.section-dark .feature-list li {
  color: rgba(255, 255, 255, 0.74);
}

/* Capability rows — not cards; editorial layout */
.capability-rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.capability {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.capability-index {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.capability h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.capability p {
  margin: 0;
  color: var(--muted);
  max-width: 48rem;
}

/* Architecture flow */
.arch {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.arch-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.arch-step span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
}

.arch-step strong {
  font-family: var(--font-display);
  font-weight: 650;
}

/* Demo mosaic */
.demo-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.demo-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  min-height: 240px;
  isolation: isolate;
}

.demo-tile.tall {
  grid-row: span 2;
  min-height: 520px;
}

.demo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.demo-tile:hover img {
  transform: scale(1.05);
}

.demo-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(transparent, rgba(14, 23, 41, 0.92));
  color: white;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.01em;
  z-index: 1;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.demo-grid .demo-tile {
  min-height: 260px;
}

.demo-meta {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* YouTube band */
.yt-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.yt-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 650;
  font-family: var(--font-display);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.15);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-aside {
  padding: 1.75rem 0;
}

.contact-aside a {
  color: var(--accent);
  font-weight: 650;
}

.contact-links {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.form-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-note.success {
  color: #0f7a3c;
}

/* Page hero (inner) */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3.5rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(51, 102, 255, 0.16), transparent 50%),
    linear-gradient(180deg, var(--fog) 0%, var(--fog-2) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 16ch;
}

.page-hero p {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  color: white;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.88rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stack utilities */
.stack-sm {
  display: grid;
  gap: 0.75rem;
}

.mt-2 {
  margin-top: 2rem;
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.tech-pill {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 650;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 960px) {
  .split,
  .split.reverse,
  .yt-band,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-copy {
    order: 0;
  }

  .demo-mosaic,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-tile.tall {
    grid-row: auto;
    min-height: 320px;
  }

  .capability {
    grid-template-columns: 4rem 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(14, 23, 41, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header.theme-light .nav,
  .site-header.is-scrolled:not(.theme-dark) .nav {
    background: rgba(244, 246, 251, 0.98);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
  }

  .site-header.theme-light .nav a,
  .site-header.is-scrolled:not(.theme-dark) .nav a {
    color: var(--navy);
    border-bottom-color: var(--line);
  }

  .nav-cta {
    margin-top: 0.75rem;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-bottom: 3rem;
  }

  .section {
    padding: 4.25rem 0;
  }

  .capability {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
