/* KaraMagic Landing - Professional, fun, musical theme */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@400&display=swap');

:root {
  --color-bg: #0f0f12;
  --color-surface: #1a1a1f;
  --color-surface-elevated: #232329;
  --color-text: #f5f5f7;
  --color-text-muted: #a1a1aa;
  --color-accent: #e53935;
  --color-accent-hover: #ff5252;
  --color-accent-soft: rgba(229, 57, 53, 0.15);
  --color-gold: #f5b042;
  --color-wave: rgba(245, 176, 66, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle musical wave background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--color-accent-soft), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, var(--color-wave), transparent),
    radial-gradient(ellipse 40% 30% at 10% 80%, var(--color-accent-soft), transparent);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 18, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-text);
}

.btn-download-nav {
  color: var(--color-accent) !important;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.btn-download-nav:hover {
  background: var(--color-accent);
  color: white !important;
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 2rem 6rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  width: 200px;
  height: 200px;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(229, 57, 53, 0.2);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.btn-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--color-accent);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(229, 57, 53, 0.4);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 8px 30px rgba(229, 57, 53, 0.5);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
}

.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.hero-decoration {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q10 10 20 20 T40 20 T60 20 T80 20 T100 20 T120 20' stroke='%23e53935' stroke-width='1' fill='none' opacity='0.3'/%3E%3Cpath d='M0 25 Q10 15 20 25 T40 25 T60 25 T80 25 T100 25 T120 25' stroke='%23f5b042' stroke-width='1' fill='none' opacity='0.2'/%3E%3C/svg%3E") no-repeat center;
  opacity: 0.6;
}

/* How it works */
.how-it-works {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.how-it-works h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.step {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.step:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Download */
.download {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, transparent, var(--color-surface) 20%, transparent);
}

.download h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.download-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.download-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* FAQ */
.faq {
  padding: 5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.faq h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(229, 57, 53, 0.3);
}

.faq-item dt {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.faq-item dd {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--color-surface);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 0.5rem;
  transition: color 0.2s;
}

.social-icon:hover {
  color: var(--color-accent);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
  .header {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1rem;
  }

  .hero {
    padding: 3rem 1.5rem 4rem;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
