@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap");

:root {
    color-scheme: dark;
    --bg: #151515;
    --bar: #1c1c1e;
    --subbar: #2a2a2d;
    --panel: #1b1b1d;
    --panel-soft: #202124;
    --ink: #f3f4f6;
    --muted: #b4b8be;
    --dim: #7f858e;
    --line: #303236;
    --accent: #1688e8;
    --accent-hover: #4fb2ff;
    --blue-panel: #1388e8;
    --success-bg: #13251c;
    --success-ink: #9ae7bd;
    --error-bg: #2b1a18;
    --error-ink: #ff9f95;
    --max: 1120px;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #ffffff;
    --bar: #f5f6f8;
    --subbar: #ebedf0;
    --panel: #ffffff;
    --panel-soft: #f5f7fa;
    --ink: #1d232b;
    --muted: #596574;
    --dim: #87909b;
    --line: #dce2e8;
    --accent: #0f7bd2;
    --accent-hover: #0960aa;
    --blue-panel: #1588e7;
    --success-bg: #eef8f3;
    --success-ink: #14633d;
    --error-bg: #fff0ee;
    --error-ink: #c7352b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
    word-break: keep-all;
}

a {
    color: inherit;
    text-decoration: none;
}

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

video {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

.global-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 58px;
    padding: 0 max(24px, calc((100% - var(--max)) / 2));
    background: var(--bar);
    border-bottom: 1px solid #242529;
}

html[data-theme="light"] .global-header {
    border-bottom-color: var(--line);
}

.brand {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
}

.brand img {
    width: 34px;
    height: 34px;
}

.global-nav {
    display: flex;
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    align-items: center;
    gap: 28px;
    font-size: .92rem;
    font-weight: 650;
}

.global-nav a {
    color: var(--ink);
}

.global-nav a:hover,
.sub-nav a:hover,
.side-links a:hover,
.product-row a:hover,
.board-feature-card a:hover,
.board-item a:hover {
    color: var(--accent-hover);
}

.header-actions {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 650;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 1.15rem;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.icon-button:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
    background: rgba(22, 136, 232, .08);
}

.nav-toggle {
    display: none;
}

.sub-nav {
    position: sticky;
    top: 58px;
    z-index: 900;
    display: flex;
    justify-content: center;
    gap: 0;
    min-height: 42px;
    background: var(--subbar);
    border-bottom: 1px solid var(--line);
}

.sub-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0 22px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 650;
}

.sub-nav a + a {
    border-left: 1px solid var(--line);
}

.quick-nav {
    position: fixed;
    right: max(10px, calc((100% - var(--max)) / 2 - 70px));
    top: 118px;
    bottom: 86px;
    z-index: 850;
    display: flex;
    width: 42px;
    flex-direction: column;
    gap: 5px;
    padding: 8px 6px;
    border-left: 1px solid color-mix(in srgb, var(--line) 44%, transparent);
    opacity: .38;
    transition: opacity .16s ease;
}

.quick-nav:hover {
    opacity: .86;
}

.quick-nav a {
    position: relative;
    display: flex;
    min-height: 34px;
    width: 30px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 4px 3px;
    border-radius: 4px;
    color: var(--dim);
    transition: background .16s ease, opacity .16s ease;
}

.quick-nav span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--dim);
    opacity: .44;
    transition: width .16s ease, opacity .16s ease, background .16s ease;
}

.quick-nav span:nth-child(1) {
    width: 20px;
}

.quick-nav span:nth-child(2) {
    width: 13px;
}

.quick-nav span:nth-child(3) {
    width: 24px;
}

.quick-nav a:nth-child(even) span:nth-child(1) {
    width: 15px;
}

.quick-nav a:nth-child(even) span:nth-child(2) {
    width: 24px;
}

.quick-nav a:nth-child(even) span:nth-child(3) {
    width: 18px;
}

.quick-nav a:hover,
.quick-nav a.is-active {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.quick-nav a:hover span,
.quick-nav a.is-active span {
    background: var(--accent);
    opacity: .82;
}

.quick-nav a::after {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    content: attr(aria-label);
    max-width: 90px;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease;
}

.quick-nav a:hover::after {
    opacity: 1;
}

.site-main {
    display: flex;
    flex-direction: column;
}

.hero,
.content-layout,
.section,
.site-footer {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    padding: 28px 0 36px;
}

.hero-art {
    position: relative;
    width: 100%;
    margin: 0 auto 36px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--blue-panel);
}

.hero-art img,
.hero-art video {
    width: 100%;
    aspect-ratio: 960 / 260;
    object-fit: cover;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-grid,
.content-layout,
.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 38px;
    align-items: start;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-hover);
    font-size: .9rem;
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: 2.35rem;
    line-height: 1.08;
    font-weight: 720;
}

.hero-headline {
    margin: 18px 0 0;
    color: var(--ink);
    font-size: 1.24rem;
    line-height: 1.45;
    font-weight: 650;
}

