:root {
  --bg-dark: #09090b;
  --surface: #18181b;
  --surface-hover: #27272a;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --accent: #8b5cf6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #27272a;
  --icon-bg: rgba(255, 255, 255, 0.1);
  --table-th-bg: rgba(0, 0, 0, 0.2);
  --table-td-bg: rgba(99, 102, 241, 0.05);
}

:root.light-mode {
  --bg-dark: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.2);
  --accent: #7c3aed;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --icon-bg: rgba(0, 0, 0, 0.05);
  --table-th-bg: rgba(0, 0, 0, 0.05);
  --table-td-bg: rgba(79, 70, 229, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Glows */
.glow-1 {
  position: absolute;
  top: -10%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}
.glow-2 {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(9, 9, 11, 0.7);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: white;
}
.nav-btn {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 0 15px var(--primary-glow);
  transition: all 0.2s ease;
}
.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--primary-glow);
}

/* Hero Section */
.hero {
  padding: 8rem 5% 4rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-inline: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.btn-mac, .btn-win {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-mac {
  background: var(--text-main);
  color: var(--bg-dark);
}
.btn-mac:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-win {
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-win:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
}
.hero-visual img {
  width: 100%;
  display: block;
}

/* Bento Grid */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 6rem 0 3rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

.bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease;
}
.bento-item:hover {
  transform: translateY(-5px);
  border-color: rgba(99,102,241,0.4);
}

.bento-item.large {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-start;
}

.bento-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  z-index: 2;
}
.bento-item p {
  color: var(--text-muted);
  font-size: 1rem;
  z-index: 2;
}

.bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.bento-icon {
  margin-bottom: auto;
  z-index: 2;
  background: var(--icon-bg);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* Old Landing Additional Styles */
.features-detailed {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 5%;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.feat-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

/* Animations section */
.anim-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 0 5%;
}
.anim-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.anim-card:hover {
  border-color: var(--c, var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.anim-preview {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.2));
}
.anim-card span {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.anim-fade { animation: fadeAnim 2s infinite alternate; }
@keyframes fadeAnim { from {opacity: 0.3} to {opacity: 1} }
.anim-karaoke { background: linear-gradient(135deg, #1a0a00, #3a1a00); animation: karaokeAnim 1.5s infinite; }
@keyframes karaokeAnim { 0%,100% {color: #fff} 50% {color: #FFE000} }
.anim-type::after { content: '|'; animation: blink 0.8s infinite; }
@keyframes blink { 50% {opacity: 0} }
.anim-pop { animation: popAnim 1s infinite alternate; }
@keyframes popAnim { from {transform: scale(0.85)} to {transform: scale(1.1)} }

/* Presets */
.presets-row {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 0 5%;
}
.preset-card {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.preset-card:hover { border-color: var(--primary); transform: scale(1.03); }

/* Pricing */
.pricing-cards {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 5%;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}
.price-card-featured {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.1));
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 40px rgba(99,102,241,0.15);
}
.price-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: white;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.price-amount {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  margin: 8px 0;
}
.price-features {
  list-style: none;
  margin: 24px 0;
}
.price-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

/* Comparison Table */
.comparison-container {
  max-width: 900px;
  margin: 6rem auto;
  padding: 0 5%;
}
.table-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1.5rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 1.25rem; font-weight: 700; background: var(--table-th-bg); color: var(--text-main); }
th:nth-child(2) { color: var(--primary); }
td:first-child { font-weight: 500; color: var(--text-muted); }
td:nth-child(2) { font-weight: 600; color: var(--text-main); background: var(--table-td-bg); }

/* Download */
.download-cards {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 5%;
}
.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  transition: all 0.2s;
}
.dl-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.dl-icon {
  width: 72px;
  height: 72px;
  background: rgba(99,102,241,0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 5%;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  background: var(--surface);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 5%;
  margin-top: 8rem;
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin-inline: auto;
  color: var(--text-muted);
}

/* Animations */
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .bento-grid, .pricing-cards, .download-cards { grid-template-columns: 1fr; }
  .bento-item.large { grid-column: span 1; }
  .hero-buttons { flex-direction: column; }
  footer { flex-direction: column; gap: 2rem; }
}
