/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Elven VTT Brand Colors */
  --color-bg: #0f0f12;
  --color-bg-light: #18181c;
  --color-bg-lighter: #1f1f25;
  --color-text: #e4e4e7;
  --color-text-muted: #a1a1aa;
  --color-border: #27272a;

  /* Brand gradient colors */
  --color-purple: #a855f7;
  --color-indigo: #6366f1;
  --color-cyan: #06b6d4;

  /* Accent is indigo */
  --color-accent: #818cf8;
  --color-accent-hover: #a5b4fc;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}

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

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-indigo) 50%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-indigo) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-accent) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-light);
  border-color: var(--color-text-muted);
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 15, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-symbol {
  width: 36px;
  height: 36px;
}

.logo-wordmark {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-indigo) 50%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--color-text-muted);
}

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

.nav-links .btn {
  color: white;
}

/* Hex grid background pattern */
.hex-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='%2394a3b8' d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

/* Ambient gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: 10%;
  right: -15%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
  animation: floatOrb 20s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: 5%;
  left: -10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.06) 40%, transparent 70%);
  animation: floatOrb2 25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translate(-30px, 20px) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translate(-10px, 40px) scale(0.95);
    opacity: 0.7;
  }
  75% {
    transform: translate(20px, 10px) scale(1.05);
    opacity: 0.9;
  }
}

@keyframes floatOrb2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  33% {
    transform: translate(40px, -20px) scale(1.08);
    opacity: 1;
  }
  66% {
    transform: translate(20px, -40px) scale(0.92);
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

/* Hero logo */
.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
}

.hero-logo-symbol {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
}

.hero-logo-wordmark {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-indigo) 50%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 {
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 1.5rem 0 2.5rem;
  color: var(--color-text-muted);
}

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

/* Arcane rune decoration */
.arcane-decoration {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.arcane-left {
  left: 5%;
  top: 30%;
  width: 120px;
  height: 120px;
  animation: runeFloat 15s ease-in-out infinite;
}

.arcane-right {
  right: 5%;
  bottom: 20%;
  width: 100px;
  height: 100px;
  animation: runeFloat 18s ease-in-out infinite reverse;
}

@keyframes runeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-indigo), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature:hover {
  border-color: var(--color-indigo);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

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

.feature h3 {
  color: var(--color-text);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  padding: 10px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-accent);
}

/* About */
.about {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* CTA */
.cta {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  text-align: center;
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta h2 {
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta p {
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand svg {
  width: 24px;
  height: 24px;
}

.footer-brand span {
  font-weight: 600;
  color: var(--color-text);
}

.footer-links a {
  color: var(--color-text-muted);
  margin-left: 1.5rem;
}

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

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-logo-wordmark {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
  }

  .hero-logo-symbol {
    width: 60px;
    height: 60px;
  }

  .arcane-decoration {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links a {
    margin: 0 0.75rem;
  }

  .logo-wordmark {
    display: none;
  }
}
