/* ========================================================
   Kiara Systems — Main Homepage
   Dark theme with brand colours.
   Palette: #1B2A4A (navy) · #0B7285 (teal) · #E1F5EE (teal-lt) · #F7F9FC (offwhite)
   Type: Inter (brand font)
   ======================================================== */

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

:root {
  --navy:     #1B2A4A;
  --navy-deep:#111d33;
  --teal:     #0B7285;
  --teal-700: #0a647a;
  --teal-lt:  #E1F5EE;
  --offwhite: #F7F9FC;
  --white:    #ffffff;
  --white-90: rgba(255,255,255,0.9);
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
  --white-30: rgba(255,255,255,0.3);
  --white-15: rgba(255,255,255,0.15);
  --white-08: rgba(255,255,255,0.08);
  --white-04: rgba(255,255,255,0.04);
  --glow-teal: 0 0 30px rgba(11,114,133,0.35), 0 0 60px rgba(11,114,133,0.12);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--white-70);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--teal-lt); text-decoration: none; }
a:hover { color: var(--white); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
.section-title {
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}
.accent { color: var(--teal-lt); }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal-lt);
  margin-bottom: 16px;
}
.section-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--white-50);
  max-width: 56ch;
  line-height: 1.65;
}
.section-head { margin-bottom: 64px; }
.section-head .section-sub { margin: 0 auto; }

/* ── ANIMATED GRID BG ───────────────────────────────────── */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.grid-bg canvas {
  position: absolute; top: 0; left: 0; width: 100%; pointer-events: none;
}

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(17,29,51,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--white-08);
  padding: 14px clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  background: var(--teal);
  border-radius: 10px;
  display: flex; align-items: flex-end; justify-content: center; gap: 3px;
  padding: 7px 7px 6px;
  box-shadow: 0 6px 18px -6px rgba(11,114,133,0.5);
}
.brand-mark-sm { width: 30px; height: 30px; padding: 5px 6px; }
.bar { width: 6px; border-radius: 2px 2px 0 0; }
.bar-tall { height: 18px; background: var(--navy); }
.bar-short { height: 11px; background: var(--white); }
.brand-text { line-height: 1.1; }
.brand-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  letter-spacing: -0.01em;
  display: block;
}
.brand-tagline { font-size: 11px; color: var(--teal-lt); display: block; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--white-50); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-link:hover { color: var(--white); }
@media (max-width: 720px) { .nav-link:not(.btn) { display: none; } }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 0; cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px -12px rgba(11,114,133,0.6);
}
.btn-primary:hover {
  background: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px rgba(11,114,133,0.7);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white-15);
}
.btn-outline:hover {
  border-color: var(--teal);
  background: rgba(11,114,133,0.08);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 18px 34px; font-size: 17px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-disabled { opacity: 0.35; cursor: default; pointer-events: none; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(80px, 10vw, 120px) clamp(20px, 4vw, 48px);
  overflow: hidden;
  z-index: 1;
}
.hero-content {
  text-align: center;
  position: relative; z-index: 2;
  max-width: 820px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: rgba(11,114,133,0.1);
  border: 1px solid rgba(11,114,133,0.25);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--teal-lt);
  margin-bottom: 32px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(11,114,133,0.6);
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-weight: 800;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-line { display: block; }
.hero-brand { font-size: clamp(48px, 8vw, 90px); }
.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--white-50);
  max-width: 52ch;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Hero orbs */
.hero-orb { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 999px; filter: blur(100px);
  animation: orbFloat 14s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(11,114,133,0.15);
  top: -10%; left: -5%;
}
.orb-2 {
  width: 400px; height: 400px;
  background: rgba(11,114,133,0.08);
  bottom: -15%; right: -5%;
  animation-delay: -7s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(0.95); }
}

/* ── VOICE INTRO BLOCK ──────────────────────────────────── */
.voice-block {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 36px;
}
.voice-listen-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(11,114,133,0.15);
  border: 1.5px solid rgba(11,114,133,0.35);
  color: var(--teal-lt);
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.voice-listen-btn:hover {
  background: rgba(11,114,133,0.25);
  box-shadow: var(--glow-teal);
  transform: scale(1.03);
}
.voice-replay-btn {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(11,114,133,0.1);
  border: 1px solid rgba(11,114,133,0.25);
  color: var(--teal-lt);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.voice-replay-btn:hover {
  background: rgba(11,114,133,0.2);
  transform: scale(1.1);
}

/* ── GLASS CARDS ────────────────────────────────────────── */
.glass-card {
  position: relative;
  background: var(--white-04);
  border: 1px solid var(--white-08);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .35s ease;
  overflow: hidden;
}
.glass-card:hover {
  border-color: rgba(11,114,133,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px -20px rgba(11,114,133,0.2);
}

.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 960px) { .cards-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; } }

.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(11,114,133,0.12);
  border: 1px solid rgba(11,114,133,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--teal-lt);
}
.card-icon-alt {
  background: rgba(11,114,133,0.08);
  border-color: rgba(11,114,133,0.15);
}
.card-icon-muted {
  background: var(--white-04);
  border-color: var(--white-08);
  color: var(--white-30);
}
.card-title {
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.card-desc {
  font-size: 15px;
  color: var(--white-50);
  line-height: 1.65;
  margin-bottom: 28px;
}
.card-badge-soon {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal-lt);
  background: rgba(11,114,133,0.1);
  border: 1px solid rgba(11,114,133,0.2);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

/* ── STATS / TRUST ──────────────────────────────────────── */
.section-trust {
  border-top: 1px solid var(--white-08);
  border-bottom: 1px solid var(--white-08);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { text-align: center; padding: 32px 20px; }
.stat-value {
  font-weight: 700;
  font-size: clamp(36px, 4vw, 48px);
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--white-30); font-weight: 500; }
.stat-bar {
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}
.trust-countries {
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.trust-flag { font-size: 15px; font-weight: 500; color: var(--white-50); }
.trust-divider { width: 1px; height: 18px; background: var(--white-15); }

/* ── FINAL CTA ──────────────────────────────────────────── */
.section-cta { text-align: center; }
.section-cta::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(11,114,133,0.1) 0%, transparent 70%);
  border-radius: 999px;
  pointer-events: none;
}
.cta-buttons {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px;
}
.cta-trust { margin-top: 24px; font-size: 13px; color: var(--white-30); }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--white-08);
  padding: 40px 0;
}
.footer .container {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-meta { color: var(--white-30); font-size: 13px; }
.footer-meta a { color: var(--white-50); }
.footer-meta a:hover { color: var(--teal-lt); }

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .orb { animation: none !important; }
  .grid-bg { display: none; }
}

/* ── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 560px) {
  .nav { padding: 12px 16px; }
  .brand-name { font-size: 16px; }
  .brand-tagline { font-size: 10px; }
  .hero { padding: 60px 18px 80px; min-height: auto; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .section { padding: 60px 0; }
  .glass-card { padding: 28px 24px; }
  .stat-card { padding: 24px 16px; }
  .stat-value { font-size: 32px; }
  .cta-buttons .btn { width: 100%; }
  .footer .container { justify-content: center; text-align: center; }
}
