/* ── FORM VALIDATION ── */
.form-group input.input-error {
    border-color: #e53935 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12) !important;
}
.field-error {
    display: none;
    color: #e53935;
    font-size: 12px;
    margin-top: 5px;
    font-family: "Fustat", Arial, sans-serif;
}
.field-error.visible {
    display: block !important;
}
#form-error-banner {
    display: none;
    background: #fff5f5;
    border: 1px solid #e53935;
    border-radius: 6px;
    padding: 10px 14px;
    color: #e53935;
    font-size: 13px;
    font-family: "Fustat", Arial, sans-serif;
    margin-bottom: 12px;
    text-align: center;
}
#form-error-banner.visible {
    display: block;
}

@font-face {
    font-family: "BLPylonSerif";
    src: url("./Freehand.LP/fonts/BLPylonSerif-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "BLPylonSerif";
    src: url("./Freehand.LP/fonts/BLPylonSerif-Book.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "BLPylonSerif";
    src: url("./Freehand.LP/fonts/BLPylonSerif-Regular.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "BLPylonSerif";
    src: url("./Freehand.LP/fonts/BLPylonSerif-Medium.otf") format("opentype");
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fustat";
    src: url("./Freehand.LP/fonts/Fustat-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fustat";
    src: url("./Freehand.LP/fonts/Fustat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fustat";
    src: url("./Freehand.LP/fonts/Fustat-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fustat";
    src: url("./Freehand.LP/fonts/Fustat-SemiBold.ttf") format("truetype");
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Geist Mono";
    src: url("./Freehand.LP/fonts/GeistMono-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Geist Mono";
    src: url("./Freehand.LP/fonts/GeistMono-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Geist Mono";
    src: url("./Freehand.LP/fonts/GeistMono-SemiBold.ttf") format("truetype");
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --orange: #fe6200;
    --orange-lt: #fff3eb;
    --dark: #1c1208;
    --dark-2: #231609;
    --dark-card: #2c1d0d;
    --text: #0d0b08;
    --text-2: #4a3a2a;
    --text-3: #9a8c7e;
    --border: #eae0d6;
    --cream: #fdf8f4;
    --white: #ffffff;
    --max-w: 1200px;
    --section-v: 96px;
    --font-serif: "BLPylonSerif", "BLPylonSerif", Georgia, serif;
    --font-sans: "Fustat", system-ui, "Fustat", sans-serif;
    --font-mono: "Geist Mono", "GeistMono", monospace;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: "Fustat", system-ui, "Fustat", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.nav-logo span {
    color: var(--orange);
}
.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--orange);
}
.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}
.nav-link-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-chevron {
    display: inline-block;
    vertical-align: middle;
    opacity: 0.6;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    font-family: "GeistMono", monospace;
    letter-spacing: 0;
    text-transform: uppercase;
}
.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}
.btn-md {
    padding: 13px 28px;
    font-size: 13px;
}
.btn-lg {
    padding: 15px 32px;
    font-size: 13px;
}
.btn-primary {
    background: var(--orange);
    color: #fff;
}
.btn-primary:hover {
    background: #e55500;
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    text-transform: none;
    letter-spacing: 0;
}
.btn-outline:hover {
    border-color: var(--text-3);
}
.btn-ghost {
    background: transparent;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.btn-white {
    background: #fff;
    color: var(--text);
}
.btn-white:hover {
    background: #f4f4f4;
}

/* ── LAYOUT HELPERS ── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}
.section {
    padding: var(--section-v) 0;
}
.section-sm {
    padding: 64px 0;
}
.section-xs {
    padding: 40px 0;
}
.label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: "GeistMono", monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
}
.label::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 1px;
    background: var(--orange);
    flex-shrink: 0;
}
.label-dark {
    color: #fff;
}
.label-dark::before {
    background: var(--orange);
}
.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.eyebrow-line {
    display: none;
}

h1 {
    font-family: "BLPylonSerif", Georgia, serif;
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text);
}
h2 {
    font-family: "BLPylonSerif", Georgia, serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 300;
    line-height: 1.22;
    letter-spacing: -0.3px;
    color: var(--text);
}
h3 {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--text);
}
h4 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}
p {
    color: var(--text-2);
    line-height: 1.7;
}

.accent {
    color: var(--orange);
}
.text-white {
    color: #fff !important;
}
.text-muted {
    color: var(--text-3);
}
.text-center {
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── HERO ── */
#hero {
    background: var(--cream);
    padding: 80px 0 56px;
    position: relative;
    overflow: hidden;
}
.hero-blob {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 640px;
    pointer-events: none;
    z-index: 0;
}
.hero-blob-left {
    left: -200px;
}
.hero-blob-right {
    right: -200px;
    transform: translateY(-50%) scaleX(-1);
}
.hero-layout {
    position: relative;
    z-index: 1;
}
.hero-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
}
.hero-left {
    padding-top: 8px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: "GeistMono", monospace;
    color: var(--orange);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-tag::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 1px;
    background: var(--orange);
    flex-shrink: 0;
}
.hero-tag svg {
    display: none;
}
.hero-left h1 {
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 540px;
}
.hero-data-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 36px;
}
.hero-data-strip .dot {
    color: var(--border);
}
.hero-data-strip strong {
    color: var(--text);
}
.hero-cta-row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

/* Hero Form Card */
.hero-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 80px;
}
.form-card-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 6px;
}
.form-card-sub {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-2);
    margin-bottom: 6px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--orange);
    background: #fff;
}
.form-group input::placeholder {
    color: var(--text-3);
}
.form-submit {
    width: 100%;
    margin-top: 6px;
}
.form-fine {
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

/* ── TRUST STRIP ── */
#trust {
    background: var(--cream);
    padding: 32px 40px 40px;
    border-bottom: 1px solid var(--border);
}
.trust-label {
    font-family: "GeistMono", monospace;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 20px;
}
.logo-grid-wrap {
    max-width: 1120px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 48px;
}
.logo-grid-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-grid-row + .logo-grid-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 10px;
}
.logo-item img {
    height: 28px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    opacity: 1;
    transition: opacity 0.25s;
}
.logo-item img:hover {
    opacity: 0.65;
}
/* Square/icon logos */
.logo-sq img {
    height: 40px;
    max-width: 100%;
}
/* West Marine, Delicato, OtterBox, taller to match visual weight */
.logo-west-marine img {
    height: 62px;
    max-width: 100%;
}
.logo-delicato img {
    height: 52px;
    max-width: 100%;
}
.logo-otter img {
    height: 56px;
    max-width: 100%;
}

