:root {
  --bg: #05070f;
  --bg-soft: #0b1021;
  --card: rgba(18, 24, 45, 0.68);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eaf0ff;
  --muted: #9ca8c4;
  --gold: #eabf68;
  --gold-strong: #ffc15a;
  --accent: #53b9ff;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  --ambient-a: 29, 44, 97;
  --ambient-b: 61, 32, 94;
  --particle-core: 163, 221, 255;
  --particle-line: 107, 190, 255;
  --particle-glow: 83, 185, 255;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% -5%, rgba(var(--ambient-a), 0.78) 0%, rgba(5, 7, 15, 0) 42%),
    radial-gradient(circle at 110% 20%, rgba(var(--ambient-b), 0.7) 0%, rgba(5, 7, 15, 0) 45%), var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
  transition: background 2.4s ease, color 1.2s ease;
}

body[data-theme="nebula"] {
  --ambient-a: 25, 87, 117;
  --ambient-b: 112, 39, 93;
  --particle-core: 188, 248, 255;
  --particle-line: 74, 205, 235;
  --particle-glow: 68, 217, 255;
}

body[data-theme="aurora"] {
  --ambient-a: 61, 133, 94;
  --ambient-b: 51, 72, 141;
  --particle-core: 174, 255, 224;
  --particle-line: 125, 220, 255;
  --particle-glow: 88, 243, 187;
}

body[data-theme="gold"] {
  --ambient-a: 113, 88, 45;
  --ambient-b: 81, 55, 31;
  --particle-core: 255, 234, 188;
  --particle-line: 255, 200, 116;
  --particle-glow: 236, 175, 88;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 18px rgba(83, 185, 255, 0.5);
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  filter: saturate(1.2) contrast(1.08);
}

.nebula-layer {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  filter: blur(38px) saturate(1.15);
  background: radial-gradient(circle at 18% 30%, rgba(var(--ambient-a), 0.24), transparent 32%),
    radial-gradient(circle at 70% 22%, rgba(var(--ambient-b), 0.26), transparent 34%),
    radial-gradient(circle at 50% 80%, rgba(var(--ambient-a), 0.15), transparent 46%);
  mix-blend-mode: screen;
  animation: nebulaShift 16s ease-in-out infinite alternate, nebulaPulse 4s ease-in-out infinite;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(234, 191, 104, 0.1), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(83, 185, 255, 0.14), transparent 35%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 2;
  animation: drift 12s ease-in-out infinite alternate;
  opacity: 0.55;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, rgba(83, 185, 255, 0.14), rgba(83, 185, 255, 0));
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 3px 3px;
}

header,
main,
footer {
  position: relative;
  z-index: 10;
}

.header {
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-toggle {
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lang-toggle:hover {
  color: var(--gold);
  border-color: rgba(234, 191, 104, 0.55);
  transform: translateY(-1px);
}

.brand {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  width: 230px;
  height: 60px;
}

.brand-logo {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  transform: translateY(2px) scale(1.42);
  transform-origin: center;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.88;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--text);
}

.section {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 5.2rem 0;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 2.2rem;
  perspective: 1200px;
  transform-origin: center top;
  will-change: transform, opacity;
}

.eyebrow {
  color: var(--gold);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

p {
  margin-top: 0;
  color: var(--muted);
}

.hero-sub {
  max-width: 560px;
  margin-bottom: 1.6rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #17120a;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: 0 8px 24px rgba(234, 191, 104, 0.3);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
}

.hero-visual img,
.team-image img,
.contact-image img {
  width: 100%;
  border-radius: 18px;
  display: block;
  box-shadow: var(--shadow);
}

.hero-visual {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.floating-panel {
  position: absolute;
  backdrop-filter: blur(12px);
  background: rgba(8, 12, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  box-shadow: var(--shadow);
  animation: pulseFloat 6s ease-in-out infinite;
}

.floating-panel span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.floating-panel strong {
  font-size: 1.12rem;
  color: var(--gold);
  font-family: "Space Grotesk", sans-serif;
}

.fp-1 {
  left: -24px;
  top: 14%;
}

.fp-2 {
  right: -20px;
  bottom: 12%;
  animation-delay: 0.9s;
}

.section-head {
  margin-bottom: 1.7rem;
}

.market-ticker {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.88rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: tickerMove 30s linear infinite;
}

.ticker-track span {
  color: #cfd8ef;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-grid,
.career-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#about .card {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.8rem 2rem;
}

#about .card p {
  margin: 0;
  color: #d7e0f3;
  line-height: 1.95;
  font-size: 1.02rem;
  text-align: justify;
  text-indent: 2em;
}

#about .card p + p {
  margin-top: 0.95rem;
}

.engine-section {
  position: relative;
}

.engine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.engine-flow {
  position: relative;
  overflow: hidden;
}

.engine-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.04) 40%, transparent 70%);
  transform: translateX(-120%);
  animation: sweep 8s linear infinite;
  pointer-events: none;
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.flow-list li span {
  display: block;
  margin-bottom: 0.4rem;
  color: #d9e4ff;
  font-size: 0.9rem;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--particle-line), 0.7), rgba(var(--particle-core), 0.95));
  box-shadow: 0 0 14px rgba(var(--particle-glow), 0.45);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.engine-board {
  position: relative;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  background: rgba(8, 12, 24, 0.7);
  box-shadow: var(--shadow);
}

