/* ============================================================
   WordEtris Landing Page – style.css
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #12102A;
  --surface:    #1E1B3A;
  --surface-lt: #2A2650;
  --primary:    #7C5CFC;
  --primary-lt: #9B80FF;
  --secondary:  #00C9FF;
  --gold:       #FFD93D;
  --green:      #06D6A0;
  --white:      #FFFFFF;
  --white70:    rgba(255,255,255,.70);
  --white30:    rgba(255,255,255,.30);
  --white10:    rgba(255,255,255,.10);
  --grid-line:  #322E5F;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --font-game:  'Tilt Warp', cursive;
  --font-ui:    'Nunito', sans-serif;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Orbs ---- */
.animated-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: .5; /* Increased vibrancy */
  animation: orbFloat 10s ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
}
.orb-1 { width:500px;height:500px;background:radial-gradient(circle,#7C5CFC,transparent);top:-120px;left:-100px;animation-delay:0s; }
.orb-2 { width:400px;height:400px;background:radial-gradient(circle,#00C9FF,transparent);top:30%;right:-80px;animation-delay:2s; }
.orb-3 { width:350px;height:350px;background:radial-gradient(circle,#EF476F,transparent);bottom:5%;left:20%;animation-delay:4s; }
.orb-4 { width:500px;height:500px;background:radial-gradient(circle,#7C5CFC,transparent);top:-100px;right:0;animation-delay:1s; }
.orb-5 { width:350px;height:350px;background:radial-gradient(circle,#00C9FF,transparent);bottom:0;left:0;animation-delay:3s; }
@keyframes orbFloat {
  0%,100%{transform:translateY(0) scale(1);}
  50%{transform:translateY(-30px) scale(1.05);}
}

/* ---- Header & Navbar ---- */
.main-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: 80px; display: flex; align-items: center;
  background: rgba(18, 16, 42, .85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--white10);
  transition: var(--transition);
}
.main-header.scrolled {
  background: rgba(18, 16, 42, .98);
  padding: 0;
}
.navbar-container {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
}
.logo {
  font-family: var(--font-game);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--white);
  z-index: 1001;
  transition: transform var(--transition);
}
.logo:hover { transform: scale(1.04); }

.navbar { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-link {
  font-size: .95rem; font-weight: 600;
  color: var(--white70);
}
.nav-link:hover, .nav-link.active { color: var(--white); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  color: var(--white);
  padding: .75rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 4px 20px rgba(124, 92, 252, .4);
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 92, 252, .5);
}

/* Hamburger */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.bar { width: 25px; height: 3px; background: var(--white); border-radius: 3px; transition: var(--transition); }

/* ---- Hero Section ---- */
.hero-section {
  padding-top: 160px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-bg-circle {
  position: absolute; top: -30%; right: -20%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(124, 92, 252, .07) 0%, transparent 70%);
  border-radius: 50%; z-index: -1;
}
.hero-container {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  position: relative; z-index: 1; max-width: 750px; margin: 0 auto;
}
.hero-content { flex: 1; width: 100%; }
.hero-content h1 {
  font-family: var(--font-game);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.hero-content h1 span { color: var(--primary-lt); }
.text-gold { color: var(--gold) !important; }
.hero-content p {
  font-size: 1.2rem;
  color: var(--white70);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---- Hero App Icon ---- */
.hero-app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  margin: 0 auto 2rem;
  display: block;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
  animation: iconFloat 6s ease-in-out infinite alternate;
}
@keyframes iconFloat {
  0% { transform: translateY(0) rotate(0); }
  100% { transform: translateY(-10px) rotate(2deg); }
}

/* ---- Store Buttons (WordEtris Style) ---- */
.store-btn {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .7rem 1.75rem;
  border-radius: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all var(--transition);
  min-width: 190px;
  cursor: pointer;
}
.store-btn-inner {
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
}
.store-btn-sub {
  font-size: .65rem; font-weight: 500; opacity: .8; line-height: 1.2;
}
.store-btn-main {
  font-size: 1.1rem; font-weight: 800; line-height: 1.2;
}
.store-btn-apple {
  background: #000;
  color: #fff;
  border-color: rgba(255,255,255,0.1);
}
.store-btn-apple:hover {
  background: #111;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.2);
}
.store-btn-google {
  background: #fff;
  color: #000;
  border-color: #eee;
}
.store-btn-google:hover {
  background: #f8f8f8;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(255,255,255,0.15);
  border-color: #ddd;
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: flex; justify-content: center; gap: 60px;
  padding: 60px 1.5rem;
  position: relative; z-index: 1;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--font-game); font-size: 2.2rem; color: var(--white); margin-bottom: 4px; }
.stat-label { font-size: .85rem; color: var(--white70); font-weight: 600; }

/* ---- Section Common ---- */
section { padding: 6rem 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-header h2 {
  font-family: var(--font-game);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.section-header p { font-size: 1.1rem; color: var(--white70); }

/* ---- How It Works (Cards) ---- */
.gamemodes-section { background: transparent; }
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.mode-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--white10);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.mode-card:hover {
  transform: translateY(-6px);
  background: var(--surface-lt);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  border-color: rgba(124, 92, 252, .4);
}
.mode-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.mode-card h3 { font-family: var(--font-game); font-size: 1.15rem; margin-bottom: .5rem; color: var(--white); }
.mode-card p { font-size: .95rem; color: var(--white70); }

/* ---- Features Section ---- */
.features-section { background: transparent; }
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-check {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: white; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(124, 92, 252, .4);
}
.feature-content h4 { font-size: 1.05rem; margin-bottom: .25rem; color: var(--white); }
.feature-content p { font-size: .9rem; color: var(--white70); }

/* ---- Phone Showcase ---- */
.showcase-section { background: transparent; }
.phone-showcase {
  display: flex; justify-content: center;
  gap: 3rem; padding: 3rem 0;
  perspective: 1000px; align-items: center;
}
.phone {
  width: 260px; height: 520px;
  background: #111;
  border-radius: 40px; border: 12px solid #1a1a1a;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,.6);
  overflow: hidden;
  transform: rotateY(15deg) scale(.9);
  transition: var(--transition); opacity: .8;
}
.center-phone {
  transform: rotateY(0) scale(1.05); opacity: 1; z-index: 10;
  border-color: #000;
  box-shadow: 0 35px 70px rgba(124, 92, 252, .3);
}
.phone:hover { transform: rotateY(0) scale(1); opacity: 1; z-index: 11; border-color: #000; }
.notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100px; height: 24px;
  background: #000; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; z-index: 20;
}
.screen-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Why Section ---- */
.why-section { background: transparent; text-align: center; }
.why-section h2 { font-family: var(--font-game); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); }
.why-section h3 { font-family: var(--font-game); color: var(--white); font-size: 1.5rem; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.benefit-card {
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--white10);
  transition: var(--transition);
}
.benefit-card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 252, .4); }
.benefit-card span { font-size: 2.5rem; }
.benefit-card strong { display: block; margin-top: 1rem; color: var(--white); font-family: var(--font-game); }
.benefit-card p { font-size: .9rem; color: var(--white70); margin-top: .5rem; }

/* ---- Scroll Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(.4, 0, .2, 1), transform 0.6s cubic-bezier(.4, 0, .2, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Animation overrides for .phone to preserve 3D rotation */
.phone.animate-on-scroll {
  opacity: 0;
  transform: rotateY(15deg) scale(.9) translateY(30px);
  transition: opacity 0.6s cubic-bezier(.4, 0, .2, 1), transform 0.6s cubic-bezier(.4, 0, .2, 1), border-color var(--transition);
}
.phone.animate-on-scroll.visible {
  opacity: .8;
  transform: rotateY(15deg) scale(.9) translateY(0);
}
.center-phone.animate-on-scroll {
  opacity: 0;
  transform: rotateY(0) scale(1.05) translateY(30px);
}
.center-phone.animate-on-scroll.visible {
  opacity: 1;
  transform: rotateY(0) scale(1.05) translateY(0);
}

/* ---- Footer ---- */
.main-footer {
  background: var(--surface);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--white10);
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem;
}
.footer-logo { font-family: var(--font-game); font-size: 1.5rem; color: var(--white); margin-bottom: 1rem; display: flex; align-items: center; gap: 12px; }
.footer-logo-img { width: 32px; height: 32px; border-radius: 8px; }
.brand-desc { max-width: 300px; color: var(--white70); font-size: .9rem; line-height: 1.6; }

.footer-links h4, .footer-social h4 { margin-bottom: 1.5rem; font-size: 1rem; color: var(--white); }
.footer-links ul { display: flex; flex-direction: column; gap: .8rem; }
.footer-links a { color: var(--white70); font-size: .95rem; }
.footer-links a:hover { color: var(--primary-lt); }
.footer-contact-info { margin-top: 1.5rem; font-size: .9rem; color: var(--white70); }
.footer-contact-info p { margin-bottom: .5rem; }
.footer-contact-info a { color: var(--white70); }
.footer-contact-info a:hover { color: var(--primary-lt); }

.social-icons { display: flex; gap: 1rem; }
.social-icons svg { width: 20px; height: 20px; }
.social-icons a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--white70);
  border: 1px solid var(--white10);
  transition: var(--transition);
}
.social-icons a:hover { background: var(--primary); color: white; border-color: var(--primary); }

.footer-bottom {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--white10);
  text-align: center; color: var(--white30); font-size: .85rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .navbar {
    display: none;
    flex-direction: column;
    position: absolute; top: 80px; left: 0; width: 100%;
    background: rgba(18, 16, 42, .98);
    backdrop-filter: blur(20px);
    padding: 2rem; z-index: 999;
    border-bottom: 1px solid var(--white10);
  }
  .navbar.active { display: flex; }
  .nav-links { flex-direction: column; align-items: center; width: 100%; gap: 1.5rem; margin-bottom: 1.5rem; }
  .hamburger { display: flex; }
  .hero-container { text-align: center; }
  .hero-content p { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .stats-bar { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .brand-desc { margin: 0 auto; }
  .social-icons { justify-content: center; }
  .phone-showcase { flex-direction: column; gap: 2rem; transform: scale(.85); }
  .phone.animate-on-scroll { transform: rotateY(0) scale(.95) translateY(30px); }
  .phone.animate-on-scroll.visible { transform: rotateY(0) scale(.95) translateY(0); opacity: 1; }
  .center-phone.animate-on-scroll { transform: rotateY(0) scale(1.02) translateY(30px); }
  .center-phone.animate-on-scroll.visible { transform: rotateY(0) scale(1.02) translateY(0); opacity: 1; }
  .phone:hover { transform: rotateY(0) scale(1); }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 2.2rem; }
  .stats-bar { gap: 16px; }
  .stat-num { font-size: 1.6rem; }
  .store-btn { min-width: 140px; }
}