/* ── AWARDS & RECOGNITIONS ── */
#awards {
    background: var(--white);
    padding: 36px 0 40px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.awards-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.awards-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.award-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border-right: 1px solid var(--border);
}
.award-item:last-child {
    border-right: none;
}
.award-item img {
    height: 88px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    opacity: 0.85;
    mix-blend-mode: multiply;
    transition: opacity 0.2s;
}
.award-item img:hover {
    opacity: 1;
}
/* Gartner — text wordmark, constrained to column */
.award-item.award-gartner img {
    filter: none;
    mix-blend-mode: multiply;
    height: auto;
    max-height: 44px;
    width: 100%;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.9;
}
/* Deloitte — real PNG badge, override generic award-item img rules */
.award-item.award-deloitte {
    align-items: center;
    justify-content: center;
}
.award-item.award-deloitte img.deloitte-badge {
    height: 92px;
    width: auto;
    max-width: none;
    display: block;
    opacity: 1;
    mix-blend-mode: normal;
}

/* ── RECOGNITION & CERTS ── */
#recognition {
    border-bottom: 1px solid var(--border);
}

/* ── Awards dark strip ── */
.rec-awards-wrap {
    background: var(--dark);
    padding: 36px 0 40px;
}
.rec-awards-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 60px;
}
.rec-label-row {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.rec-label-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange);
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    white-space: nowrap;
}
.rec-label-pill::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 1px;
    background: var(--orange);
    flex-shrink: 0;
}
.rec-label-line {
    display: none;
}

