:root {
    --ink: #0f172a;
    --muted: #475569;
    --soft: #f5f8fc;
    --surface: #ffffff;
    --line: #dbe5f2;
    --blue: #1167d8;
    --blue-dark: #0a4fa8;
    --coral: #f9735b;
    --teal: #0f766e;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: "Freesentation", "NotoSansKR", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    word-break: keep-all;
    overflow-x: hidden;
}

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

img,
video {
    max-width: 100%;
}

svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    transform: translateY(-140%);
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    min-height: 72px;
    padding: 12px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid rgba(219, 229, 242, 0.9);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
    max-width: 100vw;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand img {
    display: block;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.site-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.site-nav a:hover,
.site-nav a.active {
    background: #e8f1ff;
    color: var(--blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.direct-link,
.header-cta,
.btn,
.example-actions button,
.direct-panel button,
.choice-grid button {
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
}

.direct-link,
.header-cta,
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
}

.direct-link {
    border: 1px solid var(--line);
    color: var(--ink);
    background: #fff;
}

.header-cta,
.btn.primary {
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
}

.btn.primary:hover,
.header-cta:hover {
    background: var(--blue-dark);
}

.btn.secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.btn.ghost {
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn.text {
    min-height: auto;
    padding: 0;
    color: var(--blue);
}

.btn.full {
    width: 100%;
}

.nav-toggle {
    display: none;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
}

main {
    padding-top: 72px;
}

.hero {
    position: relative;
    min-height: calc(92svh - 72px);
    overflow: hidden;
    background: #0f172a;
}

.hero-video,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    object-fit: cover;
    object-position: center;
    opacity: 0.74;
    filter: saturate(0.92) contrast(1.05);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.76) 48%, rgba(15, 23, 42, 0.26) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.10) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 36px));
    min-height: calc(92svh - 72px);
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 72px 0 58px;
}

.hero-copy {
    max-width: 890px;
    color: #fff;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(42px, 6.4vw, 82px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: 0;
    text-wrap: balance;
}

.hero p {
    max-width: 780px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 920px;
    margin: 34px 0 0;
}

.hero-proof div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-proof dt {
    color: #93c5fd;
    font-size: 13px;
    font-weight: 900;
}

.hero-proof dd {
    margin: 5px 0 0;
    color: #fff;
    font-weight: 800;
}

.page-hero {
    background:
        linear-gradient(115deg, rgba(15, 23, 42, 0.96), rgba(17, 103, 216, 0.82)),
        url("/res/img/sweb-portfolio-reel.png") center / cover;
    color: #fff;
}

.page-hero-copy {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 116px 0 78px;
}

.page-hero p {
    max-width: 780px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 21px);
}

.section {
    padding: 90px 0;
}

.section.white {
    background: #fff;
}

.section.soft {
    background: var(--soft);
}

.section-head,
.flow-grid,
.service-grid,
.pricing-table,
.scope-grid,
.timeline,
.case-grid,
.contact-layout,
.research-note,
.faq-list,
.section-cta {
    width: min(1180px, calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
}

.section-head {
    max-width: 860px;
    margin-bottom: 38px;
    text-align: center;
}

.section-head h2,
.contact-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: 0;
    text-wrap: balance;
}

.section-head p,
.contact-copy p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.75;
}

.flow-grid,
.service-grid,
.pricing-table,
.case-grid,
.scope-grid {
    display: grid;
    gap: 18px;
}

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

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

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

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

.flow-card,
.service-card,
.price-card,
.case-card,
.scope-grid article,
.timeline li,
.quote-form,
.direct-panel,
.research-note,
.faq-list details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.flow-card,
.service-card,
.price-card,
.case-card,
.scope-grid article {
    padding: 26px;
}

.flow-card span,
.card-kicker,
.case-card span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.flow-card span {
    width: 46px;
    height: 46px;
    justify-content: center;
    border-radius: 8px;
    background: #e8f1ff;
}

.flow-card h3,
.service-card h3,
.price-card h3,
.case-card h3,
.scope-grid h3,
.timeline h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.32;
    font-weight: 900;
}

.flow-card p,
.service-card p,
.case-card p,
.scope-grid p,
.timeline p,
.price-card .fit,
.price-card .period {
    margin: 0;
    color: var(--muted);
}

.research-note {
    margin-top: 22px;
    padding: 20px 24px;
    background: #f8fbff;
}

.research-note p {
    margin: 0;
    color: #334155;
    font-weight: 700;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.service-card dl {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.service-card dt {
    color: var(--ink);
    font-weight: 900;
}

.service-card dd {
    margin: 4px 0 0;
    color: var(--muted);
}

.service-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--blue);
    font-weight: 900;
}

.price-card {
    display: flex;
    flex-direction: column;
    min-height: 390px;
}

