:root {
  --primary-color: #6ac6ff;
  --secondary-color: #ff6bbf;
  --accent-color: #21d4fb;
  --background-color: #050810;
  --background-alt: #0b1528;
  --foreground-color: #f1f5ff;
  --muted-color: #aeb8d6;
  --glass-bg: rgba(15, 26, 50, 0.7);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-color: rgba(3, 11, 25, 0.65);
  --tile-bg: rgba(10, 18, 38, 0.85);
  --tile-hover: rgba(15, 44, 72, 0.92);
  --highlight-bg: rgba(17, 31, 57, 0.6);
  --highlight-hover: rgba(25, 51, 89, 0.7);
}

body.light-mode {
  --primary-color: #1f4f96;
  --secondary-color: #cf3d82;
  --accent-color: #5187ff;
  --background-color: #eef2ff;
  --background-alt: #f7f9ff;
  --foreground-color: #1c2438;
  --muted-color: #5c6b89;
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(82, 108, 154, 0.16);
  --shadow-color: rgba(30, 46, 74, 0.2);
  --tile-bg: rgba(255, 255, 255, 0.88);
  --tile-hover: rgba(243, 247, 255, 0.98);
  --highlight-bg: rgba(255, 255, 255, 0.85);
  --highlight-hover: rgba(237, 242, 255, 0.98);
}

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

body {
  font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 20% 20%, #0b2a4a 0%, var(--background-color) 45%),
              radial-gradient(circle at 80% 10%, rgba(49, 17, 122, 0.5) 0%, transparent 40%),
              radial-gradient(circle at 50% 80%, rgba(36, 145, 200, 0.35) 0%, transparent 55%),
              var(--background-color);
  color: var(--foreground-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
  transition: background 0.75s ease, color 0.45s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: -40vh -40vw;
  background: conic-gradient(from 120deg, rgba(33, 212, 251, 0.08), rgba(255, 107, 191, 0.2), rgba(33, 212, 251, 0.05));
  filter: blur(140px);
  opacity: 0.65;
  animation: rotateGlow 24s linear infinite;
  pointer-events: none;
  z-index: -2;
}

body.light-mode::before {
  opacity: 0.4;
  filter: blur(180px);
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 36px 20px;
  background: linear-gradient(95deg, rgba(8, 16, 32, 0.55), rgba(8, 16, 32, 0));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}

body.light-mode header {
  background: linear-gradient(95deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.6));
  border-bottom: 1px solid rgba(82, 108, 154, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
}

.header-left img {
  width: 96px;
  height: auto;
  margin-right: 20px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.company-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.company-title h1 {
  font-size: 1.82em;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.6px;
}

.company-title .desc {
  color: var(--muted-color);
  font-size: 1.02em;
  font-weight: 400;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: var(--foreground-color);
  font-size: 0.98em;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  transition: color 0.35s ease, background 0.35s ease;
}

nav a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-color);
}

nav a:hover::after {
  opacity: 1;
}

body.light-mode nav a:hover {
  background: rgba(25, 80, 160, 0.08);
}

#theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 1.4em;
  color: var(--foreground-color);
  outline: none;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
}

body.light-mode #theme-toggle {
  background: rgba(23, 45, 82, 0.08);
  border-color: rgba(23, 45, 82, 0.14);
}

main {
  flex: 1;
  width: min(1200px, 90vw);
  margin: 0 auto;
  padding-bottom: 140px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
  padding: 80px 0 100px;
}

.hero-layer {
  position: absolute;
  inset: -80px;
  border-radius: 36px;
  z-index: -1;
  filter: blur(0);
}

.layer-one {
  background: radial-gradient(circle at 20% 20%, rgba(97, 219, 255, 0.18), transparent 60%);
  animation: scalePulse 14s ease-in-out infinite;
}

.layer-two {
  background: radial-gradient(circle at 80% 20%, rgba(255, 107, 191, 0.12), transparent 55%);
  mix-blend-mode: screen;
  animation: scalePulseReverse 16s ease-in-out infinite;
}

.layer-glow {
  background: rgba(8, 21, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

body.light-mode .layer-glow {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(82, 108, 154, 0.15);
}

@keyframes scalePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.8; }
}

@keyframes scalePulseReverse {
  0%, 100% { transform: scale(1.05); opacity: 0.85; }
  50% { transform: scale(0.97); opacity: 0.4; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h2 {
  font-size: 2.6rem;
  font-weight: 700;
  max-width: 18ch;
  line-height: 1.25;
}

.hero p {
  font-size: 1.06rem;
  color: var(--muted-color);
  max-width: 45ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cta.primary {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: #0b162d;
  box-shadow: 0 10px 30px rgba(33, 212, 251, 0.35);
}

.cta.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(33, 212, 251, 0.45);
}

.cta.secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--foreground-color);
  background: rgba(255, 255, 255, 0.08);
}

.cta.secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
}

body.light-mode .cta.secondary {
  border-color: rgba(23, 45, 82, 0.18);
  background: rgba(23, 45, 82, 0.06);
}

