/* ==========================================================================
   CSS Variables - Dark Theme (Default)
   ========================================================================== */
:root {
  --bg: #181f2e;
  --bg-secondary: #1e2636;
  --bg-card: #273349;
  --bg-card-hover: #2d3a52;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-faint: rgba(255, 255, 255, 0.35);
  --text-dim: rgba(255, 255, 255, 0.4);
  --primary: #0098ea;
  --primary-dark: #0066aa;
  --primary-light: #41b8de;
  --primary-lighter: #17aeff;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-primary: rgba(0, 152, 234, 0.2);
  --border-primary-hover: rgba(0, 152, 234, 0.3);
  --primary-glow: rgba(0, 152, 234, 0.1);
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
  --overlay: rgb(0, 0, 0, 0.7);
  --overlay-bg: rgb(24, 31, 46, 0.95);
  --scrollbar-bg: #c8d5de;
  --modal-bg: #273349;
  --modal-bg-light: rgba(39, 51, 73, 0.6);
  --modal-bg-lighter: rgba(39, 51, 73, 0.5);
  --modal-bg-lightest: rgba(39, 51, 73, 0.3);
  --modal-bg-dark: rgba(24, 31, 46, 0.8);
  --skeleton-shine: rgba(255, 255, 255, 0.08);
  --text-on-primary: #ffffff;
  --glass-bg: rgba(39, 51, 73, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(39, 51, 73, 0.55);
}

/* Light Theme */
[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fc;
  --text: #1a1f2e;
  --text-secondary: rgba(26, 31, 46, 0.7);
  --text-muted: rgba(26, 31, 46, 0.6);
  --text-faint: rgba(26, 31, 46, 0.4);
  --text-dim: rgba(26, 31, 46, 0.5);
  --primary-dark: #0077bb;
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.1);
  --border-primary: rgba(0, 152, 234, 0.15);
  --border-primary-hover: rgba(0, 152, 234, 0.25);
  --primary-glow: rgba(0, 152, 234, 0.08);
  --shadow: rgba(0, 0, 0, 0.15);
  --shadow-lg: rgba(0, 0, 0, 0.25);
  --overlay: rgba(255, 255, 255, 0.85);
  --overlay-bg: rgba(245, 247, 250, 0.95);
  --scrollbar-bg: #e0e0e0;
  --modal-bg: #ffffff;
  --modal-bg-light: rgba(240, 244, 248, 0.6);
  --modal-bg-lighter: rgba(240, 244, 248, 0.5);
  --modal-bg-lightest: rgba(240, 244, 248, 0.3);
  --modal-bg-dark: rgba(255, 255, 255, 0.8);
  --skeleton-shine: rgba(0, 0, 0, 0.06);
  --text-on-primary: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Theme Toggle Button
   ========================================================================== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  margin-left: 16px;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--border-primary-hover);
  background: var(--bg-card-hover);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  transition: all 0.3s;
}
.theme-toggle:hover svg {
  stroke: var(--primary);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: "Google Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  top: 0;
  left: 0;
  padding: 0;
  background: var(--bg);
  margin: 0;
  width: 100%;
  min-height: 100vh;
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

html,
body {
  width: 100vw;
  overflow-x: hidden;
}

/* Aurora background */
html {
  /* Page fill lives here so the aurora layer can sit above it but below
     content. On <body> it would paint over a z-index:-1 pseudo. */
  background: var(--bg);
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 152, 234, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(23, 174, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 152, 234, 0.04) 0%, transparent 50%);
  animation: aurora-shift 30s ease-in-out infinite alternate;
}
@keyframes aurora-shift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(3%, 2%) rotate(3deg); }
  100% { transform: translate(-2%, 4%) rotate(-2deg); }
}

a {
  text-decoration: none;
  color: var(--text);
  display: block;
}

::-webkit-scrollbar {
  width: 5px;
  background-color: var(--scrollbar-bg);
  height: 5px;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: var(--primary);
  width: 5px;
}
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px var(--shadow);
  border-radius: 10px;
  background-color: var(--scrollbar-bg);
}

.container {
  width: 100%;
  max-width: 1440px;
  display: block;
  margin: 0 auto;
}

