/* Premium Antigravity Design System */
:root {
  --bg: #050505;
  --bg-grad: radial-gradient(circle at 50% 0%, #1a1a1a, #050505 80%);
  --panel: rgba(20, 20, 20, 0.6);
  --text: #f0f0f0;
  --text-muted: #888;
  --accent: #00ff78;
  --accent-glow: rgba(0, 255, 120, 0.4);
  --border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.03);
  --glass: blur(20px) saturate(180%);
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(to bottom, #000000 0%, #0a0a0a 50%, #000000 100%);
  background-attachment: fixed;
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

p {
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.container.narrow {
  max-width: 800px;
}

.center {
  text-align: center;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-grad);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fade-in-up 1s var(--ease-out) 0.5s forwards;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(to bottom, #fff, #888);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.tagline {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.8;
}

/* Magnetic Button */
.cta,
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  transition: transform 0.1s linear;
  /* Fast for magnetic effect */
  cursor: pointer;
  overflow: hidden;
}

.cta {
  background: #fff;
  color: #000;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 0, 0, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
  animation: bounce 2s infinite;
}

/* SECTIONS */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

/* Cards (Glassmorphism) */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 24px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Buttons */
.btn {
  border: 1px solid var(--border);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--light {
  background: #fff;
  color: #000;
  border: none;
}

.btn--light:hover {
  background: #e0e0e0;
}

.actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 2rem;
}

/* Footer */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  background: #000;
  text-align: center;
}

.crest-mini {
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Utilities */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Crest SVG */
.crest-inline {
  margin-bottom: 2rem;
}

.crest {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .section {
    padding: 80px 0;
  }
}