/* ============================================================
   VITALEDGE — Premium Performance Design System
   A luxury masculine SaaS-style link hub
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors - Red/Black Masculine Theme */
  --color-void: #060202;
  --color-surface: rgba(20, 4, 4, 0.6);
  --color-surface-solid: #0d0303;
  
  --color-accent: #dc2626; /* Crimson */
  --color-accent-light: #ef4444;
  --color-accent-soft: #f87171;
  --color-accent-deep: #991b1b;
  
  --color-accent-glow: rgba(220, 38, 38, 0.15);
  --color-accent-glow-strong: rgba(220, 38, 38, 0.4);
  
  --color-text: #f9f4f4;
  --color-text-secondary: #a19d9d;
  --color-text-muted: #736b6b;
  
  --color-border: rgba(220, 38, 38, 0.15);
  --color-border-hover: rgba(220, 38, 38, 0.45);
  
  --color-glass: rgba(15, 2, 2, 0.7);
  --color-glass-strong: rgba(25, 3, 3, 0.85);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

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

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.6), 0 4px 15px rgba(220, 38, 38, 0.2);
  --shadow-glow: 0 0 30px rgba(220, 38, 38, 0.2);
  --shadow-glow-strong: 0 0 60px rgba(220, 38, 38, 0.4);
  --shadow-btn: 0 6px 25px rgba(220, 38, 38, 0.35);
  --shadow-btn-hover: 0 8px 35px rgba(220, 38, 38, 0.55);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.6s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-void);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* --- Utilities --- */
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* --- Typography --- */
.text-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.text-subheading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.text-body {
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.accent {
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--space-lg) 0;
  position: relative;
}

.section + .section {
  padding-top: var(--space-sm);
}

.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

/* --- Ambient Background --- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}

.orb-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.4), transparent 70%);
  top: -100px;
  right: -150px;
  animation: orbFloat1 18s ease-in-out infinite;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(153, 27, 27, 0.3), transparent 70%);
  bottom: 25%;
  left: -120px;
  animation: orbFloat2 22s ease-in-out infinite;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2), transparent 70%);
  bottom: -50px;
  right: -50px;
  animation: orbFloat3 16s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 50px) scale(1.1); }
  66% { transform: translate(30px, -20px) scale(0.9); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -40px) scale(1.15); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-30px, -50px); }
  80% { transform: translate(20px, 30px); }
}

/* Grid overlay for tactical/performance feel */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(220, 38, 38, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* --- Glassmorphism Cards --- */
.glass-card {
  background: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card-hover);
}

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

/* Red shimmer on hover */
.glass-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(220, 38, 38, 0.04) 50%,
    transparent 70%
  );
  transform: rotate(0deg);
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
}

.glass-card:hover::after {
  transform: rotate(180deg);
}

.glass-card--interactive {
  cursor: pointer;
  display: flex;
}

.glass-card--interactive:active {
  transform: translateY(-1px) scale(0.99);
}

/* --- Buttons --- */
.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, #b91c1c, var(--color-accent));
  color: #fff;
  box-shadow: var(--shadow-btn);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-btn-hover), 0 0 60px rgba(220, 38, 38, 0.5);
  background: linear-gradient(135deg, var(--color-accent), #ef4444);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Glow pulse animation for primary CTA */
.btn-glow {
  animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: var(--shadow-btn); }
  50% { box-shadow: var(--shadow-btn-hover), 0 0 50px rgba(220, 38, 38, 0.45); }
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s var(--ease-out);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid var(--color-border-hover);
  color: var(--color-text);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: rgba(220, 38, 38, 0.15);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
}

.btn-large {
  padding: 1.1rem 1.5rem;
}

.btn-text {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.btn-subtext {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 4px;
  letter-spacing: 0.05em;
  text-transform: none;
}

/* --- Hero Section --- */
.hero {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
  text-align: center;
}

/* Logo */
.logo-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(220, 38, 38, 0.4);
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.2);
  position: relative;
  background: var(--color-surface-solid);
  animation: logoRingPulse 4s ease-in-out infinite;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

@keyframes logoRingPulse {
  0%, 100% { border-color: rgba(220, 38, 38, 0.3); box-shadow: 0 0 20px rgba(220, 38, 38, 0.15); }
  50% { border-color: rgba(220, 38, 38, 0.7); box-shadow: 0 0 35px rgba(220, 38, 38, 0.35); }
}

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo-wordmark span {
  color: var(--color-accent);
}

