/* ─── TOKENS ─── */
:root {
  --orange: #EC663B;
  --orange-dark: #d45530;
  --dark: #1F2024;
  --bg: #FAD9CE;
  --white: #FFFFFF;
  --radius-card: 46px;
  --radius-img: 36px;
}

/* ─── BASE ─── */
/* overflow-x on both html+body: phone mockups overflow with negative positioning */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

/* ─── ROCK INTRO ─── */
.rock-intro {
  position: fixed; inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  will-change: transform;
}

.rock-intro-icon {
  width: clamp(140px, 22vw, 280px);
  height: auto;
  will-change: transform, filter, opacity;
}

/* ─── NAVBAR ─── */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.75rem 0;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}

#mainNav.scrolled {
  background: rgba(250, 217, 206, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.1);
  padding: 2rem 0;
}

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

.nav-brand .nav-logo { height: 40px; }

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

.nav-link-custom {
  font-size: 1.15rem; font-weight: 500; color: var(--dark);
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: color 0.2s;
}

.nav-link-custom:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  background: var(--orange); border: none; border-radius: 8px;
  transform: rotate(-7deg); cursor: pointer; position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: white;
  border-radius: 2px; position: absolute;
  left: 50%; transform: translateX(-50%); transition: 0.3s;
}

.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { content: ''; top: -7px; left: 50%; transform: translateX(-50%); }
.nav-toggle span::after  { content: ''; top: 7px; left: 50%; transform: translateX(-50%); }

/* Hamburger → X animation */
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before {
  top: 0; left: 50%; transform: translateX(-50%) rotate(45deg);
}
.nav-toggle.active span::after {
  top: 0; left: 50%; transform: translateX(-50%) rotate(-45deg);
}

.mobile-menu {
  display: flex; flex-direction: column;
  position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(250,217,206,0.97);
  backdrop-filter: blur(14px);
  padding: 0 1.5rem; align-items: center; text-align: center;
  gap: 0; box-shadow: none; z-index: 999;
  max-height: 0; overflow: hidden; opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease, gap 0.35s ease, box-shadow 0.3s ease;
}

.mobile-menu.open {
  max-height: 300px; opacity: 1;
  padding: 1.5rem; gap: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  pointer-events: auto;
}

@media (max-width: 991.98px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ─── HERO ─── */
.hero {
  padding: 120px 0 0px;
  min-height: 70svh;
  display: flex; align-items: center;
}

.hero-title {
  font-family: 'East Sea Dokdo', cursive;
  font-size: clamp(5.5rem, 12vw, 10.75rem);
  line-height: 0.56;
  color: var(--dark);
  letter-spacing: -3px;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1rem; line-height: 1.7;
  max-width: 496px; letter-spacing: -0.48px;
}

.hero-cta { font-weight: 700; font-size: 1rem; }

.hero-image-col { position: relative; }

.hero-image-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.discover-pill {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%) rotate(-3.25deg);
  z-index: 1;
  background: var(--orange);
  color: var(--dark); font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 2.25rem);
  padding: 18px 48px; border-radius: var(--radius-card);
  white-space: nowrap;
}

.hero-band-img {
  width: 100%; height: auto;
  object-fit: cover; border-radius: var(--radius-img); display: block;
  position: relative; z-index: 2;
}

.band-caption { font-size: 0.85rem; margin-top: 10px; }
.band-caption .bold { font-weight: 700; }
.band-caption .underline { text-decoration: underline; color: inherit; }

.spotify-icon {
  width: 28px; height: 28px; vertical-align: middle; margin-left: 6px;
}

.store-badge {
  height: 55px; transition: transform 0.25s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.store-badge:hover { transform: translateY(-3px) scale(1.03); }

/* ─── WHY SECTION ─── */
.why-section { padding: 5rem 0 13rem;}

.rock-hand-img {
  height: 260px; display: inline-block;
  animation: float 3.2s ease-in-out infinite;
  transform: rotate(23.55deg);
}

.why-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400; line-height: 1.3;
}

.why-title strong { font-weight: 700; }

/* ─── FEATURE SECTIONS ─── */
.feature-section {
  padding: 14rem 0;
  position: relative;
}

.feature-layout {
  position: relative;
}

/* ── Card ── */
.feature-card {
  width: 70%;
  min-height: 420px;
  border-radius: var(--radius-card);
  padding: 3.5rem;
  position: relative;
  overflow: visible;
  z-index: 1;
  display: flex;
  align-items: center;
  transition: transform 0.35s ease;
}

.feature-card:hover { transform: translateY(-4px); }

.feature-card.dark-card   { background: var(--dark); color: white; }
.feature-card.orange-card { background: var(--orange); color: var(--dark); }
.feature-card.white-card  { background: var(--white); color: var(--dark); }

/* Card alignment */
.layout-phone-left .feature-card { margin-left: auto; }
.layout-phone-right .feature-card { margin-right: auto; }

/* Text wrapper — pushed to the non-phone side */
.feature-content {
  position: relative;
  z-index: 4;
}

.layout-phone-left .feature-content {
  margin-left: auto;
  padding-left: 10%;
}

.layout-phone-right .feature-content {
  margin-right: auto;
  padding-right: 10%;
}

