:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --card: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.12);
    --text: #e5e7eb;
    --muted: #cbd5e1;
    --point: #38bdf8;
    --point-soft: rgba(56, 189, 248, 0.16);
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    --radius: 22px;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28%),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #111827 100%);
    color: var(--text);
    line-height: 1.65;
}

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

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

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

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(2, 6, 23, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.brand {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.brand span {
    color: var(--point);
}

.menu {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--muted);
}

.menu a:hover {
    color: var(--white);
}

.hero {
    padding: 72px 0 48px;
}

.hero-wrap {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
}

.hero-card,
.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 36px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--point-soft);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 999px;
    font-size: 0.92rem;
    margin-bottom: 18px;
}

h1,
h2,
h3 {
    margin: 0 0 14px;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    margin-bottom: 18px;
}

.accent {
    color: var(--point);
}

.hero-subtitle {
    font-size: 0.5em;
    color: #cbd5e1;
    font-weight: 600;
}

.hero p {
    color: var(--muted);
    margin: 0 0 22px;
    font-size: 1.02rem;
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--point);
    color: #062033;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-box {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-image {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    color: #94a3b8;
    text-align: center;
    padding: 28px;
    font-size: 0.95rem;
}

.is-hidden {
    display: none;
}

.badge-list,
.simple-list,
.stack-list,
.service-list,
.project-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.badge-item {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.95rem;
}

section {
    padding: 20px 0 8px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
}

.section-header p {
    margin: 0;
    color: var(--muted);
}

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

.card {
    padding: 24px;
}

.stack-group + .stack-group {
    margin-top: 18px;
}

.stack-title {
    font-size: 0.95rem;
    color: #bae6fd;
    margin-bottom: 10px;
    font-weight: 700;
}

.stack-list {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.stack-list li,
.service-list li,
.simple-list li {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-list-wide {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-list li {
    font-weight: 600;
}

.project-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.35);
}

.project-card h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

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

.contact-card {
    text-align: center;
    padding: 34px 24px;
    margin: 24px 0 60px;
}

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

footer {
    padding: 0 0 40px;
    color: #94a3b8;
    text-align: center;
    font-size: 0.92rem;
}

@media (max-width: 920px) {
    .hero-wrap,
    .grid-2,
    .project-list {
        grid-template-columns: 1fr;
    }

    .badge-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 42px;
    }

    .hero-card,
    .card,
    .contact-card {
        padding: 22px;
    }

    .nav-inner {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .menu {
        gap: 12px;
        font-size: 0.9rem;
    }

    .badge-list {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }
}
