/* ========================================================
     BRAND PALETTE - from gamelimiter.com production CSS
     ======================================================== */
:root {
  --gl-purple: #530966;
  --gl-purple-light: #7a1fa3;
  --gl-purple-dark: #3d074d;
  --gl-gold: #C6A877;
  --gl-gold-light: #d4b88a;
  --gl-orange: #f4ac45;
  --gl-bg: #ffffff;
  --gl-bg-soft: #f8f9fa;
  --gl-bg-lilac: #f8f0ff;
  --gl-ink: #4d4d4d;
  --gl-ink-soft: #666;
  --gl-line: #e1e5e9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gl-bg);
  color: var(--gl-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Global text wrapping safeguards for mobile */
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

p,
li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.gl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  display: block;
}

/* ========================================================
     NAVIGATION - sticky with blur on scroll
     ======================================================== */
.gl-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease,
    backdrop-filter 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
}

.gl-navbar.scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 2px 20px rgba(83, 9, 102, 0.08),
    0 1px 0 rgba(198, 168, 119, 0.2) inset;
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 32px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.gl-navbar.scrolled .nav-logo img {
  height: 36px;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 2vw, 30px);
  list-style: none;
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 500;
  align-items: center;
}

.nav-links>li {
  position: relative;
}

.nav-links a {
  color: var(--gl-purple);
  text-decoration: none;
  padding: 6px 0 8px;
  position: relative;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.nav-links>li>a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: var(--gl-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links>li>a:hover::after {
  transform: scaleX(0.8);
}

.nav-links .gl-dropdown-toggle::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s;
  order: 2;
}

.nav-links>li:hover .gl-dropdown-toggle::before {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(83, 9, 102, 0.18);
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  list-style: none;
  z-index: 110;
}

.nav-links>li:hover .nav-dropdown,
.nav-links>li:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--gl-purple);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown a::after {
  display: none;
}

.nav-dropdown a:hover {
  background: rgba(198, 168, 119, 0.15);
  color: var(--gl-purple);
}

/* Logout form button — looks identical to a dropdown link */
.nav-dropdown-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--gl-purple);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-btn:hover {
  background: rgba(198, 168, 119, 0.15);
  color: var(--gl-purple);
}

/* Same reset for mobile drawer sublinks */
.mobile-drawer-sublinks .nav-dropdown-btn {
  padding: 8px 4px;
  font-size: 14px;
  border-radius: 0;
  color: var(--gl-ink-soft);
}

.mobile-drawer-sublinks .nav-dropdown-btn:hover {
  background: none;
  color: var(--gl-gold);
  padding-left: 6px;
}

.nav-login {
  color: var(--gl-purple);
  border: 2px solid var(--gl-purple);
  padding: 8px 22px;
  border-radius: 95px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.4s;
}

.nav-login:hover {
  background: var(--gl-orange);
  color: #fff;
  border-color: var(--gl-orange);
}

/* Burger button - hidden on desktop */
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 2px solid var(--gl-purple);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--gl-purple);
  font-size: 16px;
  transition: all 0.3s;
  position: relative;
}

.nav-burger:hover {
  background: var(--gl-purple);
  color: #fff;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.nav-burger span:nth-child(1) {
  top: 13px;
}

.nav-burger span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-burger span:nth-child(3) {
  bottom: 13px;
}

.nav-burger.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-burger.active span:nth-child(2) {
  opacity: 0;
}

.nav-burger.active span:nth-child(3) {
  bottom: 50%;
  transform: translate(-50%, 50%) rotate(-45deg);
}

/* ====================================================
     MOBILE DRAWER
   ==================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 88%;
  max-width: 380px;
  height: 100vh;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(83, 9, 102, 0.18);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mobile-drawer.open {
  right: 0;
}

/* Header: logo + close button */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--gl-line);
  flex-shrink: 0;
}

.mobile-drawer-header img {
  height: 32px;
  width: auto;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gl-bg-soft);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gl-purple);
  font-size: 18px;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.mobile-drawer-close:hover {
  background: rgba(83, 9, 102, 0.1);
  transform: rotate(90deg);
}

/* Scrollable nav area */
.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
}

/* Nav list */
.mobile-drawer-links {
  list-style: none;
  padding: 0 12px;
  margin: 0;
}

/* Top-level items */
.mobile-drawer-links>li {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2px;
}

/* Top-level direct links */
.mobile-drawer-links>li>a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--gl-purple);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
}

.mobile-drawer-links>li>a:hover {
  background: var(--gl-bg-lilac);
  color: var(--gl-purple-dark);
}

