/* ==========================================================================
   Servercare design system
   Sections: tokens, base, layout, buttons, header, hero, section patterns,
   homepage sections, case study detail, footer, motion, responsive.
   ========================================================================== */

:root {
    /* Brand */
    --primary: #007DFC;          /* decorative: icons, borders, large highlights */
    --primary-ink: #0068D6;      /* text and button fills (AA contrast on white) */
    --primary-dark: #0056b3;     /* hover */
    --primary-tint: #EAF4FF;

    /* Neutrals */
    --text-main: #0f1a2a;
    --text-muted: #556274;
    --bg-light: #ffffff;
    --bg-alt: #F5F8FC;
    --border-color: #E2E8F0;
    --navy: #0B1B33;
    --navy-line: rgba(255, 255, 255, 0.12);
    --navy-muted: #A9B6C9;
    --deep-dark: #0f1115;

    /* Shape and rhythm */
    --radius-sm: 8px;
    --radius: 12px;
    --container-width: 1160px;
    --section-space: 96px;
    --header-height: 72px;
    --shadow-sm: 0 1px 2px rgba(15, 26, 42, 0.05);
    --shadow-md: 0 12px 32px rgba(15, 26, 42, 0.08);
    --transition: 0.2s ease;
}

/* Base --------------------------------------------------------------------- */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

ul,
ol {
    list-style: none;
}

a {
    color: var(--primary-ink);
}

:focus-visible {
    outline: 3px solid rgba(0, 125, 252, 0.45);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Layout ------------------------------------------------------------------- */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-space) 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-dark {
    background: var(--navy);
    color: #fff;
}

.section-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--primary-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-dark .section-eyebrow {
    color: #6DB6FF;
}

.section-title {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
}

.section-description {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 18px;
}

.section-dark .section-description {
    color: var(--navy-muted);
}

.section-note {
    margin-top: 32px;
    padding: 20px 24px;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--primary-tint);
    color: var(--text-main);
    font-size: 16px;
}

.section-dark .section-note {
    background: rgba(255, 255, 255, 0.06);
    color: #E3EAF4;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 24px;
}

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

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

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Shared card */
.card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
}

a.card:hover,
.card-hover:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-tint);
    color: var(--primary-ink);
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-main);
    font-size: 15px;
}

.check-list li + li {
    margin-top: 10px;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background: var(--primary-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

.tag-list span {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-alt);
    color: #3d5366;
    font-size: 12px;
    font-weight: 600;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.btn-sm {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary-ink);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    border-color: var(--border-color);
    background: #fff;
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-ink);
}

/* For dark sections */
.btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.text-link .icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.25;
    transition: transform var(--transition);
}

.text-link:hover .icon {
    transform: translateX(3px);
}

/* Header ------------------------------------------------------------------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.nav-logo,
.footer-logo {
    width: auto;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a:not(.btn) {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--primary-ink);
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero --------------------------------------------------------------------- */

.hero {
    padding: 88px 0 96px;
    background: linear-gradient(180deg, #F1F7FF 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px 14px;
    border: 1px solid #CFE3FA;
    border-radius: 999px;
    background: #fff;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.hero-title {
    font-size: clamp(38px, 5.4vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    display: block;
    color: var(--primary-ink);
}

.hero-description {
    max-width: 560px;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 19px;
}

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

.hero-note {
    max-width: 520px;
    margin-top: 28px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Hero visual: release flow into production */
.hero-visual {
    display: flex;
    justify-content: center;
}

.flow-card {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(11, 27, 51, 0.10);
}

.flow-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 700;
}

.flow-branch {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 500;
}

.flow-steps {
    padding: 20px 0 4px;
}

.flow-steps li {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 18px;
}

.flow-steps li::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: #CFE3FA;
}

.flow-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--primary-tint);
    color: var(--primary-ink);
}

.flow-check .icon {
    width: 15px;
    height: 15px;
    stroke-width: 2.75;
}

.flow-steps strong {
    display: block;
    font-size: 15px;
    line-height: 1.4;
}

.flow-steps span span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
}

.flow-prod {
    padding: 18px;
    border-radius: var(--radius);
    background: var(--navy);
    color: #fff;
}

.flow-prod-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
}

