:root {
    --ink: #14212b;
    --muted: #5f6d78;
    --line: #d8e0e6;
    --brand: #146c94;
    --brand-dark: #0b3d56;
    --surface: #f6f8f9;
    --accent: #d1495b;
    --gold: #f7c948;
    --green: #0f8b8d;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: var(--ink);
    background: #fbfcfc;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
}

.hero {
    padding: 82px 0 58px;
    background: linear-gradient(135deg, #092d42 0%, #104f6b 52%, #eef4f6 52%, #eef4f6 100%);
}

.trial-hero {
    padding: 72px 0;
    background: #092d42;
}

.trial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    align-items: center;
    gap: 36px;
}

.trial-copy h1 {
    max-width: 780px;
    color: #fff;
    font-size: clamp(2.3rem, 4.4vw, 4.4rem);
    line-height: 1.03;
}

.trial-copy .lead {
    max-width: 660px;
    color: #d6e8ef;
}

.trial-copy .eyebrow {
    color: #a8e3f6;
}

.trial-form-card {
    min-width: 0;
    border: 1px solid rgba(216, 224, 230, 0.95);
    border-radius: 8px;
    background: #fff;
    padding: 26px;
    box-shadow: 0 28px 70px rgba(9, 45, 66, 0.25);
}

.trial-form {
    max-width: none;
}

.hero-polished {
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 36px;
}

.hero-copy {
    min-width: 0;
}

