@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  /* Premium Palette */
  --bg-color: #ffffff;
  --text-main: #1e293b;
  --text-sub: #475569;

  /* Aurora Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-subtle: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --backdrop-blur: blur(12px);

  /* Spacing & Radius */
  --radius-lg: 0.8rem;
  --radius-xl: 0.8rem;
  --container-width: 1200px;
}

body {
  font-family: 'Pretendard', sans-serif;
  background-color: #f8fafc;
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.2;
  overflow-x: hidden;
  /* Background Mesh Gradient */
  background-image:
    radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
  background-image:
    radial-gradient(at 40% 20%, hsla(266, 50%, 90%, 1) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(189, 100%, 90%, 1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(340, 100%, 94%, 1) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Layout */
.guide-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 40px;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero {
  padding: 140px 24px 100px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 32px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease-out;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-btn {
  padding: 18px 36px;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-btn.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

.hero-btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(168, 85, 247, 0.4);
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.hero-btn.secondary:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Glass Sidebar */
.guide-menu {
  flex: 0 0 200px;
  position: sticky;
  top: 40px;
  align-self: flex-start;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 10px 30px -5px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: slideInLeft 0.8s ease-out 0.4s backwards;
}

.guide-menu::before {
  content: 'GUIDE MENU';
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-sub);
  opacity: 0.6;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-left: 12px;
}

.guide-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-btn {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #6366f1;
  transform: translateX(5px);
}

.menu-btn.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}

.menu-btn.active::before {
  display: none;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-bottom: 60vh;
}

/* Glass Cards */
.guide-section {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-margin-top: 120px;
  animation: fadeInUp 0.8s ease-out backwards;
}

/* Staggered Animation Delays */
.guide-section:nth-child(1) {
  animation-delay: 0.5s;
}

.guide-section:nth-child(2) {
  animation-delay: 0.6s;
}

.guide-section:nth-child(3) {
  animation-delay: 0.7s;
}

.guide-section:nth-child(4) {
  animation-delay: 0.8s;
}

.guide-section:hover {
  box-shadow: 0 20px 40px rgba(31, 38, 135, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}

.guide-section .text {
  flex: 4;
}

.guide-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: white;
  color: #6366f1;
  border-radius: 18px;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow:
    0 4px 12px rgba(99, 102, 241, 0.15),
    inset 0 0 0 2px rgba(99, 102, 241, 0.05);
  position: relative;
  overflow: hidden;
}

.step-num::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.guide-section p {
  font-size: 1.15rem;
  color: var(--text-sub);
  line-height: 1.8;
}

.guide-section .image {
  flex: 6;
  max-width: 450px;
  position: relative;
}

.guide-section .image::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 1;
  filter: blur(15px);
  transition: opacity 0.3s ease;
}

.guide-section:hover .image::after {
  opacity: 0.8;
}

.guide-section .image img {
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

/* Numbered List Styles */
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-badge {
  flex: 0 0 24px;
  height: 24px;
  background: #334155;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 4px;
  /* Align with first line of text */
}

.step-text {
  flex: 1;
  font-size: 1.1rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Sub-items Layout */
.guide-section.has-sub-items {
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
}

.section-header {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 20px;
  margin-bottom: 10px;
}

.sub-items-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.sub-item {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}


.guide-section:nth-child(2) {
  animation-delay: 0.6s;
}

.guide-section:nth-child(3) {
  animation-delay: 0.7s;
}

.guide-section:nth-child(4) {
  animation-delay: 0.8s;
}

.guide-section:hover {
  box-shadow: 0 20px 40px rgba(31, 38, 135, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}

.guide-section .text {
  flex: 4;
}

.guide-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: white;
  color: #6366f1;
  border-radius: 18px;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow:
    0 4px 12px rgba(99, 102, 241, 0.15),
    inset 0 0 0 2px rgba(99, 102, 241, 0.05);
  position: relative;
  overflow: hidden;
}

.step-num::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.guide-section p {
  font-size: 1.15rem;
  color: var(--text-sub);
  line-height: 1.8;
}

.guide-section .image {
  flex: 6;
  max-width: 450px;
  position: relative;
}

.guide-section .image::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 1;
  filter: blur(15px);
  transition: opacity 0.3s ease;
}

.guide-section:hover .image::after {
  opacity: 0.8;
}

.guide-section .image img {
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

/* Numbered List Styles */
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-badge {
  flex: 0 0 24px;
  height: 24px;
  background: #334155;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 4px;
  /* Align with first line of text */
}

.step-text {
  flex: 1;
  font-size: 1.1rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Sub-items Layout */
.guide-section.has-sub-items {
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
}

.section-header {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 20px;
  margin-bottom: 10px;
}

.sub-items-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.sub-item {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.sub-item .text {
  flex: 4;
}

.sub-item .image {
  flex: 6;
  max-width: 450px;
  position: relative;
}

.sub-item .image::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 1;
  filter: blur(15px);
  transition: opacity 0.3s ease;
}

.sub-item:hover .image::after {
  opacity: 0.8;
}

.sub-item .image img {
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

/* Responsive (Tablets & Mobile) */
@media (max-width: 1024px) {
  .guide-wrapper {
    flex-direction: column;
  }

  .guide-menu {
    flex: 0px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 20px;
    z-index: 100;
    margin-bottom: 20px;
  }

  .guide-menu ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 8px;
    padding: 0;
    overflow-x: visible;
  }

  .menu-btn {
    white-space: normal;
    text-align: center;
    justify-content: center;
    padding: 10px 4px;
    font-size: 0.9rem;
  }

  .guide-section {
    flex-direction: column-reverse;
    padding: 32px;
  }

  .guide-section .image {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .sub-item {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .sub-item .image {
    max-width: 100%;
  }
}

/* Mobile Phones */
@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .guide-section {
    padding: 24px;
  }

  .guide-section h2 {
    font-size: 1.5rem;
  }

  .step-num {
    width: 24px;
    height: 24px;
    font-size: 1.1rem;
  }

  .guide-menu {
    top: 10px;
    padding: 16px;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .guide-menu {
    padding: 12px;
    margin-bottom: 16px;
  }

  .menu-btn {
    padding: 8px 4px;
    font-size: 0.8rem;
  }

  .guide-section {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .guide-section h2 {
    font-size: 1.3rem;
  }

  .guide-section p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .step-text {
    font-size: 0.95rem;
  }
}