/**
 * EA FC 26 Inspired Design System for Futbol Match
 * Dark, modern gaming aesthetic with vibrant blues and gradients
 * Focus: Modern, bold, and accessible (WCAG AA compliant on dark backgrounds)
 */

/* ============================================
   CSS Variables - EA FC 26 Color Palette
   ============================================ */
:root {
  /* Primary Colors - EA FC 26 Blues */
  --color-primary: #00D9FF;        /* Electric Cyan */
  --color-primary-dark: #00A8CC;   /* Deep Cyan */
  --color-primary-light: #5FE3FF;  /* Light Cyan */
  --color-secondary: #0055FF;      /* EA Blue */
  --color-secondary-dark: #0044CC; /* Deep Blue */
  --color-secondary-light: #3377FF;/* Light Blue */
  
  /* Accent Colors */
  --color-accent: #00FF88;         /* Electric Green */
  --color-accent-gold: #FFD700;    /* Gold */
  --color-accent-purple: #9D4EDD;  /* Purple */
  
  /* Background Colors - Dark Theme */
  --bg-body: linear-gradient(135deg, #0A1628 0%, #0D1B2A 50%, #1B263B 100%);
  --bg-dark: #0A1628;              /* Deep Navy */
  --bg-darker: #060D14;            /* Almost Black */
  --bg-card: #1B263B;              /* Dark Blue Card */
  --bg-card-hover: #243447;        /* Lighter on hover */
  --bg-gray-50: #2A3A4F;
  --bg-gray-100: #1F2D3D;
  
  /* Text Colors - High Contrast on Dark */
  --text-primary: #FFFFFF;         /* Pure White */
  --text-secondary: #B8C5D6;       /* Light Blue-Gray */
  --text-muted: #8A9BAD;           /* Muted Blue-Gray */
  --text-dark: #0A1628;            /* For light backgrounds */
  
  /* Border Colors */
  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(0, 217, 255, 0.5);
  --border-focus: #00D9FF;
  
  /* Status Colors - Vibrant */
  --status-success: #00FF88;       /* Electric Green */
  --status-warning: #FFB800;       /* Amber */
  --status-danger: #FF3366;        /* Pink-Red */
  --status-info: #00D9FF;          /* Cyan */
  
  /* Gradients - EA FC 26 Style */
  --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #0055FF 100%);
  --gradient-secondary: linear-gradient(135deg, #0055FF 0%, #9D4EDD 100%);
  --gradient-accent: linear-gradient(135deg, #00FF88 0%, #00D9FF 100%);
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --gradient-dark: linear-gradient(180deg, #1B263B 0%, #0A1628 100%);
  --gradient-card: linear-gradient(145deg, #1B263B 0%, #0F1929 100%);
  
  /* Shadows - Glowing Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
  --shadow-base: 0 4px 6px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 8px 12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 24px rgba(0, 0, 0, 0.8);
  --shadow-xl: 0 24px 40px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.4);
  --shadow-glow-secondary: 0 0 20px rgba(0, 85, 255, 0.4);
  --shadow-glow-success: 0 0 20px rgba(0, 255, 136, 0.4);
  
  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  
  /* Transitions */
  --transition: 200ms ease-in-out;
}

/* ============================================
   Base Styles
   ============================================ */
body {
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2rem; /* 32px */
}

h2 {
  font-size: 1.5rem; /* 24px */
}

h3 {
  font-size: 1.25rem; /* 20px */
}

h4 {
  font-size: 1.125rem; /* 18px */
}

/* ============================================
   Container & Cards
   ============================================ */
.app-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1.5rem;
}

.card {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-medium);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.card-sm {
  padding: 1rem;
  border-radius: var(--radius-lg);
}

/* ============================================
   Navigation
   ============================================ */
.nav-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-medium);
  position: relative;
}

.nav-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.nav-auth-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-left: 1px solid var(--border-medium);
  padding-left: 0.5rem;
  margin-left: 0.25rem;
}

.nav-menu-wrapper::-webkit-scrollbar {
  height: 4px;
}

.nav-menu-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.nav-menu-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 2px;
}

.nav-menu-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.nav-btn {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.813rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  overflow: visible;
}

