:root {
    --bg: #07111a;
    --bg-elevated: rgba(13, 19, 31, 0.9);
    --surface: rgba(12, 18, 30, 0.76);
    --surface-strong: #0f1726;
    --line: rgba(173, 189, 224, 0.14);
    --line-strong: rgba(173, 189, 224, 0.22);
    --text: #f5f7fb;
    --muted: #93a0bb;
    --muted-strong: #b8c3db;
    --brand-a: #95a8ff;
    --brand-b: #58c8ff;
    --brand-c: #a7ffd8;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(149, 168, 255, 0.15), transparent 28%),
        radial-gradient(circle at top right, rgba(88, 200, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #101225 0%, #09111c 42%, #050b14 100%);
}

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

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

img {
    max-width: 100%;
}

.site-shell {
    position: relative;
    overflow-x: hidden;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.bg-orb-a {
    width: 34rem;
    height: 34rem;
    top: -7rem;
    left: -8rem;
    background: var(--brand-a);
}

.bg-orb-b {
    width: 30rem;
    height: 30rem;
    top: 1rem;
    right: -9rem;
    background: var(--brand-b);
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 0.35rem;
    z-index: 50;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

main {
    padding-top: 5.8rem;
}

.site-header.is-hidden {
    transform: translateY(-110%);
    opacity: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(7, 12, 22, 0.72);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    color: #09111a;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.nav-links a {
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.96rem;
    transition: 0.22s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
    display: none;
    width: 2.9rem;
    height: 2.9rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 1.2rem;
    height: 2px;
    margin: 0.28rem auto;
    background: currentColor;
}

.hero-section,
.page-hero {
    padding: 2.8rem 0 1.6rem;
}

.hero-section {
    min-height: calc(100vh - 5.5rem);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.centered-copy,
.hero-center,
.detail-hero,
.narrative-block {
    max-width: 60rem;
    margin: 0 auto;
    text-align: center;
}

.hero-center {
    padding: 1.1rem 0 0.4rem;
}

.hero-center h1,
.detail-hero h1,
.centered-copy h1,
.article-main h1 {
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.02;
    font-weight: 800;
    font-size: clamp(2.35rem, 5vw, 4.5rem);
    max-width: 20ch;
    margin-inline: auto;
    text-wrap: balance;
}

.detail-hero h1,
.article-main h1 {
    font-size: clamp(2.5rem, 6vw, 4.4rem);
}

.hero-lead,
.centered-copy p,
.article-lead,
.narrative-block p,
.article-section p,
.feature-card p,
.tool-card p,
.tool-row p,
.blog-card p,
.workspace-head p,
.site-footer p,
.site-footer a,
.legal-copy p,
.narrow-copy p,
.faq-item p {
    color: var(--muted);
    line-height: 1.85;
    font-size: 1rem;
}

.hero-center .hero-lead,
.detail-hero .hero-lead {
    max-width: 44rem;
    margin: 1rem auto 0;
    font-size: 1rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: #d8deff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.hero-actions,
.tool-actions,
.inline-links,
.related-inline-links,
.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-actions-center,
.footer-actions {
    justify-content: center;
}

.hero-actions {
    margin: 1.35rem 0 1rem;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.hero-pills span,
.related-inline-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.78rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.03);
}

.btn {
    border: 0;
    cursor: pointer;
    padding: 0.95rem 1.45rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    color: #06101a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--line);
}

.feature-section,
.content-section {
    padding: 2rem 0;
}

.hero-section + .feature-section {
    padding-top: 4.5rem;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    text-align: left;
    padding: 1.35rem 0 0;
    border-top: 1px solid var(--line-strong);
}

.feature-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.feature-icon {
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 1rem;
    color: #cfd5ff;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.section-head h2,
.narrative-block h2,
.article-section h2,
.category-block h2,
.tool-row h3,
.tool-card h3,
.blog-card h2,
.blog-card h3,
.workspace-head h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.65rem, 3vw, 2.7rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.section-head p {
    max-width: 44rem;
    color: var(--muted);
}

.text-link {
    color: #dbe0ff;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tool-card-clean,
.blog-card-clean,
.tool-workspace,
.article-main,
.search-shell,
.narrow-copy,
.legal-copy,
.faq-shell {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.tool-card-clean {
    padding: 1.4rem;
    min-height: 15rem;
}

.card-link-block {
    display: block;
    height: 100%;
}

.tool-row-link {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.tool-card-clean h3,
.tool-row-body h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.15rem;
}

.blog-card h2,
.blog-card h3 {
    font-size: 1.35rem;
}

.tool-card-clean h3 {
    white-space: nowrap;
}

.tool-card-top,
.blog-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tool-badge,
.tool-row-mark {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    color: #07111a;
    font-weight: 800;
    flex: 0 0 auto;
}

.tool-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: rgba(149, 168, 255, 0.12);
    color: #d6dbff;
    font-size: 0.8rem;
}

.narrative-block {
    padding: 2.6rem;
}

.narrative-wide {
    max-width: 70rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.blog-card-clean {
    padding: 1.45rem;
}

.blog-card-wide {
    min-height: 100%;
}

.blog-meta-row small,
.article-meta,
.blog-card small {
    color: var(--muted);
    font-size: 0.9rem;
}

.faq-shell {
    padding: 1.6rem;
}

.faq-list {
    display: grid;
    gap: 0;
}

.faq-item {
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.search-shell {
    max-width: 40rem;
    margin: 2rem auto 0;
    padding: 0.85rem 1rem;
}

.search-shell input {
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--text);
    outline: none;
}

.category-stack {
    display: grid;
    gap: 2.5rem;
}

.tool-list-grid,
.blog-list-grid,
.blog-more-list {
    display: grid;
    gap: 1rem;
}

.tool-row {
    display: grid;
    padding: 1rem 1.15rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.tool-row-body h3 {
    margin-bottom: 0.3rem;
    font-size: 1.25rem;
}

.tool-row-body p {
    margin: 0;
}

.tool-single-layout,
.article-single {
    max-width: 70rem;
    margin: 0 auto;
}

.article-shell {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 760px) 280px;
    gap: 3.5rem;
    align-items: start;
}

.tool-workspace,
.article-main {
    padding: 1.6rem;
}

.article-main {
    max-width: none;
    margin: 0;
}

.article-main-prose {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.article-intro {
    margin-bottom: 2rem;
}

.article-intro p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--muted-strong);
}

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

.tool-textarea,
.tool-input,
.output-panel,
.contact-form textarea,
.contact-form input,
select.tool-input {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(7, 12, 22, 0.85);
    color: var(--text);
    padding: 1rem 1.05rem;
    outline: none;
}

.tool-textarea {
    min-height: 15rem;
    resize: vertical;
}

.small-area {
    min-height: 7rem;
}

.output-panel {
    min-height: 11rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.markdown-body {
    line-height: 1.8;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.inline-form {
    display: grid;
    gap: 1rem;
}

.api-grid {
    grid-template-columns: 160px 1fr;
}

.triple-grid {
    grid-template-columns: 160px repeat(2, auto);
    align-items: center;
}

.checkbox-row {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    color: var(--muted);
}

.color-swatch {
    min-height: 3.35rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: #5ba7ff;
}

.inline-links a {
    color: #dce3ff;
}

.article-section {
    margin-bottom: 2.4rem;
}

.article-section h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.45rem);
    line-height: 1.12;
    margin-bottom: 1rem;
}

.article-section p {
    font-size: 1.06rem;
    line-height: 1.95;
    color: var(--muted-strong);
    margin: 0 0 1rem;
}

.article-rail {
    position: sticky;
    top: 7rem;
    display: grid;
    gap: 1.5rem;
}

.article-rail-block h3 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.article-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.article-link-list a {
    color: var(--muted-strong);
    line-height: 1.6;
}

.article-link-list a:hover {
    color: var(--text);
}

.article-bullet-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--muted-strong);
    display: grid;
    gap: 0.9rem;
}

.article-bullet-list li {
    line-height: 1.85;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.alert-success {
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    background: rgba(88, 200, 255, 0.12);
    border: 1px solid rgba(88, 200, 255, 0.18);
    color: #e9f6ff;
}

.narrow-copy,
.legal-copy {
    max-width: 60rem;
    padding: 2rem;
}

.legal-copy h2 {
    margin-top: 1.5rem;
}

.site-footer {
    width: 100%;
    margin-top: 3rem;
    padding: 2.5rem 2rem 1.2rem;
    border-top: 1px solid var(--line);
    background: rgba(7, 12, 22, 0.78);
    backdrop-filter: blur(18px);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.footer-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 28rem;
}

.footer-brand-row p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.9rem 1.25rem;
}

.footer-nav a {
    color: var(--muted-strong);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-bottom {
    width: 100%;
    margin-top: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1100px) {
    .tool-grid,
    .blog-grid,
    .feature-strip,
    .blog-more-list {
        grid-template-columns: 1fr 1fr;
    }

    .article-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-rail {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        flex-wrap: wrap;
        border-radius: 28px;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.9rem;
    }

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

    .nav-links a {
        text-align: center;
    }

    .tool-grid,
    .blog-grid,
    .feature-strip,
    .blog-more-list,
    .split-grid,
    .api-grid,
    .triple-grid {
        grid-template-columns: 1fr;
    }

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

    .tool-row-link {
        grid-template-columns: 54px 1fr;
    }

    .tool-row-link .tool-tag {
        grid-column: 2;
        justify-self: start;
    }

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

    .footer-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-section,
    .page-hero {
        padding-top: 2.2rem;
    }

    .hero-section {
        min-height: calc(100vh - 4.75rem);
    }

    .hero-center h1,
    .detail-hero h1,
    .centered-copy h1,
    .article-main h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        max-width: 15ch;
        line-height: 1.04;
    }

    .tool-card-clean,
    .blog-card-clean,
    .tool-workspace,
    .article-main,
    .faq-shell,
    .narrow-copy,
    .legal-copy {
        padding: 1.25rem;
    }

    .narrative-block {
        padding: 1.6rem;
    }

    .hero-section + .feature-section {
        padding-top: 3rem;
    }
}