/* Group label (acts as accordion trigger) */
.mobile-drawer-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  color: var(--gl-purple);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.2s;
  user-select: none;
}

.mobile-drawer-group-label::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0.55;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mobile-drawer-group-label.open::after {
  transform: rotate(180deg);
}

.mobile-drawer-group-label:hover {
  background: var(--gl-bg-lilac);
}

/* Sublinks (accordion panel) */
.mobile-drawer-sublinks {
  list-style: none;
  margin: 0 0 6px 16px;
  padding: 0;
  border-left: 2px solid rgba(198, 168, 119, 0.5);
  padding-left: 12px;
  display: none;
  /* collapsed by default */
}

.mobile-drawer-sublinks.open {
  display: block;
}

.mobile-drawer-sublinks li a,
.mobile-drawer-sublinks li .nav-dropdown-btn {
  display: block;
  padding: 10px 8px;
  color: var(--gl-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.mobile-drawer-sublinks li a:hover,
.mobile-drawer-sublinks li .nav-dropdown-btn:hover {
  background: var(--gl-bg-lilac);
  color: var(--gl-purple);
  padding-left: 14px;
}

/* Footer: login / logout button */
.mobile-drawer-footer {
  flex-shrink: 0;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--gl-line);
}

.mobile-drawer-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--gl-purple) 0%, var(--gl-purple-light) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(83, 9, 102, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-drawer-login:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(83, 9, 102, 0.38);
}

.mobile-drawer-login.logout {
  background: transparent;
  color: var(--gl-purple);
  border: 2px solid var(--gl-gold);
  box-shadow: none;
}

.mobile-drawer-login.logout:hover {
  background: rgba(198, 168, 119, 0.12);
  color: var(--gl-purple-dark);
  box-shadow: none;
  transform: translateY(-1px);
}

/* Backdrop overlay */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(83, 9, 102, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 150;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Lock body scroll when drawer open */
body.drawer-open {
  overflow: hidden;
}

/* ========================================================
     HERO - fully flexible, image-dominant
     Uses aspect-ratio and vh/vw so the photo always adapts
     proportionally to any screen size.
     ======================================================== */
.hero-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg picture,
.hero-bg img {
  width: 100%;

  object-fit: contain;
  object-position: center 82px;
  display: block;
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

/* Lighter gradient — just enough for readability, photo stays visible */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(360deg,
      rgba(248, 249, 250, 1) 7%,
      rgba(255, 255, 255, 0) 30%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  /* Flexible height: scales with viewport, respects content */
  min-height: clamp(560px, 82vh, 800px);
  padding: clamp(33vh, 16vh, 180px) 0 clamp(60px, 8vh, 100px);
  display: flex;
  align-items: center;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #00000000 10%, rgba(83, 9, 102, 0.18) 100%);
  border-radius: 20px;
}

.hero-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  justify-content: center;
}

.hero-text {
  position: relative;
  text-align: left;
  max-width: 800px;
  padding: 40px;
  margin: 0 auto;
}

/* Glassmorphism via ::before — keeps content clean, blurs what's behind */
.hero-text::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 10px 32px rgba(83, 9, 102, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

/* Right column stays empty on desktop - visual space for the photo */
.hero-visual-space {
  min-height: 300px;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--gl-purple);
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: clamp(16px, 2vw, 24px);
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(198, 168, 119, 0.45);
  box-shadow: 0 2px 10px rgba(83, 9, 102, 0.1);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: var(--gl-purple);
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  letter-spacing: -0.025em;
  line-height: 1;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--gl-purple);
  font-weight: 500;
  max-width: 520px;
  margin: 0 0 14px;
  line-height: 1.55;
}

.download-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.75rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(83, 9, 102, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  margin: clamp(20px, 3vw, 36px) 0 0;
  max-width: 560px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.download-title {
  text-align: left;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

.download-buttons {
  justify-content: flex-start;
}

.download-support {
  justify-content: flex-start;
}

.download-title {
  font-size: 1.5rem;
  color: var(--gl-purple);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.custom-download-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--gl-purple) 0%, var(--gl-purple-light) 100%);
  border: 2px solid rgba(198, 168, 119, 0.3);
  border-radius: 16px;
  color: white;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(83, 9, 102, 0.3);
  min-width: 240px;
  position: relative;
  overflow: hidden;
}

.custom-download-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 ease;
}

.custom-download-btn:hover::before {
  left: 100%;
}

.custom-download-btn:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 15px 40px rgba(83, 9, 102, 0.4);
  border-color: var(--gl-gold);
}

