:root {
  /* Core brand tokens for the Incogvia 1.0 landing page. */
  --background: #0b0f19;
  --surface: rgba(15, 23, 42, 0.68);
  --surface-strong: rgba(15, 23, 42, 0.86);
  --primary: #2563eb;
  --accent: #14b8a6;
  --text: #ffffff;
  --muted: #cbd5e1;
  --muted-dark: #94a3b8;
  --border: rgba(203, 213, 225, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.24), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(20, 184, 166, 0.18), transparent 28rem),
    var(--background);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.site-shell::before {
  /* Low-contrast grid adds depth while keeping the interface quiet. */
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
}

.ambient {
  /* Animated background fields are intentionally subtle and non-interactive. */
  position: fixed;
  z-index: -2;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.24;
  animation: float 14s ease-in-out infinite alternate;
}

.ambient-one {
  top: 20%;
  left: -10rem;
  background: var(--primary);
}

.ambient-two {
  right: -11rem;
  bottom: 8%;
  background: var(--accent);
  animation-delay: -5s;
}

.site-header {
  /* Fixed glass navigation keeps the primary sections easy to reach. */
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 18px auto 0;
  padding: 12px 14px 12px 16px;
  background: rgba(11, 15, 25, 0.68);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-nav a {
  padding: 8px 13px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 112px 0;
}

.hero {
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding-top: 150px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  gap: 64px;
  align-items: center;
  width: 100%;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 10px;
  font-size: clamp(4.4rem, 11vw, 8.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-subtitle {
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero-copy,
.section-copy,
.focus-card p,
.product-card p {
  color: var(--muted);
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 34px;
  font-size: 1.12rem;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.34);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.42);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(203, 213, 225, 0.28);
}

.hero-visual {
  position: relative;
}

.signal-card,
.feature-card,
.focus-card,
.product-card,
.contact-card {
  /* Shared glassmorphism treatment for the site’s major surfaces. */
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.signal-card {
  position: relative;
  min-height: 500px;
  padding: 24px;
  overflow: hidden;
  border-radius: 32px;
}

.signal-card::after {
  position: absolute;
  inset: auto -30% -35% 15%;
  height: 260px;
  content: "";
  background: radial-gradient(circle, rgba(20, 184, 166, 0.3), transparent 65%);
}

.signal-topline {
  display: flex;
  gap: 8px;
}

.signal-topline span {
  width: 10px;
  height: 10px;
  background: rgba(203, 213, 225, 0.35);
  border-radius: 999px;
}

.signal-core {
  position: relative;
  display: grid;
  min-height: 285px;
  place-items: center;
}

.pulse-ring,
.core-dot {
  position: absolute;
  border-radius: 999px;
}

.pulse-ring {
  width: 190px;
  height: 190px;
  border: 1px solid rgba(20, 184, 166, 0.42);
  animation: pulse 3.8s ease-in-out infinite;
}

.pulse-ring-two {
  width: 280px;
  height: 280px;
  border-color: rgba(37, 99, 235, 0.35);
  animation-delay: -1.5s;
}

.core-dot {
  width: 92px;
  height: 92px;
  background: radial-gradient(circle at 30% 25%, #ffffff, var(--accent) 35%, var(--primary));
  box-shadow: 0 0 55px rgba(20, 184, 166, 0.44);
}

.metric-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(11, 15, 25, 0.54);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.metric-row strong {
  color: var(--text);
  font-size: 0.95rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: 58px;
  align-items: start;
}

.section-copy p {
  margin-bottom: 18px;
  font-size: 1.04rem;
}

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

.feature-card {
  min-height: 390px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius);
}

.feature-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3vw, 3.35rem);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.card-grid,
.product-grid {
  display: grid;
  gap: 18px;
}

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

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

.focus-card,
.product-card {
  min-height: 230px;
  padding: 24px;
  border-radius: 22px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.focus-card:hover,
.product-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.18), rgba(20, 184, 166, 0.08));
  border-color: rgba(20, 184, 166, 0.32);
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  place-items: center;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.32);
  border-radius: 14px;
}

.product-card span {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
}

.tech-cloud span {
  padding: 10px 15px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(203, 213, 225, 0.13);
  border-radius: 999px;
}

.contact-section {
  padding-bottom: 70px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 28px;
}

.contact-card h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.contact-links {
  display: grid;
  gap: 12px;
  min-width: min(100%, 280px);
}

.contact-links a {
  padding: 15px 18px;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
  background: rgba(11, 15, 25, 0.45);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(20, 184, 166, 0.32);
}

.site-footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 26px 0 42px;
  color: var(--muted-dark);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

.reveal {
  /* JavaScript adds .visible when each element enters the viewport. */
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(32px, -38px, 0) scale(1.08);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.95;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split-section,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    gap: 44px;
  }

  .signal-card {
    min-height: 430px;
  }

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

  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(calc(100% - 24px), var(--max-width));
    margin-top: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 6px;
    padding: 10px;
    visibility: hidden;
    background: rgba(11, 15, 25, 0.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    backdrop-filter: blur(20px);
  }

  .site-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .section {
    width: min(calc(100% - 28px), var(--max-width));
    padding: 76px 0;
  }

  .hero {
    padding-top: 132px;
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5.5rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .signal-card {
    min-height: 390px;
    padding: 18px;
    border-radius: 24px;
  }

  .signal-core {
    min-height: 230px;
  }

  .pulse-ring {
    width: 150px;
    height: 150px;
  }

  .pulse-ring-two {
    width: 220px;
    height: 220px;
  }

  .core-dot {
    width: 76px;
    height: 76px;
  }

  .card-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .focus-card,
  .product-card {
    min-height: auto;
  }

  .contact-links {
    width: 100%;
  }

  .site-footer {
    display: grid;
    width: min(calc(100% - 28px), var(--max-width));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
