/* 폰트 불러오기 */
@import url('fonts.css');

/* --- :ROOT VARIABLES --- */
:root {
    /* 이미지 기반 색상 팔레트 적용 */
    --background-color-light: #F5F5F5; /* 매우 밝은 베이지/오프화이트 */
    --background-color-dark: #E8E2D0; /* 따뜻한 아이보리/크림 색상 */

    --neumo-shadow-dark: #D4C8B8; /* 박스보다 약간 어두운 그림자 */
    --neumo-shadow-light: #F0E8D8; /* 박스보다 약간 밝은 하이라이트 */
    --primary-blue: #FFD700; /* 따뜻한 골드/옐로우 */
    --primary-blue-dark: #FFA500; /* 따뜻한 오렌지 */

    /* --background-color-dark 위에 사용될 뉴모피즘 그림자 (튀어나온 효과) */
    --neumo-shadow-on-dark-bg-darker: #D0C0A8;  /* 박스보다 어두운 그림자 */
    --neumo-shadow-on-dark-bg-lighter: #fffaf4; /* 박스보다 밝은 하이라이트 */

    /* --background-color-dark 위에 사용될 뉴모피즘 그림자 (눌린 효과, inset) */
    --neumo-inset-shadow-on-dark-bg-darker: #C8B898;
    --neumo-inset-shadow-on-dark-bg-lighter: #F8F0E0;

    --selected-neumo-shadow-dark: #C8B898;
    --selected-neumo-shadow-more-dark: #B8A888;
    --selected-neumo-shadow-light: #F8F0E0;

    --text-color-dark: #333;
    --text-color-light: #666;

    --text-color-on-dark-bg: #FFFFFF; /* 어두운 배경 위 밝은 텍스트 (흰색) */
    --text-color-light-on-dark-bg: #F0F0F0; /* 매우 밝은 베이지/오프화이트 */

    /* 어두운 배경 위 강조색 (글로우 효과용) */
    --accent-color-on-dark-bg: #FFD700; /* 따뜻한 골드/옐로우 */
    --glow-color: #FFD700; /* 호버 시 글로우 효과 색상 */
    --glow-color-secondary: #FFA500; /* 보조 글로우 색상 */

    --border-radius-main: 15px; /* 더 둥근 모서리 */
    --transition-speed: 0.3s ease;
    --sticky-footer-height: 180px; /* 휴대폰 결합 할인 항목 추가로 높이 약간 증가 */

    --action-bar-height: 60px;

    /* Glassmorphism 변수들 */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-bg-weak: rgba(255, 255, 255, 0.15);
    --glass-bg-weakest: rgba(255, 255, 255, 0.05);
    --glass-blur: 10px;
    --glass-border: rgba(255, 255, 255, 0.18);

    /* Neumorphism 그림자 변수들 */
    --shadow-neumo-out: 
        -8px -8px 16px var(--neumo-shadow-light),
        8px 8px 16px var(--neumo-shadow-dark);
    --shadow-elev-1: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-elev-1-soft: 0 6px 12px rgba(0, 0, 0, 0.15);

    /* .fact 섹션 및 참조 사이트 테마 관련 변수 */
    --theme-yellow: #FFD700; /* 따뜻한 골드 */
    --theme-navy: #E8E2D0; /* 박스 색상과 동일 */

    /* 계산기 전용 색상은 유지하되, 필요시 --theme-yellow/navy 오버라이드 가능 */
    --calculator-neumo-shadow-light: #F4E8D8; /* 박스보다 밝은 하이라이트 */
    --calculator-neumo-shadow-dark: #D0C0A8;  /* 박스보다 어두운 그림자 */
}

