:root {
  --navy: #082358;
  --navy-deep: #04143a;
  --cyan: #01B2E2;
  --cyan-soft: #6fd8f4;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--navy-deep);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy-deep);
  display: grid; place-content: center; gap: 28px;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__logo { width: 180px; animation: pulse 1.6s ease-in-out infinite; }
.loader__bar { width: 180px; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; background: var(--cyan); border-radius: 2px; animation: slideBar 1.2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(.98);} 50% { opacity: 1; transform: scale(1);} }
@keyframes slideBar { from { transform: translateX(-120%);} to { transform: translateX(300%);} }

/* ---------- Slideshow ---------- */
.slideshow { position: fixed; inset: 0; z-index: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 2.4s ease-in-out;
}
.slide.is-active { opacity: 1; animation: kenburns 14s ease-in-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.08) translate(0, 0); }
  to   { transform: scale(1.18) translate(-1.5%, -1%); }
}
.overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 20% 30%, rgba(8, 35, 88, .55) 0%, rgba(8, 35, 88, .92) 70%),
    linear-gradient(180deg, rgba(4, 20, 58, .65) 0%, rgba(4, 20, 58, .45) 45%, rgba(4, 20, 58, .92) 100%);
}
.grain {
  position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#particles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* ---------- Ambient orbs ---------- */
.orb {
  position: fixed; z-index: 1; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: .5;
}
.orb--1 { width: 55vmax; height: 55vmax; left: -20vmax; top: -15vmax; background: radial-gradient(circle, rgba(1,178,226,.55), transparent 65%); animation: drift1 22s ease-in-out infinite alternate; }
.orb--2 { width: 45vmax; height: 45vmax; right: -15vmax; bottom: -15vmax; background: radial-gradient(circle, rgba(8,35,88,.9), transparent 65%); animation: drift2 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(12vmax, 8vmax); } }
@keyframes drift2 { to { transform: translate(-10vmax, -10vmax); } }

/* ---------- Layout ---------- */
.header, .hero, .footer { position: relative; z-index: 2; }

.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 5vw, 64px);
}
.brand__logo { height: clamp(28px, 3.2vw, 40px); width: auto; display: block; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px;
  color: var(--white); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(1,178,226,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(1,178,226,0);} 100% { box-shadow: 0 0 0 0 rgba(1,178,226,0);} }

.hero {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(20px, 5vw, 64px);
  max-width: 1100px;
}

.eyebrow {
  font-size: clamp(12px, 1.1vw, 14px); font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan-soft); margin-bottom: clamp(16px, 2vw, 24px);
}

.title {
  font-size: clamp(56px, 10vw, 132px);
  font-weight: 800; line-height: .98; letter-spacing: -.035em;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.title__line { display: block; overflow: hidden; padding-bottom: .08em; }
.word {
  display: inline-block;
  transform: translateY(110%) rotate(3deg);
  opacity: 0;
  animation: wordIn 1.1s var(--ease) forwards;
  animation-delay: var(--d);
}
.word--accent {
  background: linear-gradient(95deg, #ffffff 0%, var(--cyan-soft) 35%, var(--cyan) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wordIn 1.1s var(--ease) forwards, shimmer 6s linear 2s infinite;
}
@keyframes wordIn { to { transform: translateY(0) rotate(0); opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }

.lead {
  font-size: clamp(16px, 1.35vw, 20px); font-weight: 300; line-height: 1.65;
  color: var(--muted); max-width: 58ch;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(28px, 4vw, 52px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, border-color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--cyan); color: var(--navy-deep);
  box-shadow: 0 10px 30px -8px rgba(1,178,226,.6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -8px rgba(1,178,226,.75); background: #1cc0ee; }
.btn--ghost {
  color: var(--white); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }

.usps {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.usp__spark { color: var(--cyan); margin-right: 6px; display: inline-block; animation: twinkle 3s ease-in-out infinite; }
.usps li:nth-child(2) .usp__spark { animation-delay: .7s; }
.usps li:nth-child(3) .usp__spark { animation-delay: 1.4s; }
.usps li:nth-child(4) .usp__spark { animation-delay: 2.1s; }
@keyframes twinkle { 0%,100% { opacity: .5; transform: scale(.85);} 50% { opacity: 1; transform: scale(1.15);} }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 5vw, 64px);
}
.contact { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.contact__item { display: flex; flex-direction: column; gap: 4px; position: relative; }
.contact__label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.contact__value {
  font-size: clamp(15px, 1.2vw, 18px); font-weight: 600;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%;
  padding-bottom: 3px; transition: background-size .5s var(--ease), color .3s;
}
.contact__item:hover .contact__value { background-size: 100% 2px; color: var(--cyan-soft); }
.contact__sep { width: 1px; height: 36px; background: rgba(255,255,255,.15); }
.copy { font-size: 12px; color: rgba(255,255,255,.45); }

/* ---------- Dots ---------- */
.slide-dots {
  position: fixed; right: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%);
  z-index: 3; display: flex; flex-direction: column; gap: 12px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.3); transition: background .3s, transform .4s var(--ease);
}
.dot.is-active { background: var(--cyan); transform: scale(1.5); box-shadow: 0 0 12px rgba(1,178,226,.8); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  animation: reveal 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { overflow-y: auto; }
  .badge { display: none; }
  .hero { padding-top: 20px; padding-bottom: 20px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .contact__sep { display: none; }
  .slide-dots { display: none; }
  .title { font-size: clamp(48px, 16vw, 80px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .word, .reveal { opacity: 1; transform: none; }
  #particles { display: none; }
}
