@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800;900&display=swap');

:root {
    --ink: #334c5a;
    --muted: #607684;
    --line: #d6edf8;
    --surface: #ffffff;
    --soft: #f6fbff;
    --deep: #203d4c;
    --teal: #61b89f;
    --teal-dark: #347e6b;
    --gold: #dff8ee;
    --coral: #8edcff;
    --coral-light: #eaf8ff;
    --coral-dark: #2f82a6;
    --sage: #dff8ee;
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    color: var(--deep);
    background: var(--soft);
}

.brand,
.nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 900;
}

.brand-logo {
    display: block;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.nav {
    gap: clamp(14px, 3vw, 28px);
    color: var(--deep);
    font-size: 0.95rem;
    font-weight: 800;
}

.nav a {
    transition: color 180ms ease;
}

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

.hero {
    position: relative;
    min-height: 0;
    display: grid;
    align-items: center;
    overflow: visible;
    padding: clamp(42px, 7vw, 72px) 18px clamp(82px, 12vw, 140px);
    color: var(--deep);
    background:
        radial-gradient(circle at 16% 24%, rgba(234, 248, 255, 0.98), transparent 24%),
        radial-gradient(circle at 82% 28%, rgba(223, 248, 238, 0.95), transparent 20%),
        var(--soft);
    text-align: center;
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    display: none;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    margin: 0 auto;
    padding-top: 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 920px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 22px;
    color: var(--deep);
    font-size: clamp(2.6rem, 6vw, 5.7rem);
    line-height: 1;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.22rem;
    line-height: 1.2;
}

.hero-lead {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    color: var(--muted);
    font-size: clamp(1.04rem, 2vw, 1.28rem);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 0;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
    position: relative;
    color: var(--deep);
    background: var(--coral);
}

.button-primary::after {
    position: absolute;
    top: -0.42rem;
    right: -0.42rem;
    width: 1rem;
    height: 1rem;
    background: var(--coral-light);
    content: "";
    transition: transform 180ms ease;
}

.button-primary:hover {
    color: var(--deep);
    background: var(--coral);
    text-shadow: none;
}

.button-primary:hover::after {
    transform: rotate(90deg);
}

.button-secondary {
    color: var(--deep);
    border: 2px solid var(--deep);
    background: transparent;
}

.button-secondary:hover {
    color: var(--coral);
    border-color: var(--coral);
}

.hero-terminal {
    width: min(820px, calc(100% - 24px));
    min-height: 250px;
    margin: clamp(44px, 7vw, 72px) auto -180px;
    padding: 18px 22px 22px;
    color: #fff;
    border-radius: 4px;
    background: #20302f;
    box-shadow: var(--shadow);
    text-align: left;
    animation: fadeUp 900ms ease both;
}

.terminal-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.terminal-bar span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--coral);
}

.terminal-bar span:nth-child(2) {
    background: #c7efff;
}

.terminal-bar span:nth-child(3) {
    background: #c6f5d9;
}

.hero-terminal pre {
    margin: 0;
    white-space: pre-wrap;
}

.hero-terminal code {
    color: #f8f8fa;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: clamp(0.86rem, 1.6vw, 1rem);
    line-height: 1.75;
}

.terminal-muted {
    color: #bdf7dc;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 860px;
    margin: 220px auto 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    text-align: left;
}

.hero-stats div {
    padding: 0 0 0 20px;
    border-left: 3px solid var(--line);
    background: transparent;
}

.stat-icon {
    margin-bottom: 12px;
    color: var(--coral);
}

.stat-icon svg {
    display: block;
}

.hero-stats dt {
    margin-bottom: 6px;
    color: var(--deep);
    font-size: 1.12rem;
    font-weight: 850;
}