/* --- NAVIGATION STYLES --- */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.75), rgba(60, 60, 60, 0.75));
    backdrop-filter: blur(25px) saturate(1.2);
    -webkit-backdrop-filter: blur(25px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-content h2 {
    color: var(--background-color-dark); /* 아이보리 색상 */
    font-size: 1.6em;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: inline-block;
    padding: 12px 20px;
    background: var(--background-color-dark); /* 아이보리 색상 */
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 
        3px 3px 8px rgba(139, 69, 19, 0.4),
        -2px -2px 6px rgba(160, 82, 45, 0.3),
        inset 1px 1px 2px rgba(205, 133, 63, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 80px;
    text-align: center;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    background: var(--background-color-dark);
    color: var(--text-color-dark);
    transform: translateY(-1px);
    box-shadow: 
        4px 4px 12px rgba(139, 69, 19, 0.5),
        -3px -3px 8px rgba(160, 82, 45, 0.4),
        0 0 15px rgba(205, 133, 63, 0.3),
        inset 1px 1px 2px rgba(222, 184, 135, 0.2);
}

.nav-links a:active {
    transform: translateY(2px);
    box-shadow: 
        inset 6px 6px 12px rgba(139, 69, 19, 0.6),
        inset -6px -6px 12px rgba(160, 82, 45, 0.4),
        2px 2px 4px rgba(139, 69, 19, 0.5);
}

/* 현재 페이지 활성화 스타일 */
.nav-links a[href*="index.html"]:not([href*="../"]),
.nav-links a[href*="kt.html"]:not([href*="../"]),
.nav-links a[href*="sk.html"]:not([href*="../"]),
.nav-links a[href*="lgu.html"]:not([href*="../"]),
.nav-links a[href*="sitemap.html"]:not([href*="../"]),
.nav-links a[href*="speedtest"]:not([href*="../"]) {
    background: var(--text-color-dark); /* 어두운 배경 */
    color: var(--background-color-dark); /* 아이보리 텍스트 */
    box-shadow: 
        8px 8px 16px rgb(51, 21, 0),
        -8px -8px 16px rgba(189, 94, 51, 0.445)
        inset 2px 2px 4px rgba(114, 57, 0, 0.658);
}

/* 모바일 네비게이션 */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* 모바일 네비게이션 높이에 맞춤 */
    }
    
    .nav-content {
        padding: 0 15px;
        height: 60px;
        justify-content: center;
    }
    
    .nav-content h2 {
        font-size: 1.3em;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-links a {
        padding: 10px 16px;
        font-size: 0.8em;
        min-width: 70px;
    }
}

/* --- GLOBAL STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'GmarketSans', sans-serif;
    font-weight: 500;
    background-color: var(--background-color-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color-dark);
    padding-top: 70px; /* 네비게이션 높이만큼 상단 패딩 추가 */
    padding-bottom: calc(var(--sticky-footer-height) + var(--action-bar-height));
}

/* --- PAGE SECTIONS STYLES --- */
.page-section {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
}

/* Section 1: Page Header and Benefit Blocks */
.page-header-intro {
    background-color: var(--background-color-light);
}
.page-header-intro .intro-title { font-size: 2.8em; font-weight: 700; color: var(--text-color-dark); margin-bottom: 60px; line-height: 1.3; letter-spacing: 0.05em; text-align: center; }
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    /* 애니메이션을 위해 overflow hidden 추가 */
    overflow: hidden;
}
.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: var(--background-color-light);
    border-radius: 20px;
    /* 그림자 효과 복원 */
    box-shadow: -7px -7px 8px var(--neumo-shadow-light), 7px 7px 8px var(--neumo-shadow-dark);
    transition: all var(--transition-speed);
    margin: 10px;
    /* 애니메이션 초기 상태 */
    opacity: 0;
    filter: blur(5px);
    transform: translateX(0); /* 기본값으로 초기화 */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out, box-shadow 0.3s ease; /* box-shadow transition 추가 */

    height: auto; /* 내용에 맞춰 높이 자동 조절 */
    min-height: 250px; /* 최소 높이를 설정하여 일관된 박스 크기 유지 (필요에 따라 조정) */
}
/* 각 박스별로 좌우에서 나타나는 효과를 위해 다른 transform 값 적용 */
.benefit-item:nth-child(1) { /* 첫 번째 박스 (왼쪽에서) */
    transform: translateX(-50px);
}
.benefit-item:nth-child(2) { /* 두 번째 박스 (오른쪽에서) */
    transform: translateX(50px);
}
.benefit-item:nth-child(3) { /* 세 번째 박스 (왼쪽에서) */
    transform: translateX(-50px);
}
.benefit-item:nth-child(4) { /* 네 번째 박스 (오른쪽에서) */
    transform: translateX(50px);
}

