/* JuryPanel Marketing Site */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--navy); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ── Tokens ── */
:root {
    --navy: #0A1E3D;
    --navy-mid: #122B52;
    --amber: #D97706;
    --amber-hover: #B45309;
    --paper: #F7F3EC;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --font-display: 'Bricolage Grotesque', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --content-max: 1100px;
    --content-narrow: 680px;
    --section-py: clamp(100px, 12vw, 160px);
    --section-px: clamp(24px, 5vw, 64px);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.5vw, 76px); }
h2 { font-size: clamp(32px, 4.5vw, 52px); }
h3 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em; line-height: 1.3; }
p { line-height: 1.7; }

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--section-px);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
    background: rgba(10, 30, 61, 0.97);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.nav-logo { height: 32px; width: auto; flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}
.nav-link:hover { color: rgba(255, 255, 255, 1); }
.nav-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    background: var(--amber);
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.005em;
}
.nav-cta:hover { background: var(--amber-hover); transform: translateY(-1px); }

/* Mobile hamburger (shown only <=767px; dropdown is built by main.js) */
.nav-toggle { display: none; }
.nav-mobile-menu { display: none; }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--navy);
    padding: 120px var(--section-px) 100px;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    transform: scale(1.05);
    animation: heroBgReveal 2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    pointer-events: none;
}
@keyframes heroBgReveal {
    to { opacity: 0.35; transform: scale(1); }
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center 35%, rgba(10, 30, 61, 0.85) 0%, rgba(10, 30, 61, 0.3) 55%, transparent 75%),
        linear-gradient(to bottom, rgba(10, 30, 61, 0.7) 0%, rgba(10, 30, 61, 0.15) 65%, rgba(10, 30, 61, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}
.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(217, 119, 6, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 2;
}
.hero-content { position: relative; max-width: 800px; z-index: 3; }
.hero h1 { color: var(--white); margin-bottom: 28px; }
.hero-sub {
    font-size: clamp(16px, 1.8vw, 19px);
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.75;
    text-wrap: pretty;
}
.hero-platform {
    font-size: clamp(14px, 1.5vw, 16px);
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
    text-wrap: pretty;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    background: var(--amber);
    border: none;
    border-radius: 10px;
    padding: 16px 36px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    letter-spacing: 0.005em;
}
.hero-cta:hover {
    background: var(--amber-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.25);
}
.hero-tagline {
    margin-top: 80px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Thesis band ── */
.thesis-band {
    background: var(--paper);
    text-align: center;
    padding: clamp(80px, 10vw, 140px) var(--section-px);
}
.thesis-line {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(20px, 2vw, 28px);
    color: var(--navy);
    letter-spacing: -0.015em;
    line-height: 1.4;
    max-width: 740px;
    margin: 0 auto;
    text-wrap: balance;
}

/* ── Pull quote band ── */
.pull-quote-band {
    background: var(--navy);
    text-align: center;
    padding: clamp(100px, 25vh, 200px) var(--section-px);
}
.pull-quote-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 3.5vw, 48px);
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto;
    text-wrap: balance;
}
.pull-quote-accent {
    color: var(--amber);
    font-size: 1.2em;
}

/* ── Sections shared ── */
.section {
    padding: var(--section-py) var(--section-px);
}
.section-inner {
    max-width: var(--content-max);
    margin: 0 auto;
}

/* ── Feature sections ── */
.feature + .feature {
    border-top: 1px solid rgba(0,0,0,0.06);
}
.feature-dark + .feature,
.feature + .feature-dark {
    border-top: none;
}
.feature {
    position: relative;
    overflow: hidden;
}
.feature-number {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--amber);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    display: block;
}
.feature h2 {
    color: var(--navy);
    margin-bottom: 32px;
    max-width: 600px;
}
.feature-body {
    font-size: clamp(16px, 1.6vw, 18px);
    color: var(--gray-600);
    max-width: 580px;
    line-height: 1.8;
    text-wrap: pretty;
}
.feature-body p + p { margin-top: 20px; }

