/* ============================================================
   TAILRD | Heart — site styles
   Palette: white / #F8FAFC alternating backgrounds
   · titanium #111827 — primary headings, dark sections
   · chrome   #2C4A60 — secondary headings, accents, links
   · porsche  #5A8AB0 — subtle accents, icons, borders only
   · arterial #7A1A2E — CTAs and key highlights only
   ============================================================ */

:root {
    --titanium-900: #111827;
    --titanium-800: #1B2535;
    --chrome-600: #2C4A60;
    --chrome-700: #223A4C;
    --porsche-500: #5A8AB0;
    --arterial-600: #7A1A2E;
    --arterial-700: #621523;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 6px 24px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 12px 40px rgba(17, 24, 39, 0.14);
    --radius: 14px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* swap this line to change the headline face (e.g. 'Space Grotesk' for a technical grotesk) */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; background: #FFFFFF; }

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

h1, h2, h3, h4 { color: var(--titanium-900); line-height: 1.2; }

/* refined detail: balanced headline wrapping */
h1, h2, .section-header p { text-wrap: balance; }

/* branded text selection */
::selection { background: var(--arterial-600); color: #fff; }

/* consistent, visible focus ring for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--chrome-600);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* anchor jumps land below the sticky nav */
section[id], header[id] { scroll-margin-top: 84px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-height: 44px;
    border-radius: 10px;
    border: none;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-crimson {
    background: var(--arterial-600);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-crimson:hover {
    background: var(--arterial-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: var(--white);
    color: var(--titanium-900);
    border: 1.5px solid var(--gray-200);
}
.btn-outline:hover {
    border-color: var(--porsche-500);
    color: var(--chrome-600);
}

.btn-lg {
    padding: 15px 32px;
    font-size: 16px;
}

/* ---------- Navigation ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease;
}

/* solid white + subtle border once scrolled past the hero */
.nav.scrolled {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--gray-200);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    text-decoration: none;
}

.nav-logo { height: 48px; width: auto; }

.brand-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--titanium-900);
    white-space: nowrap;
}

.brand-divider {
    font-weight: 400;
    color: var(--gray-400);
}

.brand-heart {
    font-weight: 600;
    color: var(--arterial-600);
}

.brand-text-light { color: var(--white); }
.brand-text-light .brand-divider { color: var(--gray-500); }
.brand-text-light .brand-heart { color: #C75D72; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
    color: var(--chrome-600);
    background: var(--gray-50);
}

.nav-cta-btn { white-space: nowrap; }

.nav-toggle {
    display: none;
    width: 48px;
    height: 44px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--titanium-900);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}
.nav-mobile:not([hidden]) { display: flex; }
.nav-mobile a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}
.nav-mobile a:hover { background: var(--gray-50); color: var(--chrome-600); }
.nav-mobile .btn { margin-top: 8px; justify-content: center; color: var(--white); }

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 96px;
    background: var(--white);
}

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

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 4.8vw, 58px);
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.05;
    margin-bottom: 22px;
}

.hero h1 .highlight { color: var(--arterial-600); }

.hero-definition {
    font-size: 18px;
    font-weight: 500;
    color: var(--chrome-600);
    line-height: 1.55;
    margin-bottom: 16px;
}

.hero-subhead {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-secondary-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.hero-secondary-link:hover { color: var(--chrome-600); }

/* elevated product panel with floating metric chip */
.hero-panel {
    position: relative;
    border-radius: 16px;
}

.hero-panel img {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-float);
}

.hero-stat-chip {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.hero-stat-chip-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    color: var(--arterial-600);
}

.hero-stat-chip-label {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
}

.hero-visual-caption {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    text-align: center;
}

/* ---------- Sections (shared) ---------- */
.section { padding: 96px 0; }

.section-gray { background: var(--gray-50); }

.section-header {
    max-width: 800px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--chrome-600);
    margin-bottom: 14px;
}
.section-header-light .section-kicker { color: var(--porsche-500); }

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(33px, 3.8vw, 43px);
    font-weight: 600;
    letter-spacing: -0.25px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-500);
}

.section-cta {
    margin-top: 48px;
    text-align: center;
}

.section-cta .btn { margin: 0 auto; }