/* visible 클래스가 적용되었을 때 애니메이션 */
.benefit-item.visible {
    opacity: 1;
    transform: translateX(0) translateY(0); /* 좌우 이동과 아래 이동 모두 초기화 */
    filter: blur(0);
}

.benefit-item:hover {
    transform: translateY(-5px); /* 좌우 이동 애니메이션과 별개로 상하 이동 호버 효과 */
    box-shadow: -10px -10px 20px var(--neumo-shadow-light), 
                10px 10px 20px var(--neumo-shadow-dark),
                0 0 25px rgba(255, 215, 0, 0.3), /* 따뜻한 골드 글로우 */
                0 0 50px rgba(255, 165, 0, 0.15); /* 보조 오렌지 글로우 */
}
.benefit-item .icon-wrapper { margin-bottom: 15px; display: flex; justify-content: center; align-items: center; height: 60px; width: 100%; }
.benefit-item .benefit-icon { font-size: 2.5em; color: var(--primary-blue); opacity: 0.8; }
.benefit-item img.benefit-icon { width: 50px; height: 50px; object-fit: contain; }
.benefit-item .title { font-size: 1.3em; font-weight: 700; color: var(--text-color-dark); margin-bottom: 10px; }
.benefit-item .description { font-size: 1.0em; font-weight: 500; color: var(--text-color-light); line-height: 1.5; }

/* --- CALCULATOR SPECIFIC STYLES --- */
.main-calculator-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
    box-sizing: border-box;
    background-color: var(--background-color-dark); /* FAQ 섹션과 동일한 아이보리 배경 */
}
.input-area-wrapper { flex: 1; min-width: 300px; max-width: 800px; width: 100%; display: flex; flex-direction: column; align-items: center; background-color: transparent; padding: 0 15px;}
.calculator-title {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
  
    /* 그라데이션 배경 설정 - A, B, C 텍스트와 동일한 골드 그라데이션 */
    background: linear-gradient(to right, #b18200, #333, #b18200); /* 골드 -> 어두운색 -> 골드 */
    
    /* 배경 크기를 2배로 늘려 애니메이션 공간 확보 */
    background-size: 200% auto;
  
    /* 배경을 텍스트 모양으로 잘라냄 */
    -webkit-background-clip: text;
    background-clip: text;
  
    /* 텍스트 색상을 투명하게 만들어 배경이 보이게 함 */
    color: transparent;
    -webkit-text-fill-color: transparent;
  
    /* 애니메이션 적용 */
    animation: text-gradient-animation 3s linear infinite;
  }
  
  /* 애니메이션 키프레임 정의 */
  @keyframes text-gradient-animation {
    to {
      background-position: -200% center;
    }
  }
.card {
    position: relative;
    background-color: var(--background-color-light);
    border-radius: var(--border-radius-main);
    box-shadow: -7px -7px 10px var(--neumo-shadow-light), 7px 7px 10px var(--neumo-shadow-dark);
    transition: all var(--transition-speed);
    margin-bottom: 40px;
    padding: 60px 30px 40px 30px;
    color: var(--text-color-dark);
    width: 100%;

    /* 공통 애니메이션 속성 - 기본적으로 보이도록 수정 */
    opacity: 1; /* 기본적으로 보임 */
    transform: scale(1); /* 기본 크기 */
    /* filter: blur(5px);  <<< .hidden에만 적용되도록 수정 */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out; /* 애니메이션 속도 조절 */
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: -10px -10px 20px var(--neumo-shadow-light), 10px 10px 20px var(--neumo-shadow-dark);
}

/* hidden 상태일 때만 블러 효과 적용 */
.card.hidden {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(5px); /* hidden 상태일 때만 블러 적용 */
}

/* 카드가 화면에 보일 때 적용될 클래스 */
.card.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0); /* visible 상태에서는 블러 제거 */
}

/* 비교 테이블 스타일 */
.comparison-table {
    width: 100%;
    margin: 20px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--background-color-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: -8px -8px 16px var(--neumo-shadow-light), 8px 8px 16px var(--neumo-shadow-dark);
    border: 2px solid var(--neumo-shadow-light);
    margin: 20px 0;
}

