/* ============================================
   Kshatriya Enterprises — Design System
   ============================================ */

:root {
  --bg-primary:    #000205;
  --bg-secondary:  #020510;
  --bg-panel:      #050a16;
  --bg-elevated:   #0a1020;
  --border:        #111a30;
  --border-light:  #1a2540;

  --text-primary:  #e8edf5;
  --text-secondary:#94a3b8;
  --text-muted:    #56607a;

  --gold:          #c8a44e;
  --gold-light:    #d4af6a;
  --gold-dim:      #8b6914;
  --gold-glow:     rgba(200, 164, 78, 0.15);

  --cyan:          #38bdf8;
  --cyan-dim:      rgba(56, 189, 248, 0.12);

  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--gold-dim);
  color: var(--text-primary);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  color: var(--text-secondary);
}

/* ============================================
   Navigation
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition);
}

nav.scrolled {
  background: rgba(0, 2, 5, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.03em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.nav-brand span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-cta {
  background: var(--gold) !important;
  color: #000205 !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: #000205 !important;
}

/* ============================================
   Hero Section
   ============================================ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(200, 164, 78, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 2, 5, 1) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 32px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200, 164, 78, 0.25);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 32px;
  background: rgba(200, 164, 78, 0.04);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  animation: pulse-dot 1.8s ease-in-out infinite;
  box-shadow: 0 0 10px var(--gold-dim);
}

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

.hero-title {
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #f1f5f9;
  margin-bottom: 28px;
}

.hero-accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, #e2c87a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.hero-arrow {
  display: inline-flex;
  color: var(--text-muted);
  animation: float 2.5s ease-in-out infinite;
  transition: color var(--transition);
}

.hero-arrow:hover {
  color: var(--gold);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

/* ============================================
   Section Common
   ============================================ */

section {
  padding: 120px 40px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

section h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  color: #f1f5f9;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
}

/* ============================================
   Domains Grid
   ============================================ */

#domains {
  background: var(--bg-secondary);
  position: relative;
}

#domains::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 80vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.domain-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.domain-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--gold-glow), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.domain-card:hover::after {
  opacity: 1;
}

.domain-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.domain-icon {
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.85;
}

.domain-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.domain-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.card-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold-dim);
  margin-top: 24px;
  transition: width var(--transition-slow);
}

.domain-card:hover .card-line {
  width: 60px;
  background: var(--gold);
}

/* ============================================
   About Section
   ============================================ */

#about {
  padding: 140px 40px;
}

.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-left h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.about-subhead {
  font-size: 15px;
  color: var(--gold);
  font-weight: 500;
  margin-top: 16px;
  letter-spacing: 0.01em;
}

.about-lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.about-right p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.75;
}

.about-right p:last-of-type {
  margin-bottom: 40px;
}

.about-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   Contact Section
   ============================================ */

#contact {
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 80vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  padding: 16px 32px;
  border: 1px solid rgba(200, 164, 78, 0.3);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.contact-link:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */

footer {
  padding: 60px 40px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.footer-est {
  font-weight: 400;
  color: var(--gold-dim);
  font-size: 14px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
    height: 56px;
  }

  .nav-links a:not(.nav-cta) {
    font-size: 11px;
    padding: 6px 10px;
  }

  section {
    padding: 80px 20px;
  }

  #hero {
    min-height: 100svh;
  }

  .hero-content {
    padding: 0 16px;
  }

  .about-stat {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 22px;
  }

  .domain-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .contact-link {
    font-size: 13px;
    padding: 14px 20px;
  }

  footer {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .about-stat {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-tag {
    font-size: 10px;
    letter-spacing: 0.15em;
  }
}