.section-cta-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.section-cta-link:hover { color: var(--chrome-600); }

/* ---------- Clinical + financial impact (merged) ---------- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 28px;
}

.impact-card {
    padding: 34px 30px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--chrome-600);
    border-radius: var(--radius);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.impact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.impact-module {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--chrome-600);
    margin-bottom: 16px;
}

.impact-stat {
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
    color: var(--arterial-600);
    margin-bottom: 10px;
}

.impact-stat-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--titanium-900);
    line-height: 1.4;
}

.impact-source {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
}

.impact-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 22px 0;
}

.impact-roi {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--chrome-600);
}

.impact-roi-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    margin: 6px 0 16px;
}

.impact-card ul { list-style: none; }

.impact-card li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 8px;
}
.impact-card li:last-child { margin-bottom: 0; }
.impact-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--porsche-500);
}

.impact-disclaimer {
    max-width: 820px;
    margin: 36px auto 0;
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
}

/* ---------- How it works ---------- */
.steps-flow {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.step-card {
    flex: 1;
    padding: 32px 26px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--titanium-900);
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 15px;
    color: var(--gray-500);
}

.step-arrow {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--porsche-500);
}

/* ---------- Care continuum ---------- */
.continuum-section { border-top: 1px solid var(--gray-100); }

.continuum-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* connecting rail behind the nodes */
.continuum-track::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--porsche-500);
    opacity: 0.4;
    z-index: 0;
}

.continuum-stage {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.continuum-node {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--chrome-600);
    margin-bottom: 16px;
}
.continuum-num {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--chrome-600);
    line-height: 1;
}

.continuum-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--titanium-900);
    line-height: 1.3;
    max-width: 130px;
}

.continuum-sub {
    margin-top: 6px;
    font-size: 13px;
    color: var(--gray-500);
    max-width: 140px;
}

/* ---------- Why TAILRD ---------- */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.diff-card {
    height: auto;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--porsche-500);
    border-radius: var(--radius);
}

.diff-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.diff-card p {
    font-size: 15px;
    color: var(--gray-500);
}

/* ---------- Modules: static product cards ---------- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 28px;
}

/* 7 cards wrap 3 / 3 / 1 — center the last card */
.module-card:nth-child(7) { grid-column: 2; }

.module-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.module-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.module-shot {
    height: 190px;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}
.module-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.module-body {
    padding: 24px 26px 26px;
}

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

.module-body p {
    font-size: 15px;
    color: var(--gray-500);
}

.module-metric {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
    font-size: 13px !important;
    font-weight: 600;
    color: var(--chrome-600) !important;
    letter-spacing: 0.1px;
}

/* ---------- 3-tier intelligence: editorial zigzag ---------- */
.tier-rows {
    display: flex;
    flex-direction: column;
    gap: 64px;
    max-width: 1080px;
    margin: 0 auto;
}

.tier-row {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

/* alternate the image side */
.tier-row:nth-child(even) .tier-media { order: 2; }

.tier-media {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    background: var(--gray-50);
}
.tier-media img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.tier-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--chrome-600);
    margin-bottom: 14px;
}

.tier-content h3 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}

.tier-content > p {
    font-size: 16px;
    color: var(--gray-600);
}

.tier-content .tier-example {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
    font-style: italic;
    color: var(--chrome-600);
}

/* ---------- Security ---------- */
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.security-card {
    height: auto;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.security-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.security-card p {
    font-size: 15px;
    color: var(--gray-500);
}

/* ---------- Recognition & Partners ---------- */
.partners-block { margin-bottom: 48px; }
.partners-block:last-child { margin-bottom: 0; }

.partners-subhead {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--chrome-600);
    text-align: center;
    margin-bottom: 20px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}

.partners-grid-solo {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 140px;
    padding: 20px 28px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.partner-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.partner-logo {
    max-height: 56px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    filter: grayscale(60%);
    transition: filter 0.2s ease;
}

.partner-logo-text {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--chrome-600);
}

.partner-card:hover .partner-logo { filter: grayscale(0%); }

.partner-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.4;
}

