/* NIKIT Design System */
:root {
  --ink: #102033;
  --muted: #647086;
  --paper: #ffffff;
  --surface: rgba(255, 255, 255, 0.86);
  --cloud: #f3f6fb;
  --line: #dbe4ef;
  --teal: #087f8c;
  --teal-dark: #036875;
  --amber: #f6b73c;
  --green: #1f9d66;
  --red: #c84c4c;
  --navy: #0d1d31;
  --hero-start: #eef7f8;
  --hero-mid: #ffffff;
  --hero-end: #e9f1ff;
  --grid-line: rgba(8, 127, 140, 0.1);
  --glass: rgba(255, 255, 255, 0.72);
  --radius: 8px;
  --shadow: 0 24px 60px rgba(15, 31, 53, 0.14);
  --max: 1180px;
}

[data-theme="dark"] {
  --ink: #edf6ff;
  --muted: #a9b6c9;
  --paper: #101826;
  --surface: rgba(19, 31, 47, 0.86);
  --cloud: #0b1320;
  --line: rgba(226, 236, 249, 0.14);
  --teal: #32c7cf;
  --teal-dark: #7ce3e8;
  --amber: #ffd166;
  --green: #4ade80;
  --red: #fb7185;
  --navy: #07111e;
  --hero-start: #07111e;
  --hero-mid: #0f2034;
  --hero-end: #0c2f36;
  --grid-line: rgba(124, 227, 232, 0.1);
  --glass: rgba(16, 24, 38, 0.72);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(8, 127, 140, 0.08), transparent 26rem),
    radial-gradient(circle at 92% 18%, rgba(246, 183, 60, 0.12), transparent 24rem),
    var(--paper);
  line-height: 1.6;
  transition: background 220ms ease, color 220ms ease;
}

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

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(8, 127, 140, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 88px 0;
}

.section-alt {
  background:
    linear-gradient(90deg, transparent 0 31px, var(--grid-line) 32px),
    linear-gradient(0deg, transparent 0 31px, var(--grid-line) 32px),
    var(--cloud);
  background-size: 32px 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.7rem, 5vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 720px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head p {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(8, 127, 140, 0.08);
  transition: transform 180ms ease, background 180ms ease, border 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(8, 127, 140, 0.18);
}

.btn-primary {
  background: var(--teal);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-secondary {
  background: var(--ink);
  color: var(--paper);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 28px rgba(15, 31, 53, 0.08);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(8, 127, 140, 0.08), transparent 36%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.card:hover::before {
  opacity: 1;
}

.card p {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 127, 140, 0.1);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.82rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--amber);
  box-shadow: inset 0 -10px 20px rgba(255, 255, 255, 0.08);
}

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

.nav-links a {
  padding: 10px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-dark);
  background: rgba(8, 127, 140, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.theme-toggle {
  display: grid;
  place-items: center;
  font-weight: 900;
}

.theme-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform 220ms ease;
}

.theme-toggle:hover .theme-icon {
  transform: rotate(18deg) scale(1.08);
}

.menu-toggle {
  display: none;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero and shared page headers */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(246, 183, 60, 0.25), transparent 18rem),
    radial-gradient(circle at 10% 12%, rgba(8, 127, 140, 0.18), transparent 21rem),
    linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 50%, var(--hero-end) 100%);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 80%, transparent 100%);
}

.hero::after,
.page-hero::after {
  content: "NPV  ROI  EMI  ARR  ∑  %  EBITDA  CAGR";
  position: absolute;
  right: -4rem;
  bottom: 1rem;
  color: rgba(8, 127, 140, 0.1);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  white-space: nowrap;
  animation: driftText 18s linear infinite alternate;
}

.hero .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 86px 0 62px;
}

.page-hero {
  padding: 86px 0 70px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.hero-metric:last-child {
  border-bottom: 0;
}

.metric-value {
  font-size: 2rem;
  font-weight: 900;
}

.funding-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 127, 140, 0.28), transparent 42%),
    var(--navy);
  color: var(--paper);
}

.funding-card p {
  color: rgba(255, 255, 255, 0.78);
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.progress span {
  display: block;
  height: 100%;
  width: var(--value, 70%);
  background: var(--amber);
  transition: width 420ms ease;
}

/* Reusable components */
.logo-row,
.partner-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.logo-tile {
  display: grid;
  place-items: center;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease;
}

.logo-tile:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.stat {
  padding: 24px;
  border-left: 4px solid var(--teal);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 31, 53, 0.08);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 1;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(8, 127, 140, 0.1);
  color: var(--teal-dark);
  font-weight: 900;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper);
  font-weight: 900;
  box-shadow: 0 0 0 8px rgba(8, 127, 140, 0.12);
}

