:root {
  --bg: #05060a;
  --panel: rgba(14, 16, 24, 0.8);
  --panel-strong: rgba(26, 29, 43, 0.85);
  --text: #f4f7ff;
  --muted: #96a0c3;
  --accent: #7c5dff;
  --accent-2: #35c9ff;
  --accent-3: #ff6fb7;
  --border: rgba(255, 255, 255, 0.08);
  --radius-lg: 32px;
  --radius-md: 20px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(145deg, #05060a, #080b15 50%, #0e101c);
  color: var(--text);
  min-height: 100vh;
  padding: 32px clamp(16px, 4vw, 48px) 64px;
  position: relative;
  overflow-x: hidden;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.background-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  filter: blur(180px);
  opacity: 0.35;
  z-index: -2;
}

.glow-one {
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, #7c5dff, transparent 65%);
}

.glow-two {
  bottom: -160px;
  right: -160px;
  background: radial-gradient(circle, #35c9ff, transparent 65%);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: rgba(5, 6, 10, 0.6);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.logo-icon {
  font-size: 24px;
  color: var(--accent-2);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--text);
}

.header-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  font-weight: 600;
}

.hero {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.1;
  margin: 16px 0;
}

.hero-content h1 span {
  color: var(--accent-2);
}

.hero-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--muted);
}

.hero-points li::before {
  content: "•";
  margin-right: 6px;
  color: var(--accent-2);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--muted);
}

.subtitle {
  color: var(--muted);
  max-width: 520px;
}

.subtitle.highlight {
  color: #fdf3ff;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--text);
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
  color: var(--muted);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  background-color: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.dicecolors-card {
  background: linear-gradient(140deg, #10183a, #1d2b6d);
  border-color: rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}

.dicecolors-card::after {
  content: "";
  position: absolute;
  inset: 20px;
  padding: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  opacity: 0.85;
}

.dicecolors-dice {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  position: relative;
}

.dicecolors-die {
  flex: 1;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 6px solid rgba(255, 255, 255, 0.75);
  position: relative;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12), 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.dicecolors-die::after {
  content: "";
  position: absolute;
  width: 20%;
  height: 20%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.color-orange {
  background: linear-gradient(145deg, #ffb02e, #ffa000);
}

.color-green {
  background: linear-gradient(145deg, #2ecc71, #11b24f);
}

.color-purple {
  background: linear-gradient(145deg, #8e44ad, #6d2e9b);
}

.color-blue {
  background: linear-gradient(145deg, #246bff, #0042d9);
}

.dicecolors-roll {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ffd947, #ffc11f);
  color: #1c2344;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 30px rgba(255, 209, 71, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dicecolors-roll.is-rolling {
  animation: roll-pulse 0.45s ease;
}

.dicecolors-hint {
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(244, 247, 255, 0.85);
  text-align: center;
}

.dicecolors-hint .color {
  font-weight: 600;
}

.dicecolors-hint .color.red {
  color: #ff5a64;
}

.dicecolors-hint .color.orange {
  color: #ffb347;
}

.dicecolors-hint .color.yellow {
  color: #ffe066;
}

.dicecolors-hint .color.green {
  color: #49f08d;
}

.dicecolors-hint .color.blue {
  color: #58a6ff;
}

.dicecolors-hint .color.purple {
  color: #c77dff;
}

@keyframes dice-shake {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-2px, 1px) rotate(-4deg);
  }

  50% {
    transform: translate(2px, -1px) rotate(4deg);
  }

  75% {
    transform: translate(-1px, 2px) rotate(-3deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.dicecolors-die.is-shaking {
  animation: dice-shake 0.35s ease both;
}

@keyframes roll-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(255, 209, 71, 0.35);
  }

  40% {
    transform: scale(1.05);
    box-shadow: 0 18px 40px rgba(255, 209, 71, 0.45);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(255, 209, 71, 0.35);
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  margin-bottom: 28px;
}

.chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(124, 93, 255, 0.2);
  color: var(--accent-2);
  font-size: 0.85rem;
}

.dice-preview {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 24px;
}

.dice {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
}

.dice-two {
  background: linear-gradient(145deg, var(--accent-2), var(--accent-3));
}

.dice-three {
  background: linear-gradient(145deg, #2bf7a1, var(--accent-2));
}

.color-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.color-control {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.swatch-one {
  background: var(--accent);
}

.swatch-two {
  background: var(--accent-2);
}

.swatch-three {
  background: var(--accent-3);
}

.section {
  margin-top: 96px;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 48px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(53, 201, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.install {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.install-steps li {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid transparent;
  background: linear-gradient(145deg, rgba(26, 29, 43, 0.95), rgba(14, 16, 24, 0.9));
  align-items: flex-start;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.install-steps li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(124, 93, 255, 0.3),
      rgba(53, 201, 255, 0.3),
      rgba(255, 111, 183, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.install-steps li::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent);
  transition: left 0.6s ease;
}

.install-steps li:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(124, 93, 255, 0.25),
    0 12px 40px rgba(53, 201, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 93, 255, 0.3);
}

.install-steps li:hover::before {
  opacity: 1;
}

.install-steps li:hover::after {
  left: 100%;
}

.install-steps li:hover .step-index {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(124, 93, 255, 0.5),
    0 0 40px rgba(53, 201, 255, 0.3);
}

.install-steps li h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #ffffff, #c8d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.install-steps li p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.install-steps li .btn {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(124, 93, 255, 0.2), rgba(53, 201, 255, 0.2));
  border: 1px solid rgba(124, 93, 255, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.install-steps li .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.install-steps li .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 93, 255, 0.4);
  border-color: rgba(124, 93, 255, 0.6);
}

.install-steps li .btn:hover::before {
  opacity: 1;
}

.install-steps li .btn span {
  position: relative;
  z-index: 1;
}

.video-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  align-items: center;
}

.video-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-card-content .btn.primary {
  margin-top: auto;
  width: fit-content;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.step-index {
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(124, 93, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.step-index::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  filter: blur(8px);
  opacity: 0.6;
  z-index: -1;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}


.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.trust-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.keyboard-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #0f1534, #171f4b);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-soft);
}

.keyboard-card strong {
  color: var(--accent-2);
}

.cheat-toggle {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.btn.cheat {
  background: linear-gradient(135deg, #7c5dff, #35c9ff);
  color: var(--text);
  font-weight: 600;
  border: none;
}

.btn.cheat.is-active {
  background: linear-gradient(135deg, #ff6fb7, #ff8f5c);
}

.cheat-status {
  font-size: 0.9rem;
  color: var(--muted);
}

.cheat-status strong {
  color: var(--accent-2);
}

.cheat-toggle.inline {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  min-width: 200px;
}

.cheat-toggle.inline .btn.cheat {
  width: 100%;
}

.cheat-toggle.inline .cheat-status {
  font-size: 0.85rem;
}

.metric {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.metric-value {
  font-size: 2rem;
  font-weight: 600;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  padding: 22px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  color: var(--muted);
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 120px;
  padding-bottom: 18px;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-2);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.site-footer {
  margin-top: 120px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 720px) {
  body {
    padding: 24px 16px 48px;
  }

  .site-header {
    flex-direction: column;
  }

  .hero {
    margin-top: 32px;
  }

  .hero-card {
    order: -1;
  }

  .dicecolors-controls {
    grid-template-columns: 1fr;
  }

  .cheat-toggle.inline {
    width: 100%;
  }
}