.award-logos-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}
.award-logo-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.award-logo-item:last-child {
    border-right: none;
}
.award-logo-item img {
    height: 70px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
    opacity: 1;
}

/* ── Certs floating cards ── */
.rec-certs-wrap {
    background: var(--cream);
    padding: 36px 0 40px;
}
.rec-certs-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 60px;
}
.cert-cards-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}
.cert-card-item {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 12px rgba(28, 18, 8, 0.05);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}
.cert-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(28, 18, 8, 0.1);
}
.cert-card-item img {
    height: 70px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    display: block;
}
.cert-card-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #2a7a3a;
    background: #ebf7ee;
    border-radius: 20px;
    padding: 3px 8px;
}
.cert-card-status::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2a7a3a;
    flex-shrink: 0;
}

/* ── PROBLEM ── */
#problem {
    background: var(--dark);
    color: #fff;
    padding: var(--section-v) 0;
}
#problem h2 {
    color: #fff;
}
#problem .section-intro {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 680px;
    margin: 16px 0 52px;
    line-height: 1.7;
}
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.problem-card {
    background: var(--dark-2);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.problem-card:hover {
    background: var(--dark-card);
}
.prob-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(232, 112, 32, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: 0;
    flex-shrink: 0;
}
.problem-card h4 {
    color: #fff;
    font-size: 15px;
}
.problem-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ── SOLUTION ── */
#solution {
    background: var(--white);
    padding: var(--section-v) 0;
}
.solution-intro {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 64px;
}
.solution-intro h2 {
    margin-bottom: 16px;
}
.solution-intro p {
    font-size: 17px;
}
.solution-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.sol-feature {
    background: var(--white);
    padding: 36px 32px;
    display: flex;
    gap: 20px;
}
.sol-feature:hover {
    background: var(--cream);
}
.sol-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--orange-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
}
.sol-feature h3 {
    font-size: 16px;
    margin-bottom: 8px;
}
.sol-feature p {
    font-size: 14px;
    line-height: 1.65;
}

/* ── COMPARISON ── */
#comparison {
    background: var(--cream);
    padding: var(--section-v) 0;
}
.comparison-intro {
    text-align: center;
    margin-bottom: 52px;
}
.comparison-intro h2 {
    margin-bottom: 14px;
}
.comparison-intro p {
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}
.comparison-table {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}
.comp-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.comp-col-head {
    padding: 20px 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
}
.comp-col-head.without {
    background: #f0e8e0;
    color: var(--text-2);
    border-right: 1px solid var(--border);
}
.comp-col-head.with {
    background: var(--orange);
    color: #fff;
}
.comp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
}
.comp-cell {
    padding: 20px 28px;
    font-size: 14px;
    line-height: 1.6;
}
.comp-cell.without-cell {
    color: var(--text-2);
    border-right: 1px solid var(--border);
    position: relative;
    padding-left: 38px;
}
.comp-cell.without-cell::before {
    content: "✗";
    position: absolute;
    left: 16px;
    top: 20px;
    color: #e05050;
    font-size: 13px;
    font-weight: 700;
}
.comp-cell.with-cell {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding-left: 38px;
}
.comp-cell.with-cell::before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 20px;
    color: #2aa84a;
    font-size: 13px;
    font-weight: 700;
}

/* ── STATS ── */
#stats {
    background: var(--white);
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
}
.stats-intro {
    text-align: center;
    margin-bottom: 32px;
}
.stats-intro h2 {
    color: var(--text);
    margin-bottom: 10px;
}
.stats-intro p {
    color: var(--text-2);
    font-size: 15px;
    max-width: 560px;
    margin: 0 auto;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat-number {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 900;
    color: var(--orange);
    letter-spacing: -1px;
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.4;
    max-width: 200px;
}
.stat-source {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 2px;
    font-style: italic;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.benefit-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
}
.benefit-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(232, 112, 32, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}
.benefit-item p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ── CASE STUDY CAROUSEL ── */
#casestudy {
    background: var(--cream);
    padding: var(--section-v) 0;
}
.cs-intro {
    margin-bottom: 40px;
}
.cs-intro h2 {
    margin-bottom: 12px;
}
.cs-intro p {
    font-size: 17px;
    max-width: 600px;
}

