:root {
    --main-background: #f0fdfa;
    --main-text: #0f172a;
    --surface-card: #ffffff;
    --secondary-text: #475569;
    --accent-neon: #06b6d4;
    --accent-neon-hover: #0891b2;
    --accent-glow: #22d3ee;
    --border-color: #cffafe;
    --border-darker: #a5f3fc;
    --subtle-card-bg: #ecfeff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', 'Pretendard', sans-serif;
    background-color: var(--main-background);
    color: var(--main-text);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
}

a {
    transition: color 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    transition: background-color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

input,
select,
textarea,
button {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent-neon);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        word-break: keep-all;
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 1.875rem);
        word-break: keep-all;
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
        word-break: keep-all;
    }

    h4 {
        font-size: clamp(1.1rem, 3.5vw, 1.25rem);
        word-break: keep-all;
    }

    h5 {
        font-size: clamp(1rem, 3vw, 1.1rem);
        word-break: keep-all;
    }

    a,
    span,
    p,
    td,
    th {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-consent-modal {
    width: 100%;
    max-width: 34rem;
    background-color: var(--surface-card);
    border-radius: 1rem;
    border: 1px solid var(--border-darker);
    box-shadow: 0 20px 25px -5px rgba(6, 182, 212, 0.1), 0 8px 10px -6px rgba(6, 182, 212, 0.1);
    overflow: hidden;
}

.cookie-consent-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--main-text);
    margin-bottom: 0.25rem;
}

.cookie-consent-desc {
    font-size: 0.875rem;
    color: var(--secondary-text);
    line-height: 1.5;
    margin-bottom: 0;
}

.cookie-consent-policy-link {
    color: var(--accent-neon-hover);
    font-weight: 600;
    text-decoration: underline !important;
}

.cookie-consent-prefs {
    background-color: var(--subtle-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-consent-pref-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0;
}

.cookie-consent-pref-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.cookie-consent-pref-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--main-text);
}

.cookie-consent-pref-desc {
    font-size: 0.75rem;
    color: var(--secondary-text);
}

.cookie-consent-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--accent-neon);
    cursor: pointer;
}

.cookie-consent-checkbox:disabled {
    cursor: not-allowed;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cookie-consent-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1 1 auto;
    min-height: 2.75rem;
}

.cookie-consent-btn-primary {
    background-color: var(--accent-neon);
    color: #ffffff;
}

.cookie-consent-btn-primary:hover {
    background-color: var(--accent-neon-hover);
}

.cookie-consent-btn-secondary {
    background-color: #f1f5f9;
    color: var(--main-text);
}

.cookie-consent-btn-secondary:hover {
    background-color: #e2e8f0;
}

.cookie-consent-btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-darker);
    color: var(--main-text);
}

.cookie-consent-btn-outline:hover {
    background-color: var(--subtle-card-bg);
}

.cookie-consent-btn-save {
    background-color: #083344;
    color: #ffffff;
}

.cookie-consent-btn-save:hover {
    background-color: #0c4a6e;
}

@media (max-width: 640px) {
    .cookie-consent-modal {
        max-width: 100%;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
    }
}

/* ===== header_block ===== */
html {
    scroll-behavior: smooth;
}

#header {
    overflow: hidden;
}

#header .open {
    display: block;
}

/* ===== hero_block ===== */
#hero {
    overflow: hidden;
}

#hero h1,
#hero h2,
#hero h3 {
    hyphens: auto;
    line-height: 1.2;
}

@media(max-width:767px) {
    #hero h1 {
        font-size: 18px !important;
        line-height: 1.25;
    }

    #hero h2 {
        font-size: 16px !important;
    }

    #hero h3 {
        font-size: 14px !important;
    }
}

/* ===== categories_block ===== */
#categories {
    overflow: hidden;
    hyphens: auto;
}

#categories .js-category-card {
    min-height: 190px;
}

/* ===== catalog_block ===== */
#catalog {
    overflow: hidden;
    hyphens: auto;
}

#catalog h2 {
    line-height: 1.25;
}

#catalog h3 {
    line-height: 1.25;
}

/* ===== advantages_block ===== */
#advantages {
    hyphens: auto;
    word-break: keep-all;
}

.js-advantage-card {
    width: 100%;
}

/* ===== guide_block ===== */
#guide {
    overflow: hidden;
}

#guide * {
    hyphens: auto;
}

/* ===== solutions_block ===== */
#solutions {
    hyphens: auto;
}

#solutions a {
    text-decoration: none;
}

/* ===== comparison_block ===== */
#comparison {
    width: 100%;
    hyphens: auto
}

#comparison table {
    width: 100%;
    border-collapse: collapse
}

#comparison th,
#comparison td {
    vertical-align: middle
}

/* ===== system_requirements_block ===== */
#system-requirements {
    overflow: hidden;
}

#system-requirements h2,
#system-requirements h3 {
    hyphens: auto;
    line-height: 1.25;
}

/* ===== license_types_block ===== */
#license-types {
    hyphens: auto;
}

#license-types h2,
#license-types h3 {
    line-height: 1.2;
}

/* ===== articles_block ===== */
#articles {
    overflow: hidden;
}

#articles .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#articles .line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== faq_block ===== */
#faq {
    hyphens: auto;
}

.js-faq-trigger[aria-expanded="true"] .js-faq-icon {
    transform: rotate(180deg);
    color: #0891b2;
}

/* ===== order_form_block ===== */
#order-section input::placeholder,
#order-section textarea::placeholder {
    color: #94a3b8;
    font-size: 0.875rem;
}

#order-section input:focus,
#order-section select:focus,
#order-section textarea:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
}

/* ===== footer_block ===== */
#footer {
    width: 100%;
    background-color: var(--surface-card);
    border-color: var(--border-color);
    color: var(--main-text);
}

#footer a {
    text-decoration: none;
}

#footer a:hover {
    color: var(--accent-neon-hover);
}