:root {
    --bg: #f4efe7;
    --surface: rgba(255, 252, 247, 0.88);
    --surface-strong: #fffaf2;
    --ink: #1d2a31;
    --muted: #5f6a72;
    --line: rgba(29, 42, 49, 0.12);
    --accent: #bc5b2c;
    --accent-strong: #8e3e1c;
    --teal: #225a5b;
    --teal-soft: rgba(34, 90, 91, 0.12);
    --accent-soft: rgba(188, 91, 44, 0.12);
    --shadow: 0 20px 50px rgba(24, 26, 28, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --max: 1180px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14181c;
        --surface: rgba(24, 30, 35, 0.84);
        --surface-strong: #1b2328;
        --ink: #eef3f6;
        --muted: #afbbc3;
        --line: rgba(202, 219, 230, 0.14);
        --accent: #d67a46;
        --accent-strong: #f0ad82;
        --teal: #4fa3a6;
        --teal-soft: rgba(79, 163, 166, 0.16);
        --accent-soft: rgba(214, 122, 70, 0.16);
        --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Avenir Next", "Helvetica Neue", sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(188, 91, 44, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(34, 90, 91, 0.12), transparent 24%),
        linear-gradient(180deg, #fbf7ee 0%, var(--bg) 44%, #ece3d4 100%);
}

@media (prefers-color-scheme: dark) {
    body {
        background:
            radial-gradient(circle at top left, rgba(214, 122, 70, 0.18), transparent 24%),
            radial-gradient(circle at top right, rgba(79, 163, 166, 0.16), transparent 22%),
            linear-gradient(180deg, #11161a 0%, var(--bg) 44%, #090d10 100%);
    }
}

a {
    color: inherit;
}

code,
pre {
    font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

pre {
    margin: 0;
    overflow-x: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(244, 239, 231, 0.78);
    border-bottom: 1px solid rgba(29, 42, 49, 0.08);
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background: rgba(18, 22, 26, 0.78);
        border-bottom-color: rgba(202, 219, 230, 0.1);
    }
}

.site-header-inner,
.page {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.brand-icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

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

@media (prefers-color-scheme: dark) {
    .brand-icon-light {
        display: none;
    }

    .brand-icon-dark {
        display: block;
    }
}

.brand-copy strong {
    display: block;
    font-size: 0.96rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-copy span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.topnav a {
    text-decoration: none;
    font-size: 0.94rem;
    color: var(--muted);
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.topnav a:hover,
.topnav a.active {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.54);
    color: var(--ink);
}

@media (prefers-color-scheme: dark) {
    .topnav a:hover,
    .topnav a.active {
        background: rgba(255, 255, 255, 0.08);
    }
}

.page {
    padding: 28px 0 88px;
}

.hero {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.hero-panel,
.card,
.callout,
.stat-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel {
    padding: 34px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.hero h1 {
    margin: 16px 0 12px;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: clamp(2.4rem, 4.7vw, 4.5rem);
    line-height: 0.95;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
    max-width: 62ch;
}

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

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 12px 18px;
}

.button-link.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--teal));
}

.button-link.secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
}

.hero-side {
    display: grid;
    gap: 16px;
}

.stat-card {
    padding: 22px;
}

.stat-card strong {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-card span {
    display: block;
    margin-top: 8px;
    font-size: 1.4rem;
    font-weight: 700;
}

.server-feature-card {
    padding: 24px 26px;
}

.server-feature-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.server-feature-card span {
    margin-top: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    font-weight: 500;
    color: var(--ink);
}

.section {
    margin-top: 34px;
}

.section h2 {
    margin: 0 0 14px;
    font-size: 1.65rem;
}

.section-intro {
    margin: 0 0 18px;
    color: var(--muted);
    max-width: 72ch;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid + .grid {
    margin-top: 18px;
}

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

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

.hero-gallery {
    align-items: stretch;
}

.hero-simple-renamer .hero-shot {
    object-fit: contain;
    background: rgba(255, 252, 247, 0.42);
}

.hero-single {
    grid-template-columns: 1fr;
}

.hero-panel-gallery {
    min-height: 100%;
}

.hero-visual {
    display: grid;
    place-items: center;
    padding: 30px;
    background:
        radial-gradient(circle at top left, rgba(188, 91, 44, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(34, 90, 91, 0.18), transparent 32%),
        rgba(255, 252, 247, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-shot-frame {
    width: min(100%, 520px);
    margin: 0;
    padding: 14px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 28px 70px rgba(24, 26, 28, 0.18);
}

.hero-shot {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(24, 26, 28, 0.16);
}

@media (prefers-color-scheme: dark) {
    .hero-shot-frame {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
        border-color: rgba(202, 219, 230, 0.12);
    }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 700;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 18px;
}

.simple-renamer-shots {
    grid-template-columns: 1.35fr 1fr;
}

.shot-card {
    margin: 0;
    background: rgba(255, 252, 247, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.shot-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel {
    display: grid;
    gap: 18px;
}

.carousel-stage {
    position: relative;
    min-height: 620px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.carousel-slide img {
    object-fit: contain;
    object-position: center;
    background: rgba(255, 252, 247, 0.42);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.carousel-button {
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
    color: var(--ink);
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.carousel-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 0;
    background: rgba(29, 42, 49, 0.18);
    cursor: pointer;
    padding: 0;
}

.carousel-dot.is-active {
    background: linear-gradient(135deg, var(--accent), var(--teal));
}

.helpful-apps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.helpful-app-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.helpful-app-card strong {
    font-size: 1.1rem;
}

.helpful-app-card p {
    margin: 0;
}

.helpful-app-card a {
    text-decoration: none;
    font-weight: 700;
}

.helpful-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 16px 30px rgba(24, 26, 28, 0.14);
}

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

.card {
    padding: 24px;
}

.card h3,
.card h4 {
    margin: 0 0 10px;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card p + p {
    margin-top: 12px;
}

.prose-card h2,
.prose-card h3 {
    margin: 22px 0 10px;
}

.prose-card h2:first-of-type,
.prose-card h3:first-of-type {
    margin-top: 0;
}

.prose-card p,
.prose-card li {
    color: var(--muted);
}

.document-hero {
    padding: 28px 32px;
}

.document-hero h1 {
    margin-bottom: 8px;
}

.card ul,
.card ol,
.content-block ul,
.content-block ol {
    margin: 12px 0 0;
    padding-left: 20px;
}

.content-block {
    display: grid;
    gap: 18px;
}

.callout {
    padding: 20px 22px;
}

.callout strong {
    display: block;
    margin-bottom: 8px;
}

.callout.accent {
    background: linear-gradient(135deg, rgba(188, 91, 44, 0.12), rgba(255, 250, 242, 0.88));
}

.callout.teal {
    background: linear-gradient(135deg, rgba(34, 90, 91, 0.12), rgba(255, 250, 242, 0.88));
}

.code-block {
    background: #1e2529;
    color: #eef2f4;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (prefers-color-scheme: dark) {
    .code-block {
        background: #0f1418;
    }
}

.code-block + .code-block {
    margin-top: 14px;
}

.section > .code-block + .grid,
.section > .code-block + .grid.two,
.section > .code-block + .grid.three {
    margin-top: 18px;
}

.eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.link-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.link-list a {
    text-decoration: none;
    border-bottom: 1px solid rgba(29, 42, 49, 0.16);
    padding-bottom: 8px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.96rem;
}

th,
td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-footer {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .hero,
    .grid.two,
    .grid.three {
        grid-template-columns: 1fr;
    }

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

    .carousel-stage {
        min-height: 520px;
    }

    .helpful-apps-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 320px;
    }

    .hero-panel {
        padding: 26px;
    }
}

@media (max-width: 720px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .topnav {
        justify-content: flex-start;
    }

    .page {
        width: min(calc(100% - 22px), var(--max));
        padding-top: 22px;
    }

    .hero-shot-frame {
        width: 100%;
        padding: 10px;
    }

    .hero-badges {
        gap: 8px;
    }

    .hero-badges span {
        font-size: 0.82rem;
    }

    .carousel-stage {
        min-height: 360px;
    }

    .carousel-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}