#notificaciones-nav {
  padding-right: 1.5rem;
  min-width: fit-content;
}

.nav-btn-home {
  position: relative;
  width: 3rem;
  height: 2.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
}

.nav-home-icon {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.nav-btn-home-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-btn-home-wrapper:hover::after {
  content: 'Inicio';
  position: absolute;
  bottom: -2.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  pointer-events: none;
  opacity: 1;
}

.nav-btn:hover {
  background: var(--bg-gray-50);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.nav-btn.active {
  background: var(--gradient-primary);
  color: var(--text-primary);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  font-weight: 700;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--text-dark);
  border-color: transparent;
  font-weight: 700;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-success);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  border-color: transparent;
  font-weight: 700;
}

.btn-secondary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  background: var(--bg-gray-50);
  color: var(--text-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.btn-danger {
  background: var(--status-danger);
  color: var(--text-primary);
  border-color: transparent;
  font-weight: 700;
}

.btn-danger:hover {
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.6);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.813rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   Form Elements
   ============================================ */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--bg-darker);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
  background: var(--bg-dark);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   Badges & Labels
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-success {
  background: rgba(0, 255, 136, 0.2);
  color: #00FF88;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-warning {
  background: rgba(255, 184, 0, 0.2);
  color: #FFB800;
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.badge-danger {
  background: rgba(255, 51, 102, 0.2);
  color: #FF3366;
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.badge-info {
  background: rgba(0, 217, 255, 0.2);
  color: #00D9FF;
  border: 1px solid rgba(0, 217, 255, 0.3);
}

/* ============================================
   Feature Cards (Homepage Style)
   ============================================ */
.feature-card {
  background: var(--gradient-card);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-medium);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
  transition: left 0.5s;
}

.feature-card:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.feature-card:hover::after {
  left: 100%;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.feature-icon .sport-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Sports icons (Flaticon pack + SVG fallbacks) */
.sport-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  color: currentColor;
  object-fit: contain;
}

img.sport-icon {
  color: unset;
}

.rank-badge .rank-medal {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.sport-icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.sport-icon-inline .sport-icon {
  opacity: 0.9;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-logo-hero {
  width: 2.75rem;
  height: 2.75rem;
}

.brand-mark .sport-icon {
  color: var(--color-accent, #00FF88);
}

.sport-placeholder {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.15));
  color: var(--text-secondary, #9CA3AF);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.15));
}

.rank-badge.rank-1 {
  color: #1a1a1a;
  background: linear-gradient(135deg, #f5d76e, #d4a017);
  border-color: rgba(212, 160, 23, 0.55);
}

.rank-badge.rank-2 {
  color: #1a1a1a;
  background: linear-gradient(135deg, #e8e8e8, #a8a8a8);
  border-color: rgba(168, 168, 168, 0.55);
}

.rank-badge.rank-3 {
  color: #1a1a1a;
  background: linear-gradient(135deg, #e0b089, #b87333);
  border-color: rgba(184, 115, 51, 0.55);
}

.feature-icon-green {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 217, 255, 0.2));
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00FF88;
}

.feature-icon-blue {
  background: linear-gradient(135deg, rgba(0, 85, 255, 0.2), rgba(157, 78, 221, 0.2));
  border: 1px solid rgba(0, 85, 255, 0.3);
  color: #5B8CFF;
}

.feature-icon-yellow {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #FFD700;
}

.feature-icon-purple {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(0, 217, 255, 0.2));
  border: 1px solid rgba(157, 78, 221, 0.3);
  color: #C084FC;
}

/* ============================================
   Tables
   ============================================ */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background: var(--bg-darker);
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 2px solid var(--border-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-light);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background: var(--bg-gray-50);
}

/* ============================================
   Modal/Dialog
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 20, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-medium);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--bg-gray-100);
  color: var(--text-primary);
}

/* ============================================
   Alerts & Toasts
   ============================================ */
.alert {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.5);
  color: #00FF88;
}

.alert-warning {
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.5);
  color: #FFB800;
}

.alert-danger {
  background: rgba(255, 51, 102, 0.1);
  border-color: rgba(255, 51, 102, 0.5);
  color: #FF3366;
}

