:root {
  --bg: #020308;
  --surface: rgba(10, 13, 27, .72);
  --line: rgba(117, 178, 255, .18);
  --text: #f7f8ff;
  --muted: #9ba5c5;
  --cyan: #10dfff;
  --blue: #167cff;
  --violet: #7d48ff;
  --pink: #ff32d4;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 10%, rgba(25, 83, 190, .10), transparent 30%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: -3; opacity: .35;
  background-image:
    linear-gradient(rgba(110,150,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,150,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.glow {
  position: fixed; width: 360px; height: 360px; border-radius: 50%;
  filter: blur(100px); opacity: .16; pointer-events: none; z-index: -2;
}
.glow-blue { background: var(--cyan); left: -180px; top: 20%; }
.glow-pink { background: var(--pink); right: -180px; top: 52%; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(2,3,8,.62);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.brand img { width: 58px; height: 58px; object-fit: contain; display: block; }
.nav { display: flex; gap: 8px; }
.nav-link {
  position: relative; padding: 10px 18px; color: #aeb7d5; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; transition: .25s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 1px;
  transform: scaleX(0); transform-origin: left; transition: .25s ease;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: #fff; }

.section {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  min-height: 100vh;
  padding: 150px 0 100px;
  scroll-margin-top: 80px;
}

.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px; }
.eyebrow {
  margin: 0 0 18px; color: var(--cyan); font-size: 12px; font-weight: 700;
  letter-spacing: .32em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 26px; font-size: clamp(56px, 8vw, 100px); line-height: .92;
  letter-spacing: -.06em; font-weight: 750;
}
h1 span, h2 span {
  background: linear-gradient(90deg, #25dcff 0%, #5d8cff 40%, #b24fff 75%, #ff45d8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 600px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff; border-color: transparent;
  background: linear-gradient(100deg, #078bff, #7148ff 55%, #f032d2);
  box-shadow: 0 0 35px rgba(60, 100, 255, .25);
}
.btn-primary:hover { box-shadow: 0 0 45px rgba(127, 56, 255, .42); }
.btn-ghost { color: #c6cbea; background: rgba(255,255,255,.035); }

.hero-mark { position: relative; display: grid; place-items: center; min-height: 500px; }
.hero-mark img {
  width: min(530px, 90%); position: relative; z-index: 1;
  filter: drop-shadow(0 0 28px rgba(0, 174, 255, .28)) drop-shadow(0 0 35px rgba(255, 31, 211, .16));
}
.mark-ring {
  position: absolute; width: 68%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(64, 195, 255, .13);
  box-shadow: inset 0 0 80px rgba(75, 71, 255, .08), 0 0 80px rgba(0, 205, 255, .08);
}
.mark-ring::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  border: 1px solid rgba(211, 62, 255, .10);
}

.info-section { padding-top: 120px; }
.section-heading { max-width: 760px; }
h2 { font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -.045em; margin-bottom: 20px; }
.section-heading > p:last-child, .contact-panel > div > p:last-child { color: var(--muted); max-width: 680px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; }
.card {
  padding: 30px; min-height: 250px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20,27,54,.65), rgba(6,8,18,.55));
  transition: .3s ease; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%;
  top: -90px; right: -70px; background: var(--violet); filter: blur(60px); opacity: .18;
}
.card:hover { transform: translateY(-7px); border-color: rgba(72, 202, 255, .42); box-shadow: 0 18px 60px rgba(0,0,0,.3); }
.card-number { color: var(--cyan); font-size: 12px; letter-spacing: .2em; margin-bottom: 55px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; }

.contact-section { display: grid; place-items: center; }
.contact-panel {
  width: 100%; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px;
  padding: clamp(28px, 5vw, 64px); border: 1px solid rgba(125, 72, 255, .25);
  border-radius: 32px; background: linear-gradient(135deg, rgba(16,22,48,.72), rgba(9,8,24,.78));
  box-shadow: 0 25px 100px rgba(0,0,0,.35);
}
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 7px; color: #cbd0e7; font-size: 13px; }
.contact-form input, .contact-form textarea {
  width: 100%; color: #fff; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 14px 16px; outline: none; resize: vertical; transition: .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(38, 212, 255, .65); box-shadow: 0 0 0 4px rgba(38, 212, 255, .07); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #66708f; }
.form-status { min-height: 22px; margin: -5px 0 0; color: #62e8ff; font-size: 13px; }

.footer {
  width: min(1180px, calc(100% - 40px)); margin: auto; padding: 26px 0 36px;
  display: flex; justify-content: space-between; gap: 20px; color: #5f6884; font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  .site-header { padding: 12px 20px; }
  .brand img { width: 52px; height: 52px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 77px; right: 20px; left: 20px; padding: 12px;
    display: none; flex-direction: column; background: rgba(7,9,18,.96);
    border: 1px solid rgba(255,255,255,.08); border-radius: 18px; backdrop-filter: blur(18px);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 13px 15px; }
  .nav-link::after { left: 15px; right: 15px; bottom: 7px; }
  .section { padding-top: 125px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 50px; }
  .hero-mark { min-height: 380px; }
  .cards, .contact-panel { grid-template-columns: 1fr; }
  .contact-panel { gap: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Full-screen animated intro */
body.loading { overflow: hidden; }

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(42, 103, 255, .12), transparent 30%),
    radial-gradient(circle at 50% 60%, rgba(201, 43, 255, .08), transparent 35%),
    #010207;
  transition: opacity .9s ease, visibility .9s ease, transform 1s cubic-bezier(.7,0,.2,1);
}
.intro-screen.done {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}
.intro-grid {
  position: absolute;
  inset: -20%;
  opacity: .34;
  background-image:
    linear-gradient(rgba(90, 172, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 172, 255, .055) 1px, transparent 1px);
  background-size: 70px 70px;
  transform: perspective(500px) rotateX(62deg) translateY(20%);
  transform-origin: center bottom;
  animation: gridMove 4s linear infinite;
}
.intro-orb {
  position: absolute;
  width: 40vw;
  max-width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .15;
  animation: orbFloat 4s ease-in-out infinite alternate;
}
.intro-orb-a { background: #00cfff; left: -15%; top: 15%; }
.intro-orb-b { background: #f028d7; right: -15%; bottom: 5%; animation-delay: -2s; }

.intro-content {
  position: relative;
  z-index: 2;
  width: min(560px, 84vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.intro-logo-wrap {
  position: relative;
  width: min(390px, 62vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: introLogoIn 1.2s cubic-bezier(.2,.9,.2,1) both;
}
.intro-logo {
  position: relative;
  width: 88%;
  height: 88%;
  object-fit: contain;
  z-index: 2;
  filter:
    drop-shadow(0 0 12px rgba(23, 206, 255, .8))
    drop-shadow(0 0 38px rgba(37, 104, 255, .55))
    drop-shadow(0 0 48px rgba(242, 45, 220, .3));
  animation: logoFloat 2.5s ease-in-out infinite;
}
.intro-pulse {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(44, 209, 255, .35);
  box-shadow: 0 0 80px rgba(20, 173, 255, .25), inset 0 0 80px rgba(122, 57, 255, .16);
  animation: pulseRing 2.1s ease-out infinite;
}
.intro-word {
  margin-top: -12px;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  letter-spacing: .42em;
  padding-left: .42em;
  background: linear-gradient(90deg, #15dcff, #6f72ff 48%, #ff39d7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(74, 108, 255, .28);
  animation: wordIn 1s .35s ease both;
}
.loader {
  width: min(430px, 78vw);
  margin-top: 42px;
  animation: loaderIn .8s .55s ease both;
}
.loader-track {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 18px rgba(55, 188, 255, .1);
}
.loader-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d9ff, #3e82ff 45%, #8e43ff 72%, #ff35d5);
  box-shadow: 0 0 18px rgba(38, 188, 255, .8);
}
.loader-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #69738f;
  font-size: 10px;
  letter-spacing: .22em;
}
#loaderPercent { color: #b5c7ff; }

@keyframes introLogoIn {
  from { opacity: 0; transform: scale(.72) rotate(-7deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes pulseRing {
  0% { transform: scale(.82); opacity: .8; }
  70%,100% { transform: scale(1.13); opacity: 0; }
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(14px); letter-spacing: .65em; }
  to { opacity: 1; transform: translateY(0); letter-spacing: .42em; }
}
@keyframes loaderIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gridMove {
  from { transform: perspective(500px) rotateX(62deg) translateY(20%); }
  to { transform: perspective(500px) rotateX(62deg) translateY(27%); }
}
@keyframes orbFloat {
  from { transform: translate3d(0,0,0) scale(.95); }
  to { transform: translate3d(35px,-20px,0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .intro-grid, .intro-orb, .intro-logo, .intro-pulse { animation: none; }
}

/* Oversized logo treatment */
.intro-logo-wrap {
  width: min(92vw, 1180px);
  height: min(70vh, 720px);
  aspect-ratio: auto;
}
.intro-logo {
  width: min(92vw, 1050px);
  height: min(70vh, 720px);
}
.intro-pulse {
  inset: 8%;
}
.intro-word {
  margin-top: -34px;
  font-size: clamp(28px, 4vw, 48px);
}
.loader {
  margin-top: 30px;
}
@media (max-width: 820px) {
  .intro-logo-wrap {
    width: 96vw;
    height: 54vh;
  }
  .intro-logo {
    width: 96vw;
    height: 54vh;
  }
  .intro-word {
    margin-top: -18px;
  }
}

/* No extra text under the intro logo */
.intro-logo-wrap {
  margin-bottom: 8px;
}
.loader {
  margin-top: 8px;
}
