/* ====================================
   Brand Page – Custom Styles
   Tailwind CDN handles utility classes.
   This file covers animations, effects,
   and components that need custom CSS.
   ==================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Pretendard', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-switcher {
  min-width: 72px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 32, 0.72);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 30px 0 12px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%), linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position: calc(100% - 16px) 14px, calc(100% - 11px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang-switcher--mobile {
  width: 100%;
  background-color: rgba(11, 15, 20, 0.95);
}

/* ── Glassmorphism ── */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #3ecf8e 0%, #3fb97f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Gradient ── */
.hero-gradient {
  background: radial-gradient(
    circle at 50% -20%,
    rgba(62, 207, 142, 0.15) 0%,
    rgba(11, 15, 20, 0) 60%
  );
}

/* ====================================
   Waveform Bars
   ==================================== */
.waveform-bar {
  width: 2px;
  border-radius: 1px 1px 0 0;
  background: linear-gradient(
    to top,
    rgba(96, 165, 250, 0.7),
    rgba(62, 207, 142, 0.95)
  );
  transform-origin: bottom;
  animation: waveform 1.6s ease-in-out infinite;
}

@keyframes waveform {
  0%, 100% {
    transform: scaleY(0.35);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.9;
  }
}

/* ── Recording Button Pulse ── */
.rec-btn {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.5);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(62, 207, 142, 0);
  }
}

/* ====================================
   Reveal Animation (IntersectionObserver)
   ==================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 600ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================
   Hamburger Menu
   ==================================== */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #f1f5f9;
  border-radius: 1px;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  background: rgba(11, 15, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__mobile-menu.is-open {
  display: flex;
}

.header__mobile-link {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.header__mobile-link:hover {
  color: #3ecf8e;
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 767px) {
  .header__hamburger {
    display: flex;
  }
}

/* ====================================
   Accessibility
   ==================================== */
:focus-visible {
  outline: 2px solid #3ecf8e;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-stagger {
    opacity: 1;
    transform: none;
  }
}

.legal-main {
  padding: 112px 24px 80px;
}

.legal-container {
  max-width: 920px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 18px;
}

.legal-kicker {
  color: #3ecf8e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.legal-title {
  margin: 10px 0 8px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  font-weight: 800;
}

.legal-meta {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

.legal-sheet {
  background: #f8f5ec;
  color: #1f2937;
  border: 1px solid #dfd8c9;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  padding: 28px 28px 32px;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.legal-sheet h2 {
  margin: 28px 0 10px;
  font-size: 15px;
  line-height: 1.45;
  color: #111827;
}

.legal-sheet h3 {
  margin: 18px 0 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #1f2937;
}

.legal-sheet p {
  margin: 0 0 10px;
}

.legal-sheet ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

.legal-sheet li {
  margin-bottom: 6px;
}

.legal-sheet a {
  color: #0b66c3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #d7cebc;
  color: #4b5563;
  font-size: 12px;
}

@media (max-width: 767px) {
  .legal-main {
    padding: 96px 14px 56px;
  }

  .legal-sheet {
    padding: 18px 16px 20px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.75;
  }

  .legal-sheet h2 {
    font-size: 14px;
  }

  .legal-sheet h3 {
    font-size: 13px;
  }
}
