/* Variables — same as beta */
:root{
  --bg: #0D1B2A;          /* Deep Midnight Blue */
  --card: #1B263B;        /* Dark Sapphire */
  --accent: #2979FF;      /* Electric Blue */
  --accent-2: #FFEA00;    /* pure electric neon yellow */
  --secondary: #FF5A5F;   /* Coral */
  --text: #E8EAF6;        /* Off-White */
  --muted: #B0BEC5;       /* Mist Gray */
  --radius: 20px;
  --maxwidth: 1200px;
}

/* General page */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  padding: 20px;
}

/* Landing wrapper */
.landing {
  width: 100%;
  max-width: var(--maxwidth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Logo styling - responsive positioning */
.logo-container {
  position: fixed;
  top: 5%;
  right: 23%;
  z-index: 10;
}

.landing-logo {
  height: 50px;
  width: auto;
  max-width: 300px;
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 48px;
  padding: 60px 8% 40px 8%;
  box-sizing: border-box;
  min-height: 400px;
}

.hero-left {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-right {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* headline tweaks */
.hero-title {
  margin: 0;
  font-family: 'Nunito ExtraBold', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 24px); /* Responsive font size */
  line-height: 1.3;
  text-align: left;
  word-break: break-word;
  hyphens: auto;
  max-width: 600px;
}

/* Auto-flip cards container */
.preview-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Individual flip card */
.preview-flip-container {
  width: 120px;
  height: 120px;
  perspective: 1000px;
}

.preview-flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.preview-flip-card.flipped {
  transform: rotateY(180deg);
}

.preview-flip-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.preview-flip-front {
  font-size: 64px;
}

.preview-flip-back {
  transform: rotateY(180deg);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding: 0px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 200px;
  white-space: nowrap;
}

.btn.start {
  background: var(--accent);
  color: var(--bg);
}

.btn.ghost {
  background: var(--card);
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
}

.btn:active {
  transform: scale(0.97);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Flags */
.flags {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90%;
}

.flag-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--text);
}

.flag-item img {
  width: 32px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.flag-item img:hover {
  transform: scale(1.1);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablets and smaller laptops (768px - 1024px) */
@media (max-width: 1024px) {
  .hero {
    gap: 32px;
    padding: 80px 6% 40px 6%;
    min-height: 350px;
  }
  
  .logo-container {
    right: 6%;
  }
  
  .preview-flip-container {
    width: 100px;
    height: 100px;
  }
  
  .preview-flip-front {
    font-size: 52px;
  }
  
  .preview-flip-back {
    font-size: 22px;
  }
  
  .flags {
    gap: 24px;
  }
}

/* Large phones and small tablets (481px - 767px) */
@media (max-width: 767px) {
  body {
    padding: 16px;
  }
  
  .logo-container {
    top: 16px;
    right: 16px;
  }
  
  .landing-logo {
    height: 36px;
  }
  
  .hero {
    flex-direction: column;
    padding: 70px 20px 40px 20px;
    gap: 32px;
    min-height: auto;
  }
  
  .hero-left {
    flex: 1 1 100%;
  }
  
  .hero-right {
    width: 100%;
    align-items: stretch;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .preview-cards {
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .preview-flip-container {
    width: 90px;
    height: 90px;
  }
  
  .preview-flip-front {
    font-size: 46px;
  }
  
  .preview-flip-back {
    font-size: 18px;
  }
  
  .btn {
    width: 100%;
    padding: 18px 24px;
  }
  
  .flags {
    bottom: 20px;
    gap: 16px;
    font-size: 14px;
  }
  
  .flag-item img {
    width: 28px;
  }
}

/* Mobile phones (up to 480px) */
@media (max-width: 480px) {
  .logo-container {
    top: 12px;
    right: 12px;
  }
  
  .landing-logo {
    height: 30px;
  }
  
  .hero {
    padding: 60px 16px 30px 16px;
    gap: 24px;
  }
  
  .hero-title {
    font-size: 20px;
    line-height: 1.4;
  }
  
  .preview-cards {
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .preview-flip-container {
    width: 70px;
    height: 70px;
  }
  
  .preview-flip-front {
    font-size: 36px;
  }
  
  .preview-flip-back {
    font-size: 14px;
  }
  
  .btn {
    padding: 16px 20px;
    font-size: 15px;
  }
  
  .flags {
    bottom: 16px;
    gap: 12px;
    font-size: 12px;
  }
  
  .flag-item {
    gap: 6px;
  }
  
  .flag-item img {
    width: 24px;
  }
  
  .flag-item span {
    display: none; /* Hide text on very small screens, show only flags */
  }
}

/* Extra small phones (up to 360px) */
@media (max-width: 360px) {
  .preview-flip-container {
    width: 60px;
    height: 60px;
  }
  
  .preview-flip-front {
    font-size: 30px;
  }
  
  .preview-flip-back {
    font-size: 12px;
  }
  
  .hero-title {
    font-size: 18px;
  }
  
  .flags {
    gap: 8px;
  }
  
  .flag-item img {
    width: 20px;
  }
}