.hero h1 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(2.4rem, 4.7vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero .lead {
    max-width: 620px;
    color: #d6e8ef;
}

.eyebrow {
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #a8e3f6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.hero-cta .btn-primary {
    border-color: var(--gold);
    background: var(--gold);
    color: #10212d;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(247, 201, 72, 0.25);
}

.hero-cta .btn-light {
    font-weight: 800;
}

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

.hero-proof span,
.check-grid span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid rgba(20, 108, 148, 0.25);
    border-radius: 8px;
    padding: 7px 12px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-proof span {
    border-color: rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.ai-command-panel,
.ai-stack-card,
.pricing-hero {
    min-width: 0;
    border: 1px solid rgba(216, 224, 230, 0.95);
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 28px 70px rgba(9, 45, 66, 0.22);
}

.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.panel-top strong {
    color: var(--green);
}

.ai-prompt-box {
    border: 1px solid #c8dce5;
    border-radius: 8px;
    padding: 16px;
    background: #f2f8fa;
}

.ai-prompt-box small,
.ai-meter span {
    color: var(--brand);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.ai-prompt-box p {
    margin: 6px 0 0;
    font-weight: 700;
}

.ai-output-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.ai-output-grid div {
    min-height: 92px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfc;
}

.ai-output-grid strong,
.ai-output-grid span {
    display: block;
}

.ai-output-grid span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.ai-meter div {
    height: 10px;
    margin: 8px 0;
    overflow: hidden;
    border-radius: 999px;
    background: #e6edf1;
}

.ai-meter i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
}

.ai-meter strong {
    color: var(--brand-dark);
}

.section-band {
    padding: 64px 0;
    background: #fff;
}

.section-heading,
.wide-heading {
    max-width: 920px;
    margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2,
.cta-band h2 {
    line-height: 1.08;
    letter-spacing: 0;
}

.feature-tile {
    min-height: 220px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: #fbfcfc;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature-tile:hover,
.service-card:hover,
.price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(20, 33, 43, 0.1);
}

.feature-tile strong {
    display: block;
    margin-bottom: 12px;
    color: var(--brand-dark);
    font-size: 1.12rem;
}

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

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

.ai-stack-card {
    box-shadow: 0 18px 45px rgba(20, 33, 43, 0.09);
}

.stack-step {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.stack-step strong {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
}

.cta-band {
    padding: 48px 0;
    background: var(--brand-dark);
    color: #fff;
}

.cta-band .eyebrow {
    color: #b9e6f7;
}

.cta-focus {
    text-align: center;
}

.cta-inner {
    max-width: 850px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.cta-inner p:not(.eyebrow) {
    color: #d8e8ee;
}

.platform-panel,
.price-card,
.metric {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(22, 32, 42, 0.06);
}

.metric-strong {
    min-height: 150px;
    font-weight: 800;
}

.metric-strong span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 500;
}

.platform-panel h2,
.price-card h2 {
    font-size: 1.15rem;
}

.service-card {
    display: flex;
    min-height: 140px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    color: var(--ink);
    background: var(--surface);
}

.service-card-rich {
    min-height: 210px;
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.96)), #eef4f6;
}

.service-card span {
    font-weight: 700;
    font-size: 1.15rem;
}

.service-card small,
.lead {
    color: var(--muted);
}

.price {
    font-size: 2rem;
    font-weight: 800;
}

.pricing-hero {
    margin-bottom: 28px;
    background: linear-gradient(90deg, rgba(20,108,148,0.08), rgba(209,73,91,0.08)), #fff;
}

.pricing-hero h1 {
    max-width: 900px;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.pricing-hero .lead {
    max-width: 860px;
}

.pricing-note {
    max-width: 880px;
    border-left: 4px solid var(--accent);
    padding: 14px 16px;
    background: #fff;
    color: var(--muted);
}

.price-card-rich {
    display: flex;
    min-height: 430px;
    flex-direction: column;
}

.price-card-rich form,
.price-card-rich > a {
    margin-top: auto;
}

.plan-list {
    min-height: 142px;
    margin: 0 0 20px;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.pricing-details {
    margin-top: 42px;
}

.blog-hero {
    max-width: 940px;
    margin-bottom: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: linear-gradient(90deg, rgba(20,108,148,0.08), rgba(15,139,141,0.08)), #fff;
}

.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
}

.blog-card {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 16px 40px rgba(22, 32, 42, 0.06);
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(20, 33, 43, 0.1);
}

.blog-card strong {
    margin: 12px 0;
    color: var(--brand-dark);
    font-size: 1.35rem;
    line-height: 1.16;
}

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

.blog-card em {
    margin-top: auto;
    color: var(--brand);
    font-style: normal;
    font-weight: 800;
}

.blog-category {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.article-shell {
    max-width: 860px;
    margin: 0 auto;
}

.article-shell h1 {
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    line-height: 1.08;
}

.article-shell p:not(.lead):not(.eyebrow) {
    color: #344451;
    font-size: 1.08rem;
    line-height: 1.75;
}

.article-cta {
    margin-top: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: #f6f8f9;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: #fff;
}

.dashboard-hero img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stack-form {
    display: grid;
    max-width: 420px;
    gap: 16px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.swatch {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.asset-filters {
    display: flex;
    max-width: 420px;
    align-items: end;
    gap: 12px;
}

.asset-filters label {
    flex: 1;
}

.asset-preview {
    display: grid;
    min-height: 120px;
    margin: 12px 0;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.9rem;
}

.asset-preview img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.asset-preview-logo img {
    height: 150px;
    object-fit: contain;
    padding: 12px;
    background: #fff;
}

.brand-kit-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 22px;
}

.brand-kit-hero > div,
.brand-form-card,
.brand-asset-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(22, 32, 42, 0.05);
}

.brand-kit-hero > div {
    padding: 26px;
}

.brand-kit-hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.brand-kit-note {
    display: grid;
    align-content: center;
    gap: 8px;
    background: #f8fbfb !important;
}

.brand-kit-note strong {
    color: var(--brand-dark);
    font-size: 1.1rem;
}

.brand-kit-note span {
    color: var(--muted);
    line-height: 1.5;
}

.brand-kit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.brand-form-card,
.brand-asset-card {
    padding: 22px;
}

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

.brand-kit-form label {
    display: grid;
    gap: 7px;
    color: #273541;
    font-weight: 800;
}

.brand-kit-form textarea,
.brand-kit-form input,
.brand-kit-form select {
    font-weight: 500;
}

.field-help {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.45;
}

.form-section-label {
    display: block;
    margin-bottom: 8px;
}

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

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.color-row {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 8px !important;
}

.color-row input[type="color"] {
    width: 46px;
    height: 38px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.brand-asset-card {
    height: 100%;
}

.brand-asset-card > strong {
    color: var(--brand-dark);
}

.app-body {
    background: #f5f7f8;
}

.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 260px minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    padding: 22px 16px;
    background: #ffffff;
}

.app-brand {
    display: grid;
    gap: 2px;
    color: var(--ink);
    text-decoration: none;
}

.app-brand span {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
}

.app-brand strong {
    font-size: 1.12rem;
}

.app-nav {
    display: grid;
    gap: 6px;
}

.app-nav a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    padding: 10px 12px;
    color: #273541;
    text-decoration: none;
    font-weight: 800;
}

.app-nav a:hover,
.app-nav a.active {
    background: #e8f4f6;
    color: var(--brand-dark);
}

.app-nav i {
    border: 1px solid rgba(15,139,141,0.3);
    border-radius: 999px;
    padding: 1px 7px;
    color: var(--brand);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.app-switch-link {
    margin-top: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--brand-dark);
    text-align: center;
    text-decoration: none;
    font-weight: 900;
}

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

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 12px 28px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
}

.app-topbar strong {
    display: block;
}

.app-main {
    padding: 0 0 34px;
}

.dashboard-command {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: stretch;
}

.dashboard-command,
.dashboard-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(22, 32, 42, 0.05);
}

.dashboard-command-copy {
    padding: 28px;
}

.dashboard-command-copy h1 {
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
}

.dashboard-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.dashboard-status-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border-left: 1px solid var(--line);
    background: var(--line);
}