.hero-stats dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.section {
    width: min(1080px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(64px, 8vw, 104px) 0;
}

.section-heading {
    max-width: 870px;
    margin-bottom: 38px;
}

.section-heading p:not(.eyebrow) {
    max-width: 780px;
    color: var(--muted);
}

.section-heading h2,
.split h2,
.contact-copy h2 {
    color: var(--deep);
}

.intro {
    padding-top: clamp(78px, 8vw, 104px);
}

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

.symptom-grid,
.package-grid,
.check-grid {
    display: grid;
    gap: 18px;
}

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

.symptom-card {
    position: relative;
    display: flex;
    min-height: 210px;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    box-shadow: none;
}

.symptom-card::before {
    position: absolute;
    top: 0;
    right: 26px;
    left: 26px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--coral);
    content: "";
}

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

.symptom-number {
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 850;
}

.symptom-icon {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--deep);
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--soft);
}

.symptom-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.symptom-card h3 {
    max-width: 330px;
    margin: auto 0 0;
    color: var(--deep);
    font-size: 1.3rem;
}

.symptom-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    font-weight: 560;
}

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

.feature-card {
    min-height: 260px;
    padding: 0 28px 0 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.feature-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-bottom: 28px;
    color: #fff;
    background: var(--coral);
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 850;
}

.feature-card p,
.split p,
.process-node p,
.deliverables p,
.contact-copy p {
    color: var(--muted);
}

.visual-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: clamp(34px, 5vw, 56px);
}

.visual-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(47, 130, 166, 0.08);
}

.visual-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.visual-card figcaption {
    display: grid;
    gap: 6px;
    padding: 18px 20px 20px;
}

.visual-card strong {
    color: var(--deep);
    font-size: 1.02rem;
}

.visual-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.packages {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.package-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    box-shadow: none;
}

.package-card-featured {
    border-color: var(--coral);
    box-shadow: 12px 12px 0 var(--coral-light);
}

.package-top {
    display: grid;
    gap: 8px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.package-time {
    margin: 0;
    color: var(--coral);
    font-size: 0.84rem;
    font-weight: 850;
    text-transform: uppercase;
}

.package-top h3 {
    margin-bottom: 0;
    color: var(--deep);
    font-size: 1.45rem;
}

.package-top strong {
    color: var(--deep);
    font-size: 1.1rem;
}

.clean-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    list-style: none;
}

.clean-list li {
    position: relative;
    padding-left: 26px;
}

.clean-list li::before {
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: 900;
    content: "✓";
}

.package-note {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--muted);
}

.audit-checklist {
    padding-top: 0;
}

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

.check-grid span {
    position: relative;
    padding: 18px 20px 18px 48px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--deep);
    background: var(--soft);
    font-weight: 750;
}

.check-grid span::before {
    position: absolute;
    left: 20px;
    color: var(--coral);
    content: "✓";
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: clamp(28px, 6vw, 80px);
    align-items: center;
    border-top: 1px solid var(--line);
}

.stack-panel {
    display: grid;
    gap: 0;
    padding: 10px 0 0;
    border-top: 2px solid var(--deep);
}

.stack-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.stack-kicker {
    max-width: 420px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.96rem;
}

.stack-index {
    color: var(--coral-dark);
    font-size: 0.78rem;
    font-weight: 900;
}

.stack-row h3 {
    margin-bottom: 6px;
    color: var(--deep);
    font-size: 1.12rem;
}

.stack-row p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.stack-tags span {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--deep);
    background: linear-gradient(180deg, #fff, var(--soft));
    font-size: 0.82rem;
    font-weight: 800;
}

.process {
    width: 100%;
    max-width: none;
    padding-right: max(18px, calc((100% - 1160px) / 2));
    padding-left: max(18px, calc((100% - 1160px) / 2));
    background: var(--soft);
    color: var(--ink);
}

.process .section-heading h2 {
    color: var(--deep);
}

.process-diagram {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-diagram::before {
    position: absolute;
    top: 23px;
    right: 7%;
    left: 7%;
    height: 2px;
    background: linear-gradient(90deg, var(--coral), var(--teal), var(--gold));
    content: "";
}

.process-node {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-content: start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.process-node > div {
    min-height: 230px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
}

.process-number {
    position: relative;
    z-index: 1;
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--deep);
    background: var(--coral);
    border: 4px solid var(--soft);
    border-radius: 3px;
    font-weight: 900;
}

.process-node p {
    color: var(--muted);
}

.deliverables {
    display: grid;
    grid-template-columns: minmax(180px, 0.28fr) 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 28px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
}

.deliverables p {
    margin: 0;
    color: var(--deep);
    font-weight: 850;
}

.clean-list-light {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    color: var(--muted);
}

.clean-list-light li::before {
    color: var(--coral);
}

.proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding-top: 0;
}