/* Keep real content above the fixed aurora layer (z-index: 0). */
.header,
.main,
.main_faq {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  width: 100%;
}
.header_items {
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
/* Single flexible spacer, no magic gutter. Previously margin-right:50px here
   plus margin-left:auto on the last item made the row depend on the viewport
   and overflow between 480px and 600px. */
.header_item:nth-child(2) {
  margin-left: auto;
  margin-right: 0;
}
.header_item_logo {
  vertical-align: middle;
}
.header_item_button {
  color: var(--text-on-primary);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 140%;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.5s;
  padding: 24px 32px;
  border-radius: 100px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 125.89%);
  outline: none;
  border: none;
  white-space: nowrap;
}
.header_item_button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.header_item_button:active {
  transform: translateY(0);
}
.header_item_button img {
  vertical-align: middle;
  margin-left: 12px;
}

/* ==========================================================================
   Main Section
   ========================================================================== */
.main {
  padding-top: 78px;
  padding-bottom: 60px;
}
.main_tittle {
  text-align: center;
  font-size: 72px;
  font-weight: 800;
  line-height: 110%;
  letter-spacing: -1.44px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 50%, var(--primary-lighter) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.main_tittle span {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.main_wheel {
  margin-top: 40px;
  position: relative;
}
.main_wheel_main {
  position: relative;
  width: 100%;
  /* Height is driven by the wheel image itself — the old max-height:600px
     cropped a 1.0366-aspect image and threw the spin button off its hub. */
}
.main_wheel_main_arrow {
  position: absolute;
  left: calc(50% - 62px);
  top: 0;
  z-index: 1;
}
.main_wheel_main::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  padding-bottom: 90%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(0, 152, 234, 0.35) 0%,
    rgba(0, 152, 234, 0.15) 30%,
    rgba(0, 152, 234, 0.05) 50%,
    transparent 70%
  );
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
/* The <picture> wrapper is inline by default, so it stretches to the full
   container width while the image inside stays max-width capped. Shrinking
   the wrapper to its content keeps the box equal to the rendered wheel. */
.main_wheel_main picture {
  display: block;
  width: fit-content;
  margin: 0 auto;
}
.main_wheel_main_wheel {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 620px;
  height: auto;
  aspect-ratio: 1417 / 1367;
  z-index: 1;
}

.main_wheel_main_button {
  color: var(--text-on-primary);
  text-align: center;
  z-index: 8;
  font-size: 32px;
  font-weight: 800;
  line-height: 110%;
  letter-spacing: -0.64px;
  text-transform: uppercase;
  outline: none;
  border: none;
  padding: 32px 44px;
  border-radius: 1000px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 125.89%);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.main_wheel_main_button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}
.main_wheel_main_button:active {
  transform: translateY(0);
}