/* -- Shared bleed image (positioned behind content) -- */
.feature-bg {
    position: absolute;
    top: 0;
    width: 65%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-bg.bg-visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Layout A: side-by-side bleed (text left, image fills right) --- */
.feature-bleed { min-height: 620px; }
.feature-bleed .feature-bg {
    right: 0;
    width: 55%;
    object-position: left center;
}
.feature-bleed .feature-copy {
    position: relative;
    z-index: 2;
    max-width: 480px;
}
.feature-bleed::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, var(--white) 42%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.4) 65%, rgba(255,255,255,0) 80%);
    pointer-events: none;
}

/* --- Layout A on dark bg --- */
.feature-bleed.feature-dark::after {
    background: linear-gradient(to right, var(--navy) 42%, rgba(10,30,61,0.95) 50%, rgba(10,30,61,0.4) 65%, rgba(10,30,61,0) 80%);
}

/* --- Layout A reversed: text right, image fills left --- */
.feature-bleed-reverse .feature-bg {
    left: 0;
    right: auto;
    width: 55%;
    object-position: right center;
}
.feature-bleed-reverse .section-inner {
    display: flex;
    justify-content: flex-end;
}
.feature-bleed-reverse::after {
    background: linear-gradient(to left, var(--gray-50) 42%, rgba(250,250,250,0.95) 50%, rgba(250,250,250,0.4) 65%, rgba(250,250,250,0) 80%);
}

/* --- Layout B: showcase (text above, image fills bottom) --- */
.feature-showcase {
    min-height: 860px;
    display: flex;
    flex-direction: column;
}
.feature-showcase .feature-bg {
    width: 100%;
    height: 60%;
    bottom: 0;
    top: auto;
    object-position: center top;
}
.feature-showcase .section-inner {
    position: relative;
    z-index: 2;
    max-width: var(--content-max);
    margin: 0 auto;
    padding-bottom: clamp(200px, 25vw, 360px);
}
.feature-showcase .feature-text {
    text-align: center;
    max-width: var(--content-narrow);
    margin: 0 auto;
}
.feature-showcase .feature-text h2 { max-width: none; }
.feature-showcase .feature-text .feature-body {
    max-width: none;
    margin: 0 auto;
}
.feature-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Showcase with contained image (narrower screenshots) */
.feature-showcase-contain .feature-bg {
    object-fit: contain;
    object-position: center center;
    width: 80%;
    left: 10%;
    height: 55%;
}

/* Showcase on white bg */
.feature-showcase:not(.feature-dark)::after {
    background: linear-gradient(to bottom, var(--white) 38%, rgba(255,255,255,0.95) 48%, rgba(255,255,255,0.6) 62%, rgba(255,255,255,0.4) 75%, var(--white) 92%);
}

/* --- Dark variant --- */
.feature-dark {
    background: var(--navy);
}
.feature-dark h2 { color: var(--white); }
.feature-dark .feature-number { color: var(--amber); }
.feature-dark .feature-body { color: rgba(255, 255, 255, 0.55); }
.feature-dark::after {
    background: linear-gradient(to bottom, rgba(10,30,61,1) 38%, rgba(10,30,61,0.85) 46%, rgba(10,30,61,0.15) 62%, rgba(10,30,61,0.7) 78%, rgba(10,30,61,1) 92%);
}

/* --- Layout C: portrait image (text + image side by side) --- */
.feature-portrait .section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 80px);
    align-items: center;
}
.feature-portrait .feature-copy {
    max-width: 480px;
}
.feature-portrait-img {
    display: flex;
    justify-content: center;
}
.feature-portrait-img img {
    max-width: 100%;
    max-height: 560px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
}
.feature-dark .feature-portrait-img img {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
}
.feature-portrait-reverse .section-inner {
    direction: rtl;
}
.feature-portrait-reverse .section-inner > * {
    direction: ltr;
}

/* --- White bg (bleed-reverse) --- */
.feature-white { background: var(--white); }
.feature-white.feature-bleed-reverse::after {
    background: linear-gradient(to left, var(--white) 42%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.4) 65%, rgba(255,255,255,0) 80%);
}

/* --- Paper bg --- */
.feature-paper { background: var(--paper); }
.feature-paper::after {
    background: linear-gradient(to right, var(--paper) 42%, rgba(247,243,236,0.95) 50%, rgba(247,243,236,0.4) 65%, rgba(247,243,236,0) 80%);
}