.feature-title {
  font-family: 'East Sea Dokdo', cursive;
  font-size: clamp(3.5rem, 8vw, 7.9rem);
  line-height: 0.56;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.dark-card  .feature-title { color: var(--orange); }
.orange-card .feature-title { color: var(--dark); }
.white-card  .feature-title { color: var(--orange); }

.feature-body {
  font-size: 1rem; line-height: 1.7;
  max-width: 407px; letter-spacing: -0.48px;
}

.dark-card  .feature-body { color: rgba(255,255,255,0.8); }
.orange-card .feature-body { color: var(--dark); }
.white-card  .feature-body { color: var(--dark); }

/* ── Phone: absolute, overflows card edge ── */
.feature-phone {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
}

.layout-phone-left .feature-phone {
  left: -40%;
}

.layout-phone-right .feature-phone {
  right: -40%;
}

.phone-mockup {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 24px 64px rgba(0,0,0,0.4));
}

.phone-mockup .phone-screen {
  position: absolute;
  top: 1.8%; left: 3.5%; width: 93%; height: 96.4%;
  object-fit: cover; border-radius: 10.5%; z-index: 1;
}

.phone-mockup .phone-chassis {
  width: 100%; height: auto; display: block;
  position: relative; z-index: 2;
  pointer-events: none;
}

.phone-left  { transform: rotate(15.53deg); }
.phone-right { transform: rotate(-18.27deg); }

/* ─── BOTTOM BAND PHOTO ─── */
.bottom-band { padding: 2rem 0 0; margin-top: 100px;}

.bottom-band-img {
  width: 100%; height: auto; aspect-ratio: 1419 / 467;
  object-fit: cover; object-position: top;
  border-radius: var(--radius-img); display: block;
}

/* ─── FOOTER ─── */
.site-footer { background: var(--dark); padding: 2rem 0; margin-top: 120px; }

.footer-brand {
  display: flex; align-items: center; gap: 6px;
}

.footer-brand img { filter: brightness(0) invert(1); }

.footer-links a {
  color: rgba(255,255,255,0.45); font-size: 0.82rem;
  text-decoration: none; margin: 0 10px; transition: color 0.2s;
}

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

.footer-copy {
  color: rgba(255,255,255,0.3); font-size: 0.78rem; margin: 0;
}

/* ─── ANIMATIONS ─── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(23.55deg); }
  50%      { transform: translateY(-14px) rotate(23.55deg); }
}

/* ─── RESPONSIVE ─── */

/* ── Tablet (≤991px) ── */
@media (max-width: 991.98px) {
  .hero { padding: 120px 0 60px; min-height: auto; }

  .why-section { padding: 3rem 0 6rem; }
  .rock-hand-img { height: 160px; }

  .feature-section { padding: 5rem 0 3rem; }

  .feature-card {
    width: 100%;
    margin: 0;
    min-height: auto;
    padding: 2rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
  }

  .feature-card:hover { transform: none; }

  .layout-phone-left .feature-card,
  .layout-phone-right .feature-card {
    margin-left: 0;
    margin-right: 0;
  }

  .feature-content {
    margin: 0 auto;
    text-align: center;
  }

  .layout-phone-left .feature-content,
  .layout-phone-right .feature-content {
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .feature-content .feature-title { text-align: center; font-size: clamp(6rem, 13vw, 7.5rem); line-height: 0.75; }
  .feature-content .feature-body { text-align: left;}

  /* Phone flows inside card below text */
  .feature-phone {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .layout-phone-left .feature-phone,
  .layout-phone-right .feature-phone {
    left: auto;
    right: auto;
    top: 5rem;
  }

  .phone-mockup { width: 280px; }

  .phone-left, .phone-right {
    transform: rotate(7.44deg);
  }

  .bottom-band { margin-top: 40px; }
  .site-footer { margin-top: 60px; }
}

/* ── Mobile (≤767px) ── */
@media (max-width: 767px) {
  .hero { padding: 120px 0 40px; }
  .hero-title { font-size: 5.5rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .store-badge { height: 48px; }

  .feature-title { font-size: 5rem; line-height: 0.75; }
  .feature-card { border-radius: var(--radius-card); padding: 1.5rem 1.5rem 0; }
  .feature-body { font-size: 0.95rem; }
  .phone-mockup { width: 280px; }
  .phone-left, .phone-right { transform: rotate(10deg); }

  .why-section { padding: 2rem 0 4rem; }
  .rock-hand-img { height: 220px; }
  .why-title { font-size: 1.7rem; }

  .discover-pill { font-size: 1rem; padding: 10px 24px; }
  .bottom-band-img { border-radius: 18px; }
  .bottom-band { margin-top: 24px; }
  .site-footer { margin-top: 40px; }

  .footer-links a { margin: 0 6px; font-size: 0.75rem; }
  .footer-copy { font-size: 0.72rem; }
}

/* ── Small mobile (≤375px) ── */
@media (max-width: 375px) {
  .hero-title { font-size: 4.5rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .feature-title { font-size: 2.5em; }
  .phone-mockup { width: 210px; }
  .discover-pill { font-size: 0.9rem; padding: 8px 20px; }
  .nav-brand .nav-logo { height: 32px; }
}
