:root {
    --bg: #071019;
    --panel: rgba(14, 24, 38, 0.74);
    --panel-border: rgba(255, 255, 255, 0.1);
    --text: #f3f6fb;
    --muted: #9eb0c3;
    --accent: #6ca8ff;
    --accent-strong: #9b76ff;
    --warm: #ffba63;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --heading-font: "Space Grotesk", sans-serif;
    --pixel-font: "Pixelify Sans", monospace;
    --body-font: "Manrope", sans-serif;
    --shell-width: min(1220px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--body-font);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(108, 168, 255, 0.22), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(155, 118, 255, 0.18), transparent 22%),
        linear-gradient(180deg, #08111d 0%, #050b14 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 84%);
}

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

button {
    font: inherit;
}

.ambient {
    position: fixed;
    width: 38rem;
    height: 38rem;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

.ambient-left {
    top: -14rem;
    left: -14rem;
    background: #578fff;
}

.ambient-right {
    top: 8rem;
    right: -14rem;
    background: #8467ff;
}

.shell {
    width: var(--shell-width);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 16px max(18px, calc((100vw - var(--shell-width)) / 2)) 12px;
    border: 0;
    border-bottom: 1px solid rgba(108, 134, 201, 0.16);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(8, 15, 24, 0.88), rgba(8, 15, 24, 0.42));
    backdrop-filter: blur(18px);
    box-shadow: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding-left: 10px;
}

.brand-logo {
    display: block;
    height: 48px;
    width: auto;
    object-fit: contain;
    image-rendering: pixelated;
    transform: translate(10px, -8px);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6ca8ff, #ffba63);
    color: #08111d;
    font-family: var(--heading-font);
    font-weight: 700;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-left: 8px;
    padding-bottom: 0;
}

.brand-copy strong,
.hero h1,
.section-head h2,
.feature-card h3,
.workflow-step h3,
.detail-card h2 {
    font-family: var(--heading-font);
    letter-spacing: -0.03em;
}

.brand-copy strong {
    font-family: var(--pixel-font);
    font-size: 1.48rem;
    font-weight: 400;
    line-height: 0.96;
    color: #eef3ff;
    letter-spacing: 0.008em;
    transform: translateY(1px);
    text-shadow:
        1px 0 0 rgba(126, 157, 255, 0.08),
        0 1px 0 rgba(68, 92, 180, 0.12);
}

.brand-copy small,
.site-nav a,
.site-nav span,
.hero p,
.feature-card p,
.workflow-step p,
.section-head p,
.detail-card p,
.site-footer p {
    color: var(--muted);
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.site-nav a,
.site-nav span {
    position: relative;
    padding-bottom: 4px;
}

.site-nav a.is-active,
.site-nav span.is-active {
    color: var(--text);
}

.site-nav a.is-active::after,
.site-nav span.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6ca8ff, #9b76ff);
}

.site-nav span[aria-current="page"] {
    cursor: default;
}

.site-nav a:hover,
.header-account:hover,
.header-cta:hover,
.button:hover {
    transform: translateY(-1px);
}

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

.header-cta,
.header-account,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.25rem;
    border-radius: 14px;
    border: 1px solid transparent;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.header-cta,
.header-account {
    min-height: 38px;
    font-size: 0.9rem;
}

.header-cta {
    padding: 0.6rem 0.92rem;
    border-radius: 12px;
}