.flow-prod-head::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

.flow-nodes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.flow-nodes span {
    padding: 9px 12px;
    border: 1px solid var(--navy-line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: #E3EAF4;
    font-size: 13px;
    font-weight: 500;
}

/* Problem ------------------------------------------------------------------ */

.problem-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
}

.problem-item .icon {
    margin-top: 2px;
    color: var(--primary-ink);
}

.problem-item h3 {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.problem-item p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Service pillars ---------------------------------------------------------- */

.pillar-card h3 {
    margin: 20px 0 10px;
    font-size: 22px;
}

.pillar-card > p {
    font-size: 16px;
}

.pillar-how {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pillar-how-label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pillar-how .check-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
}

.pillar-how .check-list li + li {
    margin-top: 0;
}

/* Example targets */
.targets {
    display: grid;
    grid-template-columns: 0.9fr 1.6fr;
    gap: 40px;
    margin-top: 24px;
    padding: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
}

.targets h3 {
    font-size: 22px;
    font-weight: 700;
}

.targets-intro p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 15px;
}

.targets-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
}

.targets-list dt {
    color: var(--primary-ink);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.targets-list dd {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 15px;
}

.targets-disclaimer {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* How we work -------------------------------------------------------------- */

.lifecycle {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.lifecycle-loop svg {
    width: 100%;
    height: auto;
}

.loop-path {
    fill: none;
    stroke: #2F6FB8;
    stroke-width: 3;
}

.loop-dot {
    fill: var(--primary);
    stroke: var(--navy);
    stroke-width: 3;
}

.loop-num {
    fill: #fff;
    font-size: 11px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: central;
}

.loop-label {
    fill: var(--navy-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-anchor: middle;
    dominant-baseline: central;
}

.lifecycle-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.lifecycle-steps li {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--navy-line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.lifecycle-steps .step-optimize {
    grid-column: 1 / -1;
    border-color: rgba(0, 125, 252, 0.6);
    background: rgba(0, 125, 252, 0.14);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.lifecycle-steps h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 28px;
}

.lifecycle-steps p {
    color: var(--navy-muted);
    font-size: 14px;
}

/* Reliability tiers -------------------------------------------------------- */

.tier-level {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.tier-level span {
    width: 28px;
    height: 6px;
    border-radius: 999px;
    background: var(--border-color);
}

.tier-level span.on {
    background: var(--primary);
}

.tier-card h3 {
    font-size: 22px;
}

.tier-for {
    margin: 8px 0 24px;
    min-height: 3.2em;
}

.tier-card .check-list {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Why Servercare ----------------------------------------------------------- */

.why-item {
    padding-top: 20px;
    border-top: 2px solid var(--text-main);
}

.why-num {
    display: block;
    margin-bottom: 12px;
    color: var(--primary-ink);
    font-size: 14px;
    font-weight: 700;
}

.why-item h3 {
    margin-bottom: 8px;
    font-size: 19px;
    font-weight: 700;
}

.why-item p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Engagement models -------------------------------------------------------- */

.engage-card {
    padding: 28px;
}

.engage-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.section-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 16px;
}

/* Case studies ------------------------------------------------------------- */

.case-study-meta {
    margin-bottom: 16px;
    color: var(--primary-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-study-result {
    margin-bottom: 12px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.case-study-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.4;
}

.case-study-card h3 a {
    color: inherit;
    text-decoration: none;
}

.case-study-card h3 a:hover {
    color: var(--primary-ink);
}

.case-study-card > p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.case-study-card .tag-list {
    margin-bottom: 24px;
}

/* About -------------------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    color: var(--text-muted);
    font-size: 18px;
}

.about-text p + p {
    margin-top: 20px;
}

.about-text strong {
    color: var(--text-main);
}

.certs {
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-alt);
}

.certs h3 {
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.badge-grid img {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

/* FAQ ---------------------------------------------------------------------- */

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.faq-layout .section-head {
    margin-bottom: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color var(--transition);
}

.faq-item:hover,
.faq-item[open] {
    border-color: var(--primary);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

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

.faq-item summary::after {
    content: '+';
    flex: 0 0 auto;
    color: var(--primary-ink);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-content {
    padding: 0 24px 22px;
    color: var(--text-muted);
    font-size: 16px;
}

/* Final CTA ---------------------------------------------------------------- */

.cta-section {
    padding: 0 0 var(--section-space);
}

.section-alt + .cta-section {
    background: var(--bg-alt);
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 56px;
    border-radius: 16px;
    background: var(--navy);
    color: #fff;
}

.cta-card h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
}

.cta-card p {
    max-width: 560px;
    margin-top: 12px;
    color: var(--navy-muted);
    font-size: 18px;
}

.cta-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 12px;
}

/* Footer ------------------------------------------------------------------- */

.footer {
    padding: 64px 0 32px;
    background: var(--deep-dark);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
}

.footer-logo {
    margin-bottom: 20px;
}

.company-name {
    font-weight: 700;
}

.footer p,
.footer li {
    color: #9AA4B2;
    font-size: 14px;
}

.footer-info p + p {
    margin-top: 6px;
}

.footer h2 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.footer li + li {
    margin-top: 10px;
}

.footer a {
    color: #C7D0DC;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Case study detail -------------------------------------------------------- */

.case-detail-hero {
    padding: 64px 0;
    background: linear-gradient(180deg, #F1F7FF 0%, var(--bg-alt) 100%);
}

.case-detail-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.case-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-bottom: 24px;
    color: var(--primary-ink);
    font-weight: 600;
    text-decoration: none;
}

.case-back .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: transform var(--transition);
}

.case-back:hover .icon {
    transform: translateX(-2px);
}

.case-detail-kicker {
    margin-bottom: 16px;
    color: var(--primary-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-detail-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.case-detail-lead {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 19px;
}

.case-detail-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.case-summary-item {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
}

.case-summary-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.case-summary-value {
    font-weight: 700;
}

.case-detail-body {
    padding: 72px 0 var(--section-space);
}

.case-detail-section {
    margin-bottom: 56px;
}

.case-detail-section h2 {
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 800;
}

.case-detail-section p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 17px;
}

.case-detail-section .check-list li {
    color: var(--text-muted);
    font-size: 17px;
}

.case-detail-section .check-list li::before {
    top: 5px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.result-card {
    padding: 22px;
    border: 1px solid #D6E8FB;
    border-radius: var(--radius);
    background: var(--primary-tint);
}

.result-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-ink);
    font-size: 22px;
    letter-spacing: -0.01em;
}

.result-card span {
    color: var(--text-muted);
    font-size: 15px;
}

.case-disclaimer {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
}

/* Motion ------------------------------------------------------------------- */

/* script.js adds .reveal-pending only to sections below the fold, so content
   is never hidden when JavaScript is unavailable. */
.reveal-pending {
    opacity: 0;
    transform: translateY(16px);
}

.reveal {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1024px) {
    :root {
        --section-space: 80px;
    }

    .hero-grid,
    .about-grid,
    .faq-layout,
    .lifecycle {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero {
        padding: 64px 0 80px;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .lifecycle-loop {
        max-width: 480px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .targets {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .tier-for {
        min-height: 0;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
    }

    .cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-links.is-open {
        position: absolute;
        top: calc(100% + 12px);
        right: 24px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: min(300px, calc(100vw - 48px));
        padding: 8px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow-md);
    }

    .nav-links.is-open a:not(.btn) {
        padding: 12px 14px;
        border-radius: var(--radius-sm);
        font-size: 16px;
    }

    .nav-links.is-open a:not(.btn):hover {
        background: var(--bg-alt);
    }

    .nav-links.is-open .btn {
        margin-top: 8px;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }
}

@media (max-width: 720px) {
    :root {
        --section-space: 64px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .lifecycle-steps,
    .targets-list,
    .pillar-how .check-list,
    .case-detail-summary,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .section-description,
    .hero-description,
    .about-text p,
    .cta-card p {
        font-size: 17px;
    }

    .hero {
        padding: 48px 0 64px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .card,
    .targets,
    .certs {
        padding: 24px;
    }

    .cta-card {
        padding: 32px 24px;
    }

    .cta-actions,
    .cta-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .case-detail-hero {
        padding: 40px 0 48px;
    }

    .case-detail-body {
        padding-top: 48px;
    }
}