.cs-carousel-wrap {
    position: relative;
}
.cs-track-outer {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
}
.cs-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Horizontal split card */
.cs-card {
    display: grid;
    grid-template-columns: 2fr 3fr;
    min-width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.cs-card-left {
    background: var(--dark);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}
.cs-client-type {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 6px;
}
.cs-client-type::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: var(--orange);
    flex-shrink: 0;
}
.cs-client-name {
    font-family: "BLPylonSerif", Georgia, serif;
    font-size: 22px;
    font-weight: 300;
    color: #fff;
    line-height: 1.35;
    margin-top: 12px;
}
.cs-context {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    flex: 1;
}
.cs-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 5px 10px;
    align-self: flex-start;
}
.cs-card-right {
    background: #fff;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.cs-metrics-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.cs-metric-num {
    font-size: 44px;
    font-weight: 900;
    color: var(--orange);
    letter-spacing: -2px;
    line-height: 1;
}
.cs-metric-label {
    font-size: 12px;
    color: var(--text-2);
    margin-top: 6px;
    line-height: 1.4;
}
.cs-result-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cs-result-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.55;
}
.cs-result-list li::before {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--orange-lt)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%23FE6200' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E")
        center/contain no-repeat;
}

/* Carousel controls */
.cs-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}
.cs-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 18px;
    color: var(--text);
    line-height: 1;
}
.cs-arrow:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}
.cs-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.cs-arrow:disabled:hover {
    background: var(--white);
    border-color: var(--border);
    color: var(--text);
}
.cs-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.cs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s;
}
.cs-dot.active {
    background: var(--orange);
    width: 24px;
    border-radius: 4px;
}
.cs-counter {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.5px;
}

/* ── PLATFORM ── */
#platform {
    background: #fff;
    padding: var(--section-v) 0;
    border-bottom: 1px solid var(--border);
}
.platform-intro {
    text-align: center;
    margin-bottom: 48px;
}
.platform-intro h2 {
    margin-bottom: 14px;
}
.platform-intro p {
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

/* Tab bar */
.plat-tabs {
    display: flex;
    gap: 0;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}
.plat-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    font-family: "Fustat", Arial, "Fustat", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-3);
    background: transparent;
    transition: all 0.22s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.plat-tab .tab-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.plat-tab:hover {
    color: var(--text);
}
.plat-tab:hover .tab-icon {
    opacity: 0.7;
}
.plat-tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}
.plat-tab.active .tab-icon {
    opacity: 1;
}

/* Tab panels */
.plat-panel {
    display: none;
}
.plat-panel.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.plat-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}
.plat-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}
.plat-num {
    display: none;
}
.plat-card h4 {
    font-size: 15px;
    font-weight: 300;
    color: var(--text);
}
.plat-card p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
}

.industries-block {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.industries-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 40px;
}
.industries-header-text {
    max-width: 560px;
}
.industries-header-text h3 {
    font-family: "BLPylonSerif", Georgia, serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 300;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    margin-top: 10px;
}
.industries-header-text p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.65;
}
.industries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    counter-reset: industry;
}
.industry-card {
    background: var(--white);
    padding: 22px 20px;
    border-left: none;
    border-radius: 0;
    counter-increment: industry;
    transition: background 0.2s;
}
.industry-card:hover {
    background: var(--cream);
}
.industry-card::before {
    content: counter(industry, decimal-leading-zero);
    display: block;
    font-family: "GeistMono", monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--orange);
    margin-bottom: 12px;
}
.industry-card-name {
    font-family: "BLPylonSerif", Georgia, serif;
    font-size: 15px;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 7px;
    line-height: 1.3;
}
.industry-card-desc {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.6;
}
.mode-block {
    margin-top: 40px;
}
.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.mode-pill {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mode-pill span {
    color: var(--text-3);
    font-weight: 400;
    font-size: 12px;
}
.agent-num {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(254, 98, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: 0.5px;
}

/* ── AGENTS ── */
#agents {
    background: var(--cream);
    padding: var(--section-v) 0;
}
.agents-intro {
    text-align: center;
    margin-bottom: 52px;
}
.agents-intro h2 {
    color: #000;
    margin-bottom: 14px;
}
.agents-intro p {
    color: var(--text-2);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto;
}

/* Horizontal flow */
.agent-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    gap: 0;
}
.agent-step {
    position: relative;
    padding: 32px 28px 28px;
    border: 1px solid var(--border);
    border-radius: 0;
    margin-right: -1px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    transition: background 0.2s;
}
.agent-step:first-child {
    border-radius: 14px 0 0 14px;
}
.agent-step:last-child {
    border-radius: 0 14px 14px 0;
    margin-right: 0;
}
.agent-step:hover {
    background: var(--cream);
    z-index: 1;
}