.header-cta,
.button-primary {
    background: linear-gradient(135deg, #6ca8ff, #9b76ff);
    color: #08111d;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(108, 168, 255, 0.25);
}

.header-account {
    position: relative;
    min-width: 128px;
    padding: 0.62rem 2.2rem 0.62rem 0.9rem;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.header-account::after {
    content: "›";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: rgba(230, 236, 255, 0.82);
}

.header-account.is-authenticated {
    background: rgba(135, 230, 167, 0.1);
    border-color: rgba(135, 230, 167, 0.18);
}

.session-btn-value {
    max-width: 100%;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toolbar-button,
.ghost-action,
.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.toolbar-button,
.ghost-action {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--panel-border);
    color: var(--text);
}

.primary-action {
    background: linear-gradient(135deg, #6ca8ff, #9b76ff);
    color: #08111d;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(108, 168, 255, 0.25);
}

.button-secondary {
    border-color: var(--panel-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 16px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 9, 17, 0.6);
    backdrop-filter: blur(12px);
}

.modal-dialog {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    padding: 24px;
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    background: rgba(8, 15, 24, 0.94);
    box-shadow: var(--shadow);
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-head h2 {
    margin: 6px 0 0;
    font-family: var(--heading-font);
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.workspace-kicker {
    color: #7c8cff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.modal-body {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.auth-modal-body {
    gap: 18px;
}

.auth-summary-card,
.auth-account-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
}

.auth-summary-card strong,
.auth-account-copy strong {
    font-family: var(--heading-font);
    font-size: 1.02rem;
}

.auth-summary-card p,
.auth-account-copy span,
.auth-error {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-size: 0.9rem;
    font-weight: 700;
}

.field input {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.field input::placeholder {
    color: rgba(158, 176, 195, 0.72);
}

.auth-google-card {
    display: grid;
    gap: 14px;
}

.auth-google-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-google-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-google-divider span {
    position: relative;
    padding: 0 12px;
    background: rgba(8, 15, 24, 0.94);
}

.auth-google-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.auth-google-fallback {
    width: 100%;
}

.auth-form-actions {
    display: flex;
    justify-content: flex-end;
}

.auth-error {
    color: #ffb7b7;
    font-weight: 600;
}

.auth-account-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.auth-account-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.is-modal-open {
    overflow: hidden;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    gap: 44px;
    align-items: center;
    padding: 88px 0 34px;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    gap: 28px;
    align-items: start;
    padding: 88px 0 22px;
}

.page-title {
    margin: 0;
    font-family: var(--heading-font);
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    letter-spacing: -0.03em;
    line-height: 1;
    max-width: 12ch;
}

.page-subtitle {
    margin-top: 18px;
    max-width: 64ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.page-sidecard {
    border: 1px solid var(--panel-border);
    border-radius: 30px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.page-sidecard p {
    color: var(--muted);
    line-height: 1.8;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--warm);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 800;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 0.96;
    max-width: 10ch;
}

.hero p {
    margin-top: 22px;
    max-width: 60ch;
    font-size: 1.04rem;
    line-height: 1.8;
}

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

.hero-stats,
.feature-grid,
.workflow-grid,
.template-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hero-stats {
    margin-top: 34px;
}

.hero-stats article,
.hero-frame,
.proof-band,
.feature-card,
.workflow-step,
.detail-card {
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.hero-stats article {
    padding: 18px;
    border-radius: 24px;
}

.hero-stats strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.hero-visual {
    position: relative;
    min-height: 470px;
}

.hero-frame {
    position: absolute;
    border-radius: 30px;
}

.hero-frame-large {
    inset: 10px 0 92px 0;
    padding: 28px;
}

.hero-frame-note {
    right: 0;
    bottom: 0;
    width: min(320px, 88%);
    padding: 20px;
}

.frame-label {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mini-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
    height: calc(100% - 40px);
}

.mini-screen {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(108, 168, 255, 0.18), rgba(155, 118, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-screen span {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mini-screen strong {
    font-family: var(--heading-font);
    font-size: 1rem;
}

.note-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 999px;
    background: #7ef0cb;
    box-shadow: 0 0 0 8px rgba(126, 240, 203, 0.14);
}

.proof-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px;
    border-radius: 28px;
}

.proof-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.proof-tags span {
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.feature-section,
.workflow-section,
.detail-section,
.template-library {
    padding-top: 102px;
}

.section-head {
    max-width: 760px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.section-head p {
    margin-top: 14px;
    line-height: 1.8;
}

.feature-grid,
.workflow-grid {
    margin-top: 30px;
}

.template-library-grid {
    margin-top: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.template-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--panel-border);
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.template-preview {
    position: relative;
    min-height: 320px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.template-preview-launch {
    background: linear-gradient(135deg, rgba(59, 124, 255, 0.78), rgba(117, 179, 255, 0.36));
}

.template-preview-feature {
    background: linear-gradient(135deg, rgba(93, 78, 255, 0.76), rgba(255, 153, 108, 0.34));
}

.template-preview-commerce {
    background: linear-gradient(135deg, rgba(34, 167, 120, 0.78), rgba(255, 214, 102, 0.34));
}

.template-preview-onboarding {
    background: linear-gradient(135deg, rgba(37, 61, 108, 0.84), rgba(128, 111, 255, 0.34));
}

.template-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    height: 100%;
}

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

.template-shot {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 268px;
    padding: 14px 12px 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 14px 32px rgba(4, 10, 20, 0.18);
}

.template-shot::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%);
    pointer-events: none;
}

.template-shot > * {
    position: relative;
    z-index: 1;
}

.template-shot-square {
    min-height: 200px;
}

.shot-theme-skyline {
    background: linear-gradient(180deg, #2d77ef 0%, #6eb8ff 100%);
}

.shot-theme-orbit {
    background: linear-gradient(180deg, #6570f2 0%, #a27dff 100%);
}

.shot-theme-mint {
    background: linear-gradient(180deg, #159a74 0%, #7ce5b7 100%);
}

.shot-theme-ember {
    background: linear-gradient(180deg, #ff8b52 0%, #ffd16d 100%);
}

.shot-theme-midnight {
    background: linear-gradient(180deg, #1c3052 0%, #5483de 100%);
}

.shot-centered {
    align-items: center;
    text-align: center;
}

.template-shot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.template-shot-brand,
.template-shot-tag,
.template-shot-footer {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.template-shot-tag {
    background: rgba(255, 255, 255, 0.12);
}

.template-shot-title {
    margin-top: 12px;
    color: #ffffff;
    font-family: var(--heading-font);
    font-size: 1rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.template-shot-title-hero {
    font-size: 1.3rem;
    line-height: 0.92;
    max-width: 7ch;
}

.template-shot-title-medium {
    font-size: 0.92rem;
    line-height: 1.04;
    max-width: 12ch;
}

.shot-centered .template-shot-title,
.shot-centered .template-shot-title-medium {
    max-width: 14ch;
}

.template-shot-subtitle,
.template-shot-note {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.62rem;
    line-height: 1.45;
}

.template-shot-device,
.template-shot-media,
.template-shot-banner {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 19, 34, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.template-shot-device {
    align-self: center;
    width: 72%;
    height: 116px;
    margin-top: auto;
    border-radius: 22px;
    background: linear-gradient(180deg, #192130 0%, #101723 100%);
}

.template-shot-device-wide {
    width: 82%;
    height: 94px;
}

.template-shot-device-tall {
    width: 76%;
    height: 142px;
}

.template-shot-device-compact {
    width: 42%;
    height: 94px;
    margin-top: 14px;
}

.template-shot-device-mini,
.template-shot-device-side {
    width: 44%;
    height: 96px;
    margin-top: 0;
}

.template-shot-device::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 28%;
    height: 7px;
    border-radius: 999px;
    background: rgba(12, 16, 23, 0.82);
    transform: translateX(-50%);
}

.template-shot-screen {
    position: absolute;
    inset: 10px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.template-shot-ui {
    display: block;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.template-shot-ui-header {
    height: 10px;
    width: 64%;
}

.template-shot-ui-footer {
    height: 10px;
    width: 48%;
    margin-top: auto;
}

.template-shot-ui-block {
    flex: 1;
    min-height: 42px;
    border-radius: 14px;
}

.template-shot-ui-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    flex: 1;
}

.template-shot-ui-grid span {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.template-shot-ui-chat {
    height: 22px;
    width: 72%;
    border-radius: 10px;
}

.template-shot-ui-chat-alt {
    width: 52%;
    align-self: flex-end;
}

.template-shot-media {
    min-height: 92px;
    margin-top: auto;
    border-radius: 22px;
    background:
        radial-gradient(circle at 65% 30%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(10, 17, 28, 0.32), rgba(255, 255, 255, 0.06));
}

.template-shot-media::before,
.template-shot-media::after,
.template-shot-banner::before {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.template-shot-media::before {
    top: 14px;
    left: 14px;
    width: 56%;
    height: 12px;
}

.template-shot-media::after {
    left: 14px;
    right: 14px;
    bottom: 16px;
    height: 22px;
}

.template-shot-media-short {
    min-height: 80px;
}

.template-shot-media-mini {
    min-height: 88px;
    flex: 1;
    margin-top: 0;
}

.template-shot-media-setup {
    min-height: 72px;
    margin-top: 16px;
}

.template-shot-media-glow {
    background:
        radial-gradient(circle at 50% 42%, rgba(186, 163, 255, 0.34), transparent 26%),
        linear-gradient(135deg, rgba(17, 21, 34, 0.3), rgba(255, 255, 255, 0.08));
}

.template-shot-device-pair,
.template-shot-split {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.template-shot-banner {
    width: 100%;
    height: 38px;
    margin-top: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 19, 34, 0.3), rgba(255, 255, 255, 0.08));
}

.template-shot-banner::before {
    top: 12px;
    left: 16px;
    width: 52%;
    height: 10px;
}

.template-shot-banner-wide {
    height: 46px;
    margin-top: auto;
}

.template-shot-footer {
    align-self: flex-start;
    margin-top: 10px;
    font-size: 0.56rem;
}

.shot-centered .template-shot-footer {
    align-self: center;
}

.template-card-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
}

.template-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.template-card-head strong {
    font-family: var(--heading-font);
    font-size: 1.2rem;
}

.template-card-head span,
.template-card-copy p {
    color: var(--muted);
}

.template-card-copy p {
    margin: 0;
    line-height: 1.75;
}

.template-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.template-meta span {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.8rem;
}

.template-button {
    align-self: flex-start;
}

.feature-card,
.workflow-step {
    padding: 24px;
    border-radius: 28px;
}

.feature-card p,
.workflow-step p {
    line-height: 1.8;
}

.workflow-step span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--warm);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.detail-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border-radius: 32px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 90px 0 48px;
    font-size: 0.92rem;
}

.marketing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: 32px;
    align-items: center;
    padding: 88px 0 28px;
}

.marketing-copy h1 {
    margin: 0;
    font-family: var(--heading-font);
    font-size: clamp(3rem, 6vw, 5.3rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    max-width: 11ch;
}

.marketing-lead {
    margin: 22px 0 0;
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

.marketing-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.marketing-points span {
    padding: 0.65rem 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.marketing-stage {
    display: grid;
    gap: 16px;
}

.marketing-stage-card,
.story-card,
.benefit-card {
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.marketing-stage-card {
    padding: 22px;
    border-radius: 32px;
}

.marketing-stage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 14px;
    margin-top: 18px;
}

.marketing-stage-grid .template-shot {
    min-height: 364px;
}

.marketing-stage-grid .template-shot-device-pair {
    margin-top: 18px;
}

.marketing-stage-note {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.marketing-stage-note strong {
    font-family: var(--heading-font);
    font-size: 1.02rem;
}

.marketing-stage-note span {
    color: var(--muted);
    line-height: 1.7;
}

.story-section,
.benefit-section {
    padding-top: 96px;
}

.story-grid,
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.story-card,
.benefit-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 28px;
}

.story-card span {
    display: inline-flex;
    color: var(--warm);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.story-card h3,
.benefit-card h3 {
    margin: 0;
    font-family: var(--heading-font);
    font-size: 1.18rem;
    letter-spacing: -0.03em;
}

.story-card p,
.benefit-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.detail-card-strong {
    padding: 34px;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.template-gallery-page {
    padding: 88px 0 48px;
}

.template-gallery-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.template-gallery-head .page-title {
    max-width: none;
}

.template-masonry {
    column-count: 2;
    column-gap: 22px;
}

.template-masonry .template-card {
    display: inline-flex;
    width: 100%;
    margin: 0 0 22px;
    break-inside: avoid;
}

.template-masonry .template-card:nth-child(4n + 1) .template-preview {
    min-height: 360px;
}

.template-masonry .template-card:nth-child(4n + 2) .template-preview {
    min-height: 308px;
}

.template-masonry .template-card:nth-child(4n + 3) .template-preview {
    min-height: 382px;
}

.template-masonry .template-card:nth-child(4n) .template-preview {
    min-height: 336px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 700ms ease,
        transform 700ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1120px) {
    .hero,
    .page-hero,
    .hero-stats,
    .feature-grid,
    .workflow-grid,
    .template-library-grid,
    .proof-band,
    .detail-card {
        grid-template-columns: 1fr;
    }

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

    .marketing-hero,
    .marketing-stage-grid,
    .story-grid,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .template-masonry {
        column-count: 1;
    }

    .proof-band,
    .detail-card,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 820px) {
    .site-header {
        border-radius: 0;
        padding: 14px 16px 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding-top: 66px;
    }

    .page-hero {
        padding-top: 66px;
    }

    .hero h1 {
        max-width: none;
    }

    .page-title {
        max-width: none;
    }

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

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

    .marketing-copy h1 {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(100vw - 20px, 100%);
    }

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

    .hero-frame-large {
        inset: 8px 0 112px 0;
        padding: 20px;
    }

    .hero-frame-note {
        width: calc(100% - 20px);
        right: 10px;
    }

    .feature-card,
    .workflow-step,
    .detail-card {
        padding: 20px;
    }

    .brand {
        gap: 14px;
        padding-left: 14px;
    }

    .brand-logo {
        height: 42px;
        transform: translate(8px, -6px);
    }

    .brand-copy strong {
        font-size: 1.18rem;
    }

    .header-actions {
        flex-direction: column;
    }

    .header-account,
    .header-cta {
        width: 100%;
    }

    .marketing-stage-card,
    .story-card,
    .benefit-card,
    .detail-card-strong {
        padding: 20px;
    }

    .template-masonry .template-card {
        margin-bottom: 18px;
    }
}