.alert-info {
  background: rgba(0, 217, 255, 0.1);
  border-color: rgba(0, 217, 255, 0.5);
  color: #00D9FF;
}

/* ============================================
   Loading States
   ============================================ */
.loading-spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border-light);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

/* ============================================
   Responsive Grid
   ============================================ */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Content Sections
   ============================================ */
.content-section {
  display: none;
}

.content-section.block {
  display: block;
}

/* ============================================
   Ad Zone (Subtle)
   ============================================ */
.ad-zone {
  background: linear-gradient(135deg, rgba(27, 38, 59, 0.5), rgba(31, 45, 61, 0.5));
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.ad-zone p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

/* ============================================
   Accessibility
   ============================================ */
*:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .nav-container,
  .ad-zone,
  .btn {
    display: none;
  }
}

/* ============================================
   Tournament Tabs
   ============================================ */
.tournament-tab:hover {
  color: var(--color-primary) !important;
  border-bottom-color: var(--color-primary) !important;
}

.tournament-tab.active {
  color: var(--color-primary) !important;
  border-bottom-color: var(--color-primary) !important;
  font-weight: 700 !important;
}

/* ============================================
   Home Hero — split layout (app palette)
   ============================================ */
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: clamp(280px, 42vw, 420px);
  margin: 0 0 1.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: var(--bg-darker);
  position: relative;
  isolation: isolate;
  animation: homeHeroIn 0.7s ease-out both;
}

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

.home-hero-visual {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a0f08 0%, #3d2415 45%, #0A1628 100%);
}

.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Focus top-right where the ball + player legs sit in the photo */
  object-position: 78% 22%;
  transform: scale(1.02);
  animation: homeHeroImage 1.1s ease-out both;
}

@keyframes homeHeroImage {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

.home-hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 60%, rgba(6, 13, 20, 0.45) 100%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.08) 0%, rgba(6, 13, 20, 0.35) 55%, rgba(6, 13, 20, 0.7) 100%);
  pointer-events: none;
}

.home-hero-visual-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0, 217, 255, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(0, 255, 136, 0.18) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
  animation: homeHeroGlow 6s ease-in-out infinite alternate;
}

@keyframes homeHeroGlow {
  from { opacity: 0.65; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}

.home-hero-brand-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}

.home-hero-brand-badge-logo {
  display: block;
  width: clamp(3.5rem, 10vw, 5rem);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.home-hero-brand-badge-text {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.home-hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.75rem 1.5rem 1.85rem;
  background:
    linear-gradient(115deg, transparent 0%, rgba(0, 217, 255, 0.08) 40%, transparent 70%),
    linear-gradient(180deg, #0B1524 0%, #060D14 100%);
  overflow: hidden;
}

.home-hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -28deg,
      transparent 0,
      transparent 42px,
      rgba(0, 217, 255, 0.045) 42px,
      rgba(0, 217, 255, 0.045) 44px
    );
  pointer-events: none;
}

.home-hero-content > * {
  position: relative;
  z-index: 1;
}

.home-hero-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.home-hero-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text-primary);
}

.home-hero-subtitle {
  margin: 0;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-hero-btn:hover {
  transform: translateY(-1px);
}

.home-hero-btn:active {
  transform: translateY(0);
}

.home-hero-btn-primary {
  background: var(--color-accent);
  color: var(--text-dark);
  border: none;
  box-shadow: var(--shadow-glow-success);
}

.home-hero-btn-primary:hover {
  background: #33ff9f;
}

.home-hero-btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.home-hero-btn-ghost:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.35);
}

.home-hero-meta {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .home-hero {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .home-hero-visual {
    min-height: 100%;
  }

  .home-hero-content {
    padding: 2.25rem 2rem;
  }

  .home-hero-visual::after {
    background:
      linear-gradient(90deg, transparent 45%, rgba(6, 13, 20, 0.75) 100%),
      linear-gradient(180deg, rgba(10, 22, 40, 0.05) 0%, rgba(6, 13, 20, 0.25) 55%, rgba(6, 13, 20, 0.5) 100%);
  }
}

@media (max-width: 899px) {
  .home-hero-image {
    object-position: 72% 18%;
  }

  .home-hero-brand-badge {
    top: 50%;
  }
}