@font-face {
    font-family: "Pretendard Variable";
    src: url("/fonts/Pretendard-Thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard Variable";
    src: url("/fonts/Pretendard-ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard Variable";
    src: url("/fonts/Pretendard-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard Variable";
    src: url("/fonts/Pretendard-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard Variable";
    src: url("/fonts/Pretendard-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard Variable";
    src: url("/fonts/Pretendard-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard Variable";
    src: url("/fonts/Pretendard-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard Variable";
    src: url("/fonts/Pretendard-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard Variable";
    src: url("/fonts/Pretendard-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard";
    src: url("/fonts/Pretendard-Thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard";
    src: url("/fonts/Pretendard-ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard";
    src: url("/fonts/Pretendard-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard";
    src: url("/fonts/Pretendard-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard";
    src: url("/fonts/Pretendard-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard";
    src: url("/fonts/Pretendard-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard";
    src: url("/fonts/Pretendard-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard";
    src: url("/fonts/Pretendard-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Pretendard";
    src: url("/fonts/Pretendard-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
  }

/* ===== Brand Guidelines Variables ===== */
:root {
    /* Brand (참고 랜딩: 로열 블루 + other_project 버튼 계열) */
    --primary-color: #2b59ff;
    --primary-dark: #2246cc;
    --accent-color: #4b6bfb;
    --text-color: #181a2a;
    --header-height: 70px;
    --header-top-inset: 20px;
    --primary-rgb: 43, 89, 255;
    --accent-rgb: 75, 107, 251;
    
    /* Secondary Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Light layout (본문 화이트·카드 연회색) */
    --page-bg: #ffffff;
    --surface-muted: #f8f9fa;
    --surface-tint: #f0f4ff;
    --border-subtle: #e8e8ea;
    --border-strong: #d0d7e7;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --text-light: #787878;
    --text-muted: #5c5f69;
    
    /* 히어로·다크 헤더용 */
    --dark-bg: #050508;
    --dark-card: #0a0a12;
    --dark-text: #f4f4f5;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(var(--primary-rgb), 0.35);
    --radius-pill: 100px;
    --radius-card: 14px;
    --radius-soft: 12px;

    /* Typography scale (other_project.css 기준) */
    --fs-xs: 0.875rem;  /* 14px */
    --fs-sm: 1rem;      /* 16px */
    --fs-md: 1.125rem;  /* 18px */
    --fs-lg: 1.25rem;   /* 20px */
    --fs-xl: 1.5rem;    /* 24px */
    --fs-2xl: 2rem;     /* 32px */
    --lh-tight: 1.35;
    --lh-base: 1.6;
    --lh-relaxed: 1.75;

    /* Spacing scale */
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --content-max-width: 800px;
    --container-padding-x: 20px;
    --container-padding-y: 40px;

    /* Control sizes */
    --btn-height: 52px;
    --btn-height-lg: 58px;
    --input-height: 52px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    word-break: keep-all;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--page-bg);
    min-height: 100vh;
    color: var(--text-color);
    line-height: var(--lh-base);
    font-weight: 400;
}

a{text-decoration: none;}

/* 진단 플로우 섹션 공통 배경 */
#step1, #step2, #step3, #datagate, #analyzing, #result {
    background-color: var(--page-bg);
}

/* ===== Progress Bar ===== */
.progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.06);
    z-index: 50; /* keep below header/nav dropdowns */
    pointer-events: none; /* prevent closing dropdown when hovered */
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.65), 0 0 36px rgba(var(--primary-rgb), 0.45);
}

/* ===== Container & Section ===== */
.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--container-padding-y) var(--container-padding-x);
}

.section {
    display: none;
    min-height: 100vh;
    padding-top: 60px;
}

.section.active {
    display: block;
    /* animation: fadeIn 0.5s ease; */
}

/* @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

/* ===== Common Animations ===== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.35);
    }
    50% {
        box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.55);
    }
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary {
    min-height: var(--btn-height);
    padding: 0 32px;
    font-size: var(--fs-md);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.28);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    /* transform: translateY(-1px); */
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    border-color: var(--primary-dark);
    color: var(--white);
    background: var(--primary-color);
}

.btn-large {
    min-height: var(--btn-height-lg);
    padding: 0 44px;
    font-size: var(--fs-lg);
}

/* Button icon alignment fix */
.btn-primary i,
.btn-secondary i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== Form Common Styles ===== */
.form-group {
    margin-bottom: var(--space-8);
}

.form-label {
    display: block;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--space-3);
    line-height: var(--lh-tight);
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
}

.form-label i {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 8px;
}

.form-input {
    width: 100%;
    min-height: var(--input-height);
    padding: 0 var(--space-5);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-card);
    font-size: var(--fs-sm);
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    color: var(--text-color);
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-10);
}

.other-input-container {
    margin-top: var(--space-3);
    animation: fadeIn 0.3s ease;
}

/* ===== Radio Buttons ===== */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.radio-item {
    position: relative;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-item span {
    display: block;
    min-height: var(--input-height);
    padding: 0 var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    background: var(--surface-muted);
}

.radio-item input[type="radio"]:checked + span {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25);
    font-weight: 600;
}

.radio-item:hover span {
    border-color: var(--primary-color);
    background: var(--surface-tint);
    /* transform: translateY(-1px); */
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.12);
}

/* ===== Checkbox ===== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    min-height: var(--input-height);
    padding: 0 var(--space-5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    transition: all 0.3s ease;
    background: var(--surface-muted);
}

.checkbox-item:hover {
    border-color: var(--primary-color);
    background: var(--surface-tint);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.1);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: var(--space-3);
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checkbox-item span {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-color);
    line-height: var(--lh-tight);
}

.checkbox-item input[type="checkbox"]:checked ~ span {
    color: var(--text-color);
    font-weight: 600;
}

.checkbox-item input[type="checkbox"]:checked {
    filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.75));
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .container {
        --container-padding-x: 18px;
        --container-padding-y: 36px;
    }

    .radio-group {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .form-actions {
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    :root {
        --fs-sm: 0.9375rem;
        --fs-md: 1rem;
        --fs-lg: 1.125rem;
        --btn-height: 48px;
        --btn-height-lg: 52px;
        --input-height: 48px;
    }

    .container {
        --container-padding-x: 16px;
        --container-padding-y: 32px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0 24px;
        font-size: var(--fs-sm);
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions button {
        width: 100%;
        justify-content: center;
    }

    .radio-item span,
    .checkbox-item span {
        font-size: var(--fs-sm);
    }
}

/* ===== Footer ===== */
.site-footer {
    background: #f2f2f2;
    border-top: 1px solid var(--border-subtle);
    padding-top: 40px;
    padding-bottom: 30px;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Logo */
.footer-logo {
    height: 22px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Footer Links Wrapper */
.footer-links-wrapper {
    margin-bottom: 24px;
}

.footer-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-link-column {
    width: calc(50% - 12px);
}

.footer-column-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-link-list li {
    margin: 0;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link-external {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-external-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Footer Company Info */
.footer-company-info {
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
    margin-top: 12px;
}

.footer-company-details {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.footer-company-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.footer-company-text span {
    display: block;
}

.footer-company-spacing {
    margin-top: 4px;
}

/* Footer Copyright */
.footer-copyright {
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 12px;
    font-size: 1rem;
    color: var(--text-light);
}

.footer-copyright p {
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-link-column {
        width: 200px;
    }
    
    .footer-links-grid {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 30px;
        padding-bottom: 20px;
        margin-top: 0;
    }
    
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-links-grid {
        gap: 16px;
    }
    
    .footer-link-column {
        width: calc(50% - 8px);
    }
}