/* --- Gray-50 bg --- */
.feature-gray { background: var(--gray-50); }
.feature-gray.feature-bleed-reverse::after {
    background: linear-gradient(to left, var(--gray-50) 42%, rgba(250,250,250,0.95) 50%, rgba(250,250,250,0.4) 65%, rgba(250,250,250,0) 80%);
}

/* ── Pricing section ── */
.pricing-section {
    background: var(--paper);
    text-align: center;
}
.pricing-inner {
    max-width: 720px;
    margin: 0 auto;
}
.pricing-inner h2 {
    color: var(--navy);
    margin-bottom: 20px;
}
.pricing-body {
    font-size: clamp(16px, 1.6vw, 18px);
    color: var(--gray-600);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 48px;
    text-wrap: pretty;
}
/* ── Pricing calculator ── */
.pricing-calculator {
    max-width: 480px;
    margin: 0 auto 40px;
    padding: 40px 36px;
    background: rgba(10, 30, 61, 0.03);
    border: 1px solid rgba(10, 30, 61, 0.06);
    border-radius: 16px;
}
.pricing-slider-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}
.pricing-slider-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}
.pricing-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.pricing-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--amber);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pricing-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(217, 119, 6, 0.4);
}
.pricing-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.pricing-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--amber);
    border: none;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}
.pricing-slider::-moz-range-track {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    border: none;
}
.pricing-slider-count {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    min-width: 40px;
    text-align: right;
}
.pricing-result {
    text-align: center;
}
.pricing-amount {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}
.pricing-per {
    font-size: 15px;
    color: var(--gray-500);
    font-weight: 500;
}
.pricing-rate {
    display: block;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--amber);
    letter-spacing: 0.02em;
}
.pricing-comparison {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}
.pricing-footnote {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    font-style: italic;
}

/* ── Demo section ── */
.demo {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.demo::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 160%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(217, 119, 6, 0.05) 0%, transparent 60%);
    pointer-events: none;
}
.demo-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 80px);
    align-items: start;
    position: relative;
}
.demo-copy h2 { color: var(--white); margin-bottom: 20px; }
.demo-copy p {
    font-size: clamp(16px, 1.6vw, 18px);
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    max-width: 420px;
}

/* ── Form ── */
.demo-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: clamp(28px, 4vw, 44px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
}
.form-input,
.form-select,
.form-textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--white);
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
    width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255, 255, 255, 0.2); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(217, 119, 6, 0.5);
    background: rgba(255, 255, 255, 0.08);
}
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.form-select option { background: var(--navy); color: var(--white); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-submit {
    grid-column: 1 / -1;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    background: var(--amber);
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.005em;
    width: 100%;
}
.form-submit:hover { background: var(--amber-hover); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-success {
    text-align: center;
    padding: 48px 24px;
}
.form-success h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 12px;
}
.form-success p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    line-height: 1.7;
}
.form-error {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #ffd9d4;
    background: rgba(220, 80, 60, 0.16);
    border: 1px solid rgba(220, 80, 60, 0.4);
    border-radius: 8px;
}

/* ── Footer ── */
.footer {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px var(--section-px);
}
.footer-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.footer-logo { height: 22px; width: auto; opacity: 0.3; }
.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
}
.footer-links { display: flex; gap: 28px; }
.footer-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease;
}
.footer-link:hover { color: rgba(255, 255, 255, 0.7); }

/* ── Subpage header ── */
.page-header {
    background: var(--navy);
    padding: 140px var(--section-px) 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.2;
    pointer-events: none;
}
.page-header h1 {
    color: var(--white);
    font-size: clamp(36px, 5vw, 56px);
    position: relative;
    z-index: 1;
}

.prose {
    max-width: var(--content-narrow);
    margin: 0 auto;
    padding: 80px var(--section-px) var(--section-py);
}
.prose p {
    font-size: 17px;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.8;
}
.prose h3 {
    font-size: 20px;
    color: var(--navy);
    margin-top: 56px;
    margin-bottom: 16px;
}
.prose h3:first-child { margin-top: 0; }