.proof-item {
    display: grid;
    gap: 8px;
    padding: 28px;
    border: 1px solid var(--line);
    background: #fff;
}

.proof-item strong {
    color: var(--deep);
    font-size: 1.08rem;
}

.proof-item span {
    color: var(--muted);
}

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

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
}

.faq-list summary {
    cursor: pointer;
    padding: 20px 22px;
    color: var(--deep);
    font-weight: 850;
}

.faq-list p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--muted);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1fr);
    gap: clamp(30px, 6vw, 82px);
    align-items: start;
    border-top: 1px solid var(--line);
}

.contact-points {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    color: var(--deep);
    list-style: none;
    font-weight: 750;
}

.contact-points li {
    position: relative;
    padding-left: 28px;
}

.contact-points li::before {
    position: absolute;
    left: 0;
    color: var(--coral);
    content: "+";
}

.contact-form {
    display: grid;
    gap: 17px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    box-shadow: 12px 12px 0 var(--coral-light);
}

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

label {
    display: grid;
    gap: 8px;
    color: var(--deep);
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--ink);
    background: var(--soft);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--coral-light);
    border-color: var(--coral);
}

label small,
.field-error {
    color: #b42318;
    font-size: 0.86rem;
    font-weight: 650;
}

.checkbox {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 11px;
    align-items: start;
    color: var(--muted);
    font-weight: 650;
}

.checkbox input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 2px;
    accent-color: var(--coral);
}

.form-button {
    width: 100%;
    margin-top: 2px;
    border: 0;
}

.form-alert {
    margin: 0;
    padding: 13px 14px;
    border-radius: 3px;
    font-weight: 750;
}

.form-alert-success {
    color: #0c443f;
    background: #dff4ef;
}

.form-alert-error {
    color: #7a271a;
    background: #fde8e3;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding: 28px clamp(18px, 4vw, 56px);
    color: rgba(255, 255, 255, 0.74);
    background: var(--deep);
}

.site-footer span:first-child {
    color: #fff;
    font-weight: 850;
}

.footer-pp {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-pp:hover {
    color: rgba(255, 255, 255, 0.85);
}

.consent-link {
    color: var(--coral);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-link:hover {
    color: var(--coral-dark);
}

/* ─── Blog: shared ─────────────────────────────────────────────────────────── */

.blog-date {
    display: block;
    margin-bottom: 8px;
    color: var(--coral);
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ─── Blog: hero (listing page) ────────────────────────────────────────────── */

.blog-hero {
    background:
        linear-gradient(135deg, rgba(16, 34, 31, 0.98) 0%, rgba(32, 61, 76, 0.98) 58%, rgba(47, 130, 106, 0.96) 100%);
    color: #fff;
    padding: clamp(48px, 7vw, 92px) 18px clamp(52px, 7vw, 96px);
    position: relative;
    overflow: hidden;
}

.blog-hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 6px;
    background: linear-gradient(90deg, var(--coral), var(--teal), var(--gold));
    content: "";
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: clamp(28px, 6vw, 72px);
    width: min(1080px, 100%);
    margin: 0 auto;
    align-items: center;
}

.blog-hero-copy {
    max-width: 780px;
}

.blog-hero .eyebrow {
    margin-bottom: 10px;
    color: var(--coral);
}

.blog-hero h1 {
    max-width: 760px;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 18px;
    font-size: clamp(2.05rem, 5vw, 4.5rem);
    line-height: 0.98;
    color: #fff;
}

.blog-hero-lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.02rem, 2vw, 1.22rem);
    line-height: 1.55;
    max-width: 560px;
    margin-bottom: 16px;
}

.blog-hero-note {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.96rem;
}

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

.blog-hero-link {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.04);
}

.blog-hero-link:hover {
    color: var(--coral);
    border-color: var(--coral);
}