.price {
    margin: 18px 0 4px;
    color: var(--blue);
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.price-card ul {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.price-card li {
    display: flex;
    gap: 8px;
    color: var(--ink);
    font-weight: 700;
}

.price-card .btn {
    margin-top: auto;
}

.section-cta {
    margin-top: 32px;
    text-align: center;
}

.timeline {
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: 70px minmax(160px, 260px) 1fr;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
}

.timeline span {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-weight: 900;
}

.case-card {
    min-height: 220px;
}

.contact-section {
    background: #0f172a;
    color: #fff;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
    gap: 32px;
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: 96px;
}

.contact-copy h2,
.contact-copy p {
    color: #fff;
}

.contact-copy p,
.quote-hints {
    color: rgba(255, 255, 255, 0.80);
}

.direct-panel {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.direct-panel a,
.direct-panel button {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 4px 10px;
    align-items: center;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-align: left;
}

.direct-panel button {
    grid-template-columns: 1fr;
    cursor: pointer;
}

.direct-panel strong {
    grid-column: 2;
}

.quote-hints {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding-left: 20px;
}

.quote-form {
    padding: clamp(22px, 4vw, 34px);
    background: #fff;
    color: var(--ink);
}

.form-status {
    display: none;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #e8f1ff;
    color: var(--blue-dark);
    font-weight: 800;
}

.form-status.show {
    display: block;
}

.form-status.error {
    background: #fff1f2;
    color: #be123c;
}

.quote-form fieldset {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.quote-form legend,
.quote-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.quote-form label {
    margin-bottom: 16px;
}

.choice-grid,
.feature-grid,
.example-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.choice-grid button,
.example-actions button {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.choice-grid button.active,
.choice-grid button:hover,
.example-actions button:hover {
    border-color: var(--blue);
    background: #e8f1ff;
    color: var(--blue);
}

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

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

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(17, 103, 216, 0.14);
}

.field-help {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.feature-grid label,
.consent-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.feature-grid input,
.consent-line input {
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.consent-line {
    margin: 18px 0;
}

.faq-list {
    display: grid;
    gap: 14px;
    max-width: 920px;
}

.faq-list details {
    padding: 0;
}

.faq-list summary {
    min-height: 60px;
    padding: 18px 22px;
    cursor: pointer;
    color: var(--ink);
    font-size: 19px;
    font-weight: 900;
}

.faq-list p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--muted);
}

.site-footer {
    padding: 62px clamp(18px, 4vw, 56px) 28px;
    background: #08111f;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.8fr 1fr;
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
}

.site-footer p {
    margin: 0 0 10px;
}

.site-footer a {
    display: block;
    margin: 0 0 10px;
    color: #e2e8f0;
    font-weight: 700;
}

.footer-brand {
    margin-bottom: 14px;
    color: #fff;
}

.copyright {
    max-width: 1180px;
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 14px;
}

.kakao-floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fee500;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.20);
}

.kakao-floating img {
    width: 34px;
    height: 34px;
}

@media (max-width: 1080px) {
    .site-header {
        grid-template-columns: auto auto 1fr;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .header-actions {
        justify-self: end;
    }

    .flow-grid,
    .service-grid,
    .pricing-table,
    .case-grid,
    .scope-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-copy {
        position: static;
    }
}

@media (max-width: 720px) {
    .site-header {
        min-height: 66px;
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 10px 14px;
    }

    .brand span {
        font-size: 17px;
    }

    .header-actions {
        grid-column: 1 / -1;
        width: calc(100vw - 28px);
        max-width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        justify-self: stretch;
        justify-content: stretch;
    }

    .direct-link,
    .header-cta {
        min-width: 0;
        width: 100%;
        padding: 0 10px;
        white-space: nowrap;
        font-size: 15px;
    }

    .nav-toggle {
        justify-self: end;
    }

    main {
        padding-top: 112px;
    }

    .hero,
    .hero-inner {
        min-height: calc(88svh - 112px);
    }

    .hero-inner {
        width: min(100% - 28px, 1180px);
        padding: 54px 0 38px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(35px, 11vw, 54px);
        overflow-wrap: anywhere;
    }

    .hero p {
        font-size: 17px;
    }

    .page-hero p,
    .section-head p,
    .contact-copy p,
    .quote-form,
    .service-card,
    .price-card,
    .case-card {
        overflow-wrap: anywhere;
    }

    .hero-actions,
    .hero-proof {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 66px 0;
    }

    .flow-grid,
    .service-grid,
    .pricing-table,
    .case-grid,
    .scope-grid,
    .contact-layout,
    .footer-grid,
    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .timeline li {
        grid-template-columns: 52px 1fr;
    }

    .timeline p {
        grid-column: 2;
    }

    .price-card {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
