:root {
  --bg-color: #0d0d0d;
  --surface-color: #1a1a1a;
  --surface-glass: rgba(26, 26, 26, 0.7);
  --primary-color: #e53e3e;
  /* Brutal Red */
  --primary-hover: #f56565;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Header / Nav */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Background blob */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229, 62, 62, 0.15) 0%, rgba(13, 13, 13, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.store-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-store svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-store:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  background-color: rgba(229, 62, 62, 0.1);
  box-shadow: 0 10px 25px -5px rgba(229, 62, 62, 0.2);
}

.btn-store .store-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.btn-store .store-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

/* Legal Pages (Privacy / Terms) */
.legal-content {
  max-width: 800px;
  margin: 4rem auto;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
}

.legal-content h1 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.legal-content p,
.legal-content li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.legal-content th,
.legal-content td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  color: var(--text-secondary);
}

.legal-content th {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(229, 62, 62, 0.05);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-content {
    padding: 2rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 450px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--text-secondary);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.close-modal:hover {
  color: var(--text-primary);
}

.modal-content h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.modal-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#waitlist-form input[type="email"] {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

#waitlist-form input[type="email"]:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

#waitlist-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 1.5rem;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.lang-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.lang-btn:hover:not(.active) {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Hero Image (Mascot) */
.hero-image {
  max-width: 240px;
  margin: 0 auto 1.5rem auto;
  filter: drop-shadow(0 20px 40px rgba(229, 62, 62, 0.4));
  display: block;
}

/* Store Buttons — fixed-box approach so both look identical */
.store-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 4rem;
}

.store-btn {
  display: block;
  height: 52px;
  /* both buttons live in the same 52px box */
  transition: transform 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
}

/* Both images fill the box — object-fit handles unequal internal padding */
.store-badge {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Taste of the App (Slider) */
.brutality-preview {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preview-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.quote-display {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

#preview-quote-text {
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-primary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Slider with Ticks */
.slider-wrapper {
  position: relative;
  padding: 20px 10px;
  width: 100%;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--level-color, var(--primary-color));
  box-shadow: 0 0 20px var(--level-color, var(--primary-color));
  border: 2px solid white;
  margin-top: -1px;
  /* Center tweak */
}

.slider-ticks {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  z-index: 1;
}

.tick {
  width: 8px;
  height: 8px;
  background: #444;
  border-radius: 50%;
  transition: background 0.3s;
}

.tick.active {
  background: var(--level-color, var(--primary-color));
  box-shadow: 0 0 10px var(--level-color, var(--primary-color));
}

.skull-meter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.skull-meter span {
  font-size: 1.75rem;
  opacity: 0.15;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skull-meter span.active {
  opacity: 1;
  filter: drop-shadow(0 0 10px var(--level-color, var(--primary-color)));
  transform: scale(1.1);
}