/* ============================================
   Soundmaze Landing Page
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bg-dark: #1C1C2E;
  --color-bg-card: #252540;
  --color-teal: #3CC8A0;
  --color-teal-hover: #4ED9B0;
  --color-coral: #E8734A;
  --color-white: #FFFFFF;
  --color-text-secondary: #8A8A8A;
  --color-bg-light: #F5F5F5;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 64px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Navigation --- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(28, 28, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: var(--nav-height);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

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

.btn-nav {
  background: var(--color-teal);
  color: var(--color-white) !important;
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-nav:hover {
  background: var(--color-teal-hover);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--color-teal-hover);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 64px 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(60, 200, 160, 0.06) 0%, transparent 70%),
    var(--color-bg-dark);
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-visual {
  margin-top: 48px;
  width: 100%;
  max-width: 640px;
  opacity: 0.7;
}

.hero-svg {
  width: 100%;
  height: auto;
}

/* Hero SVG animation */
.path-main,
.path-branch-1,
.path-branch-2,
.path-branch-3,
.path-branch-1a,
.path-branch-1b {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawPath 2.5s ease forwards;
}

.path-main { animation-delay: 0.2s; }
.path-branch-1 { animation-delay: 0.8s; }
.path-branch-2 { animation-delay: 1s; }
.path-branch-3 { animation-delay: 1.2s; }
.path-branch-1a { animation-delay: 1.6s; }
.path-branch-1b { animation-delay: 1.8s; }

.node-dot {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

.node-dot:nth-child(4) { animation-delay: 0.7s; }
.node-dot:nth-child(5) { animation-delay: 1.3s; }
.node-dot:nth-child(6) { animation-delay: 1.5s; }
.node-dot:nth-child(7) { animation-delay: 1.7s; }
.node-dot:nth-child(8) { animation-delay: 2.1s; }
.node-dot:nth-child(9) { animation-delay: 2.3s; }

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* --- Sections (shared) --- */
.section {
  padding: 120px 64px;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 64px;
  text-align: center;
}

/* --- How It Works --- */
.how-it-works {
  background: var(--color-bg-card);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding: 0 24px;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: rgba(60, 200, 160, 0.1);
  color: var(--color-teal);
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-coral);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.step-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step-connector {
  flex: 0 0 60px;
  padding-top: 30px;
}

.step-connector svg {
  width: 100%;
  height: 4px;
}

/* --- What Makes It Different --- */
.different {
  background: var(--color-bg-dark);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.feature {
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  background: var(--color-bg-card);
  border-top: 3px solid var(--color-coral);
}

.feature-heading {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
}

.feature p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* --- About --- */
.about {
  background: var(--color-bg-card);
}

.about-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* --- Contact --- */
.contact {
  background: var(--color-bg-dark);
  text-align: center;
}

.contact-text {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  opacity: 0.7;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 64px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.site-footer a {
  font-size: 0.85rem;
  color: var(--color-teal);
  font-weight: 500;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--color-teal-hover);
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet and below */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(28, 28, 46, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 16px 0 24px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.nav-open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
  }

  .btn-nav {
    margin: 8px 24px 0;
    display: block;
    text-align: center;
  }

  /* Steps stack vertically */
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .step {
    max-width: 100%;
  }

  .step-connector {
    transform: rotate(90deg);
    flex: 0 0 40px;
    width: 60px;
  }

  /* Features stack on mobile */
  .features {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 80px 24px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .hero {
    min-height: calc(100vh - 20px);
    padding: calc(var(--nav-height) + 32px) 24px 60px;
  }

  .site-footer {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero-title {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .section {
    padding: 64px 20px;
  }
}
