/* ========================================
   KRAKEN GAMING PLATFORM - STYLES 2026
   Brutalist Neo-Futurism Design
   ======================================== */

/* CSS Variables */
:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Outfit', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

.cursor-follower.hover {
  width: 60px;
  height: 60px;
  background: var(--white);
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, var(--black) 0%, transparent 100%);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 3rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  font-size: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

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

.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: var(--transition-smooth);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--white);
  color: var(--black);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-fast);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

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

.cta-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 3rem 4rem;
  max-width: 1600px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}

.title-line {
  display: block;
}

.title-outline {
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--gray-400);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-fast);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1.25rem 2rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--gray-600);
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-image-container {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 5%, 5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(1.1);
  transition: filter var(--transition-smooth);
}

.hero-image-container:hover .hero-image {
  filter: grayscale(80%) contrast(1.2);
}

.image-glitch {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  animation: glitch 3s ease-in-out infinite;
}

@keyframes glitch {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.float-element {
  position: absolute;
  font-size: 2rem;
  color: var(--gray-600);
  animation: float 6s ease-in-out infinite;
}

.float-1 { top: 10%; left: -10%; animation-delay: 0s; }
.float-2 { top: 60%; right: -5%; animation-delay: 2s; }
.float-3 { bottom: 10%; left: 20%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* Section Styles */
.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
}

/* Features Section */
.features {
  padding: 8rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1px solid var(--gray-800);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--gray-900);
  padding: 2.5rem;
  border: 1px solid var(--gray-800);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
}

.feature-card:hover::before {
  transform: translateX(0);
}

.feature-card:hover {
  border-color: var(--gray-600);
  transform: translateY(-4px);
}

.feature-large {
  grid-column: span 2;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Games Section */
.games {
  padding: 8rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1px solid var(--gray-800);
}

.games-showcase {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
}

.game-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
}

.game-featured {
  grid-row: span 2;
  aspect-ratio: auto;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition-smooth);
}

.game-card:hover .game-image {
  filter: grayscale(60%);
  transform: scale(1.05);
}

.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, var(--black) 0%, transparent 100%);
}

.game-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.game-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.game-overlay p {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.game-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 2rem;
  background: 
      repeating-linear-gradient(
          45deg,
          var(--gray-900),
          var(--gray-900) 10px,
          var(--gray-800) 10px,
          var(--gray-800) 20px
      );
}

/* Community Section */
.community {
  padding: 8rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1px solid var(--gray-800);
}

.community-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.community-text p {
  color: var(--gray-300);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.community-intro {
  font-size: 1.125rem !important;
  color: var(--white) !important;
}

.community-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.comm-feature {
  padding: 1.5rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  transition: var(--transition-fast);
}

.comm-feature:hover {
  border-color: var(--gray-600);
}

.comm-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.comm-feature h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.comm-feature p {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 10rem 3rem;
  text-align: center;
  background: 
      radial-gradient(ellipse at center, var(--gray-900) 0%, var(--black) 70%);
  border-top: 1px solid var(--gray-800);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.cta-description {
  color: var(--gray-400);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.cta-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.cta-form input {
  flex: 1;
  padding: 1.25rem 1.5rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.cta-form input:focus {
  border-color: var(--white);
}

.cta-form input::placeholder {
  color: var(--gray-500);
}

.cta-form button {
  padding: 1.25rem 2rem;
  background: var(--white);
  color: var(--black);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.cta-form button:hover {
  transform: scale(1.02);
}

.cta-note {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  padding: 5rem 3rem 2rem;
  border-top: 1px solid var(--gray-800);
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo-icon {
  font-size: 2.5rem;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  margin-left: 0.5rem;
}

.footer-brand p {
  color: var(--gray-500);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: space-between;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
  color: var(--gray-600);
  font-size: 0.8125rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .features-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-large {
      grid-column: span 2;
  }
  
  .games-showcase {
      grid-template-columns: 1fr 1fr;
  }
  
  .game-featured {
      grid-row: span 1;
  }
}

@media (max-width: 992px) {
  .hero {
      grid-template-columns: 1fr;
      text-align: center;
      padding-top: 10rem;
  }
  
  .hero-content {
      order: 1;
  }
  
  .hero-visual {
      order: 0;
      max-width: 500px;
      margin: 0 auto;
  }
  
  .hero-description {
      margin-left: auto;
      margin-right: auto;
  }
  
  .hero-actions {
      justify-content: center;
  }
  
  .hero-stats {
      justify-content: center;
  }
  
  .community-content {
      grid-template-columns: 1fr;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
      padding: 1rem 1.5rem;
  }
  
  .nav-links, .cta-btn {
      display: none;
  }
  
  .mobile-menu {
      display: flex;
  }
  
  .hero, .features, .games, .community, .cta-section {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
  }
  
  .features-grid {
      grid-template-columns: 1fr;
  }
  
  .feature-large {
      grid-column: span 1;
  }
  
  .games-showcase {
      grid-template-columns: 1fr;
  }
  
  .cta-form {
      flex-direction: column;
  }
  
  .footer-links {
      flex-direction: column;
      gap: 2rem;
  }
  
  .footer-bottom {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
  }
  
  /* Disable custom cursor on mobile */
  body {
      cursor: auto;
  }
  
  .cursor-follower {
      display: none;
  }
}

/* Animations on scroll */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .game-card,
  .comm-feature {
      opacity: 0;
      transform: translateY(30px);
      animation: revealUp 0.8s ease-out forwards;
  }
  
  .feature-card:nth-child(1) { animation-delay: 0.1s; }
  .feature-card:nth-child(2) { animation-delay: 0.2s; }
  .feature-card:nth-child(3) { animation-delay: 0.3s; }
  .feature-card:nth-child(4) { animation-delay: 0.4s; }
  
  .game-card:nth-child(1) { animation-delay: 0.1s; }
  .game-card:nth-child(2) { animation-delay: 0.2s; }
  .game-card:nth-child(3) { animation-delay: 0.3s; }
  
  @keyframes revealUp {
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }
}

/* Selection */
::selection {
  background: var(--white);
  color: var(--black);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-900);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-600);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}