/* ===== Variables ===== */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f5f5f7;
  --gray-100: #e8e8ed;
  --gray-400: #86868b;
  --gray-600: #6e6e73;
  --gray-800: #1d1d1f;
  --accent: #2997ff;
  --accent-glow: rgba(41, 151, 255, 0.4);
  --cyan: #64d2ff;
  --purple: #bf5af2;
  --nav-height: 52px;
  --transition: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--gray-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.4s var(--transition), backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  color: var(--accent);
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  font-weight: 400;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links .nav-cta {
  color: var(--accent);
}

.nav-links .nav-cta:hover {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.3s var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #0077ed;
  transform: scale(1.02);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(41, 151, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(41, 151, 255, 0.1);
  border-color: var(--accent);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.0625rem;
}

.btn-full {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--black);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: 1;
}

.hero-lumu-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero-glow-purple {
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(191, 90, 242, 0.18) 0%, transparent 70%);
}

.hero-glow-blue {
  top: -5%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.15) 0%, transparent 70%);
  animation-delay: -4s;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 24px;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fade-up 1s var(--transition) 0.2s forwards;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  opacity: 0;
  animation: fade-up 1s var(--transition) forwards;
}

.hero-title-line:first-child {
  animation-delay: 0.4s;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--white) 0%, var(--cyan) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation-delay: 0.6s;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 400;
  color: var(--gray-400);
  max-width: 540px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fade-up 1s var(--transition) 0.8s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 1s var(--transition) 1s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.75rem;
  opacity: 0;
  animation: fade-up 1s var(--transition) 1.4s forwards;
}

.scroll-indicator {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-400), transparent);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.5; }
}

/* ===== Sections ===== */
.section {
  padding: 120px 0;
}

.section-light {
  background: var(--gray-50);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-gradient {
  background: linear-gradient(180deg, var(--black) 0%, #0a0a1a 50%, var(--black) 100%);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-dark .section-eyebrow,
.section-gradient .section-eyebrow {
  color: var(--cyan);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 32px;
  transition: transform 0.4s var(--transition), box-shadow 0.4s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.about-number {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Capabilities ===== */
.capability-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.capability-ring {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(41, 151, 255, 0.2);
}

.ring-1 {
  inset: 0;
  animation: spin 20s linear infinite;
  border-style: dashed;
}

.ring-2 {
  inset: 40px;
  animation: spin 15s linear infinite reverse;
  border-color: rgba(100, 210, 255, 0.3);
}

.ring-3 {
  inset: 80px;
  animation: spin 10s linear infinite;
  border-color: rgba(191, 90, 242, 0.2);
}

.ring-core {
  position: absolute;
  inset: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.2), rgba(191, 90, 242, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 60px var(--accent-glow);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.capability-content .section-title {
  margin-bottom: 40px;
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.capability-list li:last-child {
  border-bottom: none;
}

.cap-icon {
  color: var(--cyan);
  font-size: 1.25rem;
  margin-top: 2px;
}

.capability-list strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.capability-list span {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* ===== Technology ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s var(--transition), border-color 0.4s;
}

.tech-card:hover {
  transform: scale(1.02);
  border-color: rgba(41, 151, 255, 0.3);
}

.tech-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(41, 151, 255, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
  transition: opacity 0.4s;
}

.tech-card:hover .tech-card-bg {
  opacity: 1.5;
}

.tech-card-content {
  position: relative;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tech-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.tech-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
  flex: 1;
}

.tech-stat {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 16px;
}

/* ===== Stats ===== */
.section-stats {
  background: var(--gray-50);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 24px;
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gray-800);
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-top: 8px;
}

/* ===== Careers ===== */
.section-careers {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.careers-bg {
  position: absolute;
  inset: 0;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 80% 50%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(100, 210, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 70% 90%, rgba(191, 90, 242, 0.3), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.2), transparent);
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.careers-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.careers-title {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.careers-highlight {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--accent) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.careers-desc {
  font-size: 1.125rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 32px;
}

.careers-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.careers-tags span {
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}

.careers-tags span:hover {
  border-color: var(--accent);
  color: var(--white);
  background: rgba(41, 151, 255, 0.1);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-details {
  margin-top: 40px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-item a {
  color: var(--accent);
  transition: opacity 0.3s;
}

.contact-item a:hover {
  opacity: 0.7;
}

.contact-form {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 0 8px;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  background: transparent;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group label {
  position: absolute;
  left: 0;
  top: 16px;
  font-size: 1rem;
  color: var(--gray-400);
  pointer-events: none;
  transition: all 0.3s var(--transition);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -4px;
  font-size: 0.75rem;
  color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-100);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--gray-800);
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a {
    font-size: 1.0625rem;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .about-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .capability-showcase,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .capability-ring {
    width: 280px;
    height: 280px;
  }

  .ring-core {
    inset: 90px;
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
