:root {
  --bg: #000000;
  --fg: #ededed;
  --muted: #a1a1a1;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.03);
  --accent: #c9a24b;
  --accent-soft: #e0c074;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-display {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.text-gradient {
  background: linear-gradient(180deg, #e0c074 0%, #c9a24b 55%, #9a7a33 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-accent {
  background: linear-gradient(90deg, #e0c074 0%, #c9a24b 50%, #9a7a33 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid-bg {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}

.glow {
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(201, 162, 75, 0.22), transparent 70%);
  filter: blur(40px);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #000000;
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.7rem 1.25rem;
  font-size: 0.925rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #d9d9d9;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.7rem 1.25rem;
  font-size: 0.925rem;
  border: 1px solid var(--line-strong);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.nav-blur {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.cube-scene {
  perspective: 1200px;
}

.cube {
  width: 220px;
  height: 220px;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 22s linear infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(201, 162, 75, 0.85);
  background: linear-gradient(135deg, #111111 0%, #050505 60%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: inset 0 0 40px rgba(201, 162, 75, 0.08), 0 0 24px rgba(201, 162, 75, 0.12);
  backface-visibility: hidden;
}

.cube-logo {
  width: 62%;
  height: 62%;
  filter: drop-shadow(0 0 10px rgba(201, 162, 75, 0.45));
}

.cube-face svg {
  width: 58%;
  height: 58%;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 10px rgba(201, 162, 75, 0.45));
}

.cube-face.f1 { transform: rotateY(0deg) translateZ(110px); }
.cube-face.f2 { transform: rotateY(90deg) translateZ(110px); }
.cube-face.f3 { transform: rotateY(180deg) translateZ(110px); }
.cube-face.f4 { transform: rotateY(-90deg) translateZ(110px); }
.cube-face.f5 { transform: rotateX(90deg) translateZ(110px); }
.cube-face.f6 { transform: rotateX(-90deg) translateZ(110px); }

@keyframes spin {
  from { transform: rotateX(-24deg) rotateY(0deg); }
  to { transform: rotateX(-24deg) rotateY(360deg); }
}

@media (max-width: 640px) {
  .cube { width: 150px; height: 150px; }
  .cube-face.f1 { transform: rotateY(0deg) translateZ(75px); }
  .cube-face.f2 { transform: rotateY(90deg) translateZ(75px); }
  .cube-face.f3 { transform: rotateY(180deg) translateZ(75px); }
  .cube-face.f4 { transform: rotateY(-90deg) translateZ(75px); }
  .cube-face.f5 { transform: rotateX(90deg) translateZ(75px); }
  .cube-face.f6 { transform: rotateX(-90deg) translateZ(75px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.tab-btn {
  color: var(--muted);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.is-active {
  color: #000000;
  background: #ffffff;
}

.panel-window {
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(201, 162, 75, 0.15);
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
}

.slot {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.slot-busy {
  border-color: rgba(201, 162, 75, 0.35);
  background: rgba(201, 162, 75, 0.08);
}

.plan-featured {
  border-color: rgba(201, 162, 75, 0.45);
  background: linear-gradient(180deg, rgba(201, 162, 75, 0.08), rgba(255, 255, 255, 0.02));
}

.switch {
  width: 44px;
  height: 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background 0.2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.switch[aria-checked="true"] {
  background: var(--accent);
}

.switch[aria-checked="true"]::after {
  transform: translateX(20px);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-item summary {
  list-style: none;
}

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

.input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: #ffffff;
  font-size: 0.925rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder {
  color: #6b6b6b;
}

.input:focus {
  border-color: rgba(201, 162, 75, 0.6);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.15);
}

.input.is-invalid {
  border-color: #e5484d;
}

select.input {
  color-scheme: dark;
  cursor: pointer;
}

select.input option {
  background-color: #111111;
  color: #ffffff;
}

.wsp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease;
}

.wsp-float:hover {
  transform: scale(1.07);
}

.wsp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25d366;
  opacity: 0.5;
  animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: -1;
}

@keyframes ping {
  75%, 100% { transform: scale(1.6); opacity: 0; }
}

.marquee-track {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cube, .marquee-track, .wsp-float::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
