@import url("./styles.css");

:root {
  --bg: #040814;
  --bg-elevated: rgba(10, 18, 35, 0.78);
  --bg-strong: rgba(9, 15, 28, 0.94);
  --panel: rgba(11, 20, 38, 0.72);
  --panel-strong: rgba(10, 18, 34, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --text: #edf4ff;
  --muted: #9fb1c7;
  --line: rgba(167, 201, 255, 0.14);
  --line-strong: rgba(105, 233, 255, 0.34);
  --accent: #6ef2ff;
  --accent-2: #8b5cf6;
  --accent-3: #93ff8f;
  --accent-warm: #ff8a5c;
  --glow: 0 0 0 1px rgba(110, 242, 255, 0.12), 0 24px 80px rgba(21, 30, 68, 0.45);
  --shadow: 0 24px 70px rgba(3, 8, 20, 0.5);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --container: 1220px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Plus Jakarta Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --loader-opacity: 1;
}

html[data-theme="light"] {
  --bg: #f4f8ff;
  --bg-elevated: rgba(255, 255, 255, 0.84);
  --bg-strong: rgba(244, 248, 255, 0.95);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --panel-soft: rgba(9, 18, 34, 0.03);
  --text: #091325;
  --muted: #52627c;
  --line: rgba(9, 19, 37, 0.12);
  --line-strong: rgba(27, 110, 255, 0.24);
  --shadow: 0 30px 90px rgba(79, 103, 151, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% 18%, rgba(110, 242, 255, 0.16), transparent 0 18%),
    radial-gradient(circle at 82% 20%, rgba(139, 92, 246, 0.18), transparent 0 16%),
    radial-gradient(circle at 50% 110%, rgba(147, 255, 143, 0.1), transparent 0 28%),
    linear-gradient(180deg, #030711 0%, #081022 32%, #060d1d 72%, #030610 100%);
  overflow-x: hidden;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 14% 18%, rgba(110, 242, 255, 0.1), transparent 0 18%),
    radial-gradient(circle at 82% 20%, rgba(139, 92, 246, 0.08), transparent 0 16%),
    radial-gradient(circle at 50% 110%, rgba(147, 255, 143, 0.06), transparent 0 28%),
    linear-gradient(180deg, #f6f9ff 0%, #edf3ff 44%, #f5f8ff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 32%, rgba(255, 255, 255, 0.01));
  background-size: 72px 72px, 72px 72px, 100% 100%;
  opacity: 0.35;
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(6, 16, 34, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 16, 34, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(6, 16, 34, 0.04), transparent 36%, rgba(6, 16, 34, 0.02));
}

body::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 16%, rgba(0, 0, 0, 0.15) 100%);
  mix-blend-mode: screen;
  opacity: 0.38;
}

html[data-theme="light"] body::after {
  mix-blend-mode: multiply;
  opacity: 0.12;
}

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

a {
  color: inherit;
}

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

button {
  border: 0;
  background: none;
}

header,
section,
footer {
  position: relative;
  z-index: 1;
}

.site-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aura {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.9;
}

.aura-one {
  top: 8%;
  left: -8%;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(110, 242, 255, 0.18), transparent 70%);
  animation: floatAura 16s ease-in-out infinite;
}

.aura-two {
  top: 18%;
  right: -10%;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 70%);
  animation: floatAura 20s ease-in-out infinite reverse;
}

.aura-three {
  bottom: -8%;
  left: 38%;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(147, 255, 143, 0.1), transparent 70%);
  animation: floatAura 18s ease-in-out infinite;
}

.aura-grid {
  inset: 12% 8%;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 40px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  filter: none;
  opacity: 0.24;
}

.page-loader,
.route-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.page-loader {
  background:
    radial-gradient(circle at center, rgba(110, 242, 255, 0.12), transparent 0 24%),
    rgba(3, 6, 14, 0.92);
  opacity: var(--loader-opacity);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

body.is-loaded .page-loader {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(110, 242, 255, 0.24), rgba(110, 242, 255, 0.02)),
    rgba(11, 20, 38, 0.8);
  box-shadow: 0 0 0 1px rgba(110, 242, 255, 0.16), 0 22px 50px rgba(10, 18, 38, 0.52);
  animation: loaderPulse 1.6s ease-in-out infinite;
}

.loader-mark::before,
.loader-mark::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  border: 1px solid rgba(110, 242, 255, 0.24);
}

.loader-mark::after {
  inset: -10px;
  border-radius: 32px;
  border-color: rgba(139, 92, 246, 0.2);
  animation: spinLoader 2.4s linear infinite;
}

