/* INAVI corporate landing — v2 "Currents". Specs: docs/superpowers/specs/2026-06-10-inavi-landing-v2-currents-design.md */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Georgian";
  src: url("/assets/fonts/noto-georgian-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Georgian";
  src: url("/assets/fonts/noto-georgian-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Georgian";
  src: url("/assets/fonts/noto-georgian-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Georgian";
  src: url("/assets/fonts/noto-georgian-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #101828;
  --muted: #475467;
  --faint: #98a2b3;
  --accent: #1d4ed8;
  --accent-bright: #6f9bff;
  --accent-soft: #e8effd;
  --line: #e6eaf0;
  --dark: #0a1228;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.07), 0 8px 24px -12px rgba(16, 24, 40, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", "Noto Sans Georgian", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--accent-soft);
}
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
nav.transparent :focus-visible,
.hero :focus-visible,
.contact :focus-visible {
  outline-color: #fff;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip:focus {
  left: 0;
}

/* ambient video base */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* nav — fixed; solid by default (fail-safe without JS), transparent over the hero via JS */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(246, 248, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}
nav.transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
nav .logo-light {
  display: none;
}
nav.transparent .logo-light {
  display: block;
}
nav.transparent .logo-dark {
  display: none;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
nav.transparent .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}
nav.transparent .nav-links a:hover {
  color: #fff;
}
.lang {
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  background: var(--surface);
  cursor: pointer;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}
.lang .on {
  color: var(--ink);
  font-weight: 600;
}
.lang .sep {
  color: var(--line);
}
nav.transparent .lang {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}
nav.transparent .lang .on {
  color: #fff;
}
nav.transparent .lang .sep {
  color: rgba(255, 255, 255, 0.25);
}

/* hero — full-viewport dark video stage */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  padding: 110px 0 90px;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.5) 0%, rgba(10, 18, 40, 0.68) 100%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #c8d8ff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(38px, 6.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h1 .acc {
  color: var(--accent-bright);
}
.hero-lead {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 18px;
  color: #c2cce0;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(29, 78, 216, 0.5);
}
.btn-primary:hover {
  background: #1a44be;
}
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, 8px);
    opacity: 1;
  }
}

/* sections */
section {
  padding: 96px 0;
}
section.tight {
  padding-top: 0;
}
section,
.hero {
  scroll-margin-top: 72px;
}
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.lead {
  color: var(--muted);
  max-width: 560px;
  font-size: 16px;
}

.grid3,
.plat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.tile,
.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tile {
  padding: 30px;
}
.tile .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tile .ico svg {
  width: 28px;
  height: 28px;
}
/* icon draw-in: paths render drawn for no-JS users; .reveal arms them, .in draws them */
.reveal .ico svg path,
.reveal .ico svg circle {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.9s ease 0.25s;
}
.reveal.in .ico svg path,
.reveal.in .ico svg circle {
  stroke-dashoffset: 0;
}
.tile:hover .ico svg path,
.tile:hover .ico svg circle {
  animation: draw-icon 0.9s ease forwards;
}
@keyframes draw-icon {
  from {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
  }
  to {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
  }
}
.tile h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.tile p {
  font-size: 14px;
  color: var(--muted);
}

/* platform cards with video headers */
.pcard {
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  transition: transform 0.15s ease;
}
a.pcard:hover {
  transform: translateY(-3px);
}
.pcard-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--dark);
  overflow: hidden;
}
.pcard-media video {
  transition: transform 0.4s ease;
}
a.pcard:hover .pcard-media video {
  transform: scale(1.04);
}
.pcard-body {
  padding: 24px 28px 28px;
}
.pcard .brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pcard .domain {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}
.pcard p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.pcard .go {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.pcard.soon {
  background: var(--surface);
  border-style: dashed;
  box-shadow: none;
}
.pcard.soon .pcard-media {
  opacity: 0.55;
}
.pcard.soon .brand,
.pcard.soon p {
  color: var(--muted);
}
.badge-soon {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  margin-top: 2px;
}

/* reveal stagger for tiles and cards */
.grid3 > .reveal:nth-child(2),
.plat > .reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.grid3 > .reveal:nth-child(3),
.plat > .reveal:nth-child(3) {
  transition-delay: 0.24s;
}

/* disclaimer */
.disc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 780px;
  margin: 48px auto 0;
}
.disc h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.disc p {
  font-size: 14.5px;
  color: var(--muted);
}

/* contact — dark video finale */
.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--ink);
  border-radius: 24px;
  color: #fff;
  padding: 88px 32px;
}
.contact-scrim {
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 38, 0.78);
}
.contact-content {
  position: relative;
  z-index: 1;
}
.contact h2 {
  color: #fff;
}
.contact p {
  color: #a8b3c9;
  margin-bottom: 28px;
}
.mail {
  font-size: clamp(20px, 3.4vw, 32px);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-bright);
}

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
footer img {
  opacity: 0.75;
}

/* scroll reveal (classes applied by app.js; no-JS users see everything) */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal .ico svg path,
  .reveal .ico svg circle {
    stroke-dashoffset: 0;
    transition: none;
  }
  .tile:hover .ico svg path,
  .tile:hover .ico svg circle {
    animation: none;
  }
  .pcard,
  .pcard-media video {
    transition: none;
  }
  .scroll-cue {
    animation: none;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 20px;
  }
  .nav-links a {
    display: none;
  }
  .hero {
    padding: 96px 0 72px;
  }
  section {
    padding: 72px 0;
  }
  .grid3,
  .plat {
    grid-template-columns: 1fr;
  }
  .contact {
    padding: 64px 20px;
  }
}
