:root {
    --bg: #071116;
    --surface: #0d1b23;
    --surface-2: #122833;
    --ink: #eef8f8;
    --muted: #a9bdc2;
    --line: rgba(255, 255, 255, 0.13);
    --blue: #4da3ff;
    --green: #3dd6a3;
    --navy: #0a2a43;
    --white: #ffffff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

main > .hero,
main > .section,
main > .contact {
    min-height: calc(100svh - 76px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    height: 76px;
    padding: 0 clamp(20px, 5vw, 72px);
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, rgba(5, 13, 18, 0.82), rgba(5, 13, 18, 0.26));
    backdrop-filter: blur(12px);
    transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(5, 13, 18, 0.92);
}

.brand img {
    width: auto;
    height: 48px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 700;
}

.site-nav a {
    transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--green);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    padding: 150px clamp(20px, 6vw, 92px) 56px;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 13, 18, 0.92) 0%, rgba(5, 13, 18, 0.76) 44%, rgba(5, 13, 18, 0.30) 100%),
        linear-gradient(0deg, rgba(5, 13, 18, 0.78), rgba(5, 13, 18, 0.06) 45%, rgba(5, 13, 18, 0.54)),
        url("../img/hero-bg.webp") center / cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--green);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(52px, 8vw, 112px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-copy {
    width: min(780px, 100%);
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.35;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 800;
}

.button.primary {
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: #041118;
}

.button.secondary {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    width: min(980px, 100%);
    margin: 64px 0 0;
    padding: 1px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
    box-shadow: var(--shadow);
}

.hero-stats div {
    min-height: 112px;
    padding: 18px;
    background: rgba(9, 24, 32, 0.82);
}

.hero-stats dt {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
    line-height: 1;
}

.hero-stats dd {
    margin: 8px 0 0;
    /*color: var(--muted);*/
    font-size: 18px;
    font-weight: 700;
}

.section {
    padding: clamp(56px, 7vw, 96px) clamp(20px, 6vw, 92px);
}

.section-heading {
    width: min(860px, 100%);
    margin-bottom: 38px;
}

.section-heading h2,
.contact h2 {
    margin: 0;
    font-size: clamp(30px, 4.5vw, 56px);
    line-height: 1.14;
    letter-spacing: 0;
}

.section-copy {
    width: min(780px, 100%);
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
}

.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    background: linear-gradient(180deg, var(--bg), #0c2029);
}

.intro-about {
    gap: clamp(24px, 5vw, 68px);
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(18px, 2vw, 23px);
}

.intro-about p {
    margin: 0;
}

.capabilities,
.solutions,
.company {
    background: #f6faf9;
    color: #102029;
}

.clients,
.clients {
    background: #f6faf9;
    color: #102029;
}

.capabilities .eyebrow,
.solutions .eyebrow,
.company .eyebrow,
.clients .eyebrow {
    color: #027a63;
}

.capability-grid,
.solution-grid,
.case-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.capability-grid article,
.solution-grid article,
.case-grid article {
    border: 1px solid rgba(10, 42, 67, 0.12);
    border-radius: 8px;
    background: var(--white);
    padding: 26px;
}

.capability-grid span {
    color: #0476c8;
    font-size: 13px;
    font-weight: 900;
}

.capability-grid h3,
.solution-grid h3,
.case-grid h3,
.business-list h3 {
    margin: 12px 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.capability-grid p,
.solution-grid p,
.case-grid p,
.business-list p {
    margin: 0;
    color: #526771;
}

.business,
.cases {
    background:
        linear-gradient(180deg, rgba(7, 17, 22, 0.84), rgba(7, 17, 22, 0.94)),
        url("../img/section-bg.webp") center / cover fixed;
}

.business-layout {
    display: block;
}

.business {
    padding-block: clamp(48px, 6vh, 80px);
}

.business .section-heading {
    margin-bottom: 24px;
}

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

.business-list article {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(11, 31, 41, 0.84);
}

.business-list h1,
.business-list h2,
.business-list h3,
.business-list p {
    margin: 0;
}

.business-list h1 {
    font-size: 72px;
    line-height: 0.95;
}

.business-list h2 {
    font-size: 28px;
    line-height: 1.2;
}

.business-list h3 {
    font-size: 20px;
    line-height: 1.3;
    color: var(--green);
}

.business-list p {
    color: var(--muted);
}

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

.solution-grid .featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #0b3448, #0f6d76);
    color: var(--white);
}

.solution-grid .featured p {
    color: rgba(255, 255, 255, 0.82);
}

.solution-grid h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.solution-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-top: 0;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--green);
    color:  var(--white);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.case-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.case-summary div {
    min-height: 136px;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(13, 31, 42, 0.78);
}

.case-summary strong {
    display: block;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1;
}

.case-summary span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-weight: 700;
}

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

