
:root {
    --bg: #eef3f3;
    --bg-top: #f7fbfb;
    --bg-bottom: #f7fbfb;
    --panel: rgba(255, 255, 255, 0.78);
    --panel-strong: #ffffff;
    --text: #152126;
    --muted: #4f6270;
    --line: rgba(21, 33, 38, 0.09);
    --brand: #0f8f9a;
    --brand-dark: #0a6674;
    --accent: #f08a4b;
    --radius-lg: 24px;
    --radius-md: 16px;
    --header-bg: rgba(247, 251, 251, 0.82);
    --shadow-soft: 0 14px 32px rgba(16, 31, 36, 0.08);
    --shadow-panel: 0 20px 40px rgba(11, 34, 38, 0.12);
    --shadow-button: 0 14px 30px rgba(15, 143, 154, 0.28);
    --glow-a: rgba(15, 143, 154, 0.13);
    --glow-b: rgba(240, 138, 75, 0.16);
    --glow-c: rgba(15, 143, 154, 0.1);
    --glow-d: rgba(240, 138, 75, 0.1);
}

:root[data-theme="dark"] {
    --bg: #091217;
    --bg-top: #0d171d;
    --bg-bottom: #081116;
    --panel: rgba(10, 22, 29, 0.82);
    --panel-strong: #0f1d25;
    --text: #edf5f6;
    --muted: #9db3bd;
    --line: rgba(237, 245, 246, 0.1);
    --brand: #3bc3cf;
    --brand-dark: #9de3ea;
    --accent: #ffab72;
    --header-bg: rgba(8, 17, 22, 0.82);
    --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.34);
    --shadow-panel: 0 24px 48px rgba(0, 0, 0, 0.38);
    --shadow-button: 0 16px 30px rgba(59, 195, 207, 0.24);
    --glow-a: rgba(59, 195, 207, 0.18);
    --glow-b: rgba(255, 171, 114, 0.14);
    --glow-c: rgba(59, 195, 207, 0.12);
    --glow-d: rgba(255, 171, 114, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "Noto Sans KR", sans-serif;
    color: var(--text);
    line-height: 1.6;
    transition: background 0.35s ease, color 0.25s ease;
    background:
        radial-gradient(circle at 15% 10%, var(--glow-a), transparent 34%),
        radial-gradient(circle at 85% 2%, var(--glow-b), transparent 32%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 45%, var(--bg-bottom) 100%);
}

.background-glow {
    position: fixed;
    inset: -20vmax;
    pointer-events: none;
    transition: background 0.35s ease;
    background:
        radial-gradient(circle at 30% 30%, var(--glow-c), transparent 36%),
        radial-gradient(circle at 72% 58%, var(--glow-d), transparent 32%);
    filter: blur(36px);
    z-index: -1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    transition: background 0.25s ease, border-color 0.25s ease;
}

nav {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.1rem;
    margin: 0 0 0 auto;
    padding: 0;
}

nav ul a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

nav ul a:hover {
    color: var(--brand-dark);
}

.nav-cta {
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    padding: 0.62rem 1.05rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 10px 24px rgba(15, 143, 154, 0.27);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--text);
    padding: 0.42rem 0.75rem 0.42rem 0.5rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

:root[data-theme="dark"] .theme-toggle {
    background: rgba(15, 29, 37, 0.88);
}

.theme-toggle-track {
    width: 2.55rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(15, 143, 154, 0.18);
    position: relative;
    border: 1px solid rgba(15, 143, 154, 0.24);
}

.theme-toggle-thumb {
    position: absolute;
    top: 50%;
    left: 0.18rem;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    transform: translateY(-50%);
    transition: left 0.22s ease;
}

:root[data-theme="dark"] .theme-toggle-thumb {
    left: 1.22rem;
}

.theme-toggle-label {
    min-width: 3.4rem;
    text-align: left;
}

main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

section {
    margin-bottom: 4.5rem;
}

#hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
    min-height: 72vh;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(15, 143, 154, 0.26);
    background: rgba(15, 143, 154, 0.08);
    border-radius: 999px;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(2.1rem, 5vw, 3.9rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    margin: 0;
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.03rem;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.cta-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.78rem 1.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button {
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: var(--shadow-button);
}

.ghost-button {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.cta-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.hero-panel {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-panel);
    display: grid;
    gap: 0.75rem;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.panel-card {
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.panel-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.87rem;
}

.panel-card strong {
    display: block;
    margin-top: 0.24rem;
    font-size: 1.6rem;
    font-family: "Outfit", sans-serif;
}

h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.6rem);
    margin: 0 0 1.4rem;
    line-height: 1.2;
    text-align: center;
}

#services,
#about,
#contact {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-soft);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    background: var(--panel-strong);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    padding: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(11, 28, 33, 0.12);
}

.card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.18rem;
    color: var(--brand-dark);
}

.card p,
#about p,
#contact p {
    margin: 0;
    color: var(--muted);
}

#about p,
#contact p {
    max-width: 68ch;
    margin: 0 auto;
    text-align: center;
}

.about-grid {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.about-item {
    text-align: center;
    background: var(--panel-strong);
    border: 1px dashed rgba(15, 143, 154, 0.38);
    border-radius: 999px;
    padding: 0.65rem;
    font-weight: 700;
    font-size: 0.92rem;
    transition: background 0.25s ease, border-color 0.25s ease;
}

#contact {
    text-align: center;
}

.contact-link {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 1.14rem;
}

footer {
    text-align: center;
    padding: 1.5rem 1rem 2.2rem;
    color: #5c6b76;
    font-size: 0.92rem;
}

:root[data-theme="dark"] footer {
    color: #89a0ab;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 960px) {
    #hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .theme-toggle {
        order: 4;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    #services,
    #about,
    #contact {
        padding: 1.4rem;
    }

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