.hero-stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.stat {
  min-width: 140px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 16px 30px rgba(7, 15, 32, 0.25);
  transform: translateY(12px);
  opacity: 0;
  animation: floatUp 0.9s ease forwards;
}

.stat:nth-child(1) { animation-delay: 0.2s; }
.stat:nth-child(2) { animation-delay: 0.35s; }
.stat:nth-child(3) { animation-delay: 0.5s; }

.stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted-color);
}

.hero-visual {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(33, 212, 251, 0.6), rgba(15, 47, 94, 0.2));
  filter: drop-shadow(0 25px 55px rgba(33, 212, 251, 0.35));
  animation: orbPulse 12s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.grid {
  position: absolute;
  inset: 10% 5%;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(15, 26, 50, 0.7), rgba(15, 26, 50, 0));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 28px 45px rgba(2, 9, 22, 0.45);
  overflow: hidden;
}

.grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.7;
}

.floating-card {
  position: absolute;
  padding: 14px 18px;
  background: rgba(8, 18, 38, 0.85);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground-color);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 18px 38px rgba(5, 12, 30, 0.45);
  animation: floatCard 8s ease-in-out infinite;
}

.floating-card i {
  color: var(--accent-color);
}

.floating-card:nth-of-type(1) {
  top: 12%;
  right: 12%;
}

.floating-card.delay {
  bottom: 16%;
  left: 10%;
  animation-delay: 2.4s;
}

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

.tiles-section {
  margin-top: 40px;
  padding-top: 40px;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-heading h3 {
  font-size: 2.1rem;
  font-weight: 700;
}

.section-heading p {
  color: var(--muted-color);
  font-size: 1rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px 26px 28px;
  border-radius: 24px;
  background: var(--tile-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(3, 12, 30, 0.45);
  text-decoration: none;
  color: var(--foreground-color);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border 0.35s ease, background 0.35s ease;
  will-change: transform;
  transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg)) translateY(24px);
  opacity: 0;
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(33, 212, 251, 0), rgba(255, 107, 191, 0.22));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.tile:hover {
  background: var(--tile-hover);
  box-shadow: 0 32px 55px rgba(3, 12, 30, 0.6);
  border-color: rgba(255, 255, 255, 0.22);
}

.tile:hover::before {
  opacity: 1;
}

.tile.is-visible {
  animation: tileIn 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes tileIn {
  0% { opacity: 0; transform: perspective(900px) rotateX(8deg) translateY(28px); }
  100% { opacity: 1; transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg)) translateY(0); }
}

.tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(33, 212, 251, 0.25), rgba(255, 107, 191, 0.25));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tile h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.tile p {
  font-size: 0.98rem;
  color: var(--muted-color);
  flex: 1;
}

.tile .button {
  display: inline-flex;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--foreground-color);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.3s ease, border 0.3s ease;
}

.tile:hover .button {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: #0b162d;
  border-color: transparent;
}

.pulse-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 100px auto 80px;
  max-width: 720px;
}

.pulse {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(33, 212, 251, 0.55));
  animation: pulseGlow 3s ease-in-out infinite;
}

.pulse:nth-child(2) { animation-delay: 0.4s; }
.pulse:nth-child(3) { animation-delay: 0.8s; }
.pulse:nth-child(4) { animation-delay: 1.2s; }

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scaleX(0.9); }
  50% { opacity: 1; transform: scaleX(1); }
}

.feature-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  margin-bottom: 100px;
}

.highlight-card {
  background: var(--highlight-bg);
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--foreground-color);
  box-shadow: 0 20px 40px rgba(2, 9, 22, 0.4);
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.45s ease, box-shadow 0.35s ease, background 0.35s ease;
  will-change: transform;
}

.highlight-card i {
  font-size: 1.6rem;
  color: var(--accent-color);
}

.highlight-card h5 {
  font-size: 1.18rem;
  font-weight: 600;
}

.highlight-card p {
  color: var(--muted-color);
  font-size: 0.96rem;
}

.highlight-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.highlight-card:hover {
  background: var(--highlight-hover);
  box-shadow: 0 26px 46px rgba(3, 12, 30, 0.5);
}

footer {
  background: linear-gradient(180deg, rgba(5, 10, 20, 0), rgba(5, 10, 20, 0.85));
  text-align: center;
  padding: 30px 0 24px;
  font-size: 0.95em;
  color: var(--muted-color);
  letter-spacing: 0.1px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(236, 242, 255, 0.95));
  border-top: 1px solid rgba(82, 108, 154, 0.1);
}

.footer-desc {
  display: block;
  margin-top: 6px;
  font-size: 0.93em;
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  main {
    width: min(100%, 92vw);
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero h2 {
    max-width: unset;
  }

  .hero p {
    max-width: unset;
  }

  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  header {
    padding: 22px;
  }

  .header-left img {
    width: 70px;
  }

  .company-title h1 {
    font-size: 1.45em;
  }

  nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  nav a {
    padding: 8px 14px;
    font-size: 0.92em;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .orb {
    width: 220px;
    height: 220px;
  }

  .floating-card {
    font-size: 0.85rem;
  }

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

  .tile {
    padding: 28px 24px;
  }

  .feature-highlights {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
