@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

/* Design Tokens */
:root {
    --primary:       #1a2233;
    --primary-dark:  #101828;
    --accent:        #14a387;
    --accent-dark:   #10856e;
    --bg:            #f4f7fa;
    --bg-white:      #ffffff;
    --text:          #222b3a;
    --text-sub:      #5a6a85;
    --border:        #dbe2ea;
    --shadow-sm:     0 2px 12px rgba(35,64,110,0.07);
    --shadow:        0 6px 30px rgba(35,64,110,0.10);
    --radius:        14px;
    --radius-lg:     20px;
    --max-w:         1100px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.02em;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Container */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header / Nav */
header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: 76px;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 8px;
    align-items: center;
}

nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

nav a:hover { background: var(--bg); color: var(--accent); }

nav a.cta-nav {
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
}

nav a.cta-nav:hover { background: var(--accent-dark); }

/* Mobile hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero */
.hero {
    position: relative;
    min-height: 600px;
    background: linear-gradient(120deg, rgba(26,34,51,0.93) 55%, rgba(35,64,110,0.75) 100%),
                url('images/hero-background.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 80px 0;
}

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.hero-label {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    word-break: keep-all;
}

.hero h1 em {
    color: var(--accent);
    font-style: normal;
}

.hero-sub {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 560px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,188,156,0.35);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-outline {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.2); }

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 52px;
    flex-wrap: wrap;
}

.hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}
.hero-stat span { font-size: 0.85rem; opacity: 0.75; }

/* Section Shared */
section {
    padding: 100px 0;
}

.sec-label {
    display: inline-block;
    background: rgba(26,188,156,0.12);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.sec-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
    word-break: keep-all;
}

.sec-sub {
    font-size: 1.05rem;
    color: var(--text-sub);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.55;
}
.no-bottom { margin-bottom: 0 !important; }

#portfolio .sec-sub {
    max-width: none;
    white-space: nowrap;
}
@media (max-width: 992px) {
    #portfolio .sec-sub {
        white-space: normal;
    }
}
.center { text-align: center; }
.center .sec-sub { margin-left: auto; margin-right: auto; }

.bg-white { background: var(--bg-white); }
.bg-gray  { background: #eef1f6; }
.bg-dark  { background: var(--primary); color: #fff; }

/* Why Us - Cards */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.icon-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

.icon-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.icon-card .icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(26,188,156,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-card .icon-wrap img {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 4px rgba(26,188,156,0.3));
}

.icon-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.icon-card p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.65;
}

/* Service - Split Layout */
.service-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.service-split.reverse { direction: rtl; }
.service-split.reverse > * { direction: ltr; }

.service-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-media-icon {
    background: #f0f4f9;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
}

.service-media-icon img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.service-text .feature-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-sub);
}

.feature-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 7px;
}

/* Portfolio */
/* Marketing Divider Banner */
.marketing-divider {
    padding: 72px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.marketing-divider .sec-title {
    margin-bottom: 12px;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Wide first item */
.portfolio-item:first-child {
    grid-column: span 2;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(26,34,51,0.85));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: #fff; font-size: 1rem; font-weight: 700; }

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 18px;
    background: linear-gradient(transparent, rgba(26,34,51,0.8));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Success Cases */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}

.case-card .case-tag {
    display: inline-block;
    background: rgba(26,188,156,0.1);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.case-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.case-card p {
    font-size: 0.88rem;
    color: var(--text-sub);
    line-height: 1.65;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    text-align: center;
    transition: transform 0.25s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(26,188,156,0.18);
}

.pricing-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.pricing-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
    margin: 16px 0;
    line-height: 1;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-sub);
    font-weight: 400;
}

.pricing-desc {
    font-size: 0.88rem;
    color: var(--text-sub);
    line-height: 1.65;
    flex-grow: 1;
}

.pricing-note {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-sub);
}

/* Process */
.process-steps {
    display: flex;
    gap: 0;
    align-items: flex-start;
    counter-reset: step;
    margin-top: 20px;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 16px;
}

.process-step::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: 28px;
    color: var(--border);
    font-size: 1.4rem;
}
.process-step:last-child::after { display: none; }

.step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.process-step h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.55;
}

/* Contact */
.contact-wrap {
    background: linear-gradient(130deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 64px 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-left .sec-title { color: #fff; }
.contact-left .sec-sub { color: rgba(255,255,255,0.7); margin-bottom: 0; }

.contact-label { background: rgba(255,255,255,0.15); color: #fff; }
.contact-title { color: #fff; }
.contact-sub { color: rgba(255,255,255,0.7); margin-bottom: 0; }

.contact-divider {
    width: 48px;
    height: 3px;
    background: var(--accent);
    margin: 20px 0;
    border-radius: 2px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 18px 22px;
    transition: background 0.2s;
}

.contact-item:hover { background: rgba(255,255,255,0.12); }

.contact-item .ci-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item .ci-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(10);
}

.contact-item .ci-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 2px;
}

.contact-item .ci-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.55);
    padding: 40px 0;
    font-size: 0.85rem;
    line-height: 2;
}

footer strong {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 6px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.88);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
}

.modal.active { display: flex; }

.modal img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.modal-close:hover { opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
    .cards-3,
    .cases-grid,
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .service-split,
    .service-split.reverse { grid-template-columns: 1fr; direction: ltr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .portfolio-item:first-child { grid-column: span 2; }
    .process-steps { flex-wrap: wrap; gap: 24px; }
    .process-step::after { display: none; }
    .process-step { flex: 0 0 45%; }
    .hero h1 { font-size: 2rem; }
}

@media (max-width: 600px) {
    .cards-3,
    .cases-grid,
    .pricing-grid,
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item:first-child { grid-column: span 1; }
    nav { display: none; }
    nav.open { display: block; position: absolute; top: 76px; left: 0; width: 100%; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 0; }
    nav.open ul { flex-direction: column; padding: 0 20px; gap: 4px; }
    .menu-toggle { display: flex; }
    .contact-wrap { padding: 40px 24px; }
    .hero h1 { font-size: 1.7rem; }
    section { padding: 56px 0; }
}