/* Arrow connector between steps */
.agent-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(254, 98, 0, 0.35);
    border-radius: 50%;
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
}

.agent-step-num {
    font-family: "GeistMono", monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange);
    opacity: 0.7;
}
.agent-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(254, 98, 0, 0.14);
    border: 1px solid rgba(254, 98, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: var(--orange);
    letter-spacing: 0.5px;
}
.agent-step h3 {
    color: var(--dark);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.3;
}
.agent-step p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
    flex: 1;
}
.agent-outcome {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 0.3px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.agent-outcome::before {
    content: "→";
}
.agent-num {
    display: none;
}
.agents-note {
    display: none;
}

/* ── CONTEXT GRAPH ── */
#context {
    background: var(--white);
    padding: var(--section-v) 0;
}
.context-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.context-text h2 {
    margin-bottom: 16px;
}
.context-text p {
    font-size: 16px;
    margin-bottom: 20px;
}
.context-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}
.ctx-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.ctx-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    flex-shrink: 0;
    margin-top: 6px;
}
.ctx-point p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
}
.ctx-point strong {
    color: var(--text);
    font-weight: 600;
}

/* Context diagram, dynamic architecture */
.context-diagram {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}
.diagram-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 16px;
    text-align: center;
}

/* Data sources row */
.arch-sources-row {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.arch-src {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 5px 11px;
    white-space: nowrap;
}
.arch-tier-label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 10px;
    text-align: center;
}

/* Animated connector */
.arch-connector {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 28px;
    position: relative;
    margin: 0 auto;
}
.arch-conn-line {
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--border),
        rgba(254, 98, 0, 0.4)
    );
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
@keyframes flowDown {
    0% {
        top: 0;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}
.arch-conn-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: flowDown 2s ease-in-out infinite;
}
.arch-conn-dot.delay {
    animation-delay: 1s;
}

/* Hub card */
@keyframes hubGlow {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(254, 98, 0, 0.25),
            0 4px 20px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow:
            0 0 0 10px rgba(254, 98, 0, 0),
            0 4px 20px rgba(0, 0, 0, 0.25);
    }
}
.arch-hub-card {
    background: var(--dark);
    border-radius: 10px;
    padding: 18px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: hubGlow 3s ease-in-out infinite;
    margin: 0 4px;
}
.arch-hub-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(254, 98, 0, 0.18) 0%,
        transparent 70%
    );
    pointer-events: none;
}
.arch-hub-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(254, 98, 0, 0.22);
    color: var(--orange);
    font-size: 11px;
    font-weight: 900;
    margin: 0 auto 8px;
    letter-spacing: 0.5px;
}
.arch-hub-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.arch-hub-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.6;
}

/* AI agents row */
.arch-agents-row {
    display: flex;
    gap: 7px;
}
.arch-agent {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    text-align: center;
    line-height: 1.35;
}
.arch-agent-badge {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--orange-lt);
    color: var(--orange);
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
}

