:root {
    --ink: #16181d;
    --muted: #68707c;
    --soft: #f4f6f8;
    --panel: #ffffff;
    --line: rgba(22, 24, 29, 0.12);
    --deep: #112a2f;
    --teal: #0f8f8a;
    --blue: #2764d8;
    --red: #df3f32;
    --amber: #c9891a;
    --shadow: 0 24px 70px rgba(26, 34, 46, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fbfcfd;
    font-family: "Inter", system-ui, sans-serif;
    overflow-x: hidden;
}

body.lang-ko {
    word-break: keep-all;
    font-family: "Inter", "Noto Sans KR", system-ui, sans-serif;
}

a {
    color: inherit;
}

svg {
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 0 clamp(20px, 5vw, 64px);
    border-bottom: 1px solid rgba(22, 24, 29, 0.08);
    background: rgba(251, 252, 253, 0.86);
    backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-link,
.header-actions,
.language-switch,
.hero-actions,
.text-link {
    display: inline-flex;
    align-items: center;
}

.brand {
    gap: 12px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--deep);
}

.site-nav {
    gap: clamp(18px, 3vw, 34px);
}

.site-nav a,
.header-link,
.text-link {
    color: #313741;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.text-link:hover {
    color: var(--blue);
}

.header-link {
    gap: 9px;
    justify-content: center;
    width: 42px;
    min-height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.header-actions {
    gap: 10px;
}

.language-switch {
    min-height: 40px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 32px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.language-switch a.active {
    color: #fff;
    background: var(--deep);
}

.header-link svg {
    width: 18px;
    fill: var(--red);
}

main {
    width: 100%;
}

section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    align-items: center;
    gap: clamp(42px, 7vw, 90px);
    min-height: calc(100vh - 72px);
    padding: clamp(54px, 8vw, 108px) 0 72px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--teal);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 24px;
    font-size: clamp(3.4rem, 7vw, 6.9rem);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 4.8vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    line-height: 1.25;
}

p {
    color: var(--muted);
    line-height: 1.72;
}

.hero-lede {
    max-width: 660px;
    margin-bottom: 34px;
    font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}

.hero-benchmark {
    display: grid;
    gap: 14px;
    max-width: 660px;
    padding: 18px;
    border: 1px solid rgba(15, 143, 138, 0.28);
    border-radius: 8px;
    background: rgba(15, 143, 138, 0.08);
}

.hero-benchmark strong {
    color: var(--deep);
    font-size: clamp(1.08rem, 1.8vw, 1.32rem);
    line-height: 1.45;
}

.hero-benchmark dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.hero-benchmark div {
    padding: 12px;
    border: 1px solid rgba(22, 24, 29, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-benchmark dt {
    margin-bottom: 4px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-benchmark dd {
    margin: 0;
    color: #313741;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.35;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.primary-action {
    color: #fff;
    background: var(--blue);
}

.secondary-action {
    border: 1px solid var(--line);
    background: var(--panel);
}

.primary-action:hover,
.secondary-action:hover,
.header-link:hover {
    transform: translateY(-1px);
}

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

.hero-stats div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.hero-stats dt {
    margin-bottom: 6px;
    color: var(--deep);
    font-size: 1.42rem;
    font-weight: 800;
}

.hero-stats dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-visual {
    border: 1px solid rgba(22, 24, 29, 0.14);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.viewport-chrome {
    display: flex;
    gap: 7px;
    align-items: center;
    height: 42px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(22, 24, 29, 0.1);
    background: #f1f4f7;
}

.viewport-chrome span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9aa4b2;
}

.viewport-chrome span:first-child {
    background: var(--red);
}

.viewport-chrome span:nth-child(2) {
    background: var(--amber);
}

.viewport-chrome span:nth-child(3) {
    background: var(--teal);
}

.scan-viewport {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(17, 42, 47, 0.12), rgba(17, 42, 47, 0)),
        #10242a;
}

.scan-viewport::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 54%, transparent 0 38%, rgba(5, 13, 17, 0.34) 78%);
    pointer-events: none;
}

.scan-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
    background-size: 42px 42px;
    transform: perspective(460px) rotateX(62deg) translateY(60px) scale(1.4);
    transform-origin: bottom center;
}