.case-grid article {
    background: rgba(255, 255, 255, 0.94);
}

.case-grid h3 {
    color: #102029;
}

.cases .section-copy {
    color: rgba(238, 248, 248, 0.76);
}

.example-carousel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 18px;
    align-items: stretch;
    margin-top: clamp(28px, 4vw, 48px);
}

.example-media {
    position: relative;
    min-height: clamp(360px, 60vh, 640px);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(77, 163, 255, 0.14), transparent 42%), rgba(7, 17, 22, 0.88);
    box-shadow: var(--shadow);
}

.example-slide {
    position: absolute;
    inset: 0;
    display: flex;
    justify-items: center;
    opacity: 0;
    transition: opacity 320ms ease;
}

.example-slide.is-active {
    opacity: 1;
}

.example-slide img {
    width: auto;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    background: rgba(7, 17, 22, 0.1);
}

.example-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: clamp(360px, 60vh, 640px);
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(9, 24, 32, 0.84);
    box-shadow: var(--shadow);
}

.example-kicker {
    margin-bottom: 12px;
    font-size: 14px;
}

.example-copy h3 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
}

.example-description {
    margin: 14px 0 0;
    color: rgba(238, 248, 248, 0.82);
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.65;
}

.example-controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.example-button {
    min-width: 92px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-weight: 800;
}

.example-indicators {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.example-indicators button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.example-indicators button.is-active {
    background: var(--green);
    transform: scale(1.15);
}

.logo-grid {
    display: grid;
    gap: 14px;
}

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

.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid rgba(10, 42, 67, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(6, 18, 24, 0.05);
}

.logo-card img {
    width: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.logo-card--text {
    color: #102029;
    font-size: clamp(18px, 2.1vw, 28px);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.business,
.solutions,
.cases,
.clients {
    width: 100%;
}

.company-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    border: 1px solid rgba(10, 42, 67, 0.12);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 42, 67, 0.12);
}

.company-table div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 22px;
    background: var(--white);
}

.company-table dt {
    color: #0476c8;
    font-weight: 900;
}

.company-table dd {
    margin: 0;
    color: #394f59;
}

.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: clamp(56px, 7vw, 96px) clamp(20px, 6vw, 92px);
    background:
        linear-gradient(90deg, rgba(5, 13, 18, 0.9), rgba(5, 13, 18, 0.62));
}

.contact-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    width: 100%;
    flex: 1;
}

address {
    display: grid;
    gap: 12px;
    margin: 0;
    font-style: normal;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 900;
}

address a {
    color: var(--white);
}

.address-link {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 1.7vw, 22px);
    font-weight: 800;
    line-height: 1.5;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px clamp(20px, 6vw, 92px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #050d12;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--green);
    font-weight: 800;
}

.contact-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    background: transparent;
}

@media (max-width: 1100px) {
    html {
        scroll-snap-type: none;
        scroll-padding-top: 66px;
    }

    main > .hero,
    main > .section,
    main > .contact {
        min-height: auto;
    }

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

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

    .business-layout,
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .contact-main {
        grid-template-columns: 1fr;
    }

}

@media (min-width: 821px) {
    main > .hero {
        min-height: 100vh;
    }

    .business,
    .solutions,
    .cases,
    .clients {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .business .section-heading,
    .solutions .section-heading,
    .cases .section-heading,
    .clients .section-heading {
        margin-bottom: 28px;
    }
}

@media (max-width: 820px) {
    .site-header {
        height: 66px;
        padding: 0 18px;
    }

    .brand img {
        width: auto;
        height: 42px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: 66px 0 auto 0;
        display: none;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 10px 18px 22px;
        border-bottom: 1px solid var(--line);
        background: rgba(5, 13, 18, 0.96);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero {
        min-height: auto;
        padding-top: 118px;
    }

    .hero-stats,
    .case-summary,
    .business-list,
    .company-table {
        grid-template-columns: 1fr;
    }

    .hero-stats div {
        min-height: auto;
    }

    .capability-grid,
    .solution-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }

    .contact-main {
        grid-template-columns: 1fr;
    }

    .solution-grid .featured {
        grid-column: auto;
    }

    .example-carousel {
        grid-template-columns: 1fr;
    }

    .example-media {
        min-height: 320px;
    }

    .example-content {
        min-height: auto;
    }

    .example-controls {
        grid-template-columns: 1fr;
    }

    .example-button {
        width: 100%;
    }

    .company-table div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 520px) {
    h1 {
        font-size: 48px;
    }

    .hero-copy {
        font-size: 21px;
        line-height: 1.45;
    }

    .hero-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .section,
    .contact {
        padding-left: 16px;
        padding-right: 16px;
    }

    .capability-grid article,
    .solution-grid article,
    .case-grid article,
    .business-list article {
        padding: 22px;
    }

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