.download-btn-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.custom-download-btn:hover .download-btn-icon {
  background: rgba(198, 168, 119, 0.3);
  transform: scale(1.1);
}

.download-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.download-btn-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  font-weight: 500;
}

.download-btn-platform {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.download-support {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--gl-ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.download-support i {
  color: var(--gl-gold);
}

/* ========================================================
     HOW IT WORKS
     ======================================================== */
.how-it-works-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 6rem 0 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  color: var(--gl-purple);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-wrap-style: balance;
}

.section-header p {
  color: var(--gl-ink-soft);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

.how-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.how-steps {
  list-style: none;
}

.how-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  padding: 24px 0;
  border-bottom: 1px solid var(--gl-line);
  align-items: start;
}

.how-step:first-child {
  padding-top: 0;
}

.how-step:last-child {
  border-bottom: none;
}

.how-num {
  width: clamp(40px, 6vw, 48px);
  height: clamp(40px, 6vw, 48px);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gl-purple) 0%, var(--gl-purple-light) 100%);
  color: #fff;
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(83, 9, 102, 0.3);
}

.how-step-content {
  min-width: 0;
  /* critical for grid overflow prevention */
}

.how-step-content h4 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: var(--gl-purple);
  margin-bottom: 6px;
  line-height: 1.25;
}

.how-step-content p {
  color: var(--gl-ink-soft);
  font-size: clamp(14px, 1.5vw, 15px);
  line-height: 1.6;
}

.how-diagram {
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 10px 40px rgba(83, 9, 102, 0.10);
  border: 1px solid rgba(198, 168, 119, 0.2);
}

.diagram-title {
  font-size: 13px;
  color: var(--gl-purple);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 28px;
  font-weight: 600;
}

.diagram-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.diagram-devices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.diagram-node {
  background: rgba(83, 9, 102, 0.05);
  border: 1.5px solid rgba(198, 168, 119, 0.4);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gl-purple);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.diagram-node.main {
  background: linear-gradient(135deg, var(--gl-purple) 0%, var(--gl-purple-light) 100%);
  color: #fff;
  border-color: var(--gl-purple);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(83, 9, 102, 0.3);
}

.diagram-arrow {
  color: var(--gl-gold);
  font-size: 22px;
  line-height: 1;
}

/* ========================================================
     FEATURES
     ======================================================== */
.features-section {
  padding: 6rem 0 5rem;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  min-width: 0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(83, 9, 102, 0.2);
  border-color: var(--gl-gold);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(83, 9, 102, 0.1);
  color: var(--gl-purple);
  font-size: 30px;
}

.feature-card h4 {
  color: var(--gl-purple);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--gl-ink-soft);
  line-height: 1.65;
  margin: 0;
  font-size: 0.96rem;
}

/* ========================================================
     PLATFORM CLARIFICATION - light theme to break up purple
     ======================================================== */
.platform-section {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  color: var(--gl-ink);
  position: relative;
  overflow: hidden;
}

.platform-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(198, 168, 119, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(83, 9, 102, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.platform-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

.platform-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--gl-purple);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-wrap-style: balance;
}

.platform-header p {
  font-size: 1.15rem;
  color: var(--gl-ink-soft);
  line-height: 1.6;
}

.platform-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.platform-card {
  background: #ffffff;
  border: 1px solid var(--gl-line);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  transition: all 0.4s ease;
  text-align: center;
  box-shadow: 0 4px 20px rgba(83, 9, 102, 0.06);
  min-width: 0;
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(83, 9, 102, 0.12);
  border-color: var(--gl-gold);
}

.platform-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gl-gold) 0%, var(--gl-gold-light) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--gl-purple);
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(198, 168, 119, 0.35);
}

.platform-card-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gl-gold);
  margin-bottom: 8px;
}

.platform-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gl-purple);
  margin-bottom: 1rem;
}

.platform-card p {
  color: var(--gl-ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.platform-card-features {
  list-style: none;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.platform-card-features li {
  color: #555;
  font-size: 0.95rem;
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.platform-card-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gl-gold);
  font-weight: 700;
  font-size: 1.05rem;
}

.platform-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.platform-connector-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, rgba(198, 168, 119, 0.5), transparent);
  position: absolute;
  top: 0;
  bottom: 0;
}

.platform-connector-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--gl-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gl-purple);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(198, 168, 119, 0.3);
}

.platform-connector-text {
  font-size: 11px;
  color: var(--gl-purple);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 10px;
  font-weight: 600;
  position: relative;
  z-index: 2;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--gl-line);
}

/* ========================================================
     BALANCE / VALUES
     ======================================================== */
