/* ==========================================================================
   NOUCHI WORLD WEBSITE DESIGN SYSTEM
   Theme: Dark Navy (#0B0E14), Neon Orange (#FF6B00), Emerald Green (#00E676)
   ========================================================================== */

:root {
  --bg-dark: #0B0E14;
  --bg-card: rgba(22, 30, 46, 0.75);
  --border-card: rgba(255, 255, 255, 0.1);
  
  --primary-orange: #FF6B00;
  --primary-green: #00E676;
  --accent-gold: #FFC107;
  --accent-pink: #E91E63;
  --accent-blue: #2196F3;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-sub: #CBD5E1;

  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Decorative Grids & Orbs */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  pointer-events: none;
  z-index: -2;
}

.glow-orb {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.2;
  z-index: -1;
}

.orb-orange {
  top: -100px;
  right: -50px;
  background: var(--primary-orange);
}

.orb-green {
  bottom: -150px;
  left: -100px;
  background: var(--primary-green);
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

.gradient-text {
  background: linear-gradient(135deg, #FF9800 0%, #FF6B00 50%, #FFC107 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-orange {
  color: var(--primary-orange);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary-orange);
  margin-bottom: 20px;
}

.badge-pill.center {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #FF6B00, #FF9800);
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(255, 107, 0, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.btn-google-play {
  background: #121824;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
}

.btn-google-play:hover {
  background: #1A2334;
  border-color: var(--primary-orange);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.play-store-svg {
  width: 32px;
  height: 32px;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-subtext {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.btn-maintext {
  font-size: 1.15rem;
  font-weight: 800;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: var(--primary-orange);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-outline:hover {
  background: rgba(255, 107, 0, 0.15);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(11, 14, 20, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-normal);
}

.nav-link:hover {
  color: var(--primary-orange);
}

.play-icon {
  width: 18px;
  height: 18px;
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-sub);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  gap: 18px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #FFFFFF;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual & Feature Banner */
.hero-visual {
  position: relative;
}

.feature-card-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 107, 0, 0.3);
  background: #000;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.feature-card-wrapper:hover .hero-banner-img {
  transform: scale(1.03);
}

.floating-tiles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-tile {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid var(--primary-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: #FFFFFF;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  animation: float 4s ease-in-out infinite alternate;
}

.tile-g { top: 10%; left: 5%; border-color: var(--primary-green); animation-delay: 0s; }
.tile-b { top: 20%; right: 8%; border-color: var(--primary-orange); animation-delay: 1s; }
.tile-a { bottom: 15%; left: 10%; border-color: var(--accent-gold); animation-delay: 2s; }
.tile-i { bottom: 10%; right: 12%; border-color: var(--primary-green); animation-delay: 1.5s; }

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(6deg); }
}

/* Sections Header */
.section-header {
  margin-bottom: 60px;
}

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

.section-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Demo Section (Mini-Game) */
.demo-section {
  padding: 80px 0;
}

.demo-card-container {
  max-width: 540px;
  margin: 0 auto;
}

.demo-card {
  padding: 32px;
}

.demo-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-card);
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--primary-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-green);
}

.demo-hint-box {
  font-size: 0.85rem;
  color: var(--accent-gold);
  background: rgba(255, 193, 7, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
}

/* Wordle Board Grid */
.wordle-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  align-items: center;
}

.wordle-row {
  display: flex;
  gap: 10px;
}

.wordle-tile {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #192030;
  border: 2px solid #2A3A52;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: #FFFFFF;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wordle-tile.correct {
  background: #00E676;
  border-color: #00E676;
  color: #000;
}

.wordle-tile.present {
  background: #FF9800;
  border-color: #FF9800;
  color: #000;
}

.wordle-tile.absent {
  background: #37474F;
  border-color: #37474F;
  color: #80939D;
}

/* Keyboard */
.keyboard-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.kb-row {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.kb-key {
  min-width: 36px;
  height: 46px;
  border-radius: 8px;
  background: #212C3E;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.kb-key:hover {
  background: #32425B;
}

.kb-key.wide {
  min-width: 60px;
  font-size: 0.8rem;
}

.demo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-message {
  font-weight: 700;
  font-size: 1rem;
}

/* Modes Showcase Section */
.modes-section {
  padding: 100px 0;
}

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

.mode-card {
  padding: 32px;
  position: relative;
  transition: var(--transition-normal);
}

.mode-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 0, 0.4);
}

.mode-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.bg-orange { background: rgba(255, 107, 0, 0.15); }
.bg-pink { background: rgba(233, 30, 99, 0.15); }
.bg-yellow { background: rgba(255, 193, 7, 0.15); }
.bg-blue { background: rgba(33, 150, 243, 0.15); }
.bg-green { background: rgba(0, 230, 118, 0.15); }

.mode-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.mode-desc {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.mode-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 12px;
}

/* Screenshots Showcase */
.screenshots-section {
  padding: 100px 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.screenshot-card {
  border-radius: 24px;
  overflow: hidden;
  background: #121824;
  border: 1px solid var(--border-card);
  transition: var(--transition-normal);
}

.screenshot-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-orange);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-sub);
  background: #0B0E14;
}

/* Dictionnaire Preview Section */
.dictionary-section {
  padding: 80px 0 120px 0;
}

.dictionary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.dict-card {
  padding: 28px;
}

.dict-word {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary-orange);
  margin-bottom: 8px;
}

.dict-type {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
}

.dict-meaning {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.dict-example {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-style: italic;
  background: rgba(255, 193, 7, 0.08);
  padding: 8px 14px;
  border-radius: 10px;
}

/* CTA Banner Section */
.cta-banner-section {
  padding: 60px 0 120px 0;
}

.cta-box {
  padding: 64px 32px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(0, 230, 118, 0.08));
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.cta-logo {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-sub);
  margin-bottom: 32px;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-card);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats-row {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .dictionary-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}