.main_faq {
  position: relative;
  /* Real negative margin, not a relative top offset: this actually shrinks
     the layout box so no dead scroll is left below the footer. */
  margin-top: -130px;
  width: 100%;
  z-index: 3;
}
.main_faq_blocks {
  display: block;
  margin: 0 auto;
  max-width: 1061px;
}
.main_faq_block {
  margin-bottom: 12px;
  color: var(--text);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 150%;
  display: flex;
  align-items: center;
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--modal-bg);
  transition: background 0.3s ease, color 0.3s ease;
}
.main_faq_block img {
  vertical-align: middle;
  margin-right: 12px;
  flex-shrink: 0;
}
.main_faq_block:last-child {
  margin-bottom: 0;
}
.main_faq_copy {
  color: var(--text-dim);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 150%;
  position: relative;
  margin-top: 60px;
  transition: color 0.3s ease;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 11;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: var(--overlay);
  backdrop-filter: blur(3px);
  /* Tall content on short/landscape viewports must scroll, never clip the CTA */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.modal_active {
  display: flex;
  flex-direction: column;
  animation: modal-fade-in 0.3s ease;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal_rect {
  width: 100%;
  max-width: 600px;
  display: block;
  /* auto margins centre short modals and degrade to scroll when tall */
  margin: auto;
  border-radius: 16px;
  background: var(--modal-bg);
  transition: background 0.3s ease;
}
.modal_active .modal_rect {
  animation: modal-spring-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-spring-in {
  0% { transform: scale(0.85) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.modal_rect_up {
  width: 100%;
  height: auto;
  background: url(../img/modal_bg.webp) top no-repeat;
}
.modal_rect_up_tittle {
  color: var(--text-on-primary);
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  line-height: 110%;
  letter-spacing: -0.64px;
  text-transform: uppercase;
  padding-top: 58px;
  padding-bottom: 58px;
}
.modal_rect_up_tittle span {
  color: var(--primary);
}
.modal_rect_bottom_content {
  padding-top: 40px;
  padding-bottom: 40px;
}
.modal_rect_bottom_text {
  color: var(--text-on-primary);
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: -0.56px;
}
.modal_rect_bottom_button {
  color: var(--text-on-primary);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 140%;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.5s;
  padding: 24px 48px;
  border-radius: 100px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 125.89%);
  outline: none;
  border: none;
  margin: 0 auto;
  margin-top: 40px;
}
.modal_rect_bottom_button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */
.loading-overlay {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.loading-overlay_active {
  display: flex;
}
.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border-primary);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-text {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}
.loading-status {
    margin-top: 16px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}
.loading-text span {
  display: block;
  color: var(--primary);
  font-size: 14px;
  margin-top: 8px;
  font-weight: 400;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats {
  width: 100%;
  padding: 60px 0;
  background: var(--modal-bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}
.stats_items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}
.stats_item {
  text-align: center;
  min-width: 150px;
}
.stats_number {
  color: var(--primary);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.stats_label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section_title {
  color: var(--text);
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}
.section_title span {
  color: var(--primary);
}
.section_subtitle {
  color: var(--text-muted);
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
  width: 100%;
  padding: 80px 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
.features_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature_card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s;
}
.feature_card:hover {
  border-color: var(--border-primary-hover);
  background: var(--glass-bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--primary-glow);
}
.feature_icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-glow);
  border-radius: 12px;
}
.feature_icon img {
  width: 24px;
  height: 24px;
}
.feature_title {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}
.feature_desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* ==========================================================================
   Use Cases Section
   ========================================================================== */
.usecases {
  width: 100%;
  padding: 80px 0;
  background: var(--modal-bg-lightest);
  transition: background 0.3s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.usecases_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.usecase_card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}
.usecase_card:hover {
  border-color: var(--border-primary-hover);
  background: var(--glass-bg-hover);
}
.usecase_title {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.usecase_desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* ==========================================================================
   Ecosystem Section
   ========================================================================== */
.ecosystem {
  width: 100%;
  padding: 80px 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
.ecosystem_stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.ecosystem_stat {
  text-align: center;
}
.ecosystem_number {
  display: block;
  color: var(--primary);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.ecosystem_label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border-light);
  margin-top: 60px;
  transition: border-color 0.3s ease;
}
.footer_items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer_logo {
  width: 120px;
  height: auto;
  display: block;
}
.footer_item_links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer_link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
}
.footer_link:hover {
  color: var(--primary);
}
.footer_copy_text {
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 400;
  text-align: right;
  transition: color 0.3s ease;
}

/* ==========================================================================
   Responsive - Mobile (< 500px)
   ========================================================================== */
@media (min-width: 320px) and (max-width: 499px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  body {
    background: var(--bg);
  }
  .modal {
    padding-left: 20px;
    padding-right: 20px;
  }
  .modal_rect_up_tittle {
    font-size: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .modal_rect_up {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
  .modal_rect_bottom_text {
    font-size: 18px;
  }
  .modal_rect_bottom_content {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .modal_rect_bottom_button {
    margin-top: 20px;
    font-size: 16px;
    padding: 12px 24px;
  }
  .header_item_logo {
    width: 100px;
  }
  .header_item_button {
    font-size: 12px;
    white-space: nowrap;
    padding: 10px 14px;
  }
  .header_item_button img {
    width: 6px;
  }
  .header_item:last-child {
    margin-left: 0;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
    margin-left: 8px;
  }
  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }
  .main_tittle {
    font-size: 40px;
  }
  .main_wheel_main_arrow {
    width: 50px;
    left: calc(50% - 25px);
  }
  .main_wheel_main_button {
    font-size: 14px;
    font-weight: 600;
    padding: 14px 20px;
    top: 41%;
    white-space: nowrap;
  }
  .main_faq_block {
    font-size: 14px;
    text-align: left;
    padding: 12px 10px;
  }
  .main_wheel_main_wheel {
    width: 100%;
    max-width: 350px;
    display: block;
    margin: 0 auto;
  }
  .main_wheel_main {
    width: 100%;
    max-height: inherit;
    display: block;
    margin: 0 auto;
    padding: 0;
  }
  .main_faq {
    margin-top: 0;
  }
  .main_faq_copy {
    margin-top: 30px;
    font-size: 14px;
  }
  .main {
    padding-top: 30px;
  }
  .stats_items {
    gap: 20px;
  }
  .stats_number {
    font-size: 32px;
  }
  .stats_label {
    font-size: 11px;
  }
  .section_title {
    font-size: 28px;
  }
  .section_subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }
  .features_grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature_card {
    padding: 20px 16px;
  }
  .usecases_grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .usecase_card {
    padding: 20px 16px;
  }
  .ecosystem_stats {
    gap: 30px;
  }
  .ecosystem_number {
    font-size: 28px;
  }
  .ecosystem_label {
    font-size: 11px;
  }
  .features, .usecases, .ecosystem {
    padding: 40px 0;
  }
  .footer_items {
    flex-direction: column;
    text-align: center;
  }
  .footer_item_links {
    justify-content: center;
    gap: 16px;
  }
  .footer_copy_text {
    text-align: center;
  }
  .footer_logo {
    width: 100px;
  }
}

/* ==========================================================================
   Responsive - Tablet (500px - 799px)
   ========================================================================== */
@media (min-width: 500px) and (max-width: 799px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .modal {
    padding-left: 20px;
    padding-right: 20px;
  }
  .modal_rect_up_tittle {
    font-size: 30px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .modal_rect_up {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
  .modal_rect_bottom_text {
    font-size: 20px;
  }
  .modal_rect_bottom_content {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .modal_rect_bottom_button {
    margin-top: 30px;
    font-size: 18px;
    padding: 18px 30px;
  }
  .header_item_logo {
    width: 150px;
  }
  .header_item_button {
    font-size: 14px;
    white-space: nowrap;
    padding: 14px 18px;
  }
  .header_item_button img {
    width: 6px;
  }
  /* The PRO header block later in the file also puts margin-left:auto on the
     last item; a single spacer on the connect button is enough and keeps the
     row inside the viewport at 500-600px. */
  .header_item:nth-child(2) {
    margin-left: auto;
    margin-right: 0;
  }
  .header_item:last-child {
    margin-left: 0;
  }
  .main_tittle {
    font-size: 50px;
    padding-top: 75px;
  }
  .main_wheel_main_arrow {
    width: 50px;
    left: calc(50% - 25px);
  }
  .main_wheel_main_button {
    font-size: 16px;
    font-weight: 600;
    padding: 20px;
  }
  .main_faq_block {
    font-size: 16px;
    text-align: left;
    padding: 16px 14px;
  }
  .main_wheel_main_wheel {
    max-width: 460px;
  }
  .main_wheel_main {
    max-width: 460px;
    max-height: inherit;
    display: block;
    margin: 0 auto;
    padding: 0;
  }
  .main_faq_copy {
    margin-top: 30px;
    font-size: 16px;
  }
  .stats_items {
    gap: 24px;
  }
  .stats_number {
    font-size: 36px;
  }
  .section_title {
    font-size: 36px;
  }
  .features_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .usecases_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .ecosystem_stats {
    gap: 40px;
  }
  .ecosystem_number {
    font-size: 32px;
  }
  .footer_items {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer_item_links {
    justify-content: center;
  }
  .footer_copy_text {
    text-align: center;
  }
}

/* ==========================================================================
   Responsive - Small Desktop (800px - 1480px)
   ========================================================================== */
@media (min-width: 800px) and (max-width: 1480px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .main {
    padding-top: 250px;
  }
}

/* ==========================================================================
   prefers-reduced-motion (Option 4)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .loading-spinner {
    animation: none;
    border: 4px solid var(--primary);
  }
  body::before {
    animation: none;
  }
  .modal_active {
    animation: none;
  }
  .modal_active .modal_rect {
    animation: none;
  }
}

/* ==========================================================================
   PRO REDESIGN v3 — same blue (#0098ea) locked, static-first, modern
   Design read: consumer crypto landing, trust-first premium, variance 6 / motion 4 / density 4
   ========================================================================== */

/* Type: Inter Tight display, JetBrains Mono numbers */
body {
  font-family: "Inter Tight", "Google Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Sticky glass header, slimmer — brand/actions never touch */
.header_items { gap: 16px; }
.header_brand { margin-right: 8px; }
.header_item_button { margin-left: 8px; flex-shrink: 0; }

/* Sticky glass header, slimmer */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header_items {
  padding-top: 14px;
  padding-bottom: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

/* The row must never be wider than its container. Flex items default to
   `min-width: auto`, which lets them refuse to shrink and push the last item
   past the viewport edge when the intrinsic widths change between
   breakpoints; allowing them to shrink keeps the row inside the box. */
.header_items > .header_item {
  min-width: 0;
}

/* Language picker: a native select keeps keyboard and screen-reader behaviour
   for free, and the header is the only place it needs to live. */
.header_lang { display: flex; align-items: center; }
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--glass-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 30px 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  /* Chevron drawn as a background image so no extra markup is needed and the
     control stays a single native <select>. The direction is flipped for RTL
     further down so the arrow does not sit on top of the text. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230098ea' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 7px;
}
.lang-select:hover { border-color: var(--primary); }
.lang-select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

[dir="rtl"] .lang-select {
  background-position: left 12px center;
  padding: 10px 14px 10px 30px;
}

/* Visually hidden but available to screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header_brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  border: 1px solid var(--border-primary);
  background: var(--primary-glow);
  padding: 5px 12px;
  border-radius: 100px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22e584;
  box-shadow: 0 0 8px #22e584;
}
.header_item_button {
  font-size: 15px;
  padding: 14px 26px;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(0, 152, 234, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.header_item_button:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 152, 234, 0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}
.header_item_button:active {
  transform: translateY(1px) scale(0.98);
}

/* Headline gradient: solid in light theme (gradient text clips on light bg) */
[data-theme="light"] .main_tittle {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
}
[data-theme="light"] .main_tittle span {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--primary);
}

/* The wheel floats without a backdrop. */
.main_wheel { margin-top: 8px; }
.main_faq { margin-top: 0; }

/* Hero: left-aligned rhythm, tighter scale */
.main {
  padding-top: 56px;
}
.main .container {
  max-width: 1200px;
}
.hero-eyebrow {
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 18px;
}
.main_tittle {
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--text) 30%, var(--primary-light) 100%);
}
.hero-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
  margin: 20px auto 0;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
  padding: 16px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--glass-bg);
}
.hero-stat-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Wheel: calmer halo (static-first per reduced motion), tighter frame.
   Spin button: dead center of the wheel image on every viewport.
   Anchor = .main_wheel_main box; center via 50% + translate (no px math). */
.main_wheel_main {
  position: relative;
}
.main_wheel_main_button {
  position: absolute;
  left: 50%;
  /* Anchored to the wheel image centre. wheel_wheel.png is radially
     symmetric, so its hub is the geometric centre of the image. */
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  margin: 0;
}
.main_wheel_main_button:hover { transform: translate(-50%, -50%) translateY(-2px); box-shadow: 0 12px 44px rgba(0, 152, 234, 0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
.main_wheel_main_button:active { transform: translate(-50%, -50%) scale(0.98); }
.main_wheel_main_button:disabled { transform: translate(-50%, -50%); }
.main_wheel_main_button {
  font-size: 22px;
  padding: 22px 40px;
  box-shadow: 0 6px 32px rgba(0, 152, 234, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}
.main_wheel_main_button:disabled {
  filter: saturate(0.6);
}

/* Steps: honest numbered sequence, single radius system 16px */
.main_faq {
  margin-top: -60px;
}
/* A relative offset does not shrink .main's layout box. The 60px nudge plus
   the image's own bottom padding left ~210px of empty scroll below the
   footer; pull the section back up by the amount it was nudged. */
.main {
  padding-bottom: 0;
}
.main_faq_blocks {
  max-width: 720px;
  display: grid;
  gap: 12px;
}
.main_faq_block {
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  padding: 18px 20px;
  gap: 16px;
  border: 1px solid var(--border);
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-on-primary);
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
}
.main_faq_block p {
  margin: 0;
  line-height: 1.55;
}
.main_faq_block strong {
  color: var(--primary-light);
}

/* Trust row: plain text, no fake cards */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
}

/* Modal: sharper, single radius */
.modal_rect {
  border: 1px solid var(--border-primary);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.modal_rect_bottom_button {
  font-size: 17px;
  padding: 18px 44px;
  box-shadow: 0 6px 28px rgba(0, 152, 234, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}
.modal_rect_bottom_button:active {
  transform: translateY(1px) scale(0.98);
}

/* Hero stats: transparent mono row — no white boxes */
.hero-stats {
  background: none;
  border: none;
  box-shadow: none;
}
.hero-stat {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 20px;
  min-width: 0;
}
.hero-stat + .hero-stat {
  border-left: 1px solid var(--border);
}
.hero-stat-num { font-size: 24px; }
[data-theme="light"] .hero-stat-num { color: var(--text); }

/* Reward modal close button */
.modal_rect { position: relative; }
.modal_close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--modal-bg-light);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}
.modal_close:hover { background: var(--bg-card-hover); }

/* Footer socials (moved from header) */
.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}
.footer-socials a {
  display: inline-flex;
  border-radius: 8px;
}
.footer-socials a:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}
.footer-socials a {
  display: inline-flex;
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.footer-socials a:hover { opacity: 1; transform: translateY(-2px); }
.footer-socials img { width: 26px; height: 26px; display: block; }

[data-theme="light"] .footer-socials img {
  filter: invert(0.35) brightness(0.6);
}

/* Focus visibility (a11y) */
.btn-go:focus-visible,
#spin-button:focus-visible,
.modal_close:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

@media (min-width: 320px) and (max-width: 499px) {
  /* The row measured 402px wide inside a 375px viewport before this: the
     actions kept their desktop gap while .header_items has no max-width
     below the 1200px block, so the theme toggle was pushed off the right
     edge. Tightening the gaps and letting the brand flex makes it fit. */
  .header_items {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }
  .header_brand { margin-right: 0; gap: 8px; min-width: 0; }
  .header_item_button { margin-left: 0; font-size: 12px; padding: 10px 12px; }
  .header_item:last-child { margin-left: 0; }
  .lang-select { padding: 8px 26px 8px 10px; font-size: 12px; }
  [dir="rtl"] .lang-select { padding: 8px 10px 8px 26px; }
  .live-pill { display: none; }
  .main_faq { margin-top: 0; }
}

/* ==========================================================================
   Short viewports — landscape phones and small laptops
   Placed last so these override the PRO block above.
   ========================================================================== */
@media (max-height: 560px) {
  .main_wheel_main_wheel {
    max-width: min(64vh, 340px);
  }
  .main {
    padding-top: 20px;
  }
  .header_items {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .main_wheel_main_button {
    font-size: 16px;
    padding: 14px 30px;
  }
}
@media (max-height: 430px) {
  .main_wheel_main_wheel {
    max-width: min(58vh, 290px);
  }
  /* Keep a >=44px touch target (WCAG 2.5.8 / Apple HIG) even when shrinking
     the type, so the primary CTA stays reliably tappable. */
  .main_wheel_main_button {
    font-size: 14px;
    padding: 13px 24px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .trust-row { margin-top: 16px; }
  .footer-socials { margin-top: 16px; }
}

/* ==========================================================================
   Header fit — 500px to 799px
   Late in the file on purpose: the desktop header rules near the end of the
   PRO block set a 1200px max-width on .header_items with no cap below it, so
   anything that overrides them has to come after. Measured before the fix:
   the row ran to 671px inside a 600px viewport.
   ========================================================================== */
/* ==========================================================================
   Header fit, 500px to 799px.
   The row has auto margins on both the connect item and the last item, so it
   is happy to be a fixed width instead of shrinking. Measured: at a 500px
   viewport the row needed 558px and the actions sat 79px past the right edge.
   `min-width: 0` on every item is what actually lets the flex row shrink;
   without it each item keeps its automatic minimum size and the row stays
   oversized no matter how small the padding gets.
   ========================================================================== */
@media (min-width: 500px) and (max-width: 799px) {
  .header_items { gap: 10px; max-width: 100%; }
  .header_items > .header_item { min-width: 0; }
  .header_brand { margin-right: 0; gap: 10px; min-width: 0; }
  .header_item_logo { width: 100px; }
  .header_item_button { margin-left: 0; padding: 12px 16px; font-size: 13px; }
  .header_item:nth-child(2) { margin-left: 0; margin-right: 0; }
  .header_item:last-child { margin-left: 0; }
  .lang-select { padding: 9px 26px 9px 10px; font-size: 12px; }
  [dir="rtl"] .lang-select { padding: 9px 10px 9px 26px; }
}

/* ==========================================================================
   Modal accent + progress bar (were inline styles on the element)
   ========================================================================== */
.modal_rect_up_accent {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.modal_rect_up_tittle_on_accent {
  color: var(--text-on-primary);
}
/* Headings carry UA margins by default; the modal title box is measured to
   the pixel, so zero them and let the existing padding do the spacing. */
.modal_rect_up_tittle {
  margin: 0;
}
.progress-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 20px;
}
.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s;
}