/* ERP output bar */
.arch-erp-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(232, 112, 32, 0.09);
    border: 1px solid rgba(232, 112, 32, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-2);
}
.arch-erp-label {
    font-weight: 800;
    color: var(--orange);
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── FAQ ── */
#faq {
    background: var(--cream);
    padding: var(--section-v) 0;
}
.faq-intro {
    text-align: center;
    margin-bottom: 52px;
}
.faq-intro h2 {
    margin-bottom: 12px;
}
.faq-intro p {
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    cursor: pointer;
    gap: 20px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    transition: background 0.15s;
    list-style: none;
}
.faq-q:hover {
    background: var(--cream);
}
.faq-q::marker {
    display: none;
}
.faq-q::-webkit-details-marker {
    display: none;
}
.faq-toggle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--orange-lt);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.2s;
}
details[open] .faq-toggle {
    transform: rotate(45deg);
}
.faq-a {
    padding: 0 28px 24px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.75;
}

/* ── FINAL CTA ── */
#final-cta {
    background: radial-gradient(
        ellipse 80% 120% at 50% 80%,
        #3a1e08 0%,
        #1c1208 55%,
        #0e0904 100%
    );
    padding: 96px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
#final-cta::before {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 240px;
    background: rgba(80, 40, 12, 0.55);
    border-radius: 28px;
}
#final-cta::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 240px;
    background: rgba(80, 40, 12, 0.55);
    border-radius: 28px;
}
.final-cta-inner {
    position: relative;
    z-index: 1;
}
.final-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 40px;
}
#final-cta h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -1px;
    margin-bottom: 16px;
}
#final-cta p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 17px;
    margin-bottom: 36px;
    line-height: 1.7;
}
.cta-btn-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