.comparison-table th {
    background: linear-gradient(135deg, var(--background-color-dark), var(--neumo-shadow-light));
    color: var(--text-color-dark);
    padding: 18px 15px;
    text-align: center;
    font-weight: 700;
    border: 1px solid var(--neumo-shadow-dark);
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.comparison-table td {
    padding: 18px 15px;
    text-align: center;
    border: 1px solid var(--neumo-shadow-dark);
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1em;
    line-height: 1.4;
}

.comparison-table tr:hover {
    background-color: var(--background-color-dark);
    transform: scale(1.01);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.comparison-table tr:hover td {
    background-color: var(--background-color-dark);
    color: var(--text-color-dark);
}

/* 강조 스타일 */
.highlight-amount {
    color: #ff0000 !important;
    font-weight: 700 !important;
    font-size: 1.2em !important;
    text-shadow: 1px 1px 2px rgba(255,0,0,0.2);
}

.highlight-row {
    background-color: var(--background-color-light) !important;
    border: 2px solid var(--primary-blue) !important;
}

.highlight-row td {
    background-color: var(--background-color-light) !important;
    font-weight: 600 !important;
}

/* 카드 호버 효과 개선 */
.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: -15px -15px 30px var(--neumo-shadow-light), 15px 15px 30px var(--neumo-shadow-dark), 0 0 20px rgba(255, 215, 0, 0.2);
}

/* 카드 이니셜 스타일 */
.card-initial-wrapper {
    position: absolute;
    top: -20px;
    left: 20px;
    z-index: 10;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -5px -5px 10px var(--neumo-shadow-dark), 5px 5px 10px var(--neumo-shadow-light);
}

.card-initial {
    font-size: 2em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 카드 내용 스타일 */
.card-content {
    margin-top: 20px;
}

.card-content h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    text-align: center;
}

/* FAQ 섹션 */
.faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--background-color-dark);
}
.faq-section .section-title {
    font-size: 2.3em;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    padding: 0 15px;
    
    /* A, B, C 텍스트와 동일한 그라데이션 효과 */
    background: linear-gradient(to right, #b18200, #333, #b18200);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: text-gradient-animation 3s linear infinite;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.faq-item {
    background-color: var(--background-color-dark);
    color: var(--text-color-dark); /* SK, KT, LG 클릭 시 배경 색상과 동일 */
    border-radius: var(--border-radius-main);
    box-shadow: 7px 7px 15px var(--neumo-shadow-on-dark-bg-darker),
                -7px -7px 15px var(--neumo-shadow-on-dark-bg-lighter);
    padding: 25px 30px;
    transition: all var(--transition-speed);
}
.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 20px var(--neumo-shadow-on-dark-bg-darker),
                -10px -10px 20px var(--neumo-shadow-on-dark-bg-lighter),
                0 0 25px rgba(255, 215, 0, 0.3), /* 따뜻한 골드 글로우 */
                0 0 50px rgba(255, 165, 0, 0.15); /* 보조 오렌지 글로우 */
}
.faq-item .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 700; /* Q 영역 텍스트를 굵게 */
    color: var(--text-color-dark); /* SK, KT, LG 클릭 시 배경 색상과 동일 */
    line-height: 1.5;
}
.faq-item .faq-question .arrow {
    font-size: 1.2em;
    color: var(--text-color-dark); /* SK, KT, LG 클릭 시 배경 색상과 동일 */
    transition: transform var(--transition-speed);
}
.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}
.faq-item .faq-answer {
    font-size: 1.05em;
    color: var(--text-color-dark); /* SK, KT, LG 클릭 시 배경 색상과 동일 */
    line-height: 1.7;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--neumo-shadow-on-dark-bg-darker);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}
.faq-item.open .faq-answer {
    max-height: 500px;
}

/* ===== START: 하단 고정 액션바 스타일 ===== */
.sticky-action-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    z-index: 1001 !important; /* 결과창(1000)보다 위에 오도록 설정 */
    background: rgba(0, 0, 0, 0.5) !important; /* 50% 투명효과 */
    backdrop-filter: blur(30px) saturate(1.5) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.5) brightness(1.1) !important;
    -moz-backdrop-filter: blur(30px) saturate(1.5) brightness(1.1) !important;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1) !important;
    height: var(--action-bar-height) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 더 구체적인 선택자로 강제 적용 */