/* Pre-label */
.hero .pre-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-md);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.1);
}

.hero .pre-label .dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-sub {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 420px;
  margin: 0 auto var(--space-md);
}

.hero-sub-muted {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  display: block;
  margin-top: 6px;
  font-weight: 400;
}

/* Hero Cover */
.hero-cover-wrap {
  margin: var(--space-sm) auto 0 auto;
  width: 100%;
}

.cover-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(220, 38, 38, 0.2);
  border: 1px solid var(--color-border);
}

.product-cover {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow);
}

.cover-wrapper:hover .product-cover {
  transform: scale(1.05);
}

/* Value Stack */
.hero-value-stack {
  margin: 0 auto var(--space-sm);
  text-align: left;
  max-width: 420px;
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-card);
}

.value-stack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value-stack-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(-15px);
  animation: slideRight 0.5s ease-out forwards;
}

.value-stack-list li:nth-child(1) { animation-delay: 1.0s; }
.value-stack-list li:nth-child(2) { animation-delay: 1.1s; }
.value-stack-list li:nth-child(3) { animation-delay: 1.2s; }
.value-stack-list li:nth-child(4) { animation-delay: 1.3s; }
.value-stack-list li:nth-child(5) { animation-delay: 1.4s; }
.value-stack-list li:nth-child(6) { animation-delay: 1.5s; }
.value-stack-list li:nth-child(7) { animation-delay: 1.6s; }

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.value-stack-list li i {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-top: 2px;
  filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.5));
}

.check-green {
  color: #00cc66 !important;
  filter: drop-shadow(0 0 5px rgba(0, 204, 102, 0.4)) !important;
}

.hero-cta-wrap {
  position: relative;
  z-index: 10;
  max-width: 420px;
  margin: 0 auto;
}

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1.5rem 0;
  margin: var(--space-md) auto;
  max-width: 420px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.trust-item i {
  font-size: 1.2rem;
  color: var(--color-accent);
}

/* --- Programs Grid --- */
.programs-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.program-card {
  align-items: center;
  padding: 1.25rem;
  gap: 1.25rem;
  border-radius: 16px;
}

.program-card-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-accent-light);
  flex-shrink: 0;
  box-shadow: inset 0 0 15px rgba(220, 38, 38, 0.1);
  transition: all var(--duration-normal) var(--ease-out);
}

.program-card:hover .program-card-icon {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent-light);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
  transform: scale(1.05);
}

.program-card-content {
  flex-grow: 1;
}

.program-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.btn-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--duration-fast);
}

.program-card:hover .btn-link {
  gap: 10px;
  color: var(--color-accent-light);
}

/* --- Resources --- */
.resources-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.resource-item {
  padding: var(--space-sm) var(--space-md);
  align-items: center;
  gap: var(--space-md);
}

.resource-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.resource-icon.discord {
  background: #5865F2; /* Discord color, keep brand but maybe darker? */
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.resource-icon.guide {
  background: linear-gradient(135deg, #4b5563, #1f2937);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-content {
  flex-grow: 1;
}

.resource-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.resource-arrow {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  transition: transform var(--duration-fast), color var(--duration-fast);
}

.resource-item:hover .resource-arrow {
  transform: translateX(4px);
  color: var(--color-accent);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding-bottom: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: var(--space-xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.footer-logo-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(220, 38, 38, 0.3);
  background: var(--color-surface-solid);
}

.footer-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  transition: all var(--duration-normal) var(--ease-out);
}

.social-link:hover {
  background: rgba(220, 38, 38, 0.15);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

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

/* --- Animations Initial State --- */
.hero-load-1, .hero-load-2, .hero-load-3, .hero-load-4, .hero-load-5 {
  opacity: 0;
  transform: translateY(20px);
}

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

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

/* --- Mobile Responsive Enhancements --- */
@media (max-width: 480px) {
  .hero-headline {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }
  .container {
    padding: 0 var(--space-md);
  }
  .btn-large {
    padding: 1rem;
  }
  .btn-text {
    font-size: 0.95rem;
  }
  .program-card {
    padding: var(--space-md);
    gap: var(--space-sm);
  }
  .trust-bar {
    flex-wrap: wrap;
    gap: 15px;
    padding: 1rem 0;
  }
  .trust-item {
    font-size: 0.7rem;
    flex: 1 1 45%;
  }
  .value-stack-list li {
    font-size: 0.8rem;
    gap: 8px;
  }
  .hero-sub {
    font-size: 0.9rem;
  }
}