.engine-board > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.02);
}

.board-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.board-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--particle-glow), 0.2), rgba(var(--particle-glow), 0));
  filter: blur(22px);
  animation: boardDrift 10s ease-in-out infinite alternate;
}

.pulse-ring {
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(var(--particle-core), 0.45);
  box-shadow: inset 0 0 24px rgba(var(--particle-glow), 0.26), 0 0 30px rgba(var(--particle-glow), 0.2);
  animation: ringPulse 3.2s ease-out infinite;
}

.signal-lines {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 22%;
  display: grid;
  gap: 10px;
}

.signal-lines span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--particle-line), 0), rgba(var(--particle-line), 0.85), rgba(var(--particle-line), 0));
  transform: translateX(-100%);
  animation: signalRun 2.4s linear infinite;
}

.signal-lines span:nth-child(2) {
  animation-delay: 0.3s;
}

.signal-lines span:nth-child(3) {
  animation-delay: 0.6s;
}

.signal-lines span:nth-child(4) {
  animation-delay: 0.9s;
}

.board-tag {
  position: absolute;
  bottom: 10%;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.58);
  color: #d9ebff;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.card {
  background: linear-gradient(165deg, rgba(23, 31, 58, 0.9), var(--card));
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.3rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 191, 104, 0.35);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.5);
}

.team-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.team-intro {
  max-width: 920px;
  margin-bottom: 1rem;
}

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

.team-member {
  position: static;
  width: auto;
  min-height: 240px;
}

.team-role {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}


.stats {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.9rem;
}

.stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
}

.stat span {
  font-size: 0.86rem;
  color: var(--muted);
}

.job span {
  font-size: 0.82rem;
  color: var(--accent);
}

.career-showcase {
  padding: 1.5rem;
}

.career-headline {
  margin-bottom: 1.1rem;
}

.career-headline h3 {
  margin-bottom: 0.55rem;
}

.career-meta {
  color: #b9c8ea;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.career-role-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.career-role-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 64px;
  padding: 0.72rem 0.78rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(83, 185, 255, 0.04));
  color: #d9e4ff;
  line-height: 1.5;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.career-role-grid li:hover {
  transform: translateY(-2px);
  border-color: rgba(234, 191, 104, 0.45);
  background: linear-gradient(155deg, rgba(234, 191, 104, 0.09), rgba(83, 185, 255, 0.08));
}

.career-role-grid li span {
  color: var(--gold);
  font-size: 0.8rem;
  transform: translateY(0.2rem);
}

.career-note {
  margin-top: 1.1rem;
}

.career-note a,
.contact-list a {
  color: var(--gold);
  text-decoration: none;
}

.contact-section {
  padding-bottom: 4.4rem;
}

.contact-card {
  background: linear-gradient(135deg, rgba(83, 185, 255, 0.08), rgba(234, 191, 104, 0.08));
  border: 1px solid var(--card-border);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.2rem;
  padding: 1.3rem;
}

.contact-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 5vw 1.4rem;
}

.footer p {
  margin: 0;
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 1, 0.3, 1), filter 0.85s ease;
  filter: blur(8px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-3%, 2%, 0) scale(1.05);
  }
}

@keyframes nebulaShift {
  0% {
    transform: translate3d(-2%, -2%, 0) scale(1) rotate(0deg);
  }
  100% {
    transform: translate3d(3%, 2%, 0) scale(1.08) rotate(4deg);
  }
}

@keyframes nebulaPulse {
  0%,
  100% {
    filter: blur(38px) saturate(1.08) hue-rotate(0deg);
  }
  50% {
    filter: blur(44px) saturate(1.3) hue-rotate(28deg);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulseFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(0.88);
    opacity: 0.52;
  }
  70% {
    transform: scale(1.15);
    opacity: 0.14;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@keyframes signalRun {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes boardDrift {
  from {
    transform: translate3d(-2%, -2%, 0);
  }
  to {
    transform: translate3d(3%, 2%, 0);
  }
}

@media (max-width: 980px) {
  .hero,
  .engine-grid,
  .team-wrap,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .career-grid,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .fp-1,
  .fp-2 {
    left: 10px;
    right: auto;
  }

  .fp-2 {
    bottom: 10px;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 4vw;
    right: 4vw;
    display: none;
    flex-direction: column;
    background: rgba(7, 11, 24, 0.97);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    gap: 0.6rem;
  }

  .header-actions {
    gap: 0.55rem;
  }

  .lang-toggle {
    font-size: 0.76rem;
    padding: 0.38rem 0.8rem;
  }

  .nav.show {
    display: flex;
  }

  .about-grid,
  .career-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .career-showcase {
    padding: 1.1rem 0.9rem;
  }

  .career-role-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  #about .card {
    padding: 1.25rem 1rem;
  }

  #about .card p {
    font-size: 0.98rem;
    line-height: 1.85;
    text-indent: 1.8em;
  }

  .section {
    padding: 4.4rem 0;
  }

  .cursor-glow {
    display: none;
  }

  .floating-panel {
    display: none;
  }

  .nebula-layer {
    opacity: 0.2;
  }
}