/* ── Subpages (security, about) ── */
.subpage {
    background: var(--navy);
    padding-top: 140px;
    position: relative;
    overflow: hidden;
}
.subpage-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.07;
    pointer-events: none;
}
.subpage-bg-short {
    height: 560px;
    object-fit: cover;
    object-position: center center;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
}
.subpage-header {
    text-align: center;
    padding: 0 var(--section-px) clamp(72px, 9vw, 120px);
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}
.subpage-header h1 {
    color: var(--white);
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 28px;
}
.subpage-lead {
    font-size: clamp(16px, 1.6vw, 18px);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    text-wrap: pretty;
}
.subpage-content {
    max-width: var(--content-narrow);
    margin: 0 auto;
    padding: 0 var(--section-px) var(--section-py);
    position: relative;
}
.subpage-block {
    padding: clamp(40px, 5vw, 56px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.subpage-block:last-child {
    padding-bottom: 0;
}
.subpage-label {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--amber);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 20px;
}
.subpage-block h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.subpage-block p,
.subpage-closing p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}
.subpage-block p + p,
.subpage-closing p + p {
    margin-top: 20px;
}
.subpage-block strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}
.subpage-block a,
.subpage-closing a {
    color: var(--amber);
    transition: color 0.2s ease;
}
.subpage-block a:hover,
.subpage-closing a:hover {
    color: var(--amber-hover);
}
.subpage-closing {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(40px, 5vw, 56px) 0 0;
}

/* ── Resources hub ── */
.resource-grid {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--section-px) var(--section-py);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
}
.resource-card {
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 3vw, 36px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.resource-card:hover {
    border-color: rgba(217, 119, 6, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}
.resource-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 18px;
}
.resource-card h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(20px, 2.1vw, 24px);
    color: var(--white);
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
}
.resource-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
}
.resource-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--amber);
    transition: color 0.2s ease;
}
.resource-card:hover .resource-more { color: var(--amber-hover); }

@media (max-width: 720px) {
    .resource-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Scroll animations ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 960px) {
    /* Bleed + showcase: separate text and image into stacked layout */
    .feature-bleed,
    .feature-showcase {
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: clamp(32px, 4vw, 48px);
        padding-bottom: clamp(48px, 6vw, 80px);
    }

    .feature-bg {
        position: relative;
        width: 100%;
        height: auto;
        top: auto; bottom: auto; left: auto; right: auto;
        order: 2;
        object-fit: cover;
        object-position: center top;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
        transform: none;
        transition: opacity 0.8s var(--ease-out);
    }
    .feature-bg.bg-visible {
        transform: none;
    }
    .feature-dark .feature-bg {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .feature-bleed .section-inner,
    .feature-showcase .section-inner {
        order: 1;
        padding-bottom: 0;
    }

    /* Remove gradient overlays — image is no longer behind text */
    .feature-bleed::after,
    .feature-showcase::after {
        display: none !important;
    }

    .feature-bleed .feature-copy,
    .feature-bleed-reverse .feature-copy { max-width: none; }
    .feature-bleed-reverse .section-inner { justify-content: flex-start; }

    /* Portrait: stack to single column */
    .feature-portrait .section-inner {
        grid-template-columns: 1fr;
    }
    .feature-portrait-reverse .section-inner {
        direction: ltr;
    }
    .feature-portrait-img img {
        max-height: 440px;
    }

    .thesis-band { padding: clamp(56px, 8vw, 80px) var(--section-px); }
    .pull-quote-band { padding: clamp(64px, 12vh, 120px) var(--section-px); }

    .demo-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .pricing-calculator { padding: 32px 24px; }

    .subpage { padding-top: 120px; }
}

/* Below iPad-portrait width the desktop links don't fit, so hide that group and
   swap in a hamburger that opens a dropdown (built by main.js from the links). */
@media (max-width: 767px) {
    .nav-right { display: none; }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-right: -9px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }
    .nav-toggle span + span { margin-top: 5px; }
    .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-mobile-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 30, 61, 0.98);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
        padding: 8px var(--section-px) 22px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    }
    .nav.menu-open .nav-mobile-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-mobile-link {
        padding: 15px 2px;
        font-size: 16px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.82);
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
    .nav-mobile-link:hover { color: #fff; }
    .nav-mobile-cta {
        margin-top: 16px;
        text-align: center;
        padding: 14px;
        font-size: 15px;
        font-weight: 600;
        color: var(--navy);
        background: var(--amber);
        border-radius: 10px;
    }
    .nav-mobile-cta:hover { background: var(--amber-hover); }
}