.loader-copy {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.loader-copy span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.loader-copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.route-overlay {
  background:
    linear-gradient(90deg, transparent, rgba(110, 242, 255, 0.18), transparent),
    rgba(3, 6, 14, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

body.is-routing .route-overlay {
  opacity: 1;
  visibility: visible;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 24px rgba(110, 242, 255, 0.52);
}

.cursor-halo,
.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 35;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.cursor-halo {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 1px solid rgba(110, 242, 255, 0.36);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 242, 255, 0.18), transparent 72%);
  backdrop-filter: blur(4px);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(110, 242, 255, 0.8);
}

body.cursor-active .cursor-halo,
body.cursor-active .cursor-dot {
  opacity: 1;
}

body.cursor-linking .cursor-halo {
  transform: scale(1.5);
  border-color: rgba(147, 255, 143, 0.44);
}

.navbar,
.hero-shell,
.trust-strip,
.services,
.showcase,
.cta-panel,
footer {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

#site-shell {
  position: relative;
  z-index: 1;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 1rem;
}

.navbar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%),
    var(--bg-elevated);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
}

.logo-image {
  width: 60px;
  height: 60px;
  padding: 0.4rem;
  object-fit: contain;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(110, 242, 255, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-text {
  display: grid;
  gap: 0.2rem;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-utilities {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: end;
}

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  gap: 0.7rem;
  padding: 0.75rem 1rem;
}

.theme-toggle-orb {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(110, 242, 255, 0.12);
}

.theme-toggle-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[data-theme="light"] .theme-toggle-orb {
  background: linear-gradient(135deg, #0f172a, #2563eb);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.28rem;
  width: 50px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.9rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.24s ease, transform 0.24s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.hero {
  padding: 4.25rem 0 2rem;
}

.hero-motion {
  --hero-progress: 0;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 2rem;
  align-items: center;
  position: relative;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: -2rem -1rem auto auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 242, 255, 0.14), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  gap: 1.35rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 242, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-kicker-band span {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.cta-panel h2,
.detail-copy h1,
.experience-panel-copy h3 {
  font-family: var(--font-display);
  line-height: 0.96;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.cta-button,
.secondary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.92rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.cta-button::before,
.secondary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0, rgba(255, 255, 255, 0.18) 18%, transparent 36%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.cta-button:hover::before,
.secondary-button:hover::before {
  transform: translateX(120%);
}

.cta-button {
  color: #05111d;
  background: linear-gradient(135deg, var(--accent), #b7fbff);
  box-shadow: 0 18px 34px rgba(110, 242, 255, 0.22);
}

.secondary-button {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.cta-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-kicker-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
}

.hero-kicker-band span,
.diagnostic-tag,
.diagnostic-status {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-signal-line {
  width: min(100%, 28rem);
  height: 1px;
  margin: 1.8rem 0 1.4rem;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.85;
}

.hero-diagnostics {
  margin-top: 1.4rem;
}

.diagnostic-shell {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 52%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.diagnostic-head,
.diagnostic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.diagnostic-head {
  justify-content: space-between;
  margin-bottom: 0.95rem;
}

.diagnostic-status {
  color: var(--accent-3);
}

.diagnostic-grid {
  gap: 0.9rem;
}

.diagnostic-readout {
  flex: 1 1 180px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.diagnostic-readout span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.diagnostic-readout strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.35;
}

.hero-orbit {
  position: absolute;
  top: 1rem;
  right: 6%;
  width: 10rem;
  height: 10rem;
  pointer-events: none;
}

.orbit-ring,
.orbit-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.orbit-ring-a {
  border: 1px solid rgba(110, 242, 255, 0.22);
  animation: spinLoader 14s linear infinite;
}

.orbit-ring-b {
  inset: 1rem;
  border: 1px solid rgba(139, 92, 246, 0.26);
  animation: spinLoader 11s linear infinite reverse;
}

.orbit-core {
  inset: 2.6rem;
  background: radial-gradient(circle, rgba(110, 242, 255, 0.36), rgba(110, 242, 255, 0.08) 58%, transparent 72%);
  box-shadow: 0 0 40px rgba(110, 242, 255, 0.18);
}

@keyframes floatAura {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.04);
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 1px rgba(110, 242, 255, 0.16), 0 22px 50px rgba(10, 18, 38, 0.52);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 1px rgba(110, 242, 255, 0.24), 0 30px 70px rgba(10, 18, 38, 0.62);
  }
}

@keyframes spinLoader {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .hero-orbit {
    top: auto;
    right: 0;
    bottom: -1rem;
    width: 7rem;
    height: 7rem;
  }

  .hero-kicker-band {
    gap: 0.5rem;
  }

  .hero-kicker-band span,
  .diagnostic-tag,
  .diagnostic-status {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aura-one,
  .aura-two,
  .aura-three,
  .loader-mark,
  .loader-mark::after,
  .orbit-ring-a,
  .orbit-ring-b {
    animation: none;
  }
}
