/* 기본 스타일 리셋 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 변수 정의 */
:root {
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #1e293b;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --radius: 0.5rem;
}

/* 기본 스타일 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

/* 언어 선택기 스타일 */
.language-selector select {
  appearance: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.language-selector select:focus {
  outline: none;
}

.language-selector select option {
  background-color: var(--background);
  color: var(--foreground);
}

/* 유틸리티 클래스 */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-between: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.min-h-screen {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-10 {
  z-index: 10;
}

.border {
  border: 1px solid var(--border);
}

.border-t {
  border-top: 1px solid var(--border);
}

.border-b {
  border-bottom: 1px solid var(--border);
}

.border-8 {
  border-width: 8px;
}

.border-black {
  border-color: #000;
}

.rounded-lg {
  border-radius: var(--radius);
}

.rounded-xl {
  border-radius: calc(var(--radius) * 1.5);
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-\[3rem\] {
  border-radius: 3rem;
}

.rounded-\[2\.5rem\] {
  border-radius: 2.5rem;
}

.bg-white {
  background-color: var(--background);
}

.bg-white\/80 {
  background-color: rgba(255, 255, 255, 0.8);
}

.bg-gray-50 {
  background-color: #f9fafb;
}

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

.bg-primary\/10 {
  background-color: rgba(59, 130, 246, 0.1);
}

.text-primary {
  color: var(--primary);
}

.text-white {
  color: var(--primary-foreground);
}

.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-gray-500 {
  color: var(--muted-foreground);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-6 {
  padding: 1.5rem;
}

.mt-12 {
  margin-top: 3rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-\[600px\] {
  max-width: 600px;
}

.max-w-\[900px\] {
  max-width: 900px;
}

.max-w-5xl {
  max-width: 64rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-16 {
  height: 4rem;
}

.h-auto {
  height: auto;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-16 {
  width: 4rem;
}

.w-full {
  width: 100%;
}

.overflow-hidden {
  overflow: hidden;
}

.text-center {
  text-align: center;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.object-cover {
  object-fit: cover;
}

.underline-offset-4 {
  text-underline-offset: 4px;
}

.hover\:underline:hover {
  text-decoration: underline;
}

/* 버튼 스타일 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-sm {
  height: 2rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  height: 2.75rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: 0.875rem;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

/* 반응형 스타일 */
@media (min-width: 400px) {
  .min-\[400px\]\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 640px) {
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:gap-8 {
    gap: 2rem;
  }

  .md\:py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .md\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .md\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .md\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .md\:text-xl {
    font-size: 1.25rem;
  }

  .md\:flex-1 {
    flex: 1 1 0%;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:gap-12 {
    gap: 3rem;
  }

  .lg\:ml-auto {
    margin-left: auto;
  }

  .lg\:justify-end {
    justify-content: flex-end;
  }
}

@media (min-width: 1280px) {
  .xl\:text-6xl\/none {
    font-size: 3.75rem;
    line-height: 1;
  }

  .xl\:text-xl\/relaxed {
    font-size: 1.25rem;
    line-height: 1.625;
  }
}

/* SVG 아이콘 색상 */
.primary-icon {
  color: var(--primary);
}

/* Watch 섹션 카드 호버 효과 */
#apple-watch .rounded-lg {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#apple-watch .rounded-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Feature 카드 호버 효과 */
#features .rounded-lg {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#features .rounded-lg:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Watch 이미지 드롭 섀도우 */
.drop-shadow-2xl {
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

/* Apple Watch 프레임 */
.watch-frame {
  position: relative;
  width: 180px;
  height: 220px;
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.watch-frame::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 50px;
  width: 6px;
  height: 35px;
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: 0 4px 4px 0;
}

.watch-frame::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 95px;
  width: 6px;
  height: 55px;
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: 0 4px 4px 0;
}

.watch-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
}

@media (min-width: 768px) {
  .watch-frame {
    width: 200px;
    height: 244px;
    border-radius: 50px;
    padding: 14px;
  }

  .watch-screenshot {
    border-radius: 40px;
  }
}

/* 반응형: Watch 섹션 순서 */
@media (min-width: 1024px) {
  .lg\:order-1 {
    order: 1;
  }
  .lg\:order-2 {
    order: 2;
  }
  .lg\:justify-start {
    justify-content: flex-start;
  }
}

.order-1 {
  order: 1;
}

.order-2 {
  order: 2;
}

/* 스크린샷 이미지 트랜지션 */
#hero-screenshot {
  transition: opacity 0.3s ease;
}

/* Watch 이미지 크기 */
.w-48 {
  width: 12rem;
}

.md\:w-56 {
  width: 14rem;
}

@media (min-width: 768px) {
  .md\:w-56 {
    width: 14rem;
  }
}

/* space-y-6 */
.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* p-4 */
.p-4 {
  padding: 1rem;
}

/* grid-cols-2 */
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* font-semibold */
.font-semibold {
  font-weight: 600;
}

