/* ============================================
   MusicKit.app — Design System & Styles
   Theme: "Ableton Faithful"
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg: #0d0d0d;
  --card: #1a1a1a;
  --surface: #2a2a2a;
  --text: #f0f0f0;
  --text-muted: #666666;
  --primary: #ff764d;
  --accent: #00e5a0;
  --info: #4cc9f0;
  --cool: #c77dff;
  --warn: #ffd23f;
  --section-padding: 80px 20px;
  --container-max: 1200px;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

/* --- Section Base --- */
.section {
  padding: var(--section-padding);
}

.section--alt {
  background: var(--card);
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 560px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* Language Toggle */
.nav__lang {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface);
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.nav__lang:hover {
  background: var(--primary);
  color: var(--bg);
}

/* Hamburger */

/* ============================================
   Hero (Parallax)
   ============================================ */
.hero-parallax {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-parallax__bg {
  position: absolute;
  inset: -20% 0;
  will-change: transform;
}

.hero-parallax__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-parallax__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 0 20px;
  will-change: opacity, transform;
}

.hero__headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  color: var(--text);
  opacity: 0.8;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
  word-break: keep-all;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.hero__cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.15s;
}

.hero__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ============================================
   Tools Section
   ============================================ */
.tools {}

.tools__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-left: 3px solid var(--tool-color, var(--primary));
  background: transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background 0.2s;
}

.tool:hover {
  background: var(--surface);
}

.tool__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool__name {
  font-size: 1.05rem;
  font-weight: 600;
}

.tool__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tool__link {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}

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

.tool__arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.tool:hover .tool__arrow {
  transform: translateX(4px);
}

/* ============================================
   Pro Apps Section
   ============================================ */
.pro-card {
  display: flex;
  gap: 32px;
  background: var(--surface);
  border: 1px solid #3a3a3a;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

.pro-card:hover {
  border-color: var(--primary);
}

.pro-card__thumb {
  flex: 0 0 400px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-card__thumb-placeholder {
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.pro-card__body {
  flex: 1;
  padding: 32px 32px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pro-card__name {
  font-size: 1.35rem;
  font-weight: 700;
}

.pro-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  word-break: keep-all;
}

.pro-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pro-card__tag {
  padding: 4px 10px;
  background: rgba(0, 229, 160, 0.08);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
}

.pro-card__btn {
  display: inline-block;
  width: fit-content;
  margin-top: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.15s;
}

.pro-card__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.pro-card__btn--disabled {
  background: var(--card);
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
}

/* ============================================
   About Section
   ============================================ */
.about {}

.about__text {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.8;
  word-break: keep-all;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter {
  text-align: center;
}

.newsletter__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact__email-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  word-break: keep-all;
}

.contact__email-label a {
  color: var(--primary);
  text-decoration: none;
}

.contact__email-label a:hover {
  opacity: 0.8;
}

.contact__email-link {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  transition: opacity 0.2s;
}

.contact__email-link:hover {
  opacity: 0.8;
}

.contact__divider {
  border: none;
  border-top: 1px solid var(--surface);
  max-width: 200px;
  margin: 36px auto;
}

.newsletter__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  word-break: keep-all;
}

.newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
}

.newsletter__input::placeholder {
  color: var(--text-muted);
}

.newsletter__input:focus {
  border-color: var(--primary);
}

.newsletter__btn {
  padding: 12px 24px;
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.newsletter__btn:hover {
  opacity: 0.9;
}

.newsletter__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.newsletter__status {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 1.4em;
  animation: fadeIn 0.3s ease;
}

.newsletter__status--success {
  color: var(--accent);
}

.newsletter__status--error {
  color: var(--primary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--surface);
}

.footer a {
  color: var(--text-muted);
  text-decoration: underline;
}
.footer a:hover {
  color: var(--text);
}

.footer__disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
  max-width: 640px;
  margin: 8px auto 0;
  line-height: 1.5;
  word-break: keep-all;
}

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

/* Mobile < 768px */
@media (max-width: 767px) {
  .nav__links {
    display: none;
  }

  .hero__headline {
    font-size: 1.75rem;
  }

  .tool {
    padding: 16px 16px;
  }

  .tool__arrow {
    display: none;
  }

  .pro-card {
    flex-direction: column;
  }

  .pro-card__thumb {
    flex: none;
    height: 200px;
  }

  .pro-card__body {
    padding: 24px;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .newsletter__btn {
    width: 100%;
  }
}

/* Tablet 768-1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .section {
    padding: 64px 32px;
  }

  .nav__inner {
    padding: 0 32px;
  }
}

/* Desktop > 1024px */
@media (min-width: 1025px) {
  .section {
    padding: 80px 40px;
  }
}
