:root {
    --bg: #0a0a0f;
    --bg-elev: #11121a;
    --bg-card: #15161f;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f5f5f7;
    --text-muted: #9b9ba8;
    --text-dim: #6b6b78;
    --accent: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #ec4899;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --radius: 16px;
    --radius-lg: 24px;
    --max-width: 1200px;
    --header-h: 72px;
    --font-sans: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Noto Sans KR', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
}

.section-head {
    text-align: center;
    margin-bottom: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-head .section-lead { margin: 0 auto; }

/* ===== Cursor glow ===== */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

@media (hover: hover) {
    .cursor-glow { opacity: 1; }
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(10, 10, 15, 0.85);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.05em;
}

.logo-mark {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-radius: 100px;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--text);
    color: var(--bg);
}

.lang-btn:not(.active):hover {
    color: var(--text);
}

.nav-cta {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
    padding-top: calc(var(--header-h) + 80px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.18), transparent 50%),
        radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom, rgba(236, 72, 153, 0.1), transparent 60%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 84px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(16px, 1.5vw, 19px);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat strong {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat span {
    font-size: 13px;
    color: var(--text-dim);
}

/* ===== Services ===== */
.services { background: var(--bg-elev); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--card-glow, rgba(99, 102, 241, 0.15)) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card[data-accent="blue"] { --card-glow: rgba(59, 130, 246, 0.18); --icon-color: var(--accent-blue); }
.service-card[data-accent="purple"] { --card-glow: rgba(168, 85, 247, 0.18); --icon-color: var(--accent-purple); }
.service-card[data-accent="green"] { --card-glow: rgba(16, 185, 129, 0.18); --icon-color: var(--accent-green); }
.service-card[data-accent="amber"] { --card-glow: rgba(245, 158, 11, 0.18); --icon-color: var(--accent-amber); }

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    margin-bottom: 28px;
    color: var(--icon-color, var(--accent));
    position: relative;
    z-index: 1;
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.service-tags li {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-copy p {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 16px;
}

.about-points {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.point {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.point:hover { border-color: var(--border-strong); }

.point-num {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.point h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.point p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    aspect-ratio: 1;
    max-width: 500px;
    margin-left: auto;
}

.visual-card {
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 300;
    border: 1px solid var(--border);
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.visual-card span {
    background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-1 { background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.02)); --c1: #6366f1; --c2: #818cf8; }
.card-2 { background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.02)); --c1: #a855f7; --c2: #c084fc; transform: translateY(20px); }
.card-3 { background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.02)); --c1: #10b981; --c2: #34d399; transform: translateY(-20px); }
.card-4 { background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.02)); --c1: #f59e0b; --c2: #fbbf24; }

.visual-card:hover { transform: translateY(0) scale(1.03); }

/* ===== Process ===== */
.process { background: var(--bg-elev); }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.step-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.contact-copy > p {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 40px;
}

.offices {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.office {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg-elev);
    border: 1px solid var(--border);
}

.office-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.office-address {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
}

.contact-form {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    cursor: pointer;
}

.chip input { display: none; }

.chip span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.chip:hover span { border-color: var(--border-strong); color: var(--text); }

.chip input:checked + span {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: var(--text);
}

.form-status {
    font-size: 14px;
    color: var(--accent-green);
    text-align: center;
    min-height: 20px;
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-elev);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 16px;
    max-width: 320px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-cols h5 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.footer-cols ul { display: flex; flex-direction: column; gap: 10px; }
.footer-cols li, .footer-cols a {
    font-size: 14px;
    color: var(--text);
    transition: color 0.2s;
}
.footer-cols a:hover { color: var(--accent); }

.company-info {
    padding: 28px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.company-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 48px;
}

.company-info-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.info-value {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    font-size: 13px;
    color: var(--text-dim);
}

/* ===== Reveal animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .section { padding: 80px 0; }
    .nav-links, .nav-cta { display: none; }
    .nav-right { gap: 8px; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    .header.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-elev);
        border-bottom: 1px solid var(--border);
        padding: 24px;
        gap: 20px;
    }

    .service-grid,
    .process-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual { max-width: 360px; margin: 0 auto; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .section { padding: 64px 0; }
    .hero { padding-top: calc(var(--header-h) + 48px); }
    .service-card, .contact-form { padding: 28px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
}