.blog-hero-panel {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 18px 18px 0 rgba(142, 220, 255, 0.1);
}

.blog-hero-panel span {
    display: block;
    margin-bottom: 18px;
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.blog-hero-panel ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-hero-panel li {
    position: relative;
    padding-left: 26px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.blog-hero-panel li::before {
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 14px;
    height: 14px;
    border: 2px solid var(--teal);
    content: "";
}

/* ─── Blog: listing grid ────────────────────────────────────────────────────── */

.blog-listing-section {
    padding-top: clamp(48px, 6vw, 72px);
}

.blog-empty {
    max-width: 720px;
    padding: clamp(30px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--soft);
}

.blog-empty h2 {
    margin-bottom: 12px;
}

.blog-empty p:not(.eyebrow) {
    max-width: 560px;
    color: var(--muted);
}

.blog-empty .button {
    margin-top: 10px;
}

.blog-listing-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.blog-listing-head > div {
    max-width: 690px;
}

.blog-listing-head h2 {
    margin-bottom: 10px;
}

.blog-listing-head p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
}

.blog-listing-head > span {
    flex-shrink: 0;
    padding: 8px 12px;
    color: var(--teal-dark);
    border: 1px solid var(--line);
    background: var(--soft);
    font-size: 0.88rem;
    font-weight: 850;
}

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

/* Featured first post — full-width horizontal card */
.blog-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 360px;
    border-color: rgba(97, 184, 159, 0.45);
    box-shadow: 0 18px 52px rgba(32, 61, 76, 0.1);
}

.blog-card--featured .blog-card-img-wrap,
.blog-card--featured .blog-card-img-placeholder {
    aspect-ratio: auto;
    min-height: 100%;
}

.blog-card--featured .blog-card-body {
    padding: clamp(28px, 4vw, 44px);
    justify-content: center;
}

.blog-card--featured .blog-card-title {
    font-size: clamp(1.45rem, 3vw, 2.18rem);
    line-height: 1.22;
    margin-bottom: 14px;
}

.blog-card--featured .blog-card-excerpt {
    font-size: 1.02rem;
    margin-bottom: 26px;
}

.blog-card--text-featured {
    grid-template-columns: 1fr;
    min-height: 0;
}

.blog-card--text-featured .blog-card-body {
    max-width: 820px;
    padding: clamp(30px, 5vw, 54px);
}

.blog-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.blog-card:hover {
    border-color: rgba(97, 184, 159, 0.65);
    box-shadow: 0 20px 48px rgba(17, 24, 39, 0.13);
    transform: translateY(-4px);
}

.blog-card-img-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card-img-placeholder {
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(15, 31, 28, 0.96) 0%, rgba(26, 61, 51, 0.96) 55%, rgba(32, 61, 76, 0.96) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blog-card-img-placeholder svg {
    opacity: 0.2;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 340ms ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.04);
}

.blog-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 10px;
    color: var(--coral-dark);
}

.blog-card-meta .blog-date {
    display: inline;
    margin-bottom: 0;
    color: inherit;
}

.blog-card-meta span {
    padding: 4px 8px;
    color: var(--deep);
    background: var(--coral-light);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.blog-card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--deep);
}

.blog-card-title a {
    color: inherit;
}

.blog-card-title a:hover {
    color: var(--teal);
}

.blog-card-excerpt {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--teal);
    font-weight: 750;
    font-size: 0.9rem;
    margin-top: auto;
    transition: gap 180ms ease, color 180ms ease;
}

.blog-read-more:hover {
    color: var(--teal-dark);
}

/* ─── Blog: homepage section ────────────────────────────────────────────────── */

.blog-home-section {
    border-top: 1px solid var(--line);
}

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

.blog-home-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.blog-home-img-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-home-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms ease;
}

.blog-home-card:hover .blog-home-img {
    transform: scale(1.03);
}

.blog-home-body {
    padding: 18px 20px 22px;
}

.blog-home-title {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--deep);
}

.blog-home-title a {
    color: inherit;
}

.blog-home-title a:hover {
    color: var(--teal);
}