.quote {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.quote p {
  flex: 1;
  color: var(--ink);
  font-size: 1.02rem;
}

.quote cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: var(--muted);
  transition: max-height 220ms ease, padding 220ms ease;
}

.faq-item.open .faq-answer {
  max-height: 180px;
  padding-bottom: 18px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 20%, rgba(246, 183, 60, 0.22), transparent 18rem),
    linear-gradient(135deg, var(--ink), var(--navy));
  color: var(--paper);
  box-shadow: var(--shadow);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--navy);
  background-size: 34px 34px;
  color: var(--paper);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 28px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.74);
}

.site-footer a:hover {
  color: var(--paper);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
}

/* Forms */
.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--surface);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 140, 0.12);
  outline: 0;
}

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

.map-panel {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(8, 127, 140, 0.2), transparent 4rem),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(135deg, var(--cloud), var(--paper));
  background-size: auto, 28px 28px, 28px 28px, auto;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

/* Original finance imagery */
.finance-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 18%, rgba(246, 183, 60, 0.22), transparent 8rem),
    radial-gradient(circle at 82% 18%, rgba(8, 127, 140, 0.2), transparent 10rem),
    linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--cloud) 70%, transparent));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.compact-visual {
  min-height: 260px;
  margin-top: 34px;
}

.finance-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid-line) 1px, transparent 1px);
  background-size: 26px 26px;
}

.ledger-sheet,
.metric-card,
.formula-strip,
.coin-stack,
.chart-card {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 18px 48px rgba(15, 31, 53, 0.14);
  backdrop-filter: blur(14px);
}

.ledger-sheet {
  left: 34px;
  top: 42px;
  width: 58%;
  min-height: 240px;
  padding: 22px;
  transform: rotate(-3deg);
  animation: floatSoft 6s ease-in-out infinite;
}

.ledger-sheet span {
  display: block;
  height: 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

.ledger-sheet .line {
  height: 1px;
  margin: 14px 0;
  background: var(--line);
}

.metric-card {
  right: 34px;
  top: 74px;
  width: 190px;
  padding: 18px;
  animation: floatSoft 7s ease-in-out 600ms infinite;
}

.metric-card strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2rem;
}

.formula-strip {
  left: 78px;
  bottom: 36px;
  padding: 14px 18px;
  color: var(--muted);
  font-weight: 900;
  animation: slideFormula 12s linear infinite alternate;
}

.chart-card {
  right: 48px;
  bottom: 58px;
  display: flex;
  align-items: end;
  gap: 9px;
  width: 190px;
  height: 132px;
  padding: 18px;
}

.chart-card i {
  display: block;
  width: 24px;
  border-radius: 6px 6px 0 0;
  background: var(--teal);
  animation: barPulse 2.8s ease-in-out infinite;
}

.chart-card i:nth-child(2) {
  height: 70%;
  background: var(--amber);
  animation-delay: 200ms;
}

.chart-card i:nth-child(3) {
  height: 46%;
  animation-delay: 400ms;
}

.chart-card i:nth-child(4) {
  height: 86%;
  background: var(--green);
  animation-delay: 600ms;
}

.coin-stack {
  right: 210px;
  bottom: 42px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--amber);
  font-weight: 900;
  font-size: 1.55rem;
  animation: floatSoft 5s ease-in-out 900ms infinite;
}

.coin-stack::before,
.coin-stack::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--amber) 28%, var(--paper));
}

.coin-stack::before {
  bottom: -14px;
}

.coin-stack::after {
  bottom: -27px;
}

.page-hero .finance-visual {
  margin-top: 34px;
  min-height: 250px;
}

.compact-visual .ledger-sheet {
  left: 26px;
  top: 28px;
  width: 42%;
  min-height: 168px;
}

.compact-visual .metric-card {
  top: 34px;
  right: 38px;
}

.compact-visual .chart-card {
  right: 58px;
  bottom: 28px;
}

.compact-visual .formula-strip {
  left: 40px;
  bottom: 30px;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes slideFormula {
  from { transform: translateX(0); }
  to { transform: translateX(34px); }
}

@keyframes barPulse {
  0%, 100% { transform: scaleY(0.92); }
  50% { transform: scaleY(1.08); }
}

@keyframes driftText {
  from { transform: translateX(0); }
  to { transform: translateX(-6rem); }
}

.map-panel strong {
  display: block;
  color: var(--ink);
  font-size: 1.4rem;
}

.form-status {
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

/* Animation utilities */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  left: 12px;
}

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