/* SpinBetter UZ — styles */
:root {
  --teal-dark: #021c19;
  --teal-light: #042f29;
  --purple: #b10adb;
  --lime: #d2e512;
  --coral: #ff7a69;
  --white: #ffffff;
  --text-muted: #b8ccc8;
  --card-bg: #0a2b26;
  --card-border: rgba(210, 229, 18, 0.18);
  --radius: 16px;
  --max-width: 1140px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--teal-dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(2, 28, 25, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(210, 229, 18, 0.12);
  height: var(--header-h);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  height: 36px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  opacity: 0.85;
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}

.main-nav a:hover { opacity: 1; border-color: var(--lime); }

.header-cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(90deg, var(--lime), #c1d90c);
  color: #06231f;
  box-shadow: 0 8px 24px rgba(210, 229, 18, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-purple {
  background: linear-gradient(90deg, var(--purple), #8c07ad);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(177, 10, 219, 0.3);
}

.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background:
    radial-gradient(circle at 85% -10%, rgba(177,10,219,0.35), transparent 45%),
    radial-gradient(circle at 10% 110%, rgba(210,229,18,0.16), transparent 45%),
    linear-gradient(180deg, var(--teal-light), var(--teal-dark));
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.18;
  margin: 0 0 18px;
  max-width: 780px;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 680px;
  margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.badge-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Sections */
section { padding: 56px 0; }
section.alt { background: rgba(255,255,255,0.02); }

h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 20px;
  color: var(--white);
}

h2 .accent { color: var(--lime); }

section > .container > p { color: var(--text-muted); max-width: 820px; }

.section-intro { color: var(--text-muted); max-width: 820px; margin-bottom: 24px; }

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  background: #0d3a33;
}

.category-card .icon-emoji { font-size: 28px; }

.category-card h3 {
  margin: 0;
  font-size: 17px;
  color: var(--white);
}

.category-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.category-card .go {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); border: 1px solid var(--card-border); }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  font-size: 14.5px;
}

th, td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

th {
  background: rgba(210,229,18,0.08);
  color: var(--lime);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

td { color: var(--text-muted); }

tr:last-child td { border-bottom: none; }

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 18px 16px 56px;
  position: relative;
  color: var(--text-muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: #06231f;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Key facts table variant already covered by table styles */

/* Promo code block */
.promo-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(120deg, rgba(177,10,219,0.14), rgba(210,229,18,0.08));
  border: 1px solid rgba(210,229,18,0.3);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}

.promo-info { flex: 1 1 280px; min-width: 220px; }

.promo-info h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--white);
}

.promo-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 480px;
}

.promo-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.promo-code {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2,28,25,0.6);
  border: 2px dashed var(--lime);
  border-radius: 12px;
  padding: 12px 20px;
  font-family: "Courier New", monospace;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--lime);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.promo-code:hover,
.promo-code:focus-visible {
  background: rgba(210,229,18,0.1);
}

.promo-code.copied {
  border-color: var(--white);
  color: var(--white);
  border-style: solid;
}

.promo-code .promo-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: #06231f;
  color: var(--white);
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: normal;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.promo-code .promo-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #06231f;
}

.promo-code:hover .promo-tooltip,
.promo-code:focus-visible .promo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* CTA banner */
.cta-banner {
  text-align: center;
  margin: 32px auto 0;
}

/* Pros note */
.note-box {
  background: rgba(177,10,219,0.08);
  border: 1px solid rgba(177,10,219,0.3);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 20px;
}

/* FAQ */
.faq-list { margin-top: 24px; display: grid; gap: 10px; }

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--lime);
  font-size: 20px;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item .faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Footer */
.site-footer {
  background: #011512;
  padding: 36px 0 100px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo img { height: 30px; }

.site-footer p {
  color: rgba(184,204,200,0.7);
  font-size: 12.5px;
  max-width: 900px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--lime); }

/* Back to top */
#backToTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lime);
  color: #06231f;
  border: none;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 900;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile sticky CTA */
#mobileStickyCta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  background: linear-gradient(180deg, rgba(4,47,41,0.98), rgba(2,21,19,0.98));
  border-top: 1px solid rgba(210,229,18,0.25);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: 10px;
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

#mobileStickyCta.show { transform: translateY(0); }

#mobileStickyCta .sticky-text {
  flex: 1;
  font-size: 13px;
  color: var(--white);
  line-height: 1.3;
}

#mobileStickyCta .sticky-text strong { color: var(--lime); }

#mobileStickyCta .sticky-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--teal-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    max-height: 70vh;
    overflow-y: auto;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .header-cta.desktop-only { display: none; }
  .nav-toggle { display: flex; }
  #mobileStickyCta { display: flex; }
  body { padding-bottom: 78px; }
  #backToTop { bottom: 90px; }
}

@media (min-width: 781px) {
  #mobileStickyCta { display: none !important; }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero { padding: 40px 0 40px; }
  section { padding: 40px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .promo-block { flex-direction: column; align-items: stretch; padding: 20px; }
  .promo-action { flex-direction: column; align-items: stretch; }
  .promo-code { justify-content: center; }
  .promo-action .btn { width: 100%; }
}

@media (max-width: 420px) {
  .card-grid { grid-template-columns: 1fr; }
}