.dashboard-status-panel div {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 128px;
    padding: 20px;
    background: #f8fbfb;
}

.dashboard-status-panel span,
.dashboard-module-card em,
.dashboard-module-card b {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-status-panel strong {
    color: var(--brand-dark);
    font-size: 1.45rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 18px;
}

.dashboard-panel {
    padding: 22px;
}

.dashboard-panel-large {
    min-width: 0;
}

.panel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-title-row h2,
.dashboard-panel h2 {
    margin-bottom: 0;
    font-size: 1.35rem;
}

.dashboard-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-module-card,
.module-empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(22, 32, 42, 0.05);
}

.dashboard-module-card {
    display: grid;
    min-height: 184px;
    align-content: start;
    gap: 10px;
    padding: 18px;
    color: var(--ink);
    text-decoration: none;
}

.dashboard-module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(20, 33, 43, 0.1);
}

.dashboard-module-card strong {
    color: var(--brand-dark);
    font-size: 1.08rem;
}

.dashboard-module-card span {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.dashboard-module-card b {
    align-self: end;
    margin-top: auto;
    color: var(--brand);
}

.dashboard-steps,
.limit-list,
.utility-actions {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
}

.dashboard-steps {
    list-style: none;
}

.dashboard-steps li,
.limit-list span,
.utility-actions a {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #f8fbfb;
}

.dashboard-steps span,
.limit-list span,
.utility-actions span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.utility-actions a {
    color: var(--ink);
    text-decoration: none;
}

.utility-actions a:hover {
    border-color: rgba(15,139,141,0.45);
    background: #e8f4f6;
}

.module-empty-state {
    max-width: 760px;
    padding: 28px;
}

@media (max-width: 991.98px) {
    .hero {
        background: #092d42;
    }

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

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
        height: auto;
    }

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

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

    .dashboard-command,
    .dashboard-grid,
    .brand-kit-hero,
    .brand-kit-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-status-panel {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding-top: 48px;
    }

    .check-grid,
    .dashboard-hero,
    .ai-output-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero,
    .ai-command-panel,
    .ai-stack-card,
    .pricing-hero,
    .trial-form-card {
        padding: 18px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .app-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 18px;
    }

    .app-topbar form,
    .app-topbar button {
        width: 100%;
    }

    .app-nav,
    .dashboard-module-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-command-copy,
    .dashboard-panel,
    .brand-kit-hero > div,
    .brand-form-card,
    .brand-asset-card {
        padding: 18px;
    }

    .dashboard-primary-actions .btn,
    .panel-title-row .btn {
        width: 100%;
    }

    .panel-title-row {
        flex-direction: column;
    }

    .dashboard-status-panel {
        grid-template-columns: 1fr;
    }

    .form-grid-2,
    .color-picker-grid {
        grid-template-columns: 1fr;
    }
}