.blog-home-excerpt {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* ─── Blog: single post ─────────────────────────────────────────────────────── */

.post-page {
    background:
        linear-gradient(180deg, #10221f 0, #10221f 360px, #fff 360px, #fff 100%);
}

.post-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(16, 34, 31, 0.98) 0%, rgba(32, 61, 76, 0.98) 62%, rgba(47, 130, 106, 0.96) 100%);
    padding: clamp(42px, 7vw, 84px) 18px clamp(48px, 7vw, 92px);
}

.post-hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 6px;
    background: linear-gradient(90deg, var(--coral), var(--teal), var(--gold));
    content: "";
}

.post-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vw, 48px);
    width: min(1040px, 100%);
    margin: 0 auto;
}

.post-hero-copy {
    max-width: 880px;
}

.post-opening-image {
    width: min(900px, 100%);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 20px 20px 0 rgba(142, 220, 255, 0.1);
}

.post-opening-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.post-article {
    width: min(820px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(42px, 6vw, 76px) 0 clamp(60px, 8vw, 100px);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.post-back {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-bottom: 24px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 800;
}

.post-back:hover {
    color: var(--coral);
    border-color: var(--coral);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.84rem;
    font-weight: 850;
    text-transform: uppercase;
}

.post-meta span:first-child {
    color: var(--coral);
}

.post-meta time,
.post-meta span {
    display: inline-flex;
    align-items: center;
}

.post-meta time::after,
.post-meta span:first-child::after {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    content: "";
}

.post-title {
    max-width: 920px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(2.15rem, 5.8vw, 4.9rem);
    line-height: 0.98;
}

.post-excerpt {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    line-height: 1.62;
    margin: 0;
}

.post-excerpt p {
    margin: 0;
}

.post-content {
    color: var(--ink);
    font-size: clamp(1rem, 1.35vw, 1.08rem);
    line-height: 1.68;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content p:empty {
    display: none;
}

.post-content p:has(> br:only-child) {
    display: none;
}

.post-content h2 {
    position: relative;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    color: var(--deep);
    margin-top: 42px;
    margin-bottom: 14px;
    line-height: 1.18;
}

.post-content h2::before {
    display: block;
    width: 48px;
    height: 4px;
    margin-bottom: 14px;
    background: var(--coral);
    content: "";
}

.post-content h3 {
    font-size: 1.3rem;
    color: var(--deep);
    margin-top: 30px;
    margin-bottom: 10px;
}

.post-content p {
    margin-bottom: 16px;
    color: #263844;
}

.post-content ul,
.post-content ol {
    padding-left: 26px;
    margin: 0 0 18px;
    color: #263844;
    list-style-position: outside;
}

.post-content li {
    margin-bottom: 7px;
    padding-left: 2px;
}

.post-content li::marker {
    color: var(--teal-dark);
    font-weight: 850;
}

.post-content ul.post-checklist {
    padding-left: 0;
    list-style: none;
}

.post-content ul.post-checklist li {
    position: relative;
    padding-left: 28px;
}

.post-content ul.post-checklist li::before {
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 900;
    content: "✓";
}

.post-content blockquote {
    border-left: 5px solid var(--teal);
    margin: 28px 0;
    padding: 18px 22px;
    background: var(--soft);
    border-radius: 0 6px 6px 0;
    color: var(--muted);
    font-size: 1.04rem;
    font-weight: 700;
}

.post-content pre {
    position: relative;
    background: #1a2e2a;
    color: #a8d5cf;
    border-radius: 6px;
    padding: 48px 22px 20px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 26px 0 24px;
    box-shadow: 0 14px 34px rgba(16, 34, 31, 0.12);
}

.post-content pre::before {
    position: absolute;
    top: 14px;
    left: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    content: attr(data-language);
}

.post-content code {
    background: #f0f4f3;
    color: var(--teal-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    text-shadow: none;
    white-space: pre;
}

.post-content pre[class*="language-"] {
    background: #1a2e2a;
}

.post-content pre[class*="language-"] code {
    color: #e7fff8;
}

.post-content .token.comment,
.post-content .token.prolog,
.post-content .token.doctype,
.post-content .token.cdata {
    color: #7da89f;
}

.post-content .token.keyword,
.post-content .token.operator {
    color: #8edcff;
}

.post-content .token.string,
.post-content .token.char {
    color: #bdf7dc;
}

.post-content .token.function,
.post-content .token.class-name {
    color: #f4d06f;
}

.post-content .token.number,
.post-content .token.boolean,
.post-content .token.constant {
    color: #f0a98e;
}

.post-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 14px 0 26px;
}

.post-content a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: clamp(54px, 8vw, 84px);
    padding: clamp(28px, 5vw, 42px);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--soft);
}

.post-footer-copy h2 {
    margin-bottom: 10px;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.post-footer-copy p:not(.eyebrow) {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
}

.post-footer-actions {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

.post-footer-btn {
    width: 100%;
    justify-content: center;
}

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

    .nav {
        display: none;
    }

    .hero {
        min-height: 0;
        padding-top: 54px;
        padding-bottom: 72px;
    }

    .hero-content {
        margin: 0 auto;
        padding-top: 0;
    }

    .hero-terminal {
        width: 100%;
        min-height: 0;
        margin: 34px auto 0;
    }

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

    .hero-stats,
    .symptom-grid,
    .feature-grid,
    .visual-strip,
    .package-grid,
    .check-grid,
    .process-diagram,
    .deliverables,
    .clean-list-light,
    .proof,
    .split,
    .contact-section,
    .blog-grid,
    .blog-home-grid {
        grid-template-columns: 1fr;
    }

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

    .blog-hero-panel {
        max-width: 560px;
        box-shadow: 10px 10px 0 rgba(142, 220, 255, 0.1);
    }

    .blog-listing-head {
        display: block;
    }

    .blog-listing-head > span {
        display: inline-flex;
        margin-top: 18px;
    }

    .blog-card--featured {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .blog-card--featured .blog-card-img-wrap,
    .blog-card--featured .blog-card-img-placeholder {
        min-height: 240px;
    }

    .blog-card--featured .blog-card-body {
        padding: 24px;
    }

    .blog-card--featured .blog-card-title {
        font-size: clamp(1.35rem, 5vw, 1.7rem);
    }

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

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

    .post-footer-actions {
        min-width: 0;
    }

    .feature-card {
        min-height: 0;
    }

    .symptom-card {
        min-height: 0;
    }

    .process-diagram::before {
        top: 0;
        bottom: 0;
        left: 23px;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--coral), var(--teal), var(--gold));
    }

    .process-node {
        grid-template-columns: 46px 1fr;
    }

    .process-node > div {
        min-height: 0;
    }

    .feature-icon {
        margin-bottom: 28px;
    }
}

@media (min-width: 620px) and (max-width: 900px) {
    .blog-grid,
    .blog-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    h1 {
        font-size: clamp(2.35rem, 13vw, 3.55rem);
    }

    h2 {
        font-size: clamp(1.75rem, 10vw, 2.45rem);
    }

    .hero {
        min-height: 0;
    }

    .hero-overlay {
        display: none;
    }

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

    .hero-actions .button {
        width: 100%;
    }

    .blog-hero {
        padding-top: 42px;
    }

    .blog-hero h1 {
        font-size: clamp(2rem, 11vw, 3.35rem);
    }

    .blog-hero-actions .button {
        width: 100%;
    }

    .blog-hero-panel {
        padding: 20px;
    }

    .blog-card-body {
        padding: 20px;
    }

    .post-hero {
        padding-top: 40px;
    }

    .post-title {
        font-size: clamp(2rem, 11vw, 3.45rem);
    }

    .post-meta {
        display: grid;
        gap: 6px;
    }

    .post-meta time::after,
    .post-meta span:first-child::after {
        display: none;
    }

    .post-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .post-content ul,
    .post-content ol {
        padding-left: 20px;
        list-style-position: outside;
    }

    .process-node {
        grid-template-columns: 1fr;
    }

    .process-diagram::before {
        display: none;
    }

    .contact-form {
        padding: 20px;
        box-shadow: 8px 8px 0 var(--coral-light);
    }
}