.hero-body,
.section-head p,
.notice-panel p,
.product-row p,
.board-item p,
.contact-section p {
    color: var(--muted);
}

.hero-body {
    max-width: 640px;
    margin: 14px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--accent);
    border-radius: 7px;
    color: var(--accent-hover);
    font-size: .96rem;
    font-weight: 650;
}

.button.primary {
    background: var(--accent);
    color: #fff;
}

.button.outline {
    background: transparent;
}

.button.disabled,
.button[aria-disabled="true"] {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--muted);
    cursor: not-allowed;
    pointer-events: none;
}

.button.full {
    width: 100%;
}

.download-card,
.notice-panel,
.contact-form {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.download-card {
    position: sticky;
    top: 112px;
    padding: 24px;
}

.download-card h2,
.notice-panel h2,
.section-head h2 {
    margin: 0;
    font-size: 1.42rem;
    line-height: 1.35;
    font-weight: 700;
}

.download-card p {
    margin: 18px 0 0;
    color: var(--muted);
}

.download-card ul {
    margin: 18px 0 22px;
    padding-left: 18px;
    color: var(--muted);
}

.download-card li + li {
    margin-top: 6px;
}

.download-card .button + .button {
    margin-top: 10px;
}

.side-links {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    color: var(--accent-hover);
    font-weight: 650;
}

.content-layout {
    padding: 46px 0 42px;
    border-top: 1px solid var(--line);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 54px;
}

.feature-block img {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
}

.feature-block h2 {
    margin: 0 0 10px;
    font-size: 1.24rem;
    line-height: 1.35;
    font-weight: 700;
}

.feature-block ul {
    margin: 0;
    padding-left: 20px;
}

.feature-block li {
    margin: 7px 0;
    color: var(--ink);
}

.notice-panel {
    padding: 24px;
}

.notice-panel p {
    margin: 16px 0 0;
}

.section {
    padding: 52px 0;
    border-top: 1px solid var(--line);
}

.section-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-head p {
    margin: 10px 0 0;
}

.product-list,
.board-list {
    display: grid;
    gap: 12px;
}

.product-row,
.board-item {
    display: grid;
    align-items: center;
    gap: 18px;
    min-height: 96px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.product-row {
    grid-template-columns: 54px minmax(0, 1fr) auto;
}

.product-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 750;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 4px;
}

.meta-line span,
.board-type {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 23px;
    width: max-content;
    padding: 0 9px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 999px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 650;
    line-height: 1;
    background: color-mix(in srgb, var(--panel-soft) 78%, transparent);
}

.board-type-release {
    color: #8fcfff;
    border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
    background: color-mix(in srgb, var(--accent) 13%, transparent);
}

.board-type-notice {
    color: #e4e9f0;
    border-color: color-mix(in srgb, var(--muted) 26%, var(--line));
}

.board-type-news {
    color: #a6d8c1;
    border-color: color-mix(in srgb, #33b778 38%, var(--line));
    background: color-mix(in srgb, #33b778 10%, transparent);
}

.board-type-blog {
    color: #cfbcff;
    border-color: color-mix(in srgb, #8b70e6 38%, var(--line));
    background: color-mix(in srgb, #8b70e6 10%, transparent);
}

.product-row h3,
.board-item h3 {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.38;
    font-weight: 700;
}

.product-row p,
.board-item p {
    margin: 5px 0 0;
}

.product-row-gallery {
    display: flex;
    gap: 8px;
    max-width: 100%;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 3px;
    scroll-snap-type: x proximity;
}

.product-row-gallery img {
    flex: 0 0 128px;
    width: 128px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    scroll-snap-align: start;
}

.product-row a,
.board-item a,
.mail-link {
    color: var(--accent-hover);
    font-weight: 700;
}

.board-hero {
    overflow: hidden;
    margin-bottom: 34px;
    border-radius: 9px;
    background: var(--blue-panel);
}

.board-hero img {
    width: 100%;
    aspect-ratio: 960 / 220;
    object-fit: cover;
}

.board-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 14px;
    margin: 0 0 16px;
}

.board-feature-card {
    display: flex;
    min-height: 154px;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.board-feature-card:hover,
.board-item:hover {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    background: color-mix(in srgb, var(--panel) 92%, var(--accent));
}

.board-feature-card h3 {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.42;
    font-weight: 700;
}

.board-feature-card p {
    margin: 0;
    color: var(--muted);
}

.board-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: var(--dim);
    font-size: .86rem;
}

.board-card-foot a {
    color: var(--accent-hover);
    font-weight: 700;
}

.empty-card,
.empty-row {
    border-style: dashed;
}

.board-item {
    grid-template-columns: minmax(0, 1fr) 104px 28px;
    min-height: 86px;
    padding: 16px 20px;
}

.board-item-main {
    display: grid;
    gap: 7px;
}

.board-item time {
    color: var(--dim);
    font-size: .88rem;
    text-align: right;
}

.contact-section {
    padding-bottom: 70px;
}

.mail-link {
    display: inline-flex;
    margin-top: 16px;
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 650;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel-soft);
    color: var(--ink);
    padding: 11px 12px;
    outline: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-success,
.form-error {
    padding: 11px 12px;
    border-radius: 7px;
    font-weight: 650;
}

.form-success {
    background: var(--success-bg);
    color: var(--success-ink);
}

.form-error {
    background: var(--error-bg);
    color: var(--error-ink);
}

.site-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .92rem;
}

.footer-main,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.footer-main {
    max-width: 760px;
}

.footer-links {
    justify-content: flex-end;
}

.site-footer a {
    color: var(--ink);
    font-weight: 650;
}

.product-page {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.product-hero-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 42px;
    align-items: start;
    padding: 68px 0 48px;
}

.product-hero-detail h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.02;
    font-weight: 720;
}

.product-hero-detail p {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: .92rem;
}

.back-link:hover {
    color: var(--accent-hover);
}

.release-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    padding: 24px;
}

.release-panel h2 {
    margin: 16px 0 0;
    font-size: 1.8rem;
    line-height: 1.1;
    font-weight: 700;
}

.release-panel p {
    margin: 14px 0 0;
    color: var(--muted);
}

.release-panel dl {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
}

.release-panel dl div,
.info-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.release-panel dt,
.info-list strong {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 650;
}

.release-panel dd,
.info-list span {
    margin: 0;
    color: var(--ink);
    text-align: right;
}

.product-detail-section {
    padding: 46px 0;
    border-top: 1px solid var(--line);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.detail-grid article {
    min-height: 164px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.detail-grid i {
    color: var(--accent-hover);
    font-size: 1.42rem;
}

.detail-grid h3 {
    margin: 14px 0 0;
    font-size: 1.04rem;
    line-height: 1.4;
    font-weight: 700;
}

.detail-grid p {
    margin: 8px 0 0;
    color: var(--muted);
}

.product-gallery-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 0 12px;
    scroll-snap-type: x mandatory;
}

.product-gallery-item {
    flex: 0 0 min(520px, 84vw);
    margin: 0;
    scroll-snap-align: start;
}

.product-gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.product-gallery-item figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: .88rem;
}

.split-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 44px;
    align-items: start;
}

