/* ===== CSS Variables - Light AVAX Theme ===== */
:root {
  /* AVAX Brand */
  --avax-red: #E84142;
  --avax-red-dark: #D13639;
  --avax-red-light: #FF6B6B;
  --avax-red-subtle: rgba(232, 65, 66, 0.08);
  --avax-red-glow: rgba(232, 65, 66, 0.15);

  /* Light Theme */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --bg-tertiary: #F5F5F5;
  --bg-card: #FFFFFF;

  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #999999;

  --border-color: rgba(0, 0, 0, 0.06);
  --border-subtle: rgba(0, 0, 0, 0.04);

  /* Typography - Similar to Aeonik */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease-out-expo);
  --transition-base: 400ms var(--ease-out-expo);
  --transition-slow: 600ms var(--ease-out-expo);
}

/* ===== 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-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

::selection {
  background: var(--avax-red);
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ===== Ambient Background ===== */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.gradient-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--avax-red-glow);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(232, 65, 66, 0.08);
  bottom: 20%;
  left: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-mark {
  width: 32px;
  height: 32px;
  color: var(--avax-red);
}

.logo-text {
  font-family: 'Manrope', var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.nav-cta {
  padding: 0.6rem 1.2rem;
  background: var(--text-primary);
  color: white !important;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--avax-red);
  transform: translateY(-1px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--avax-red);
  color: white;
  box-shadow:
    0 1px 2px rgba(232, 65, 66, 0.1),
    0 4px 12px rgba(232, 65, 66, 0.2);
}

.btn-primary:hover {
  background: var(--avax-red-dark);
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(232, 65, 66, 0.15),
    0 12px 32px rgba(232, 65, 66, 0.25);
}

.btn-primary svg {
  transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

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

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

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
}

.hero-content {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  background: var(--avax-red-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--avax-red);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--avax-red);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-highlight {
  color: var(--avax-red);
  position: relative;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 540px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.hero-stat {
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.hero-stat-secondary {
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.45s both;
}

.stat-amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--avax-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-amount-secondary {
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, var(--avax-red) 0%, var(--text-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-context {
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s both;
}

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

/* ===== Trust Bar ===== */
.trust-bar {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.trust-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trust-items {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.trust-items span {
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-divider {
  width: 4px;
  height: 4px;
  background: var(--border-color);
  border-radius: 50%;
}

/* ===== Section Styles ===== */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--avax-red);
  margin-bottom: var(--space-sm);
}

.section-intro {
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

.section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.section-intro p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ===== Services Section ===== */
.services {
  padding: var(--space-3xl) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  position: relative;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--avax-red), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: rgba(232, 65, 66, 0.2);
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.03),
    0 20px 40px rgba(0, 0, 0, 0.06);
}

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

.service-card-featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: var(--space-xl);
}

.service-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--avax-red);
  margin-bottom: var(--space-md);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.service-card-featured h3 {
  font-size: 1.75rem;
}

.service-card > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-card-featured > p {
  font-size: 1.05rem;
  max-width: 400px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--avax-red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== About Section ===== */
.about {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.about-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.visual-card {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  transition: all var(--transition-base);
}

.visual-card:hover {
  border-color: var(--avax-red);
  transform: translateY(-2px);
}

.visual-card:first-child {
  grid-column: span 2;
}

.visual-icon {
  width: 48px;
  height: 48px;
  color: var(--avax-red);
}

.visual-icon svg {
  width: 100%;
  height: 100%;
}

.visual-card span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== CTA Section ===== */
.cta {
  padding: var(--space-3xl) 0;
}

.cta-card {
  position: relative;
  padding: var(--space-2xl);
  background: var(--text-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
}

.cta-content .btn-primary {
  background: white;
  color: var(--text-primary);
}

.cta-content .btn-primary:hover {
  background: var(--avax-red);
  color: white;
}

.cta-decoration {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
}

.cta-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: ringPulse 4s ease-in-out infinite;
}

.cta-ring:nth-child(1) {
  width: 100px;
  height: 100px;
  animation-delay: 0s;
}

.cta-ring:nth-child(2) {
  width: 200px;
  height: 200px;
  top: -50px;
  left: -50px;
  animation-delay: -1.3s;
}

.cta-ring:nth-child(3) {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  animation-delay: -2.6s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.1; transform: scale(1.1); }
}

/* ===== Footer ===== */
.footer {
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-2xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--avax-red);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card-featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}

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

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

  .service-card-featured {
    grid-column: span 1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-visual {
    grid-template-columns: repeat(3, 1fr);
  }

  .visual-card:first-child {
    grid-column: span 1;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .cta-decoration {
    display: none;
  }
}