body .sticky-action-bar {
    background: rgba(0, 0, 0, 0.5) !important; /* 50% 투명효과 */
    backdrop-filter: blur(30px) saturate(1.5) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.5) brightness(1.1) !important;
    -moz-backdrop-filter: blur(30px) saturate(1.5) brightness(1.1) !important;
}

.action-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 36px; /* 3배 더 넓은 간격 (12px * 3 = 36px) */
    width: 100%;
}

.action-button {
    flex: 1;
    padding: 0 !important;
    text-align: center;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    position: relative;
    z-index: 1;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    transition: all 0.3s ease;
}

/* 6개의 개별 글로잉 레이어 정의 (React 원본 소스 코드의 스타일 완벽 이식 - 검정색을 흰색으로 변경) */
.glowing-border-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.glowing-border-layer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    background-repeat: no-repeat;
    transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Layer 1: blur-[3px], max-h-[70px], max-w-[314px], conic-gradient(#fff,#402fb5_5%,#fff_38%,#fff_50%,#cf30aa_60%,#fff_87%), duration-2000, rotate-60 */
.glowing-border-layer.layer-1 {
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border-radius: 16px;
    filter: blur(3px);
}
.glowing-border-layer.layer-1::before {
    width: 999px;
    height: 999px;
    transform: translate(-50%, -50%) rotate(60deg);
    background: conic-gradient(#fff, #402fb5 5%, #fff 38%, #fff 50%, #cf30aa 60%, #fff 87%);
}
.action-button:hover .glowing-border-layer.layer-1::before {
    transform: translate(-50%, -50%) rotate(-120deg);
}

/* Layer 2, 3, 4: blur-[3px], max-h-[65px], max-w-[312px], conic-gradient(rgba(255,255,255,0),#18116a,rgba(255,255,255,0)_10%,rgba(255,255,255,0)_50%,#6e1b60,rgba(255,255,255,0)_60%), duration-2000, rotate-[82deg] */
.glowing-border-layer.layer-2,
.glowing-border-layer.layer-3,
.glowing-border-layer.layer-4 {
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border-radius: 15px;
    filter: blur(3px);
}
.glowing-border-layer.layer-2::before,
.glowing-border-layer.layer-3::before,
.glowing-border-layer.layer-4::before {
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%) rotate(82deg);
    background: conic-gradient(rgba(255, 255, 255, 0), #18116a, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0) 50%, #6e1b60, rgba(255, 255, 255, 0) 60%);
}
.action-button:hover .glowing-border-layer.layer-2::before,
.action-button:hover .glowing-border-layer.layer-3::before,
.action-button:hover .glowing-border-layer.layer-4::before {
    transform: translate(-50%, -50%) rotate(-98deg);
}

/* Layer 5: blur-[2px], max-h-[63px], max-w-[307px], conic-gradient(rgba(255,255,255,0)_0%,#a099d8,rgba(255,255,255,0)_8%,rgba(255,255,255,0)_50%,#dfa2da,rgba(255,255,255,0)_58%), duration-2000, rotate-[83deg], brightness-140 */
.glowing-border-layer.layer-5 {
    width: calc(100% + 5px);
    height: calc(100% + 5px);
    border-radius: 14px;
    filter: blur(2px);
}
.glowing-border-layer.layer-5::before {
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%) rotate(83deg);
    background: conic-gradient(rgba(255, 255, 255, 0) 0%, #a099d8, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, 0) 50%, #dfa2da, rgba(255, 255, 255, 0) 58%);
    filter: brightness(1.4);
}
.action-button:hover .glowing-border-layer.layer-5::before {
    transform: translate(-50%, -50%) rotate(-97deg);
}

/* Layer 6: blur-[0.5px], max-h-[59px], max-w-[303px], conic-gradient(#fff,#402fb5_5%,#fff_14%,#fff_50%,#cf30aa_60%,#fff_64%), duration-2000, rotate-70, brightness-130 */
.glowing-border-layer.layer-6 {
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border-radius: 13px;
    filter: blur(0.5px);
}
.glowing-border-layer.layer-6::before {
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%) rotate(70deg);
    background: conic-gradient(#fff, #402fb5 5%, #fff 14%, #fff 50%, #cf30aa 60%, #fff 64%);
    filter: brightness(1.3);
}
.action-button:hover .glowing-border-layer.layer-6::before {
    transform: translate(-50%, -50%) rotate(-110deg);
}

/* 100% 불투명 백그라운드 바디 레이어 */
.action-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 1.0) !important;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.action-button:hover::after {
    background: rgba(255, 255, 255, 1.0) !important;
}

/* 버튼 내부 텍스트 콘텐츠 레이어 */
.action-button .button-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 15px 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.action-button.call-button {
    color: #0066FF !important; /* 원래 배경색인 블루계열 적용 */
}

.action-button.kakao-button {
    color: #E69A08 !important; /* 원래 배경색인 카카오 옐로우 계열 적용 */
}

/* 호버 효과 */
.action-button:hover {
    transform: translateY(-2px);
}

/* 호버 시 텍스트만 확대 */
.action-button:hover .button-content {
    font-size: 1.3em;
}

.action-button:hover .fas {
    font-size: 1.3em;
}

.action-button .fas {
    transition: all 0.3s ease;
}

/* 클릭 효과 - 더 강한 눌림 효과 */
.action-button:active {
    transform: translateY(1px);
}

/* 모바일 화면 대응 (액션바) */
@media (max-width: 599px) {
    .action-button {
        font-size: 0.95em;
        padding: 12px 5px;
    }
    .action-button .fas {
        font-size: 1.1em;
    }
}
/* ===== END: 하단 고정 액션바 스타일 ===== */

/* 모바일 반응형 */
@media (max-width: 599px) {
    :root {
        --action-bar-height: 50px;
    }
    :root { --sticky-footer-height: 170px; }

    body { padding-bottom: calc(170px + 50px); }

    .page-section, .main-calculator-wrapper { padding-top: 30px; padding-bottom: 30px; }
    .calculator-title { font-size: 1.8em; margin-bottom: 30px; }
    .page-header-intro .intro-title { font-size: 1.8em; margin-bottom: 30px; }
    .benefit-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 10px; }
    .benefit-item {
        /* 모바일에서 benefit-item에 공통 애니메이션 초기 상태 적용 */
        opacity: 0;
        transform: translateY(30px); /* 기본 아래에서 시작 */
        filter: blur(5px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
    }
    .benefit-item.visible { /* 모바일에서도 visible 클래스 적용 시 애니메이션 */
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    /* 모바일에서 좌우 이동 애니메이션은 빼고, 그냥 위에서 아래로 나타나는 효과만 적용 */
    .benefit-item:nth-child(1), .benefit-item:nth-child(2), .benefit-item:nth-child(3), .benefit-item:nth-child(4) {
        transform: translateY(30px); /* 기본값으로 재설정 */
    }

    .benefit-item .benefit-icon { font-size: 2.2em; }
    .benefit-item .title { font-size: 1.15em; }
    .benefit-item .description { font-size: 0.9em; }

    .card { padding: 40px 15px 30px 15px; }
    .comparison-section .section-title, .faq-section .section-title, .calculator-title { font-size: 1.8em; margin-bottom: 30px; }
    .faq-list { gap: 15px; padding-left:10px; padding-right:10px;}
    .faq-item { padding: 20px; }
    .faq-item .faq-question { font-size: 1.05em; }
    .faq-item .faq-answer { font-size: 0.95em; margin-top: 15px; padding-top:15px; }
}

@media (min-width: 600px) and (max-width: 991px) {
    :root { --sticky-footer-height: 175px; }

    .page-section, .main-calculator-wrapper { padding-top: 50px; padding-bottom: 50px; }
    .main-calculator-wrapper, .comparison-section, .faq-section { padding-left: 15px; padding-right: 15px;}

    .card h2 { font-size: 1.3em; }
    .page-header-intro .intro-title { font-size: 2.2em; margin-bottom: 45px; }
    .benefit-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; padding: 0 15px;}
    .benefit-item {
        /* 태블릿/모바일 뷰에서 benefit-item 애니메이션 조정 */
        opacity: 0;
        transform: translateY(30px); /* 기본 아래에서 시작 */
        filter: blur(5px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
    }
    .benefit-item.visible {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    /* 모바일에서 좌우 이동 애니메이션은 빼고, 그냥 위에서 아래로 나타나는 효과만 적용 */
    .benefit-item:nth-child(1), .benefit-item:nth-child(2), .benefit-item:nth-child(3), .benefit-item:nth-child(4) {
        transform: translateY(30px); /* 기본값으로 재설정 */
    }

    .benefit-item { padding: 18px; }
    .benefit-item .title { font-size: 1.25em; }
    .benefit-item .description { font-size: 0.95em; }
    .comparison-section .section-title, .faq-section .section-title, .calculator-title { font-size: 2.0em; margin-bottom: 40px;}
    .faq-list { gap: 25px; }
    .faq-item { padding: 25px 30px; }
    .faq-item .faq-question { font-size: 1.1em; }
    .faq-item .faq-answer { font-size: 1.0em; }
}

@media (min-width: 992px) {
    :root { --sticky-footer-height: 180px; }

    .page-section, .main-calculator-wrapper { padding-top: 70px; padding-bottom: 70px; }
    .main-calculator-wrapper, .comparison-section, .faq-section { max-width: none; padding-left: 0; padding-right: 0; }
    .page-header-intro { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
    .main-calculator-wrapper .input-area-wrapper { max-width: 800px; padding-left: 20px; padding-right: 20px;}
    .faq-section .faq-list { max-width: 900px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px;}

    .page-header-intro .intro-title { font-size: 2.8em; margin-bottom: 60px; }
    .benefit-grid { gap: 30px; }
    .benefit-item {
        /* PC 화면에서 benefit-item 애니메이션 조정 */
        opacity: 0;
        transform: translateX(0) translateY(30px); /* 기본값 */
        filter: blur(5px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
    }
    .benefit-item:nth-child(1),
    .benefit-item:nth-child(3) { /* 왼쪽 박스 */
        transform: translateX(-50px);
    }
    .benefit-item:nth-child(2),
    .benefit-item:nth-child(4) { /* 오른쪽 박스 */
        transform: translateX(50px);
    }
    .benefit-item.visible {
        opacity: 1;
        transform: translateX(0) translateY(0);
        filter: blur(0);
    }

    .benefit-item .title { font-size: 1.3em; }
    .benefit-item .description { font-size: 1.0em; }
    .comparison-section .section-title, .faq-section .section-title, .calculator-title { font-size: 2.3em; margin-bottom: 50px; }
    .faq-list { gap: 25px; }
    .faq-item { padding: 25px 30px; }
    .faq-item .faq-question { font-size: 1.15em; }
    .faq-item .faq-answer { font-size: 1.05em; }
}

/* ==========================================
   Premium Glassmorphic Table Styling (SEO)
   ========================================== */
.table-section {
    padding: 60px 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.table-section .section-subtitle {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.table-section .section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.comparison-table {
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    margin: 0 auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px; /* Spacing between rows for 3D card effect */
    text-align: center;
    color: var(--text-main);
}

.comparison-table th {
    font-size: 1rem;
    font-weight: 800;
    padding: 15px;
    color: var(--text-muted);
    border-bottom: 2px solid rgba(0, 0, 0, 0.03);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-table tbody tr {
    transition: var(--transition);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.comparison-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 102, 255, 0.12);
}

.comparison-table td {
    padding: 18px 15px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    vertical-align: middle;
}

/* Border radius for separated row cells */
.comparison-table tbody tr td:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.comparison-table tbody tr td:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Accent highlight styles */
.comparison-table .highlight-amount {
    color: var(--primary);
    font-weight: 800;
}

.comparison-table tbody tr.highlight-row {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.02) 0%, rgba(0, 209, 255, 0.02) 100%);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.05);
}

.comparison-table tbody tr.highlight-row td {
    border-top: 1px solid rgba(0, 102, 255, 0.1);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.comparison-table tbody tr.highlight-row td:first-child {
    border-left: 1px solid rgba(0, 102, 255, 0.1);
}

.comparison-table tbody tr.highlight-row td:last-child {
    border-right: 1px solid rgba(0, 102, 255, 0.1);
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .table-section {
        padding: 40px 15px;
    }
    
    .table-section .section-subtitle {
        font-size: 1.4em;
    }
    
    .comparison-table {
        padding: 15px;
        border-radius: 18px;
    }
    
    .comparison-table td, .comparison-table th {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
}