.gaussian-field,
.point-field {
    position: absolute;
    inset: 0;
}

.gaussian-field {
    z-index: 1;
}

.gaussian-field span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--w);
    height: var(--h);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.86) 0 5%, rgba(98, 211, 204, 0.58) 16%, rgba(39, 100, 216, 0.22) 48%, transparent 72%);
    box-shadow:
        0 0 26px rgba(98, 211, 204, 0.32),
        inset 0 0 16px rgba(255, 255, 255, 0.18);
    filter: blur(0.2px);
    opacity: 0.86;
    transform: translate(-50%, -50%) rotate(var(--r));
}

.gaussian-field span:nth-child(2n) {
    background:
        radial-gradient(ellipse at 48% 50%, rgba(255, 244, 206, 0.84) 0 5%, rgba(231, 178, 77, 0.54) 17%, rgba(98, 211, 204, 0.2) 50%, transparent 74%);
}

.gaussian-field span:nth-child(3n) {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(242, 247, 255, 0.88) 0 5%, rgba(138, 179, 255, 0.58) 18%, rgba(223, 63, 50, 0.16) 52%, transparent 75%);
}

.gaussian-field span:last-child {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0 8%, rgba(98, 211, 204, 0.62) 22%, rgba(39, 100, 216, 0.34) 48%, transparent 74%);
    box-shadow:
        0 0 38px rgba(98, 211, 204, 0.48),
        0 0 76px rgba(39, 100, 216, 0.24);
    opacity: 0.92;
}

.point-field {
    z-index: 2;
}

.point-field span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: #58d7d0;
    box-shadow:
        0 0 10px rgba(88, 215, 208, 0.84),
        0 0 24px rgba(88, 215, 208, 0.28);
}

.point-field span:nth-child(3n) {
    background: #e7b24d;
    box-shadow: 0 0 16px rgba(231, 178, 77, 0.65);
}

.point-field span:nth-child(4n) {
    background: #8ab3ff;
    box-shadow: 0 0 16px rgba(138, 179, 255, 0.66);
}

.route-line {
    position: absolute;
    z-index: 0;
    left: 10%;
    right: 10%;
    bottom: 18%;
    height: 3px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent, rgba(246, 249, 252, 0.14) 8%, rgba(246, 249, 252, 0.52) 18%, rgba(246, 249, 252, 0.52) 82%, rgba(246, 249, 252, 0.14) 92%, transparent),
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(98, 211, 204, 0.7) 18px 24px);
    box-shadow: 0 0 18px rgba(246, 249, 252, 0.18);
    opacity: 0.58;
    transform: rotate(-12deg);
}

.mono {
    color: #79909a;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.problem-section,
.engine-section,
.workflow-section,
.usecase-section,
.gallery-section,
.about-section {
    padding: clamp(72px, 10vw, 128px) 0;
}

.section-heading {
    max-width: 880px;
    margin-bottom: 36px;
}

.section-heading.narrow {
    max-width: 720px;
}

.problem-grid,
.usecase-grid,
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.problem-grid article,
.usecase-grid article,
.video-card,
.engine-metrics div,
.workflow-steps li,
.contact-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(26, 34, 46, 0.05);
}

.problem-grid article,
.usecase-grid article,
.engine-metrics div {
    padding: 24px;
}

.card-index {
    display: block;
    margin-bottom: 26px;
    color: var(--blue);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    font-weight: 700;
}

.engine-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.split-copy {
    position: sticky;
    top: 104px;
}

.split-copy p:last-child {
    max-width: 560px;
    font-size: 1.06rem;
}

.engine-metrics {
    display: grid;
    gap: 14px;
}

.engine-metrics strong {
    display: block;
    margin: 14px 0 8px;
    font-size: 1.35rem;
}

.engine-metrics p {
    margin-bottom: 0;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.workflow-steps li {
    min-height: 245px;
    padding: 22px;
}

.step-number {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 58px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--deep);
    font-weight: 800;
}

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

.gallery-section {
    width: 100%;
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    background: #111820;
}

.gallery-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.gallery-header h2 {
    max-width: 780px;
    color: #fff;
}

.gallery-header p {
    color: #62d3cc;
}

.gallery-header .text-link {
    color: #fff;
}

