/* Font Face */
@font-face {
  font-family: "Pretendard Variable";
  src: url("assets/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
}

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root Variables */
:root {
  --color-bg: #2b2d31;
  --color-bg-secondary: #323338;
  --color-text-primary: #f1f1f1;
  --color-text-secondary: #aaaaaa;
  --color-accent: #00d1d1;
  --color-accent-hover: #00e5e5;
  --color-primary: #0085ff;
  --font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

/* Base Styles */
html {
  overflow: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation Dots */
.nav-dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-text-secondary);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.nav-dot:hover {
  border-color: var(--color-accent);
  transform: scale(1.2);
}

.nav-dot.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Scroll Hint */
.scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-arrow {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-secondary);
  border-radius: 12px;
  position: relative;
}

.scroll-arrow::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--color-text-secondary);
  border-radius: 2px;
  animation: scroll-down 1.5s infinite;
}

@keyframes scroll-down {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(12px);
  }
}

/* Main Container */
.container {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.container::-webkit-scrollbar {
  display: none;
}

/* Page */
.page {
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.content {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

/* Typography */
.title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    var(--color-text-primary) 0%,
    var(--color-accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

/* Feature Pages Layout (2, 3, 4) */
#page-2 .content,
#page-3 .content,
#page-4 .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  text-align: left;
}

.text-content {
  flex: 1;
  min-width: 0;
}

.image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.dual-image {
  gap: 6px;
}

.dual-image .feature-image {
  height: 400px;
  width: auto;
  object-fit: contain;
}

.feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.p-20 {
  padding: 20px;
}

.feature-image:hover {
  transform: scale(1.02);
}

/* CTA Button - Primary Button Style from isekaionline-client */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  height: 46px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--color-primary);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  margin-top: 1rem;
}

.cta-button:hover {
  background-color: #0099ff;
  transform: translateY(-1px);
}

.cta-button:active {
  transform: translateY(0);
}

/* Mobile Line Break */
.mobile-br {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  #page-2 .content,
  #page-3 .content,
  #page-4 .content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .text-content {
    order: 1;
  }

  .image-container {
    order: 2;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .mobile-br {
    display: block;
  }

  .page {
    padding: 1.5rem;
  }

  .nav-dots {
    right: 1rem;
    gap: 0.75rem;
  }

  .nav-dot {
    width: 10px;
    height: 10px;
  }

  .scroll-hint {
    bottom: 1.5rem;
  }

  .scroll-arrow {
    width: 20px;
    height: 32px;
  }

  .description {
    margin-bottom: 1.5rem;
  }

  .cta-button {
    padding: 0 2.5rem;
    height: 40px;
    font-size: 0.875rem;
  }

  .image-container {
    max-width: 100%;
  }

  .dual-image .feature-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 1rem;
  }

  #page-2 .content,
  #page-3 .content,
  #page-4 .content {
    gap: 1.5rem;
  }

  .cta-button {
    padding: 0 2rem;
    height: 38px;
    font-size: 0.875rem;
  }

  .dual-image .feature-image {
    height: 200px;
  }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
  }

  .description {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    margin-bottom: 1rem;
  }

  .scroll-hint {
    display: none;
  }

  .image-container {
    max-height: 60vh;
  }

  .feature-image {
    max-height: 100%;
    width: auto;
  }
}

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

/* Focus Styles */
.nav-dot:focus-visible,
.cta-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}