/* ── FOOTER ── */
footer {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 56px 0 0;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.footer-brand {
    max-width: 320px;
}
.footer-logo {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
}
.footer-logo span {
    color: var(--orange);
}
.footer-tagline {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.65;
    margin-bottom: 20px;
}
.footer-address {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin-bottom: 28px;
}
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}
.footer-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-badges img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}
.footer-cols {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
    padding-top: 4px;
}
.footer-col {
    min-width: 140px;
}
.footer-col-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col-header-plus {
    color: #e8b84b;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.footer-col ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-col ul li:last-child {
    border-bottom: none;
}
.footer-col a {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
    padding: 11px 0;
}
.footer-col a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 48px;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4);
}
.footer-legal-links {
    display: flex;
    gap: 24px;
}
.footer-legal-links a {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-form-card {
        position: static;
        max-width: 540px;
        margin: 0 auto;
    }
    .context-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .agent-flow {
        grid-template-columns: repeat(2, 1fr);
    }
    .agent-step:nth-child(2) {
        border-radius: 0 14px 0 0;
    }
    .agent-step:nth-child(3) {
        border-radius: 0 0 0 14px;
    }
    .plat-panel.active {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-v: 52px;
    }

    /* ── Base ── */
    .container {
        padding: 0 20px;
    }
    h1 {
        font-size: clamp(26px, 7vw, 34px);
        line-height: 1.18;
    }
    h2 {
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.25;
    }
    h3 {
        font-size: 17px;
    }
    h4 {
        font-size: 15px;
    }

    /* ── Nav ── */
    nav {
        padding: 0 20px;
    }
    .nav-inner {
        height: 60px;
    }
    .nav-links {
        display: none;
    }
    .nav-cta {
        gap: 8px;
    }
    .btn-ghost {
        display: none;
    }
    .btn-sm {
        padding: 9px 16px;
        font-size: 11px;
        white-space: nowrap;
    }

    /* ── Hero ── */
    #hero {
        padding: 44px 0 36px;
    }
    .hero-layout {
        padding: 0 20px;
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-blob {
        display: none;
    }
    .hero-sub {
        font-size: 15px;
        line-height: 1.65;
    }
    .hero-cta-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .hero-data-strip {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 6px;
    }
    .hero-form-card {
        padding: 28px 20px;
        max-width: 100%;
    }
    .form-card-title {
        font-size: 17px;
    }
    /* stat chips */
    .hero-left > div[style*="display:flex"] {
        gap: 8px !important;
    }
    .hero-left > div[style*="display:flex"] > div {
        padding: 8px 14px !important;
    }

    /* ── Trust strip ── */
    #trust {
        padding: 24px 16px 28px;
    }
    .logo-grid-wrap {
        padding: 16px 12px;
        border-radius: 8px;
    }
    .logo-grid-row {
        flex-wrap: wrap;
        gap: 14px 8px;
        justify-content: center;
    }
    .logo-item {
        flex: 0 0 calc(25% - 8px);
        min-width: 0;
        padding: 4px 6px;
    }
    /* Reset ALL logo heights to a uniform value on mobile */
    .logo-item img,
    .logo-sq img,
    .logo-west-marine img,
    .logo-delicato img,
    .logo-otter img {
        height: 28px;
        width: auto;
        max-width: 100%;
    }

    /* ── Grids ── */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .solution-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .stat-num {
        font-size: 36px;
    }

    /* ── Comparison ── */
    .comp-header {
        grid-template-columns: 1fr;
    }
    .comp-col-head {
        padding: 16px 20px;
        font-size: 12px;
    }
    .comp-col-head.without {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    .comp-row {
        grid-template-columns: 1fr;
    }
    .comp-cell {
        padding: 14px 20px;
        font-size: 13px;
    }
    .comp-cell.without-cell {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    /* ── Case Study ── */
    .cs-card {
        grid-template-columns: 1fr;
    }
    .cs-card-left {
        padding: 28px 20px;
    }
    .cs-card-right {
        padding: 24px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .cs-metrics-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .cs-metric-num {
        font-size: 30px;
    }
    .cs-nav {
        gap: 8px;
    }
    .cs-dot {
        width: 6px;
        height: 6px;
    }

    /* ── Platform tabs ── */
    .plat-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 0;
    }
    .plat-tab {
        font-size: 12px;
        padding: 10px 14px;
        white-space: nowrap;
    }
    .plat-panel.active {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .plat-panel-text {
        padding: 0;
    }

    /* ── Industries ── */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .industry-card {
        padding: 18px 16px;
    }
    .industries-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .mode-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .mode-pill {
        padding: 14px 16px;
    }

    /* ── AI Agents ── */
    .agent-flow {
        grid-template-columns: 1fr;
    }
    .agent-step {
        border-radius: 0 !important;
        margin-right: 0;
        border-bottom: none;
        padding: 24px 20px;
    }
    .agent-step:first-child {
        border-radius: 14px 14px 0 0 !important;
    }
    .agent-step:last-child {
        border-radius: 0 0 14px 14px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
    .agent-step:not(:last-child)::after {
        content: "↓";
        right: auto;
        left: 50%;
        bottom: -14px;
        top: auto;
        transform: translateX(-50%);
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .agent-badge {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
    .agent-outcome {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* ── Context diagram ── */
    .context-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .context-diagram {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 12px;
    }
    .context-diagram svg {
        min-width: 440px;
        width: 100%;
    }
    .context-text {
        padding: 0;
    }

    /* ── Final CTA ── */
    .final-cta-card {
        padding: 44px 28px;
    }
    #final-cta {
        padding: 60px 20px;
    }

    /* ── FAQ ── */
    .faq-q {
        padding: 16px 20px;
        font-size: 14px;
    }
    .faq-a {
        padding: 0 20px 18px;
        font-size: 13px;
    }

    /* ── Footer ── */
    footer {
        padding: 48px 0 0;
    }
    .footer-inner {
        padding: 0 20px;
    }
    .footer-top {
        flex-direction: column;
        gap: 36px;
    }
    .footer-brand {
        max-width: 100%;
    }
    .footer-badges img {
        height: 42px;
    }
    .footer-cols {
        gap: 0;
        flex-wrap: wrap;
        width: 100%;
    }
    .footer-col {
        min-width: calc(50% - 1px);
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 32px;
    }
    .footer-legal {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    h1 {
        font-size: 26px;
    }
    h2 {
        font-size: 22px;
    }
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .logo-item {
        flex: 0 0 calc(33.33% - 8px);
    }
    .logo-item img,
    .logo-sq img,
    .logo-west-marine img,
    .logo-delicato img,
    .logo-otter img {
        height: 24px;
        width: auto;
        max-width: 100%;
    }
    .industries-grid {
        grid-template-columns: 1fr;
    }
    .cs-metrics-row {
        grid-template-columns: 1fr;
    }
    .footer-col {
        min-width: 100%;
    }
    .hero-left > div[style*="display:flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .hero-left > div[style*="display:flex"] > div {
        width: 100%;
        justify-content: flex-start;
    }
    .final-cta-card {
        padding: 36px 20px;
    }
    #final-cta h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .cert-card-item {
        flex: 0 0 calc(50% - 5px);
    }
    .award-logo-item {
        flex: 0 0 50%;
    }
    .logo-item {
        flex: 0 0 calc(25% - 8px);
    }
    .industries-grid {
        grid-template-columns: 1fr;
    }
    .industry-card:last-child {
        grid-column: auto;
    }
    .cs-metrics-row {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════
       MOBILE NAV, hamburger + slide-down panel
    ══════════════════════════════════════════ */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
    transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 98;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open {
    max-height: 400px;
}
.mobile-nav-inner {
    padding: 8px 20px 24px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-inner a:not(.btn) {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
}
.mobile-nav-inner a:not(.btn):last-of-type {
    border-bottom: none;
}
.mobile-nav-inner a:not(.btn):hover {
    color: var(--orange);
}
.mobile-nav-cta {
    margin-top: 16px;
    text-align: center;
    justify-content: center;
    width: 100%;
}

/* ══════════════════════════════════════════
       MOBILE, Awards & Recognition sections
       (no prior responsive rules existed)
    ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
    .mobile-nav {
        display: flex;
    }

    /* Awards light strip */
    #awards {
        padding: 28px 0;
    }
    .awards-inner {
        padding: 0 20px;
        gap: 20px;
    }
    .awards-logos {
        flex-wrap: wrap;
        gap: 0;
    }
    .award-item {
        flex: 0 0 50%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 14px 20px;
        justify-content: center;
    }
    .award-item:nth-child(4) {
        border-bottom: none;
    }
    .award-item:last-child {
        flex: 0 0 100%;
        border-bottom: none;
    }
    .award-item img {
        height: 56px;
    }
    .award-item.award-gartner img {
        height: 32px;
    }
    .award-item.award-deloitte img.deloitte-badge {
        height: 62px;
    }

    /* Recognition, awards dark strip */
    .rec-awards-wrap {
        padding: 28px 0 32px;
    }
    .rec-awards-inner {
        padding: 0 20px;
    }
    .award-logos-row {
        flex-wrap: wrap;
        gap: 0;
        justify-content: center;
    }
    .award-logo-item {
        flex: 0 0 50%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 14px 16px;
        justify-content: center;
    }
    .award-logo-item:nth-child(4),
    .award-logo-item:last-child {
        border-bottom: none;
    }
    .award-logo-item img {
        height: 48px;
        max-width: 130px;
    }

    /* Recognition, cert cards */
    .rec-certs-wrap {
        padding: 28px 0 32px;
    }
    .rec-certs-inner {
        padding: 0 20px;
    }
    .cert-cards-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .cert-card-item {
        flex: 0 0 calc(50% - 5px);
    }

    /* Final CTA button row */
    .cta-btn-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cta-btn-row .btn {
        text-align: center;
        justify-content: center;
    }
    #final-cta {
        padding: 64px 20px;
    }
    .final-cta-inner {
        padding: 0;
    }

    /* Problem section inline callout */
    #problem .container > div:last-child {
        padding: 20px !important;
    }

    /* Context diagram, allow horizontal scroll on tiny screens */
    .context-diagram {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .context-diagram svg {
        min-width: 340px;
    }

    /* Footer badges, wrap gracefully */
    .footer-badges {
        gap: 8px;
    }
    .footer-badges img {
        height: 38px;
    }
}

@media (max-width: 360px) {
    .cert-card-item {
        flex: 0 0 100%;
    }
    .award-item {
        flex: 0 0 100%;
    }
    .award-item:nth-child(4) {
        border-bottom: 1px solid var(--border);
    }
    .logo-item {
        flex: 0 0 calc(33.33% - 6px);
    }
}