.video-card {
    display: grid;
    gap: 14px;
    padding: 12px 12px 22px;
    color: #fff;
    background: #18212b;
    text-decoration: none;
    box-shadow: none;
}

.video-card p {
    margin: 0;
    padding: 0 8px;
    color: #b3bdc9;
}

.video-card strong {
    padding: 0 8px;
    font-size: 1.1rem;
}

.video-card:hover {
    transform: translateY(-3px);
}

.video-thumb {
    position: relative;
    display: block;
    min-height: 230px;
    overflow: hidden;
    border-radius: 6px;
    background: #0f171f;
}

.video-thumb::before,
.video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
}

.thumb-scan::before {
    background-image:
        radial-gradient(circle at 18% 62%, #67d8d0 0 2px, transparent 3px),
        radial-gradient(circle at 34% 48%, #e6b451 0 2px, transparent 3px),
        radial-gradient(circle at 52% 38%, #8ab3ff 0 2px, transparent 3px),
        radial-gradient(circle at 72% 56%, #67d8d0 0 2px, transparent 3px),
        linear-gradient(135deg, rgba(39, 100, 216, 0.24), transparent);
    background-size: 42px 42px, 46px 46px, 50px 50px, 44px 44px, auto;
}

.thumb-gs::before {
    background:
        conic-gradient(from 40deg at 50% 50%, rgba(98, 211, 204, 0.55), rgba(39, 100, 216, 0.42), rgba(223, 63, 50, 0.28), rgba(98, 211, 204, 0.55)),
        #101820;
    filter: saturate(1.2);
}

.thumb-mesh::before {
    background-image:
        linear-gradient(32deg, transparent 48%, rgba(98, 211, 204, 0.72) 49%, rgba(98, 211, 204, 0.72) 51%, transparent 52%),
        linear-gradient(148deg, transparent 48%, rgba(138, 179, 255, 0.72) 49%, rgba(138, 179, 255, 0.72) 51%, transparent 52%),
        linear-gradient(90deg, transparent 48%, rgba(231, 178, 77, 0.65) 49%, rgba(231, 178, 77, 0.65) 51%, transparent 52%);
    background-size: 72px 72px;
}

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
}

.play-icon::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 17px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid var(--red);
}

.about-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
    gap: clamp(32px, 8vw, 96px);
    align-items: start;
}

.about-section h2 {
    max-width: 820px;
}

.about-section p {
    max-width: 720px;
    font-size: 1.06rem;
}

.contact-panel {
    display: grid;
    gap: 14px;
    padding: 24px;
    font-style: normal;
}

.contact-panel strong {
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.45;
}

.contact-topics {
    display: grid;
    gap: 8px;
    margin: 2px 0 6px;
    padding: 0;
    list-style: none;
}

.contact-topics li {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #313741;
    background: var(--soft);
    font-size: 0.94rem;
    font-weight: 800;
}

.contact-panel a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.email-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.email-contact-link svg {
    width: 18px;
    flex: 0 0 18px;
    fill: var(--blue);
}

.social-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.social-contact-link svg {
    width: 19px;
    flex: 0 0 19px;
    fill: var(--red);
}

.social-contact-icons {
    display: flex;
    gap: 10px;
}

.contact-panel a:hover {
    color: var(--blue);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px clamp(20px, 5vw, 64px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

@media (max-width: 960px) {
    .site-nav {
        display: none;
    }

    .hero-section,
    .engine-section,
    .about-section {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
    }

    .split-copy {
        position: static;
    }

    .problem-grid,
    .video-grid,
    .usecase-grid,
    .workflow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 66px;
        padding: 0 16px;
    }

    .language-switch a {
        min-width: 34px;
    }

    section {
        width: min(100% - 32px, 1180px);
    }

    h1 {
        font-size: clamp(3rem, 15vw, 4.2rem);
    }

    h2 {
        font-size: clamp(2.1rem, 10vw, 3.2rem);
    }

    .hero-actions,
    .primary-action,
    .secondary-action {
        width: 100%;
    }

    .hero-stats,
    .hero-benchmark dl,
    .problem-grid,
    .video-grid,
    .usecase-grid,
    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .scan-viewport {
        min-height: 410px;
    }

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

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