/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d16;
  --bg2: #111118;
  --bg3: #16161f;
  --border: rgba(255,255,255,0.08);
  --violet: #7c3aed;
  --fuchsia: #d946ef;
  --gradient: linear-gradient(135deg, #7c3aed, #d946ef);
  --gradient-h: linear-gradient(135deg, #9155ff, #e461ff);
  --text: #f0f0ff;
  --text2: rgba(240,240,255,0.6);
  --text3: rgba(240,240,255,0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 40px rgba(124,58,237,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 30px rgba(124,58,237,0.35);
}
.btn-primary:hover {
  background: var(--gradient-h);
  box-shadow: 0 0 45px rgba(124,58,237,0.55);
}

.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.15);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(13,13,22,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.logo-img {
  border-radius: 7px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a26;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.lang-dropdown.open { display: flex; }

.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition: background 0.15s, color 0.15s;
}
.lang-dropdown button:hover { background: rgba(124,58,237,0.15); color: var(--text); }
.lang-dropdown button.active { background: rgba(124,58,237,0.2); color: var(--text); font-weight: 600; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.18) 0%, rgba(217,70,239,0.08) 50%, transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 60px;
}

.hero-screenshot {
  position: relative;
  display: inline-block;
}

.screenshot-chrome {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

.chrome-dots {
  display: flex;
  gap: 7px;
  padding: 14px 16px 10px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.chrome-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.chrome-dots span:nth-child(1) { background: #ff5f57; }
.chrome-dots span:nth-child(2) { background: #febc2e; }
.chrome-dots span:nth-child(3) { background: #28c840; }

.screenshot-chrome img { width: 900px; max-width: 100%; }

.screenshot-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.4) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* ===== STATS ===== */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 48px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 0 32px;
}

.stat-number {
  display: block;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text2);
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
}

/* ===== STEPS ===== */
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 40px 32px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.step-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text3);
  margin-bottom: 20px;
}

.step-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--violet);
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--text3);
  padding-top: 80px;
  flex-shrink: 0;
}

/* ===== FEATURE SECTIONS ===== */
.feature-section { background: var(--bg); }
.feature-section:nth-child(even) { background: var(--bg2); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-grid-reverse .feature-content { order: 1; }
.feature-grid-reverse .feature-visual { order: 2; }

.feature-content .section-eyebrow { text-align: left; }
.feature-content .section-title { text-align: left; margin-bottom: 28px; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text2);
}

.feature-list li strong { color: var(--text); }

.check {
  width: 18px; height: 18px;
  color: var(--violet);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== APP FRAME ===== */
.app-frame {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), var(--shadow-glow);
}

.app-frame img { width: 100%; }

.app-frame-sm img { width: 100%; }

/* ===== USE CASES ===== */
.use-cases-section { background: var(--bg2); }

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.use-case {
  padding: 28px 24px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.use-case:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-4px);
}

.use-case-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}

.use-case h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.use-case p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

/* ===== TECH SECTION ===== */
.tech-section {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tech-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.tech-content .section-eyebrow,
.tech-content .section-title { text-align: left; }
.tech-content .section-title { margin-bottom: 18px; }

.tech-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 28px;
}

.tech-desc strong { color: var(--text); }

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  padding: 5px 14px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(200,180,255,0.8);
}

.tech-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-glow-orb {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Animated waveform demo */
.waveform-demo {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

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

.wd-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  width: 44px;
  flex-shrink: 0;
}

.wd-bars {
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.wd-bars span {
  flex: 1;
  border-radius: 2px;
  animation: waveAnim 1.2s ease-in-out infinite;
}

.wd-vocals .wd-bars span { background: rgba(139,92,246,0.7); }
.wd-drums .wd-bars span  { background: rgba(236,72,153,0.7); }
.wd-bass .wd-bars span   { background: rgba(34,197,94,0.7); }
.wd-other .wd-bars span  { background: rgba(251,191,36,0.7); }

@keyframes waveAnim {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* ===== CAROUSEL ===== */
.carousel {
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.slide-caption {
  font-size: 14px;
  color: var(--text2);
  text-align: center;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.carousel-btn:hover {
  background: rgba(124,58,237,0.15);
  color: var(--text);
  border-color: rgba(124,58,237,0.4);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active {
  background: var(--violet);
  transform: scale(1.3);
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 400px;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.2) 0%, rgba(217,70,239,0.08) 40%, transparent 70%);
  pointer-events: none;
}

.download-inner { position: relative; z-index: 1; }

.download-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.download-sub {
  font-size: 17px;
  color: var(--text2);
  margin-bottom: 48px;
}

.download-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  min-width: 320px;
  transition: border-color 0.2s;
}
.download-card:hover { border-color: rgba(124,58,237,0.4); }

.download-card-icon {
  width: 56px; height: 56px;
  background: rgba(124,58,237,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  flex-shrink: 0;
}

.download-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.download-card-info strong {
  font-size: 16px;
  font-weight: 700;
}

.download-card-info span {
  font-size: 13px;
  color: var(--text2);
}

.download-meta {
  color: var(--text3) !important;
  font-size: 12px !important;
}

.download-free {
  font-size: 13px;
  color: var(--text3);
}

.smartscreen-note {
  font-size: 12px;
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 6px;
  padding: 8px 14px;
  margin-top: 10px;
  line-height: 1.5;
  text-align: center;
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.hero-smartscreen {
  max-width: 420px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SUPPORT SECTION ===== */
.support-section {
  padding: 80px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.support-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.support-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.support-desc {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
}

.support-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text3);
}

.coffee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 44px;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(217,70,239,0.05));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius);
  text-align: center;
  min-width: 240px;
  box-shadow: 0 0 40px rgba(124,58,237,0.08);
  position: relative;
  overflow: hidden;
}

.coffee-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  pointer-events: none;
}

.coffee-icon {
  width: 160px; height: 160px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(217,70,239,0.15));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.coffee-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.coffee-text p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
}

.coffee-author {
  font-size: 13px !important;
  color: var(--text3) !important;
  margin-top: 6px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text3);
  padding-left: 2px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text2);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }

.footer-copy {
  font-size: 13px;
  color: var(--text3);
  margin-left: auto;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { padding: 14px 16px; gap: 0; }
  .nav-right .btn { display: none; }

  .stats-grid { flex-direction: column; gap: 32px; }
  .stat-divider { width: 40px; height: 1px; }

  .steps-grid {
    flex-direction: column;
    gap: 20px;
  }
  .step-arrow { display: none; }

  .feature-grid,
  .feature-grid-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-grid-reverse .feature-content { order: 0; }
  .feature-grid-reverse .feature-visual { order: 1; }

  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }

  .tech-inner { grid-template-columns: 1fr; }

  .download-cards { flex-direction: column; align-items: stretch; }
  .download-card { min-width: unset; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .download-card .btn { width: 100%; justify-content: center; }

  .support-inner { grid-template-columns: 1fr; }
  .coffee-card { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-nav { flex-wrap: wrap; gap: 14px; justify-content: flex-start; }
  .footer-copy { margin-left: 0; }
}

@media (max-width: 600px) {
  .hero { padding: 120px 0 60px; }
  .hero-ctas { flex-direction: column; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .download-section { padding: 64px 0; }
}
