:root {
    --ink: #132039;
    --ink-soft: #44506a;
    --muted: #6f7c94;
    --line: #dfe6f1;
    --line-strong: #cbd7e8;
    --surface: #ffffff;
    --surface-soft: #f5f8fc;
    --surface-blue: #eef5ff;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-soft: #dbeafe;
    --navy: #101b34;
    --mint: #0d9f7a;
    --yellow: #f5c451;
    --danger: #d14343;
    --shadow-sm: 0 8px 24px rgba(25, 46, 85, 0.07);
    --shadow-lg: 0 24px 70px rgba(25, 46, 85, 0.14);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #eef4ff;
    --ink-soft: #b5c1d6;
    --muted: #8492ab;
    --line: #28364c;
    --line-strong: #35455f;
    --surface: #0c1423;
    --surface-soft: #101a2c;
    --surface-blue: #172b4d;
    --blue: #79a6ff;
    --blue-dark: #5e91f6;
    --blue-soft: #1b3155;
    --navy: #08101e;
    --mint: #42d0a5;
    --danger: #ff8585;
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 28px 74px rgba(0, 0, 0, 0.34);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::selection,
body *::selection {
    color: #fff;
    background: var(--blue);
}

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

button,
input,
textarea,
select {
    color: inherit;
    font: inherit;
}

button,
select {
    cursor: pointer;
}

img {
    max-width: 100%;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.container.narrow {
    max-width: 920px;
}

.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;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #fff;
    background: var(--navy);
    border-radius: 8px;
    transform: translateY(-160%);
}

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

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(215, 225, 239, 0.9);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: linear-gradient(145deg, #1f63e9, #4b83f5);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.brand-mark span {
    position: absolute;
    display: block;
    border-radius: 3px;
    background: #fff;
}

.brand-mark .mark-t-top {
    top: 7px;
    left: 7px;
    width: 17px;
    height: 4px;
}

.brand-mark .mark-shared-stem {
    top: 7px;
    left: 13px;
    width: 4px;
    height: 24px;
}

.brand-mark .mark-h-stem {
    top: 12px;
    right: 7px;
    width: 4px;
    height: 19px;
}

.brand-mark .mark-h-stem::after {
    position: absolute;
    top: 7px;
    right: 0;
    width: 14px;
    height: 4px;
    border-radius: 3px;
    background: #fff;
    content: "";
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 19px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
}

.site-nav > a:not(.nav-cta) {
    padding-block: 25px;
    border-bottom: 2px solid transparent;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"] {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.site-nav .nav-cta {
    padding: 10px 17px;
    color: #fff;
    border-radius: 10px;
    background: var(--ink);
    box-shadow: 0 6px 16px rgba(19, 32, 57, 0.14);
}

.site-nav .nav-cta:hover {
    background: var(--blue);
}

.language-status {
    padding: 6px 9px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.theme-toggle {
    display: inline-flex;
    width: 37px;
    height: 37px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    transition: 160ms ease;
}

.theme-toggle:hover {
    color: var(--blue);
    border-color: var(--line-strong);
    background: var(--surface-blue);
}

.theme-icon {
    font-size: 16px;
    line-height: 1;
}

.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: inline;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.mobile-menu-button span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--ink);
}

.messages {
    position: relative;
    z-index: 20;
    margin-top: 18px;
}

