:root {
  --bg: #04050c;
  --bg-2: #0a0d1c;
  --cyan: #00f0ff;
  --violet: #7b2fff;
  --text: #e8ecff;
  --muted: #8b93b8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
}

/* Background layers */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  backdrop-filter: blur(12px);
  background: rgba(4, 5, 12, 0.5);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}

.logo {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 17px;
  font-weight: 900;
  fill: var(--cyan);
}

.logo-ring polygon {
  animation: spin-slow 14s linear infinite;
  transform-origin: center;
}

.brand-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 1rem;
}

.accent {
  color: var(--cyan);
  margin-left: 0.3rem;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--cyan);
}

.cta-link {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}

.cta-link:hover {
  background: var(--cyan);
  color: var(--bg) !important;
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 999px;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
}

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

.hero-sub {
  max-width: 640px;
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 0.9rem 2.2rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  color: #02030a;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.65);
}

.btn-ghost {
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: var(--cyan);
}

.btn-ghost:hover {
  background: rgba(0, 240, 255, 0.1);
}

.hero-stats {
  display: flex;
  gap: 4rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sections */
.section {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.index {
  color: var(--violet);
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(10, 13, 28, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 6px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15);
}

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

.card-icon {
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  border: 1px solid rgba(123, 47, 255, 0.5);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* Technology */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.tech-item {
  border-left: 2px solid var(--cyan);
  padding-left: 1.2rem;
  transition: border-color 0.3s;
}

.tech-item:hover {
  border-color: var(--violet);
}

.tech-item h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--cyan);
}

.tech-item p {
  color: var(--muted);
}

/* Vision */
.vision {
  text-align: center;
}

.vision-quote {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--text), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vision-text {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  padding: 3rem 2rem;
  background: rgba(4, 5, 12, 0.6);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.logo-sm {
  width: 34px;
  height: 34px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

@keyframes shimmer {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(30deg); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .nav { padding: 1rem 1.2rem; }
  .nav-links { gap: 1rem; }
  .brand-name { display: none; }
  .hero-stats { gap: 2rem; }
}
