/**
 * Base Styles & Reset
 * 기본 스타일 및 브라우저 초기화
 */

/* Box-sizing reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* HTML & Body */
html {
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* Fallback */
    background: var(--off-white);
    background: #F8F8F8; /* Fallback */
    color: var(--charcoal);
    color: #1A1A1A; /* Fallback */
    line-height: var(--line-height-base);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.4rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2.6rem;
    letter-spacing: -0.01em;
    margin-bottom: 1.2em;
}

h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--warm-gray);
    color: #4A4A4A; /* Fallback */
    margin-bottom: 1.5em;
    letter-spacing: 0.1em;
}

p {
    margin-bottom: var(--spacing-md);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button:focus {
    outline: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Selection */
::-moz-selection {
    background: var(--deep-orange);
    background: #D35400;
    color: white;
}

::selection {
    background: var(--deep-orange);
    background: #D35400;
    color: white;
}

/* Scrollbar styling (WebKit) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Utility classes */
.highlight {
    color: var(--deep-orange);
    color: #D35400; /* Fallback */
    font-weight: 700;
}

.divider {
    width: 60px;
    height: 1px;
    background: var(--light-gray);
    background: #E0E0E0; /* Fallback */
    margin: 2em 0;
}

.tagline {
    font-size: 1.4rem;
    color: var(--warm-gray);
    color: #4A4A4A; /* Fallback */
    margin-bottom: 1.5em;
    font-weight: 400;
}

.sub-desc {
    font-size: 1rem;
    color: var(--warm-gray);
    color: #4A4A4A;
    margin-bottom: 2em;
    font-weight: 400;
}

.sub-features {
    margin-bottom: 2em;
    margin-top: 1.5em;
}

.sub-features p {
    font-size: 1.15rem;
    color: var(--warm-gray);
    color: #4A4A4A;
    font-weight: 400;
    line-height: 1.9;
}

/* ============================================
   Large Screen Scaling
   ============================================ */

@media (min-width: 1920px) {
    .divider {
        width: 80px;
    }
}

@media (min-width: 2560px) {
    .divider {
        width: 100px;
    }
}

@media (min-width: 3840px) {
    .divider {
        width: 140px;
        height: 2px;
    }
}

@media (min-width: 5120px) {
    .divider {
        width: 180px;
    }
}

@media (min-width: 7680px) {
    .divider {
        width: 240px;
        height: 3px;
    }
}
