:root {
  --bg-dark: #0f111a;
  --bg-gradient-start: #1a1d2e;
  --bg-gradient-end: #2d324d;
  --accent-color: #8ad4ed;
  --accent-hover: #6cbcd4;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 20px;
  --card-hover-transform: translateY(-5px);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background: linear-gradient(to bottom, #0f111a, #1a1d2e, #262a40);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.5rem;
  margin-top: 1rem;
  font-weight: 400;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* Toolbar */
.toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 17, 26, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

.left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.left img {
  width: 32px;
  height: auto;
  border-radius: 8px;
}

.left span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.right {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Buttons */
.buy-button,
.download-button {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buy-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.buy-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.download-button {
  background: var(--accent-color);
  color: #0f111a;
  font-weight: 600;
}

.download-button:hover {
  background: var(--accent-hover);
  color: #0f111a;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(138, 212, 237, 0.3);
}

.download-button svg {
  width: 18px;
  height: 18px;
}

.download-button.large,
.buy-button.large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-background .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 17, 26, 0.3), var(--bg-dark));
}

.hero-content {
  max-width: 900px;
  padding: 20px;
  z-index: 1;
  animation: fadeIn Up 1s ease-out;
}

.main-title {
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.purchase-section {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 3rem;
}

/* Info Bar */
.info-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.homebrew-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}

.homebrew-button:hover {
  color: white;
}

/* Content Layout */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

section {
  margin-bottom: 120px;
}

.section-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
}

section h2 {
  text-align: center;
}

/* Segmented Control */
.segmented-control-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.segmented-control {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: 50px;
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--glass-border);
}

.segmented-control button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 24px;
  border-radius: 40px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.segmented-control button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.segmented-control button.active {
  background: var(--accent-color);
  color: #0f111a;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(138, 212, 237, 0.2);
}

/* Tab Content */
.tab-container {
  display: grid;
  grid-template-areas: "content";
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
}

.tab-pane {
  grid-area: content;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  /* Ensure it takes up space */
}

.tab-pane.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  position: relative;
}

/* Animation Classes */
.tab-pane.slide-in-right {
  animation: slideInRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  visibility: visible;
  z-index: 2;
}

.tab-pane.slide-out-left {
  animation: slideOutLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  visibility: visible;
  z-index: 1;
}

.tab-pane.slide-in-left {
  animation: slideInLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  visibility: visible;
  z-index: 2;
}

.tab-pane.slide-out-right {
  animation: slideOutRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  visibility: visible;
  z-index: 1;
}

.single-featured {
  max-width: 1100px;
  /* Increased size */
  margin: 0 auto;
  width: 100%;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid Layouts */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-container.two-col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.grid-container.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: var(--card-hover-transform);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.video-wrapper {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  aspect-ratio: 16/9;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Feature Rows */
.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.feature-text p {
  text-align: left;
  margin-bottom: 1rem;
}

.feature-media {
  flex: 1.2;
}

.feature-media video,
.feature-media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
}

.rounded-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.footer-links {
  margin-top: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  margin: 0 10px;
}

.footer-links a:hover {
  color: white;
}

/* Black Friday Banner */
#black-friday-banner {
  background: linear-gradient(90deg, rgba(65, 120, 138, 0.9), rgba(90, 74, 122, 0.9));
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.countdown-timer {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Popup */
.popup-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
}

.brew-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  width: 90%;
  max-width: 500px;
}

.brew-popup-content {
  background: #1a1d2e;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.popup-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.close-popup {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.close-popup:hover {
  color: white;
}

.popup-body {
  padding: 20px;
}

.code-container {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--glass-border);
}

.code-container code {
  font-family: 'SF Mono', monospace;
  flex: 1;
  color: #a5d6ff;
  font-size: 0.9rem;
}

.copy-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 1);
}

.copy-button svg {
  width: 16px;
  height: 16px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {

  .grid-container,
  .grid-container.two-col,
  .grid-container.three-col {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .feature-text h2,
  .feature-text p {
    text-align: center;
  }

  h1 {
    font-size: 2.8rem;
  }

  .hero-content {
    padding-top: 60px;
  }
}

@media (max-width: 600px) {
  .toolbar {
    padding: 10px 20px;
  }

  .left span {
    display: none;
  }

  .purchase-section {
    flex-direction: column;
    align-items: stretch;
  }

  .download-button.large,
  .buy-button.large {
    width: 100%;
    box-sizing: border-box;
  }
}