.message {
    padding: 14px 17px;
    border: 1px solid #a9e4d3;
    color: #087456;
    border-radius: var(--radius-sm);
    background: #ecfdf7;
    box-shadow: var(--shadow-sm);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 17px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.eyebrow > span {
    width: 22px;
    height: 2px;
    background: var(--blue);
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 21px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    transition: 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

.button-primary {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.button-primary:hover {
    background: var(--blue-dark);
}

.button-secondary {
    color: var(--ink);
    border-color: var(--line-strong);
    background: #fff;
}

.button-secondary:hover {
    border-color: #9eb5d8;
    background: var(--surface-blue);
}

.button-dark {
    color: #fff;
    background: var(--navy);
}

.button-light {
    color: var(--navy);
    background: #fff;
}

.button-full {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.text-link span {
    transition: transform 150ms ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 94px 0 108px;
    background:
        radial-gradient(circle at 8% 12%, rgba(37, 99, 235, 0.09), transparent 27%),
        radial-gradient(circle at 88% 18%, rgba(245, 196, 81, 0.12), transparent 20%),
        linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
}

.hero::after {
    position: absolute;
    right: -120px;
    bottom: -170px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(37, 99, 235, 0.09);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 70px rgba(37, 99, 235, 0.025),
        0 0 0 140px rgba(37, 99, 235, 0.018);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 84px;
}

.hero-copy h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(56px, 6vw, 82px);
    font-weight: 880;
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.hero-copy h1 em {
    position: relative;
    color: var(--blue);
    font-style: normal;
}

.hero-copy h1 em::after {
    position: absolute;
    right: 1px;
    bottom: 0;
    left: 3px;
    height: 8px;
    border-radius: 8px;
    background: rgba(245, 196, 81, 0.7);
    content: "";
    transform: rotate(-1.5deg);
}

.hero-description {
    max-width: 570px;
    margin: 29px 0 0;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: -0.02em;
}

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

.hero-checks {
    display: flex;
    padding: 0;
    margin: 29px 0 0;
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    list-style: none;
}

.hero-checks span {
    color: var(--mint);
}

.hero-console {
    position: relative;
    min-height: 430px;
    border: 1px solid rgba(199, 214, 235, 0.88);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.console-topbar {
    display: grid;
    min-height: 51px;
    padding: 0 17px;
    align-items: center;
    grid-template-columns: 1fr auto 1fr;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f17575;
}

.console-dots i:nth-child(2) {
    background: #f2c35e;
}

.console-dots i:nth-child(3) {
    background: #56c89a;
}

.console-secure {
    justify-self: end;
    color: var(--mint);
    font-weight: 800;
}

.console-body {
    padding: 28px;
}

.console-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.tool-icon,
.tool-card-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    border: 1px solid #cfe0fb;
    border-radius: 13px;
    background: var(--surface-blue);
    font-family: Consolas, "Courier New", monospace;
    font-size: 15px;
    font-weight: 800;
}

.console-heading div {
    display: flex;
    flex-direction: column;
}

.console-heading strong {
    font-size: 16px;
}

.console-heading small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.console-code {
    display: flex;
    min-height: 228px;
    padding: 23px;
    margin-top: 22px;
    flex-direction: column;
    color: #b5c7e5;
    border: 1px solid #263552;
    border-radius: 14px;
    background: #111b31;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.9;
}

.console-code b {
    color: #7dd3fc;
    font-weight: 500;
}

.console-status {
    display: flex;
    margin-top: 18px;
    align-items: center;
    justify-content: space-between;
    color: var(--mint);
    font-size: 12px;
    font-weight: 800;
}

.console-status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 5px rgba(13, 159, 122, 0.1);
}

.console-status button {
    padding: 7px 11px;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 11px;
}

.floating-note {
    position: absolute;
    display: flex;
    min-width: 175px;
    padding: 12px 14px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(202, 216, 235, 0.95);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(31, 53, 92, 0.13);
}

.floating-note > span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    border-radius: 9px;
    background: var(--surface-blue);
    font-weight: 900;
}

.floating-note div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.floating-note strong {
    font-size: 12px;
}

.floating-note small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.note-local {
    top: 90px;
    right: -66px;
}

.note-ready {
    bottom: 47px;
    left: -72px;
}

.trust-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trust-grid > div {
    display: grid;
    min-height: 118px;
    padding: 25px 30px;
    align-content: center;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
}

.trust-grid > div + div {
    border-left: 1px solid var(--line);
}

.trust-grid span {
    grid-row: span 2;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.trust-grid strong {
    font-size: 15px;
}

.trust-grid small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.section {
    padding: 110px 0;
}

.section-heading {
    display: flex;
    margin-bottom: 38px;
    align-items: end;
    justify-content: space-between;
}

.section-heading .eyebrow {
    margin-bottom: 10px;
}

.section-heading h2,
.principle-copy h2,
.faq-layout h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.18;
    letter-spacing: -0.05em;
}

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

.featured-tool {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.featured-tool-main {
    display: grid;
    min-height: 245px;
    padding: 42px 46px;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    gap: 25px;
}

.featured-tool-main .tool-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 20px;
}

.category-label,
.section-kicker {
    display: inline-flex;
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-tool h3 {
    margin: 5px 0 8px;
    font-size: 29px;
    letter-spacing: -0.045em;
}

.featured-tool-main p {
    max-width: 620px;
    margin: 0;
    color: var(--ink-soft);
}

.featured-tool-points {
    display: grid;
    border-top: 1px solid var(--line);
    background: #fbfcfe;
    grid-template-columns: repeat(3, 1fr);
}

.featured-tool-points > div {
    display: grid;
    min-height: 108px;
    padding: 26px 34px;
    align-content: center;
    grid-template-columns: auto 1fr;
    column-gap: 13px;
}

.featured-tool-points > div + div {
    border-left: 1px solid var(--line);
}

.featured-tool-points > div > span {
    grid-row: span 2;
    color: var(--blue);
    font-size: 18px;
}

.featured-tool-points strong {
    font-size: 13px;
}

.featured-tool-points small {
    color: var(--muted);
    font-size: 11px;
}

.home-tool-grid {
    display: grid;
    margin-top: 15px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.home-tool-grid > a {
    display: grid;
    min-height: 145px;
    padding: 24px;
    align-items: start;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: 160ms ease;
}

.home-tool-grid > a:hover {
    border-color: #afc3e1;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.home-tool-grid .tool-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 11px;
}

.home-tool-grid div > span {
    color: var(--blue);
    font-size: 9px;
    font-weight: 850;
}

.home-tool-grid strong {
    display: block;
    margin-top: 2px;
    font-size: 13px;
}

.home-tool-grid p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.home-tool-grid i {
    color: var(--blue);
    font-style: normal;
}

.principle-grid {
    display: grid;
    align-items: start;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.principle-copy {
    position: sticky;
    top: 115px;
}

.principle-copy > p:not(.eyebrow) {
    margin: 25px 0;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.8;
}

.principle-cards {
    display: grid;
    gap: 14px;
}

.principle-cards article {
    position: relative;
    min-height: 168px;
    padding: 34px 35px 30px 98px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    transition: 160ms ease;
}

.principle-cards article:hover {
    border-color: #b8c9e2;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.principle-number {
    position: absolute;
    top: 35px;
    left: 35px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.principle-cards h3 {
    margin: 0 0 8px;
    font-size: 21px;
    letter-spacing: -0.03em;
}

.principle-cards p {
    margin: 0;
    color: var(--ink-soft);
}

.faq-section {
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 100px;
}

.faq-layout > div:first-child > p:not(.eyebrow) {
    color: var(--ink-soft);
}

.faq-list {
    border-top: 1px solid var(--line-strong);
}

.faq-list details {
    border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
    position: relative;
    padding: 23px 46px 23px 0;
    font-size: 16px;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    position: absolute;
    top: 22px;
    right: 6px;
    color: var(--blue);
    content: "+";
    font-size: 22px;
    font-weight: 400;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    padding: 0 42px 22px 0;
    margin: 0;
    color: var(--ink-soft);
}

.closing-cta {
    padding: 78px 0;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(67, 126, 255, 0.5), transparent 25%),
        var(--navy);
}

.closing-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.closing-inner > div > span {
    color: #8db4ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.closing-inner h2 {
    margin: 10px 0 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.16;
    letter-spacing: -0.05em;
}

.site-footer {
    padding: 69px 0 25px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-grid {
    display: grid;
    padding-bottom: 54px;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 50px;
}

.footer-brand p {
    max-width: 340px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.brand-footer .brand-mark {
    width: 34px;
    height: 34px;
}

.footer-grid > div:not(.footer-brand) {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-grid h2 {
    margin: 0 0 8px;
    font-size: 13px;
}

.footer-grid > div:not(.footer-brand) a {
    color: var(--muted);
    font-size: 12px;
}

.footer-grid > div:not(.footer-brand) a:hover {
    color: var(--blue);
}

.footer-bottom {
    display: flex;
    padding-top: 21px;
    justify-content: space-between;
    color: #8993a7;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

/* Inner pages */
.page-hero {
    padding: 100px 0 90px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0, rgba(37, 99, 235, 0.08), transparent 42%),
        var(--surface-soft);
}

.page-hero.compact {
    padding: 78px 0 68px;
}

.page-hero .eyebrow {
    justify-content: center;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(45px, 6vw, 68px);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.page-hero.compact h1 {
    font-size: clamp(40px, 5vw, 58px);
}

.page-hero > .container > p:not(.eyebrow) {
    max-width: 690px;
    margin: 24px auto 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.content-page {
    padding: 90px 0 120px;
}

.content-grid {
    display: grid;
    grid-template-columns: 230px minmax(0, 760px);
    gap: 92px;
    justify-content: center;
}

.content-aside {
    position: sticky;
    top: 115px;
    display: flex;
    height: fit-content;
    padding-left: 18px;
    flex-direction: column;
    border-left: 3px solid var(--blue);
}

.content-aside span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.content-aside strong {
    margin-top: 5px;
    font-size: 17px;
}

.content-aside small {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}

.prose h2 {
    margin: 48px 0 14px;
    font-size: 27px;
    letter-spacing: -0.04em;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.9;
}

.prose a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose-callout {
    padding: 27px 30px;
    margin-top: 40px;
    border: 1px solid #cfe0fb;
    border-radius: var(--radius-md);
    background: var(--surface-blue);
}

.prose-callout p {
    margin: 7px 0 0;
}

.policy-prose h2 {
    font-size: 22px;
}

.contact-section {
    padding: 80px 0 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.contact-guide {
    padding: 37px;
    border-radius: var(--radius-lg);
    background: var(--navy);
    color: #fff;
}

.contact-guide h2 {
    margin: 0 0 30px;
    font-size: 25px;
}

.contact-guide ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.contact-guide li {
    display: grid;
    padding: 25px 0;
    grid-template-columns: 38px 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.contact-guide li > span {
    color: #79a6ff;
    font-size: 11px;
    font-weight: 850;
}

.contact-guide strong {
    font-size: 15px;
}

.contact-guide p {
    margin: 7px 0 0;
    color: #afbdd5;
    font-size: 13px;
}

.contact-form {
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.form-row.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field textarea {
    resize: vertical;
}

.checkbox-field {
    display: flex;
    margin: 4px 0 22px;
    align-items: flex-start;
    gap: 9px;
    color: var(--ink-soft);
    font-size: 12px;
}

.checkbox-field input {
    margin-top: 4px;
    accent-color: var(--blue);
}

.errorlist,
.form-errors {
    padding: 0;
    margin: 7px 0;
    color: var(--danger);
    font-size: 12px;
    list-style: none;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.tool-search {
    display: flex;
    width: min(100%, 680px);
    min-height: 58px;
    padding: 0 17px;
    margin: 37px auto 0;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.tool-search > span {
    color: var(--blue);
    font-size: 23px;
}

.tool-search input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
}

.tool-search kbd,
.keyboard-hint kbd {
    padding: 2px 7px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: #fff;
    font-size: 10px;
}

.tool-library {
    min-height: 440px;
}

.tool-category + .tool-category {
    margin-top: 70px;
}

.category-heading {
    display: flex;
    margin-bottom: 20px;
    align-items: end;
    justify-content: space-between;
}

.category-heading span {
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.category-heading h2 {
    margin: 3px 0 0;
    font-size: 29px;
}

.category-heading p {
    color: var(--muted);
    font-size: 12px;
}

.tool-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.tool-card {
    position: relative;
    display: grid;
    min-height: 145px;
    padding: 27px;
    align-items: start;
    grid-template-columns: auto 1fr auto;
    gap: 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    transition: 160ms ease;
}

.tool-card:hover {
    border-color: #afc3e1;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.tool-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    letter-spacing: -0.025em;
}

.tool-card h3 a::after {
    position: absolute;
    inset: 0;
    content: "";
}

.tool-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.usage-badge {
    display: inline-flex;
    padding: 4px 8px;
    margin-top: 11px;
    color: var(--blue);
    border: 1px solid #cfe0fb;
    border-radius: 7px;
    background: var(--surface-blue);
    font-size: 10px;
    font-weight: 800;
}

.tool-card-arrow {
    color: var(--blue);
    font-size: 19px;
}

.empty-search {
    padding: 60px 0;
    color: var(--muted);
    text-align: center;
}

.error-page {
    min-height: 620px;
    padding: 130px 0;
    text-align: center;
    background: var(--surface-soft);
}

.error-page span {
    color: var(--blue);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.error-page h1 {
    margin: 15px 0 10px;
    font-size: 42px;
    letter-spacing: -0.05em;
}

.error-page p {
    margin: 0 0 27px;
    color: var(--muted);
}

/* Tool workspace */
.tool-page-header {
    padding: 36px 0 30px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
}

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

.tool-title-row {
    display: flex;
    margin-top: 30px;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.tool-title-row h1 {
    margin: 7px 0 6px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.tool-title-row p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
}

.tool-trust-badges {
    display: flex;
    padding-bottom: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.tool-trust-badges span {
    padding: 7px 10px;
    color: #38517d;
    border: 1px solid #cfe0fb;
    border-radius: 8px;
    background: var(--surface-blue);
    font-size: 10px;
    font-weight: 800;
}

.tool-trust-badges i {
    color: var(--blue);
    font-style: normal;
}

.tool-workspace-section {
    padding: 35px 0 50px;
    background: var(--surface-soft);
}

.tool-workspace {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.workspace-toolbar {
    display: flex;
    min-height: 66px;
    padding: 12px 18px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.indent-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.indent-control label {
    font-size: 12px;
    font-weight: 800;
}

.indent-control select {
    padding: 8px 31px 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    font-size: 11px;
}

.workspace-actions {
    display: flex;
    gap: 6px;
}

.subtle-button,
.copy-button {
    padding: 8px 11px;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 11px;
    font-weight: 750;
}

.subtle-button:hover,
.copy-button:hover:not(:disabled) {
    color: var(--blue);
    border-color: #a9c2e8;
    background: var(--surface-blue);
}

.copy-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.editor-grid {
    display: grid;
    padding: 20px;
    grid-template-columns: 1fr 38px 1fr;
}

.editor-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fbfcfe;
}

.editor-heading {
    display: flex;
    min-height: 48px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.editor-heading > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-heading strong {
    font-size: 12px;
}

.editor-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.input-dot {
    background: var(--blue);
}

.output-dot {
    background: var(--mint);
}

.character-count {
    color: var(--muted);
    font-size: 10px;
}

.editor-panel textarea {
    display: block;
    width: 100%;
    min-height: 330px;
    padding: 18px;
    resize: vertical;
    color: #243655;
    border: 0;
    background: #fbfcfe;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.75;
    outline: none;
    tab-size: 2;
}

.editor-panel textarea:focus {
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.editor-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8da0bd;
}

.workspace-footer {
    display: flex;
    min-height: 80px;
    padding: 15px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
}

.validation-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
}

.status-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf1f7;
    font-size: 11px;
    font-weight: 900;
}

.validation-status.success {
    color: #087456;
}

.validation-status.success .status-icon {
    background: #ddf8ee;
}

.validation-status.error {
    color: var(--danger);
}

.validation-status.error .status-icon {
    background: #fde7e7;
}

.primary-tool-actions {
    display: flex;
    gap: 8px;
}

.primary-tool-actions .button {
    min-height: 43px;
    font-size: 12px;
}

.keyboard-hint {
    padding: 0 20px 16px;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    text-align: right;
}

.tool-guide {
    padding: 90px 0 120px;
}

.guide-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 72px;
}

.guide-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    height: fit-content;
    flex-direction: column;
    gap: 13px;
}

.guide-sidebar-card,
.privacy-mini-card {
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.guide-sidebar-card {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.guide-sidebar-card strong {
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.guide-sidebar-card a {
    color: var(--muted);
    font-size: 11px;
}

.guide-sidebar-card a:hover {
    color: var(--blue);
}

.privacy-mini-card {
    background: #effbf7;
    border-color: #bce8d9;
}

.privacy-mini-card > span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    margin-bottom: 11px;
    align-items: center;
    justify-content: center;
    color: #087456;
    border-radius: 9px;
    background: #d9f6ec;
}

.privacy-mini-card strong {
    display: block;
    font-size: 12px;
}

.privacy-mini-card p {
    margin: 7px 0 12px;
    color: #477064;
    font-size: 10px;
}

.privacy-mini-card a {
    color: #087456;
    font-size: 10px;
    font-weight: 800;
}

.guide-content {
    min-width: 0;
}

.guide-intro {
    padding-bottom: 67px;
    border-bottom: 1px solid var(--line);
}

.guide-intro h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.18;
    letter-spacing: -0.055em;
}

.guide-intro > p:last-child {
    max-width: 760px;
    margin: 23px 0 0;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.9;
}

.guide-section {
    padding: 70px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 100px;
}

.guide-section-heading {
    display: flex;
    margin-bottom: 28px;
    gap: 18px;
}

.guide-section-heading > span {
    padding-top: 6px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
}

.guide-section-heading h2,
.split-guide h2,
.workflow-section h2 {
    margin: 0;
    font-size: 29px;
    letter-spacing: -0.045em;
}

.guide-section-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.steps-grid {
    display: grid;
    padding: 0;
    margin: 0;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    list-style: none;
    overflow: hidden;
}

.steps-grid li {
    min-height: 180px;
    padding: 25px;
}

.steps-grid li + li {
    border-left: 1px solid var(--line);
}

.steps-grid li > span {
    display: inline-flex;
    width: 25px;
    height: 25px;
    margin-bottom: 26px;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    border-radius: 50%;
    background: var(--surface-blue);
    font-size: 10px;
    font-weight: 900;
}

.steps-grid strong {
    display: block;
    font-size: 13px;
}

.steps-grid p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.split-guide {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.split-guide > div:first-child > p {
    color: var(--ink-soft);
    font-size: 14px;
}

.split-guide h2 {
    margin: 8px 0 15px;
}

.check-list {
    display: flex;
    flex-direction: column;
}

.check-list > div {
    display: grid;
    padding: 20px 0;
    grid-template-columns: 28px 1fr;
    border-top: 1px solid var(--line);
}

.check-list > div > span {
    color: var(--mint);
    font-weight: 900;
}

.check-list p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.check-list strong {
    display: block;
    color: var(--ink);
}

code {
    padding: 2px 5px;
    color: #315991;
    border-radius: 5px;
    background: var(--surface-blue);
    font-family: Consolas, monospace;
    font-size: 0.9em;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.use-case-grid article {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.use-case-grid article > span {
    display: inline-flex;
    min-width: 35px;
    height: 25px;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    border-radius: 6px;
    background: var(--surface-blue);
    font-family: Consolas, monospace;
    font-size: 9px;
    font-weight: 900;
}

.use-case-grid h3 {
    margin: 20px 0 7px;
    font-size: 16px;
}

.use-case-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.workflow-section {
    padding-top: 70px;
}

.workflow-section h2 {
    margin: 8px 0 24px;
}

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

.workflow-row > div {
    display: grid;
    min-height: 100px;
    padding: 19px;
    align-content: center;
    grid-template-columns: 27px 1fr;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.workflow-row > div.active {
    border-color: #a9c6f2;
    background: var(--surface-blue);
}

.workflow-row > div > span {
    grid-row: span 2;
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
}

.workflow-row strong {
    font-size: 12px;
}

.workflow-row small {
    color: var(--muted);
    font-size: 9px;
}

.workflow-row > i {
    color: #91a0b8;
    font-style: normal;
}

/* Browser utility workspaces */
.utility-options {
    flex-wrap: wrap;
}

.toolbar-label {
    font-size: 12px;
    font-weight: 800;
}

.utility-options > strong {
    padding: 5px 8px;
    color: var(--blue);
    border-radius: 6px;
    background: var(--surface-blue);
    font-size: 10px;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
}

.inline-check input {
    accent-color: var(--blue);
}

.counter-layout {
    display: grid;
    padding: 20px;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 16px;
}

.counter-layout .editor-panel textarea {
    min-height: 375px;
}

.tool-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tool-metric-grid article {
    display: flex;
    min-height: 115px;
    padding: 18px;
    justify-content: center;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-soft);
}

.tool-metric-grid span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.tool-metric-grid strong {
    margin-top: 5px;
    color: var(--blue);
    font-size: 29px;
    line-height: 1.1;
}

.tool-metric-grid small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.timestamp-layout {
    display: grid;
    padding: 20px;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 14px;
}

.timestamp-live-card,
.timestamp-input-card,
.timestamp-results {
    border: 1px solid var(--line);
    border-radius: 14px;
}

.timestamp-live-card {
    display: flex;
    min-height: 168px;
    padding: 25px;
    justify-content: center;
    flex-direction: column;
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 15%, rgba(111, 161, 255, 0.42), transparent 35%),
        var(--navy);
}

.timestamp-live-card span {
    color: #9ebcf8;
    font-size: 10px;
    font-weight: 800;
}

.timestamp-live-card strong {
    margin-top: 8px;
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(27px, 4vw, 40px);
    line-height: 1.1;
}

.timestamp-live-card small {
    margin-top: 11px;
    color: #aebbd1;
    font-size: 10px;
}

.timestamp-input-card {
    padding: 25px;
    background: var(--surface-soft);
}

.timestamp-input-card > label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
}

.timestamp-input-card > div {
    display: flex;
    gap: 8px;
}

.timestamp-input-card input {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    outline: none;
}

.timestamp-input-card input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.timestamp-input-card p {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.timestamp-results {
    display: grid;
    padding: 10px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
    background: var(--surface);
}

.timestamp-results article {
    min-width: 0;
    padding: 17px;
}

.timestamp-results article:nth-child(even) {
    border-left: 1px solid var(--line);
}

.timestamp-results article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
}

.timestamp-results .span-2 {
    grid-column: 1 / -1;
    border-left: 0 !important;
}

.timestamp-results span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.timestamp-results strong {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.uuid-layout {
    padding: 20px;
}

.uuid-intro-card {
    display: grid;
    padding: 24px;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    gap: 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
}

.uuid-intro-card strong {
    font-size: 16px;
}

.uuid-intro-card p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.uuid-output-panel {
    margin-top: 14px;
}

.uuid-output-panel textarea {
    min-height: 285px;
}

.workspace-note {
    color: var(--muted);
    font-size: 10px;
}

.related-tools-section {
    padding-top: 70px;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

.related-tools-grid > a {
    display: grid;
    min-width: 0;
    padding: 20px;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: 160ms ease;
}

.related-tools-grid > a:hover {
    border-color: #a9c2e8;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.related-tools-grid .tool-card-icon {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    font-size: 11px;
}

.related-tools-grid strong {
    display: block;
    font-size: 11px;
}

.related-tools-grid p {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-tools-grid i {
    color: var(--blue);
    font-style: normal;
}

/* Site popup */
.popup-open {
    overflow: hidden;
}

.site-popup[hidden] {
    display: none;
}

.site-popup {
    position: fixed;
    z-index: 500;
    inset: 0;
}

.popup-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(6, 13, 26, 0.58);
    backdrop-filter: blur(3px);
}

.popup-panel {
    position: absolute;
    right: 50%;
    bottom: 50%;
    width: min(calc(100% - 32px), 520px);
    padding: 34px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translate(50%, 50%);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 16px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border: 0;
    border-radius: 9px;
    background: var(--surface-soft);
    font-size: 23px;
    line-height: 1;
}

.popup-close:hover {
    color: var(--blue);
    background: var(--surface-blue);
}

.popup-badge {
    display: inline-flex;
    padding: 5px 9px;
    margin-bottom: 14px;
    color: var(--blue);
    border-radius: 7px;
    background: var(--surface-blue);
    font-size: 10px;
    font-weight: 850;
}

.popup-panel h2 {
    padding-right: 34px;
    margin: 0;
    font-size: 27px;
    letter-spacing: -0.04em;
}

.popup-body {
    margin-top: 13px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.8;
}

.popup-actions {
    display: flex;
    margin-top: 25px;
    justify-content: flex-end;
    gap: 8px;
}

.site-popup-banner {
    pointer-events: none;
}

.site-popup-banner .popup-panel {
    right: 24px;
    bottom: 24px;
    width: min(calc(100% - 32px), 480px);
    padding: 26px 28px;
    pointer-events: auto;
    transform: none;
}

/* Public dark mode */
[data-theme="dark"] .site-header {
    border-bottom-color: rgba(40, 54, 76, 0.92);
    background: rgba(12, 20, 35, 0.92);
}

[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at 8% 12%, rgba(85, 139, 255, 0.13), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(245, 196, 81, 0.07), transparent 21%),
        linear-gradient(180deg, #0d1728 0%, #101a2c 100%);
}

[data-theme="dark"] .hero-copy h1 {
    color: var(--ink);
}

[data-theme="dark"] .site-nav .nav-cta {
    color: #ffffff;
    background: var(--blue-dark);
}

[data-theme="dark"] .hero-console,
[data-theme="dark"] .floating-note,
[data-theme="dark"] .trust-band,
[data-theme="dark"] .featured-tool,
[data-theme="dark"] .principle-cards article,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .tool-search,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .tool-page-header,
[data-theme="dark"] .tool-workspace,
[data-theme="dark"] .guide-sidebar-card,
[data-theme="dark"] .use-case-grid article {
    background: var(--surface);
}

[data-theme="dark"] .floating-note {
    border-color: var(--line-strong);
}

[data-theme="dark"] .featured-tool-points,
[data-theme="dark"] .editor-panel,
[data-theme="dark"] .editor-panel textarea {
    background: #0e1829;
}

[data-theme="dark"] .button-secondary,
[data-theme="dark"] .mobile-menu-button,
[data-theme="dark"] .console-status button,
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .tool-search kbd,
[data-theme="dark"] .keyboard-hint kbd,
[data-theme="dark"] .indent-control select,
[data-theme="dark"] .subtle-button,
[data-theme="dark"] .copy-button,
[data-theme="dark"] .editor-heading {
    color: var(--ink);
    background: var(--surface);
}

[data-theme="dark"] .editor-panel textarea {
    color: #cad8ef;
}

[data-theme="dark"] .tool-trust-badges span {
    color: #aac5f6;
    border-color: #2c4972;
}

[data-theme="dark"] .usage-badge {
    border-color: #2c4972;
}

[data-theme="dark"] .tool-metric-grid article,
[data-theme="dark"] .timestamp-input-card,
[data-theme="dark"] .uuid-intro-card {
    background: #0e1829;
}

[data-theme="dark"] .timestamp-input-card input {
    background: var(--surface);
}

[data-theme="dark"] .privacy-mini-card {
    border-color: #245746;
    background: #102a25;
}

[data-theme="dark"] .privacy-mini-card > span {
    color: var(--mint);
    background: #173c33;
}

[data-theme="dark"] .privacy-mini-card p {
    color: #91baae;
}

[data-theme="dark"] .privacy-mini-card a {
    color: var(--mint);
}

[data-theme="dark"] .message {
    color: #72e6c2;
    border-color: #245f50;
    background: #102a25;
}

[data-theme="dark"] code {
    color: #a9c7ff;
}

@media (max-width: 1100px) {
    .hero-grid {
        gap: 45px;
    }

    .note-local {
        right: -25px;
    }

    .note-ready {
        left: -25px;
    }

    .guide-layout {
        gap: 35px;
    }

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

    .steps-grid li:nth-child(3) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .steps-grid li:nth-child(4) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 860px) {
    .site-header {
        position: relative;
    }

    .header-inner {
        position: relative;
        min-height: 68px;
    }

    .mobile-menu-button {
        display: block;
    }

    .site-nav {
        position: absolute;
        z-index: 10;
        top: 61px;
        right: 0;
        left: 0;
        display: none;
        padding: 15px;
        align-items: stretch;
        flex-direction: column;
        gap: 3px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow-lg);
    }

    .language-status {
        padding: 9px 11px;
        margin-top: 3px;
    }

    .theme-toggle {
        width: 100%;
        height: 42px;
        margin: 3px 0;
        justify-content: flex-start;
        padding-left: 11px;
    }

    [data-theme="dark"] .site-nav {
        background: var(--surface);
    }

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

    .site-nav > a:not(.nav-cta) {
        padding: 11px;
        border: 0;
    }

    .hero {
        padding: 69px 0 85px;
    }

    .hero-grid,
    .principle-grid,
    .faq-layout,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy .eyebrow,
    .hero-actions,
    .hero-checks {
        justify-content: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-console {
        width: min(100%, 620px);
        margin-inline: auto;
    }

    .note-local {
        right: -12px;
    }

    .note-ready {
        left: -12px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid > div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .principle-copy {
        position: static;
    }

    .featured-tool-main {
        grid-template-columns: auto 1fr;
    }

    .featured-tool-main .button {
        grid-column: 1 / -1;
    }

    .featured-tool-points {
        grid-template-columns: 1fr;
    }

    .home-tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-tool-points > div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-aside {
        position: static;
    }

    .tool-card-grid {
        grid-template-columns: 1fr;
    }

    .tool-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .tool-trust-badges {
        justify-content: flex-start;
    }

    .editor-grid {
        grid-template-columns: 1fr;
    }

    .editor-divider {
        height: 38px;
        transform: rotate(90deg);
    }

    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .split-guide {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .counter-layout {
        grid-template-columns: 1fr;
    }

    .timestamp-layout {
        grid-template-columns: 1fr;
    }

    .related-tools-grid {
        grid-template-columns: 1fr;
    }

    .site-popup-banner .popup-panel {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand-copy small {
        display: none;
    }

    .hero-copy h1 {
        font-size: 50px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions,
    .hero-checks {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-checks {
        gap: 8px;
    }

    .hero-console {
        min-height: 382px;
        transform: none;
    }

    .console-body {
        padding: 19px;
    }

    .console-code {
        min-height: 210px;
        padding: 16px;
        font-size: 11px;
    }

    .floating-note {
        display: none;
    }

    .section {
        padding: 78px 0;
    }

    .section-heading,
    .closing-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .featured-tool-main {
        padding: 29px 24px;
        grid-template-columns: 1fr;
    }

    .featured-tool-main .tool-card-icon {
        width: 58px;
        height: 58px;
    }

    .featured-tool-main h3 {
        font-size: 24px;
    }

    .home-tool-grid {
        grid-template-columns: 1fr;
    }

    .principle-cards article {
        padding: 29px 25px 25px 70px;
    }

    .principle-number {
        top: 30px;
        left: 25px;
    }

    .closing-cta {
        padding: 58px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }

    .page-hero,
    .page-hero.compact {
        padding: 65px 0 58px;
    }

    .page-hero h1,
    .page-hero.compact h1 {
        font-size: 40px;
    }

    .content-page,
    .contact-section {
        padding: 65px 0 80px;
    }

    .contact-form,
    .contact-guide {
        padding: 25px;
    }

    .form-row.two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tool-page-header {
        padding-top: 27px;
    }

    .tool-title-row h1 {
        font-size: 39px;
    }

    .workspace-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .workspace-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .utility-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .utility-options select {
        width: 100%;
    }

    .counter-layout,
    .uuid-layout,
    .timestamp-layout {
        padding: 12px;
    }

    .tool-metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tool-metric-grid article {
        min-height: 102px;
    }

    .timestamp-input-card > div {
        align-items: stretch;
        flex-direction: column;
    }

    .timestamp-input-card input {
        min-height: 48px;
    }

    .timestamp-results {
        grid-template-columns: 1fr;
    }

    .timestamp-results article,
    .timestamp-results article:nth-child(even),
    .timestamp-results .span-2 {
        grid-column: auto;
        border-top: 1px solid var(--line);
        border-left: 0 !important;
    }

    .timestamp-results article:first-child {
        border-top: 0;
    }

    .uuid-intro-card {
        align-items: stretch;
        grid-template-columns: auto 1fr;
    }

    .uuid-intro-card .button {
        grid-column: 1 / -1;
    }

    .subtle-button {
        padding-inline: 6px;
    }

    .editor-grid {
        padding: 12px;
    }

    .editor-panel textarea {
        min-height: 260px;
    }

    .workspace-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-tool-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .keyboard-hint {
        text-align: left;
    }

    .tool-guide {
        padding: 65px 0 85px;
    }

    .guide-sidebar {
        grid-template-columns: 1fr;
    }

    .guide-sidebar-card {
        display: none;
    }

    .guide-intro h2 {
        font-size: 35px;
    }

    .guide-section {
        padding: 55px 0;
    }

    .steps-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid li + li {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .use-case-grid {
        gap: 9px;
    }

    .workflow-row {
        grid-template-columns: 1fr;
    }

    .workflow-row > i {
        text-align: center;
        transform: rotate(90deg);
    }

    .popup-panel,
    .site-popup-banner .popup-panel {
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
        padding: 26px 22px;
        transform: none;
    }

    .site-popup-modal .popup-panel {
        right: 50%;
        bottom: 50%;
        transform: translate(50%, 50%);
    }

    .popup-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

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