/* ---------- Logo band ---------- */
.logo-band {
    padding: 64px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.logo-band-img {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

/* ---------- Team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
}

.team-card {
    padding: 36px 28px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--gray-100);
}

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

.team-role {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--chrome-600);
    margin: 6px 0 12px;
}

.team-card p {
    font-size: 15px;
    color: var(--gray-500);
}

/* ---------- Contact ---------- */
.contact-section {
    position: relative;
    overflow: hidden;
    padding-top: 96px;
    background: var(--titanium-900);
}
.contact-section > .container { position: relative; z-index: 2; }

/* brushed-metallic brand side panels (chrome blue left, arterial red right) */
.contact-section::before,
.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 170px;
    z-index: 1;
    pointer-events: none;
}
.contact-section::before {
    left: 0;
    background:
        linear-gradient(90deg, rgba(17,24,39,0) 55%, rgba(17,24,39,1) 100%),
        repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 2px, rgba(0,0,0,0.06) 2px 4px),
        radial-gradient(120% 60% at 20% 0%, rgba(255,255,255,0.10), transparent 60%),
        linear-gradient(150deg, #28506e 0%, #2C4A60 45%, #13212d 100%);
}
.contact-section::after {
    right: 0;
    background:
        linear-gradient(270deg, rgba(17,24,39,0) 55%, rgba(17,24,39,1) 100%),
        repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 2px, rgba(0,0,0,0.06) 2px 4px),
        radial-gradient(120% 60% at 80% 0%, rgba(255,255,255,0.08), transparent 60%),
        linear-gradient(210deg, #7a1a2e 0%, #5c1a1a 45%, #2a1016 100%);
}

.section-header-light h2 { color: var(--white); }
.section-header-light p { color: rgba(255, 255, 255, 0.75); }

.contact-form {
    max-width: 520px;
    margin: 0 auto;
}

.form-row { margin-bottom: 18px; }

.form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}

.form-row input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-family: var(--font);
    font-size: 16px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.form-row input:focus {
    outline: none;
    border-color: var(--porsche-500);
    background: rgba(255, 255, 255, 0.1);
}

.form-submit {
    width: 100%;
    margin-top: 8px;
}

.form-note {
    margin-top: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.form-alt {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.form-alt a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #9FC2DD;
    font-weight: 600;
    text-decoration: none;
}
.form-alt a:hover { text-decoration: underline; }

.form-aside {
    max-width: 460px;
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

/* ---------- Footer ---------- */
footer {
    padding: 40px 0 28px;
    background: var(--titanium-900);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}

.footer-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
}
.footer-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.15s ease, background 0.15s ease;
}
.footer-social a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }

.copyright {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

/* ---------- Scroll reveal (one-shot, JS-driven) ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-copy { text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 560px; margin: 0 auto; }

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

    .tier-row { gap: 40px; }
    .tier-media img { height: 280px; }

    .steps-flow { flex-wrap: wrap; }
    .step-card { flex: 1 1 calc(50% - 12px); }
    .step-arrow { display: none; }

    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .module-card:nth-child(7) { grid-column: auto; }

    .continuum-track { flex-wrap: wrap; justify-content: center; gap: 32px 16px; }
    .continuum-track::before { display: none; }
    .continuum-stage { flex: 0 0 calc(33.333% - 16px); }

}

@media (max-width: 880px) {
    .nav-links, .nav-cta-btn { display: none; }
    .nav-toggle { display: block; }
    .nav-logo { height: 38px; }
}

@media (max-width: 720px) {
    /* perf: no blur on small screens */
    .nav {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }

    .section { padding: 64px 0; }
    .hero { padding: 56px 0 64px; }
    .contact-section { padding-top: 72px; }
    .contact-section::before, .contact-section::after { width: 64px; }

    .impact-grid,
    .diff-grid, .security-grid, .team-grid,
    .partners-grid,
    .modules-grid { grid-template-columns: 1fr; }

    .tier-row { grid-template-columns: 1fr; gap: 24px; }
    .tier-row:nth-child(even) .tier-media { order: 0; }
    .tier-media img { height: 220px; }

    .step-card { flex: 1 1 100%; }

    .continuum-stage { flex: 0 0 calc(50% - 16px); }

    .footer-inner { flex-direction: column; }
}
