/* JSOFT CORP - dark premium one-page */
:root {
    --bg: #07080b;
    --bg-alt: #0c0e13;
    --surface: #11141b;
    --surface-2: #161a23;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #eceef2;
    --muted: #9aa1ae;
    --dim: #6b7280;
    --gold: #d6b46a;
    --gold-2: #f1d99a;
    --gold-soft: rgba(214, 180, 106, 0.12);
    --radius: 18px;
    --max: 1180px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: -0.01em;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: #000; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.gold {
    background: linear-gradient(100deg, var(--gold-2), var(--gold) 60%, #b08a3e);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(7, 8, 11, 0.78);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.04em; }
.brand-mark {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(140deg, var(--gold-2), var(--gold) 55%, #9c7631);
    color: #0b0b0b; font-weight: 900; font-size: 18px;
}
.brand-name { font-size: 18px; }
.brand-sub { color: var(--gold); margin-left: 6px; font-weight: 500; letter-spacing: 0.2em; font-size: 12px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
    color: var(--text); padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
    transition: border-color .2s, background .2s, color .2s;
}
.nav .nav-cta:hover { border-color: var(--gold); color: var(--gold-2); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .3s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
    transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn-primary {
    background: linear-gradient(120deg, var(--gold-2), var(--gold) 60%, #b48d42); color: #111;
    box-shadow: 0 10px 30px -10px rgba(214, 180, 106, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(214, 180, 106, 0.7); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .55; }
.glow-1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(214,180,106,.45), transparent 65%); top: -180px; right: -120px; animation: float 14s ease-in-out infinite; }
.glow-2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(70,90,160,.35), transparent 65%); bottom: -220px; left: -160px; animation: float 18s ease-in-out infinite reverse; }
.grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 70%);
    opacity: .5;
}
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 30px); } }
.hero-inner { position: relative; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.22em; margin-bottom: 20px; }
.hero-title { font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.18; }
.hero-desc { margin-top: 28px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 720px; }
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li { font-size: 13px; color: var(--muted); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 24px; height: 38px; border: 1.5px solid var(--line-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Sections */
.section { padding: 130px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 60px; }
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.section-desc { margin-top: 20px; color: var(--muted); font-size: 17px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.check-list { margin-top: 32px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--gold-soft); border: 1px solid rgba(214,180,106,.5);
}
.check-list li::after {
    content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 9px;
    border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 38px 30px; }
.stat strong { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.stat .plus { font-size: 32px; font-weight: 700; color: var(--gold); margin-left: 2px; }
.stat p { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Cards */
.card {
    position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(140deg, rgba(214,180,106,.6), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { margin-top: 12px; color: var(--muted); font-size: 15px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid rgba(214,180,106,.25); margin-bottom: 26px; }
.service .icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.work { grid-column: span 2; display: flex; flex-direction: column; min-height: 260px; }
.work-feature { grid-column: span 3; min-height: 320px; background: radial-gradient(120% 120% at 100% 0%, rgba(214,180,106,.14), transparent 50%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.work-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; padding-bottom: 40px; }
.work-index { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chips li { font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); }
.work-feature h3 { font-size: 30px; }
.work-link { margin-top: 24px; display: inline-flex; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gold-2); align-self: flex-start; border-bottom: 1px solid rgba(214,180,106,.35); padding-bottom: 2px; }
.work-link:hover { border-color: var(--gold-2); }

/* Developer */
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.dev-avatar {
    width: 88px; height: 88px; border-radius: 24px; margin-bottom: 30px; display: grid; place-items: center;
    background: linear-gradient(140deg, #1d212b, #0f1117); border: 1px solid rgba(214,180,106,.4);
    box-shadow: 0 0 0 6px rgba(214,180,106,.06), 0 20px 50px -20px rgba(214,180,106,.4);
}
.dev-avatar span { font-size: 40px; font-weight: 900; }
.dev-avatar span { background: linear-gradient(120deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dev-name { font-size: clamp(32px, 4vw, 44px); font-weight: 800; }
.dev-role { margin-top: 8px; color: var(--text); font-weight: 500; }
.dev-career { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.career-title { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-bottom: 26px; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), var(--line)); }
.timeline li { position: relative; padding: 0 0 22px 32px; display: flex; flex-direction: column; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.timeline strong { font-size: 18px; font-weight: 700; }
.timeline span { color: var(--muted); font-size: 14px; }
.timeline .more strong { color: var(--gold-2); }

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stack-group { background: var(--surface); padding: 30px 26px; transition: background .3s; }
.stack-group:hover { background: var(--surface-2); }
.stack-group h3 { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.stack-group ul { display: grid; gap: 9px; }
.stack-group li { font-size: 15px; color: var(--text); padding-left: 14px; position: relative; }
.stack-group li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: #4b5161; }

/* Clients marquee */
.clients { padding: 46px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-size: 22px; font-weight: 800; letter-spacing: .06em; color: #4b5161; white-space: nowrap; transition: color .3s; }
.marquee-track span:hover { color: var(--gold); }
@keyframes marquee { to { transform: translateX(calc(-50% - 36px)); } }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 40px 30px 10px 0; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--gold); }
.step-no { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.step h3 { font-size: 21px; margin-top: 14px; }
.step p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* Contact */
.contact { padding-top: 40px; }
.contact-box {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
    padding: 70px; border-radius: 28px; border: 1px solid rgba(214,180,106,.25);
    background: radial-gradient(80% 120% at 0% 0%, rgba(214,180,106,.16), transparent 55%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.contact-actions { display: grid; gap: 12px; }
.contact-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line); transition: border-color .25s; }
.contact-item:hover { border-color: rgba(214,180,106,.5); }
.contact-item .label { font-size: 13px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.contact-item .value { font-weight: 600; }
.contact-actions .btn { margin-top: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; background: var(--bg-alt); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 12px; letter-spacing: .06em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--gold-2); }
.footer-info { margin-top: 24px; display: grid; gap: 6px; font-size: 13px; color: var(--dim); }
.footer-info p { display: flex; flex-wrap: wrap; }
.footer-info span + span::before { content: "|"; margin: 0 10px; color: #3a3f4b; }
.footer-info a:hover { color: var(--gold-2); }
.copyright { margin-top: 22px; color: var(--dim); font-size: 13px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .work, .work-feature { grid-column: span 1; }
    .about-grid, .dev-grid { grid-template-columns: 1fr; gap: 56px; }
    .process-grid, .stack-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-box { grid-template-columns: 1fr; padding: 50px 40px; }
}
@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
        padding: 10px 24px 26px; background: rgba(7,8,11,.97); border-bottom: 1px solid var(--line);
        transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
    }
    .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text); }
    .nav .nav-cta { margin-top: 16px; text-align: center; border: 1px solid var(--gold); }
    .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
    .nav-open .site-header { background: rgba(7,8,11,.97); }
    .br-pc { display: none; }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .section { padding: 90px 0; }
    .service-grid, .portfolio-grid, .process-grid { grid-template-columns: 1fr; }
    .footer-info span + span::before { display: none; }
    .footer-info p { flex-direction: column; }
    .card { padding: 28px; }
    .stat { padding: 28px 22px; }
    .stat strong { font-size: 38px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .contact-box { padding: 40px 24px; border-radius: 22px; }
    .contact-item { flex-direction: column; align-items: flex-start; gap: 2px; }
    .dev-career { padding: 30px 24px; }
    .marquee-track span { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
