/* OpenNexus — refined design system
   Latin: Inter (SF Pro–class metrics) → Apple system SF on macOS/iOS
   Korean: Pretendard (Apple SD Gothic–inspired, industry standard) */
@import url('https://rsms.me/inter/inter.css');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
    --bg: #f5f5f7;
    --bg-elevated: #ffffff;
    --bg-soft: #fafafa;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --ink: #000000;
    --radius: 18px;
    --radius-sm: 12px;
    --max: 980px;
    --max-wide: 1120px;
    --header-h: 52px;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "SF Pro Display", "Pretendard Variable", Pretendard,
        "Apple SD Gothic Neo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text);
    background: var(--bg);
    font-feature-settings: "liga" 1, "calt" 1, "ss01" 1;
    font-optical-sizing: auto;
}

main {
    padding-top: var(--header-h);
    min-height: 60vh;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

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

.container {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0 22px;
}

.container-narrow {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px;
}

/* Typography */
.display {
    font-size: clamp(40px, 7vw, 64px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text);
}

.headline {
    font-size: clamp(28px, 4.5vw, 40px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.subhead {
    font-size: clamp(19px, 2.4vw, 24px);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.016em;
    color: var(--text);
}

.body-lg {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: var(--text-secondary);
}

.body {
    font-size: 17px;
    line-height: 1.47059;
    color: var(--text-secondary);
}

.caption {
    font-size: 12px;
    line-height: 1.333;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.section-intro {
    max-width: 640px;
    margin: 12px auto 0;
    text-align: center;
    font-size: 19px;
    line-height: 1.42;
    color: var(--text-secondary);
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head .headline {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff !important;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff !important;
}

.btn-secondary {
    background: var(--text);
    color: #fff !important;
}

.btn-secondary:hover {
    background: #333;
    color: #fff !important;
}

.btn-ghost {
    background: transparent;
    color: var(--accent) !important;
    padding-left: 8px;
    padding-right: 8px;
}

.btn-ghost:hover {
    text-decoration: underline;
}

.btn-outline {
    background: transparent;
    color: var(--accent) !important;
    box-shadow: inset 0 0 0 1px var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff !important;
}

/* Page hero (inner pages) */
.page-hero {
    background: var(--bg-elevated);
    padding: 88px 0 72px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-hero .display {
    margin-bottom: 12px;
}

.page-hero .body-lg {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* CTA band */
.cta-band {
    background: var(--text);
    color: #fff;
    padding: 88px 0;
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #fff;
}

.cta-band p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.4;
}

.cta-band .btn-primary {
    background: #fff;
    color: var(--text) !important;
}

.cta-band .btn-primary:hover {
    background: #f5f5f7;
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .page-hero {
        padding: 64px 0 48px;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .cta-band {
        padding: 64px 0;
    }
}
