/* CSS Variables for consistent theming */
:root {
    --primary-color: #667eea;
    --primary-hover: #5a67d8;
    --success-color: #4CAF50;
    --success-hover: #45a049;
    --warning-color: #f59e0b;
    --warning-hover: #d97706;
    --text-primary: #26282b;
    --text-secondary: #6f7985;
    --text-muted: #b5bdc6;
    --bg-primary: #f4f5f6;
    --bg-white: #ffffff;
    --bg-light: #fafbfc;
    --bg-medium: #d0d6db;
    --bg-dark: #8e99a6;
    --border-color: #e6eaed;
    --border-light: #f4f5f6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

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

body {
    margin: 0;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Korean text wraps at spaces; long tokens still break safely */
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Header Styles */
.header-section {
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
  
.menu-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Hamburger Menu */
.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  transition: var(--transition);
  border-radius: 4px;
  position: relative;
  align-items: center;
}

.hamburger-check {
  display: none;
}

.hamburger-menu:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.05);
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger-check:checked ~ .hamburger-line:nth-child(2) {
  transform: translate(0, 8px) rotate(45deg);
}

.hamburger-check:checked ~ .hamburger-line:nth-child(3) {
  transform: scale(0);
  opacity: 0;
}

.hamburger-check:checked ~ .hamburger-line:nth-child(4) {
  transform: translate(0, -8px) rotate(-45deg);
}

/* Menu Dropdown */
.menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  min-width: 200px;
  max-width: calc(100vw - 32px);
  display: none;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition);
}

.menu-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.menu-item {
  display: block;
  padding: 12px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
  transform: translateX(-10px);
}

.menu-item:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  padding-left: 24px;
  transform: translateX(0);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item.active {
  background: var(--primary-color);
  color: var(--bg-white);
  font-weight: 600;
  transform: translateX(0);
  position: relative;
  padding-left: 24px;
}

.menu-item.active::before {
  content: "●";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  color: var(--bg-white);
}

.menu-item.active:hover {
  background: var(--primary-hover);
  color: var(--bg-white);
  padding-left: 24px;
}

.bitsaving-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #00b4ff;
  color: var(--bg-white);
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 180, 255, 0.2);
}

.bitsaving-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 180, 255, 0.3);
  color: var(--bg-white);
  text-decoration: none;
}

.logo {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    padding-top: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    font-weight: bold;
    overflow: hidden; /* 이미지가 원형을 벗어나지 않도록 */
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-title {
    text-align: center;
    margin: 0 auto;
}

.home-title p {
    margin: 0 16px;
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 16px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: #1a202c;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr; /* PC: 2열 고정 */
    gap: 30px;
    margin: 32px 0;
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    flex: 1;
    min-width: calc(50% - 15px);
}

.feature-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.feature-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.feature-content {
    padding: 25px;
    text-align: left;
}

.feature-content h3 {
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.dca-description {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 40px;
  line-height: 1.8;
  margin: 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dca-description p {
  margin: 0;
  max-width: 1000px;
  width: 100%;
  text-align: left;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* 태블릿 구간 (768px ~ 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .features {
        grid-template-columns: 1fr 1fr; /* 2열 유지 */
        gap: 20px; /* 간격 줄임 */
    }
    
    .feature-content {
        padding: 20px; /* 패딩 줄임 */
    }

    .dca-description {
      display: flex;
      justify-content: center;
      align-items: center;
    }
}

/* 모바일 구간 (768px 이하) */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr; /* 1열로 변경 */
        gap: 20px;
    }
    
    .feature-card {
        margin: 0 10px;
    }
    
    .feature-image {
        height: 150px;
    }
    
    .feature-content {
        padding: 20px;
    }
    
    .feature-content h3 {
        font-size: 1.2rem;
    }


    .dca-description {
      display: flex;
      justify-content: center;
      align-items: center;
    }


}


/* Mobile */
@media (max-width: 480px) {
    
    .header-section {
      margin-bottom: 24px;
      padding: 16px;
      border-radius: var(--radius-md);
    }
    
    .header-top {
      flex-direction: row;
      gap: 12px;
      align-items: center;
      justify-content: space-between;
    }
    
    .menu-container {
      display: flex;
      align-items: center;
      gap: 4px;
      position: relative;
    }
    
    .menu-dropdown {
      position: fixed;
      top: 70px;
      left: 16px;
      right: 16px;
      width: auto;
      max-width: none;
      border-radius: var(--radius-lg);
      margin-top: 0;
    }
    
    .hamburger-menu {
      width: 21px;
      height: 21px;
      padding: 8px;
    }
  
    .hamburger-check:checked ~ .hamburger-line:nth-child(2) {
      transform: translate(0, 7px) rotate(45deg);
    }
    
    .hamburger-check:checked ~ .hamburger-line:nth-child(3) {
      transform: scale(0);
      opacity: 0;
    }
    
    .hamburger-check:checked ~ .hamburger-line:nth-child(4) {
      transform: translate(0, -7px) rotate(-45deg);
    }
    
    .logo {
      height: 120px;
    }
    
    .bitsaving-btn {
      font-size: 12px;
      padding: 8px 14px;
    }
  }

