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

* {
  margin: 0;
  padding: 0;
}

/* Optimize loading */
img {
  max-width: 100%;
  height: auto;
}

svg {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
  background: #0B0B0B;
  color: #F5F5F5;
  line-height: 1.6;
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  --primary: #111111;
  --secondary: #0EA5E9;
  --accent: #22C55E;
  --background: #0B0B0B;
  --text: #F5F5F5;
  --text-muted: rgba(245, 245, 245, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  --gradient-hero: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  --container-max: 1200px;
  --border-radius: 16px;
  --border-radius-lg: 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.4);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn--small {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 11, 11, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.25rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: -1;
}

.hero__background::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -20%;
  width: 140%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

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

.hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  z-index: 10;
  position: relative;
}

.hero__title {
  background: linear-gradient(135deg, var(--text) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Proof Strip */
.proof {
  padding: 4rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.proof__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.6;
}

.proof__logo {
  height: 40px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.proof__logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.proof__logo svg,
.proof__logo img {
  height: 100%;
  width: auto;
  filter: brightness(0.8);
}

.proof__logo img {
  transition: filter 0.3s ease;
}

.proof__logo:hover img {
  filter: brightness(1);
}

/* Services */
.services {
  padding: 6rem 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  color: var(--text);
  margin-bottom: 1rem;
}

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

/* Methodology */
.methodology {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
  text-align: center;
}

.methodology__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.methodology__subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Platforms */
.platforms {
  padding: 6rem 0;
}

.platforms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.platform-card {
  text-align: center;
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.platform-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.platform-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* Games */
.games {
  padding: 6rem 0;
  background: rgba(17, 17, 17, 0.5);
}

.games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.game-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.game-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(14, 165, 233, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.game-placeholder {
  font-size: 4rem;
  opacity: 0.8;
}

.game-card__title {
  padding: 1.5rem 1.5rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.game-card__tags {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(14, 165, 233, 0.2);
  color: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.game-card--cta {
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card__content {
  text-align: center;
  padding: 2rem;
}

.game-card__plus {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.game-card--cta h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.game-card--cta .btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.game-card--cta .btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Monetization */
.monetization {
  padding: 6rem 0;
}

.monetization__list {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.monetization__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.monetization__item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.monetization__icon {
  font-size: 2rem;
}

/* Advertising */
.advertising {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
}

.advertising__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .advertising__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.advertising__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.advertising__description {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.advertising__showcase {
  display: flex;
  justify-content: center;
}

.video-placeholder {
  width: 100%;
  max-width: 400px;
  height: 250px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.02);
}

.play-button {
  font-size: 3rem;
  opacity: 0.8;
}

/* Process */
.process {
  padding: 6rem 0;
}

.process__timeline {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

.process__timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gradient-primary);
  z-index: -1;
}

@media (max-width: 768px) {
  .process__timeline {
    flex-direction: column;
    gap: 3rem;
  }
  
  .process__timeline::before {
    display: none;
  }
}

.process__step {
  text-align: center;
  flex: 1;
  max-width: 200px;
}

.process__number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.process__step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

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

/* Case Study */
.case-study {
  padding: 6rem 0;
  background: rgba(17, 17, 17, 0.5);
}

.kpi-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
}

.kpi-card__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.kpi-stat {
  text-align: center;
}

.kpi-stat__value {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.kpi-stat__label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Tech Stack */
.tech-stack {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.tech-stack__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.6;
}

.tech-logo {
  padding: 1rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.tech-logo:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateY(-2px);
}

/* Contact */
.contact {
  padding: 6rem 0;
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact__content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  font-size: 1.125rem;
}

.contact__item strong {
  color: var(--secondary);
  margin-right: 1rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__form input,
.contact__form textarea {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.08);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: var(--text-muted);
}

.contact__form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--primary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

.footer__logo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer__tagline {
  color: var(--text-muted);
  max-width: 400px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--text);
}

.lang-switch--footer {
  align-self: start;
}

@media (max-width: 768px) {
  .lang-switch--footer {
    align-self: center;
  }
}

.footer__bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: center;
}

.footer__bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .monetization__list {
    flex-direction: column;
    align-items: center;
  }
  
  .monetization__item {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .header__content {
    height: 60px;
  }
  
  .hero {
    padding-top: 60px;
  }
  
  .proof__logos {
    gap: 1.5rem;
  }
  
  .proof__logo {
    height: 30px;
  }
}