/* ==========================================================================
   Reilu.eu Landing Page - Neon Arena Noir Theme
   ========================================================================== */

/* CSS Custom Properties */
:root {
  --color-bg: #0a0a0f;
  --color-bg-elevated: #12121a;
  --color-ice-blue: #4ecfff;
  --color-neon-green: #a3ff12;
  --color-text: #ffffff;
  --color-text-muted: #8a8a9a;

  --glow-ice: 0 0 20px rgba(78, 207, 255, 0.4),
              0 0 40px rgba(78, 207, 255, 0.2),
              0 0 60px rgba(78, 207, 255, 0.1);
  --glow-ice-intense: 0 0 30px rgba(78, 207, 255, 0.6),
                      0 0 60px rgba(78, 207, 255, 0.4),
                      0 0 90px rgba(78, 207, 255, 0.2);

  --glow-neon: 0 0 20px rgba(163, 255, 18, 0.4),
               0 0 40px rgba(163, 255, 18, 0.2),
               0 0 60px rgba(163, 255, 18, 0.1);
  --glow-neon-intense: 0 0 30px rgba(163, 255, 18, 0.6),
                       0 0 60px rgba(163, 255, 18, 0.4),
                       0 0 90px rgba(163, 255, 18, 0.2);

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow: hidden;
  position: relative;
}

/* Arena Atmosphere */
.arena-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.arena-glow--top {
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(78, 207, 255, 0.08) 0%,
    rgba(78, 207, 255, 0.02) 40%,
    transparent 70%
  );
}

.arena-glow--bottom {
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    rgba(163, 255, 18, 0.05) 0%,
    rgba(163, 255, 18, 0.01) 40%,
    transparent 70%
  );
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Hockey Puck */
.puck {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #2a2a2a 0%,
    #1a1a1a 30%,
    #0a0a0a 100%
  );
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.puck--blur {
  filter: blur(1px);
}

/* Container */
.container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* Card Grid */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

@media (min-width: 600px) {
  .card-grid {
    flex-direction: row;
    gap: 80px;
  }
}

/* Card Component */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px;
  width: 180px;
  background: var(--color-bg-elevated);
  border-radius: 20px;
  text-decoration: none;
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth);
  cursor: pointer;
}

.card:focus {
  outline: none;
}

.card:focus-visible {
  outline: 2px solid var(--color-ice-blue);
  outline-offset: 4px;
}

/* Ice Blue Card (221) */
.card--ice {
  box-shadow: var(--glow-ice),
              0 4px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(78, 207, 255, 0.2);
}

.card--ice:hover,
.card--ice:focus-visible {
  transform: scale(1.05);
  box-shadow: var(--glow-ice-intense),
              0 8px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(78, 207, 255, 0.4);
}

.card--ice .card__label {
  color: var(--color-ice-blue);
  text-shadow: 0 0 10px rgba(78, 207, 255, 0.5);
}

/* Neon Green Card (235) */
.card--neon {
  box-shadow: var(--glow-neon),
              0 4px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(163, 255, 18, 0.2);
}

.card--neon:hover,
.card--neon:focus-visible {
  transform: scale(1.05);
  box-shadow: var(--glow-neon-intense),
              0 8px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(163, 255, 18, 0.4);
}

.card--neon .card__label {
  color: var(--color-neon-green);
  text-shadow: 0 0 10px rgba(163, 255, 18, 0.5);
}

/* Card Icon */
.card__icon-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
}

.card__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Card Label */
.card__label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Site Header */
.site-header {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
}

/* Site Title */
.site-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-ice-blue);
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(78, 207, 255, 0.5);
  margin: 0;
}

/* Info Button */
.info-btn {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-text-muted);
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-smooth),
              border-color var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.info-btn:hover {
  color: var(--color-ice-blue);
  border-color: var(--color-ice-blue);
  box-shadow: 0 0 15px rgba(78, 207, 255, 0.3);
}

.info-btn:focus {
  outline: none;
}

.info-btn:focus-visible {
  outline: 2px solid var(--color-ice-blue);
  outline-offset: 2px;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth),
              visibility var(--transition-smooth);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Modal */
.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(78, 207, 255, 0.2);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 0 40px rgba(78, 207, 255, 0.15),
              0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color var(--transition-smooth),
              background var(--transition-smooth);
}

.modal__close:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
}

.modal__close:focus {
  outline: none;
}

.modal__close:focus-visible {
  outline: 2px solid var(--color-ice-blue);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-ice-blue);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.modal__subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal__section {
  margin-bottom: 24px;
}

.modal__section:last-child {
  margin-bottom: 0;
}

.modal__section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.modal__section-title svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.modal__steps {
  list-style: decimal;
  padding-left: 24px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
}

.modal__steps strong {
  color: var(--color-text);
  font-weight: 500;
}

.modal__copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .card,
  .info-btn,
  .modal-overlay,
  .modal,
  .modal__close {
    transition: none;
  }

  .puck {
    display: none;
  }
}
