/* ==========================================================================
   SweetK — Common styles shared across all pages (design tokens, reset,
   site header/nav, footer, PR card component).
   ========================================================================== */

:root {
    --bg: #151827; /* deep navy — lighter, more inviting than pure dark */
    --bg-elev: #1e2237; /* elevated surface */
    --bg-elev-2: #2a2f47; /* hover surface */
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --text: #ffffff;
    --text-2: #e4e7ef; /* body — high contrast for readability */
    --text-3: #a8b0c4; /* labels — brighter for readability */
    --accent: #ff7a45; /* burnt orange — heat, execution (slightly brighter) */
    --accent-warm: #ffb07a;
    --electric: #7ae5ff; /* cool signal blue — brighter */
    --lime: #c6ff5c;
    --font-kr:
        "Wanted Sans Variable", "Wanted Sans",
        "Pretendard Variable", Pretendard, -apple-system, sans-serif;
    --font-en: "Inter Tight", var(--font-kr), sans-serif;
    --font-display:
        "Instrument Serif", "Inter Tight", var(--font-kr), serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-kr);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}
img {
    display: block;
    max-width: 100%;
}

/* ---------- Background grid layer ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 64px 64px;
    mask-image: radial-gradient(
        ellipse 80% 70% at 50% 40%,
        black 20%,
        transparent 80%
    );
}

/* ---------- Site header / Nav (shared by all pages) ---------- */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(21, 24, 39, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.topbar-status {
    display: flex;
    justify-content: space-between;
    padding: 0 32px;
    height: 26px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}
.topbar-status .l,
.topbar-status .r {
    display: flex;
    gap: 22px;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 78px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.02em;
}
.brand img {
    height: 48px;
    width: auto;
    display: block;
}
.brand-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-3);
    font-weight: 500;
    letter-spacing: 0.16em;
    padding-left: 16px;
    border-left: 1px solid var(--line-strong);
    text-transform: uppercase;
}
.nav-menu {
    display: flex;
    gap: 40px;
    font-size: 14.5px;
    color: var(--text-2);
    font-weight: 500;
}
.nav-menu a {
    padding: 6px 0;
    transition: color 0.2s;
    position: relative;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text);
}
.nav-menu a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
}
.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    font-size: 13px;
    border-radius: 100px;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}
.btn-primary:hover {
    background: var(--accent-warm);
    transform: translateY(-1px);
}
.btn-primary svg {
    width: 12px;
    height: 12px;
}

/* Mobile nav toggle (hamburger) — hidden on desktop */
.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- PR card component (shared: home preview + PR Center list) ---------- */
.pr-list {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.pr-item {
    border: 1px solid var(--line);
    background: var(--bg-elev);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.pr-item:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
}
.pr-thumb {
    width: 100%;
    height: 200px;
    position: relative;
    background: linear-gradient(135deg, var(--bg-elev-2), var(--bg));
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.pr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
    filter: brightness(0.92) saturate(0.95);
}
.pr-item:hover .pr-thumb img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1);
}
.pr-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(21, 24, 39, 0.6));
    pointer-events: none;
}
.pr-thumb .tag {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--accent);
    padding: 4px 10px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(8, 9, 13, 0.7);
    backdrop-filter: blur(6px);
    z-index: 2;
    font-weight: 500;
}
.pr-body-c {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pr-date {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-2);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    font-weight: 500;
}
.pr-title {
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.01em;
    flex: 1;
}
.pr-cta {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-2);
    letter-spacing: 0.1em;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

/* ---------- Footer (shared by all pages) ---------- */
footer {
    padding: 80px 40px 40px;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line);
    background: var(--bg-elev);
}
.footer-top {
    max-width: 1400px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
}
.footer-brand img.logo {
    height: 38px;
    width: auto;
    margin-bottom: 22px;
    display: block;
}
.footer-brand p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
    max-width: 340px;
}
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-3);
    letter-spacing: 0.14em;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-weight: 600;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col a {
    font-size: 14.5px;
    color: var(--text-2);
    transition: color 0.15s;
}
.footer-col a:hover {
    color: var(--accent);
}
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-2);
    letter-spacing: 0.08em;
    font-weight: 500;
}
.footer-bottom .l {
    display: flex;
    gap: 28px;
}

/* ==========================================================================
   Responsive — shared header / footer / PR card
   ========================================================================== */

/* ---------- Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
    .pr-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 48px 60px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ---------- Nav collapses behind hamburger (≤ 960px) ---------- */
@media (max-width: 960px) {
    .nav {
        padding: 0 20px;
        height: 66px;
    }
    .topbar-status {
        padding: 0 20px;
        font-size: 9.5px;
    }
    .topbar-status .l span:last-child,
    .topbar-status .r span:last-child {
        display: none;
    }
    .brand-tag {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(21, 24, 39, 0.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition:
            max-height 0.3s ease,
            opacity 0.2s ease;
    }
    .nav-menu.is-open {
        max-height: 480px;
        visibility: visible;
        opacity: 1;
    }
    .nav-menu a {
        padding: 16px 20px;
        border-bottom: 1px solid var(--line);
        width: 100%;
    }
    .nav-menu a.active::after {
        display: none;
    }
    .btn-primary {
        padding: 9px 16px;
        font-size: 12.5px;
    }
}

/* ---------- Mobile (≤ 640px) ---------- */
@media (max-width: 640px) {
    .pr-list {
        grid-template-columns: 1fr;
    }
    footer {
        padding: 56px 20px 32px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        margin-bottom: 32px;
        padding-bottom: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-brand p {
        max-width: none;
    }
    .footer-col h4 {
        margin-bottom: 14px;
    }
    .footer-col ul {
        gap: 10px;
    }
    .footer-col a {
        font-size: 13.5px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .footer-bottom .l {
        flex-wrap: wrap;
        gap: 10px 16px;
    }
    .brand {
        gap: 10px;
        font-size: 17px;
    }
    .brand img {
        height: 38px;
    }
}