.split-detail h2 {
    margin: 0;
    font-size: 1.42rem;
    line-height: 1.35;
    font-weight: 700;
}

.split-detail p {
    margin: 12px 0 0;
    color: var(--muted);
}

.info-list {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    padding: 10px 18px;
}

.developer-page {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    padding: 64px 0 72px;
}

.developer-hero {
    max-width: 780px;
}

.developer-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
}

.developer-role {
    margin: 14px 0 0;
    color: var(--accent-hover);
    font-weight: 700;
}

.developer-intro {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.developer-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 42px;
}

.developer-info-grid article {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.developer-info-grid i {
    color: var(--accent-hover);
    font-size: 24px;
}

.developer-info-grid h2 {
    margin: 16px 0 8px;
    font-size: 1rem;
}

.developer-info-grid p,
.developer-info-grid a {
    color: var(--muted);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .42s ease, transform .42s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .quick-nav {
        display: none;
    }

    .global-header {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 0 16px;
    }

    .header-actions {
        grid-column: 2;
        justify-self: end;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .global-nav {
        position: fixed;
        top: 66px;
        left: 14px;
        right: 14px;
        width: calc(100vw - 28px);
        max-width: none;
        z-index: 1200;
        display: none;
        grid-column: auto;
        justify-self: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        max-height: calc(100dvh - 82px);
        overflow-y: auto;
        padding: 10px;
        background: var(--bar);
        background: color-mix(in srgb, var(--bar) 96%, transparent);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 18px 36px rgba(0, 0, 0, .32);
    }

    .global-nav.is-open {
        display: flex;
    }

    .global-nav a {
        padding: 12px 14px;
        border-radius: 10px;
        background: var(--panel-soft);
    }

    .sub-nav {
        top: 58px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-left: 16px;
    }

    .sub-nav a {
        white-space: nowrap;
    }

    .hero-grid,
    .content-layout,
    .contact-section,
    .product-hero-detail,
    .split-detail {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .developer-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .download-card {
        position: static;
    }

    .feature-grid {
        gap: 34px;
    }

    .board-feature-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 660px) {
    body {
        font-size: 15px;
    }

    .hero,
    .content-layout,
    .section,
    .site-footer,
    .product-page {
        width: min(100% - 28px, var(--max));
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-headline {
        font-size: 1.22rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .developer-page {
        width: min(100% - 28px, var(--max));
        padding-top: 42px;
    }

    .developer-info-grid {
        grid-template-columns: 1fr;
    }

    .product-row,
    .board-item {
        grid-template-columns: 1fr;
    }

    .global-nav {
        left: 12px;
        right: 12px;
        width: calc(100vw - 24px);
    }

    .product-icon {
        width: 42px;
        height: 42px;
    }

    .board-item time {
        text-align: left;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