.balance-section {
  background: linear-gradient(135deg, var(--gl-purple) 0%, var(--gl-purple-light) 50%, var(--gl-purple) 100%);
  padding: 6rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.balance-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(198, 168, 119, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.balance-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.balance-header {
  text-align: center;
  margin-bottom: 3rem;
}

.balance-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.balance-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  margin: 0 auto;
}

.balance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.balance-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.balance-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.balance-card-icon {
  width: 66px;
  height: 66px;
  background: linear-gradient(135deg, var(--gl-gold) 0%, var(--gl-gold-light) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--gl-purple);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(198, 168, 119, 0.4);
}

.balance-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.balance-card p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.7;
  font-size: 1rem;
}

/* ========================================================
     WHY CHOOSE - alternating dark/light "checkerboard"
     ======================================================== */
.why-choose-section {
  padding: 6rem 0 5rem;
  background: white;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.advantage-card {
  border-radius: 20px;
  padding: clamp(1.75rem, 2.8vw, 2.5rem) clamp(1.25rem, 2.2vw, 2rem);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Dark purple variant (cards 1, 4) */
.advantage-card.dark {
  background: linear-gradient(145deg, var(--gl-purple) 0%, var(--gl-purple-light) 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(83, 9, 102, 0.25);
}

.advantage-card.dark::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(198, 168, 119, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.advantage-card.dark h3 {
  color: #fff;
}

.advantage-card.dark p {
  color: rgba(255, 255, 255, 0.9);
}

.advantage-card.dark .advantage-list li {
  color: rgba(255, 255, 255, 0.92);
}

.advantage-card.dark .advantage-list li::before {
  color: var(--gl-gold);
}

.advantage-card.dark .advantage-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(198, 168, 119, 0.4);
  backdrop-filter: blur(10px);
}

.advantage-card.dark .advantage-number {
  color: rgba(255, 255, 255, 0.1);
}

/* Gold variant (cards 2, 5) */
.advantage-card.gold {
  background: linear-gradient(145deg, #faf5ff 0%, #f8f0e0 100%);
  border: 1px solid rgba(198, 168, 119, 0.4);
  box-shadow: 0 8px 24px rgba(198, 168, 119, 0.15);
}

.advantage-card.gold .advantage-icon {
  background: linear-gradient(135deg, var(--gl-gold) 0%, var(--gl-gold-light) 100%);
  color: var(--gl-purple);
  box-shadow: 0 6px 16px rgba(198, 168, 119, 0.4);
}

.advantage-card.gold .advantage-number {
  color: rgba(198, 168, 119, 0.25);
}

/* Light variant (cards 3, 6) */
.advantage-card.light {
  background: #ffffff;
  border: 1px solid var(--gl-line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.advantage-card.light .advantage-icon {
  background: linear-gradient(135deg, var(--gl-purple) 0%, var(--gl-purple-light) 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(83, 9, 102, 0.3);
}

.advantage-card.light .advantage-number {
  color: rgba(83, 9, 102, 0.08);
}

.advantage-card:hover {
  transform: translateY(-8px);
}

.advantage-card.dark:hover {
  box-shadow: 0 20px 40px rgba(83, 9, 102, 0.4);
}

.advantage-card.gold:hover,
.advantage-card.light:hover {
  box-shadow: 0 16px 36px rgba(83, 9, 102, 0.15);
}

.advantage-number {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  font-family: 'Poppins', sans-serif;
}

.advantage-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.advantage-card h3 {
  color: var(--gl-purple);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.advantage-card p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.advantage-list {
  list-style: none;
  padding: 0;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.advantage-list li {
  color: #555;
  padding: 0.35rem 0 0.35rem 1.6rem;
  font-size: 0.92rem;
  position: relative;
}

.advantage-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gl-gold);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ========================================================
     FINAL CTA
     ======================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--gl-purple) 0%, var(--gl-purple-light) 100%);
  padding: 6rem 2rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(198, 168, 119, 0.15) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .custom-download-btn {
  background: white;
  color: var(--gl-purple);
  border: 2px solid var(--gl-gold);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-section .custom-download-btn .download-btn-icon {
  background: rgba(83, 9, 102, 0.1);
  color: var(--gl-purple);
}

.cta-section .custom-download-btn:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================================
     FOOTER
     ======================================================== */
footer {
  background: var(--gl-purple);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.footer-social a:hover {
  background: var(--gl-gold);
  border-color: var(--gl-gold);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 18px rgba(198, 168, 119, 0.45);
  color: #fff;
}

.footer-copy {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-copy a:hover {
  color: #fff;
}

/* ========================================================
     RESPONSIVE
     ======================================================== */

/* Desktop defaults use clamp() for fluid scaling.
     Breakpoints below only handle layout changes (stacking, burger menu). */

/* Tablet portrait / small laptop (<=900px) */
@media (max-width: 900px) {

  /* Show burger, hide desktop nav */
  .nav-links {
    display: none;
  }

  .nav-login {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }

  .how-content,
  .features-grid,
  .why-choose-grid,
  .balance-cards {
    grid-template-columns: 1fr;
  }

  .platform-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .platform-icon {
    margin: 0 auto;
  }

  .platform-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .platform-connector {
    flex-direction: row;
    gap: 12px;
    padding: 0;
  }

  .platform-connector-line {
    display: none;
  }

  .platform-connector-badge {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .platform-connector-text {
    margin-top: 0;
  }

  /* HERO on tablet: full-width flexible photo banner + text below */
  .hero-section {
    background: #fff;
    padding-top: 0;
  }

  /* Mobile: navbar always has white backdrop so logo is always visible */
  .gl-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: 0 1px 0 rgba(83, 9, 102, 0.08);
  }

  .hero-bg {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* Flexible height: maintains image proportions across screen widths */
    aspect-ratio: 21 / 9;
    height: auto;
    min-height: 240px;
    max-height: 420px;
    margin-top: 72px;
    /* space for fixed navbar */
  }

  .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .hero-bg::after {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 75%,
        rgba(255, 255, 255, 0.85) 100%);
  }

  .hero-content {
    position: relative;
    padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 6vw, 70px);
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 24px;
    gap: 0;
  }

  .hero-text {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
  }

  /* Reset ::before glassmorphism on mobile (photo is above, not behind) */
  .hero-text::before {
    display: none;
  }

  .hero-visual-space {
    display: none;
  }

  .hero-subtitle {
    margin: 0 auto 14px;
    max-width: 560px;
  }

  .download-section {
    margin: clamp(16px, 3vw, 28px) auto 0;
    max-width: 580px;
  }

  .download-title {
    text-align: center;
  }

  .download-buttons {
    justify-content: center;
  }

  .download-support {
    justify-content: center;
  }

  .how-it-works-section,
  .features-section,
  .why-choose-section,
  .balance-section,
  .cta-section,
  .platform-section {
    padding: 4rem 0;
  }

  .custom-download-btn {
    min-width: 200px;
    padding: 14px 22px;
  }
}

/* Mobile (600px and below) */
@media (max-width: 600px) {
  .hero-section {
    padding-top: 0;
  }

  .hero-bg {
    aspect-ratio: 16 / 10;
    min-height: 200px;
    max-height: 320px;
    margin-top: 78px;
  }

  .hero-bg img {
    object-position: 35% center;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .download-section {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .custom-download-btn {
    min-width: 180px;
    padding: 12px 18px;
  }
}

/* Very small phones (under 400px) */
@media (max-width: 400px) {
  .hero-bg {
    aspect-ratio: 4 / 3;
    max-height: 280px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .custom-download-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Cookie Banner custom V2 styles */
.gl-cookie-banner,
.gl-cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  text-align: left;
  z-index: 9999;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(83, 9, 102, 0.4);
  border: 1px solid var(--gl-line);
}

.gl-cookie-banner {
  top: auto;
  bottom: 30px;
  transform: translateX(-50%);
  max-width: 700px;
}

.gl-cookie-text {
  font-size: 14px;
  margin-bottom: 20px;
  color: var(--gl-ink);
}

.gl-cookie-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.gl-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

.gl-btn-primary {
  background: var(--gl-purple);
  color: #fff;
}

.gl-btn-primary:hover {
  background: var(--gl-orange);
  color: #fff;
}

.gl-btn-secondary {
  background: var(--gl-bg-soft);
  color: var(--gl-ink);
  border: 1px solid var(--gl-line);
}

.gl-btn-secondary:hover {
  background: #e2e6ea;
}

.gl-cookie-modal h4 {
  color: var(--gl-purple);
  font-size: 18px;
  margin-bottom: 8px;
  text-align: center;
}

.gl-cookie-modal>p {
  color: var(--gl-ink-soft);
  font-size: 13px;
  text-align: center;
  margin-bottom: 20px;
}

.gl-cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--gl-purple);
}

.gl-cookie-desc {
  font-size: 12px;
  color: var(--gl-ink-soft);
  margin-bottom: 16px;
}

.gl-cookie-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gl-purple);
}

.gl-cookie-link {
  display: inline-block;
  color: var(--gl-gold);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 10px;
}

.gl-cookie-link:hover {
  text-decoration: underline;
}