@media (max-width: 640px) {
    .nav { height: 64px; }
    .nav-logo { height: 26px; }
    .nav-link { display: none; }
    .nav-cta { padding: 8px 18px; font-size: 13px; }

    .hero { min-height: calc(100vh - 64px); padding: 100px var(--section-px) 80px; }
    .hero-tagline { margin-top: 56px; }

    .feature-portrait-img img {
        max-height: 340px;
    }

    .pull-quote-text { font-size: clamp(22px, 5vw, 32px); }

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

    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
    .footer-left { flex-direction: column; gap: 12px; }

    .subpage { padding-top: 100px; }
    .subpage-header { padding-bottom: clamp(48px, 7vw, 72px); }
}

/* ══════════════════ FEATURES PAGE ══════════════════ */
/* Designed showcase. `.features-*` namespace — intentionally distinct from the
   homepage's singular `.feature-*` classes so the two never collide. */

/* Header band (reuses navy .page-header) — bolder, with amber accent rule + lead */
.features-header { padding-bottom: clamp(64px, 8vw, 100px); }
.features-header-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.features-header h1 { color: var(--white); font-size: clamp(38px, 5.5vw, 60px); }
.features-rule {
    width: 64px; height: 3px; margin: 28px auto 0;
    background: var(--amber); border-radius: 2px;
}
.features-header-lead {
    max-width: 680px; margin: 28px auto 0;
    font-size: clamp(16px, 1.7vw, 19px);
    color: rgba(255, 255, 255, 0.6); line-height: 1.7; text-wrap: pretty;
}

/* Alternating group bands */
.features-group { padding: clamp(64px, 8vw, 104px) var(--section-px); }
.features-paper { background: var(--paper); }
.features-white { background: var(--white); }
.features-gray  { background: var(--gray-50); }
.features-navy  { background: var(--navy); }
.features-group-inner { max-width: var(--content-max); margin: 0 auto; }

/* Group head: mono amber eyebrow + Bricolage title */
.features-group-head { margin-bottom: clamp(32px, 4vw, 48px); }
.features-eyebrow {
    display: block; font-family: var(--font-mono); font-weight: 600;
    font-size: 13px; letter-spacing: 0.12em; color: var(--amber); margin-bottom: 12px;
}
.features-group-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(26px, 3.2vw, 38px); color: var(--navy);
    letter-spacing: -0.02em; line-height: 1.1;
}
.features-navy .features-group-title { color: var(--white); }

/* Card grid */
.features-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 1.8vw, 22px);
}
.features-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px;
    padding: clamp(22px, 2.4vw, 30px); box-shadow: 0 1px 2px rgba(10, 30, 61, 0.04);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.features-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10, 30, 61, 0.10);
    border-color: rgba(217, 119, 6, 0.45);
}
/* Amber square marker — a nod to the logo's amber panel tiles */
.features-card-mark {
    display: block; width: 12px; height: 12px;
    background: var(--amber); border-radius: 3px; margin-bottom: 16px;
}
.features-card p {
    font-size: 16px; color: var(--gray-600); line-height: 1.65; text-wrap: pretty;
}

/* Navy band — translucent-white card surface, white text */
.features-navy .features-card {
    background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.10); box-shadow: none;
}
.features-navy .features-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(217, 119, 6, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.features-navy .features-card p { color: rgba(255, 255, 255, 0.62); }

/* Closing CTA band (navy) */
.features-cta { background: var(--navy); text-align: center; padding: clamp(72px, 9vw, 120px) var(--section-px); }
.features-cta-inner { max-width: 640px; margin: 0 auto; }
.features-cta h2 { color: var(--white); font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
.features-cta p {
    max-width: 560px; margin: 0 auto 32px;
    color: rgba(255, 255, 255, 0.55); font-size: clamp(16px, 1.7vw, 18px); line-height: 1.7;
}
.features-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 600; color: var(--navy); background: var(--amber);
    border-radius: 10px; padding: 16px 36px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.features-cta-btn:hover {
    background: var(--amber-hover); transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.25);
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .features-group { padding: clamp(48px, 12vw, 64px) var(--section-px); }
}
