/* ============================================================
   TradeSuite Pro — design system + page styles
   Light "Indigo Premium" theme · scroll-driven 3D backdrop
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
    /* Surfaces — dark forest green */
    --bg:            #064c39;
    --bg-2:          #100c0d;
    --surface:       rgba(236, 231, 221, 0.13);
    --surface-solid: #11614a;
    --surface-2:     #125c45;
    --surface-3:     #176b51;
    --border:        rgba(231, 226, 216, 0.24);
    --border-strong: rgba(231, 226, 216, 0.38);
    --glass-border:  rgba(235, 231, 222, 0.28);

    /* Brand — burnt-orange accent */
    --primary:       #c78147;
    --primary-soft:  #eea362;
    --violet:        #dc8648;
    --gradient:      linear-gradient(135deg, #e78835 0%, #aa6a35 100%);
    --gradient-soft: linear-gradient(135deg, rgba(219, 169, 128, 0.18), rgba(196, 140, 100, 0.14));

    /* Text */
    --text:          #f3f2f2;
    --text-soft:     #e4b75e;
    --text-muted:    #d5cebe;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.22), 0 16px 36px rgba(0,0,0,0.30);
    --shadow-md: 0 14px 40px rgba(0,0,0,0.38);
    --shadow-lg: 0 30px 70px rgba(0,0,0,0.48);
    --shadow-brand: 0 14px 34px rgba(204,139,101,0.30);

    /* Type */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    /* Layout */
    --container: 1200px;
    --radius:    20px;
    --radius-sm: 13px;
    --radius-lg: 28px;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background:
        radial-gradient(60% 46% at 80% 2%, rgba(204, 139, 101, 0.15), transparent 66%),
        radial-gradient(82% 58% at 24% 0%, rgba(30, 156, 117, 0.55), transparent 60%),
        linear-gradient(178deg, #0c6149 0%, #08543c 55%, #054231 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: rgba(204, 139, 101, 0.18); color: var(--primary); }

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(204, 139, 101, 0.6);
    outline-offset: 2px;
}

/* ---------- Glassmorphism surfaces ---------- */
.hero-stat, .value-point, .solution-card, .ai-demo, .industry-tile,
.info-card, .audience-card, .faq-item, .step-card, .contact-form-wrap,
.contact-methods li, .btn-ghost, .bento-cell:not(.feature) {
    backdrop-filter: blur(15px) saturate(1.3);
    -webkit-backdrop-filter: blur(15px) saturate(1.3);
    border-color: var(--glass-border);
}
/* Fallback: if backdrop-filter is unsupported, keep cards opaque & readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero-stat, .value-point, .solution-card, .ai-demo, .industry-tile,
    .info-card, .audience-card, .faq-item, .step-card, .contact-form-wrap,
    .contact-methods li, .btn-ghost, .bento-cell:not(.feature) {
        background: rgba(13, 58, 45, 0.95);
    }
}

/* ---------- Scroll-driven 3D backdrop ---------- */
.bg-canvas {
    position: fixed; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    opacity: 0; transition: opacity 1.2s ease;
}
.bg-canvas.ready { opacity: 0.6; }

main { position: relative; z-index: 1; }
.site-footer, .marquee { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }

.h-xl { font-size: clamp(2.15rem, 6vw, 4.5rem); }
.h-lg { font-size: clamp(2rem, 4vw, 3.05rem); }
.h-md { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(72px, 11vw, 138px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }

.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin-top: 18px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--primary);
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid rgba(204, 139, 101, 0.22);
    background: var(--gradient-soft);
    margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-display); font-weight: 600; font-size: 0.97rem;
    padding: 14px 26px; border-radius: 999px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: var(--gradient); color: #1c130d; box-shadow: var(--shadow-brand);
    position: relative; overflow: hidden;
}
.btn-primary::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -130%; width: 55%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-22deg); transition: left 0.7s var(--ease); pointer-events: none;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(204,139,101,0.45); }
.btn-primary:hover::after { left: 170%; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 17px 34px; font-size: 1.04rem; }
.btn-white { background: #ece4d7; color: #1c130d; }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,0.18); }
.btn-outline-light { background: rgba(0,0,0,0.05); color: #1c130d; border: 1px solid rgba(0,0,0,0.32); }
.btn-outline-light:hover { background: rgba(0,0,0,0.12); transform: translateY(-3px); }

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute; left: -999px; top: 10px; z-index: 200;
    background: var(--primary); color: #1c130d; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(1, 51, 40, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 24px rgba(22, 19, 46, 0.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 4px 10px rgba(204,139,101,0.3)); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; color: var(--text); }
.brand-pro { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    font-size: 0.94rem; font-weight: 500; color: var(--text-soft);
    padding: 9px 14px; border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--primary); background: rgba(204, 139, 101, 0.07); }
.main-nav a.is-active { color: var(--primary); }
.nav-cta { margin-left: 10px; padding: 11px 22px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 138px 0 90px;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(52% 48% at 80% 24%, rgba(181, 118, 79, 0.12), transparent 70%),
        radial-gradient(50% 52% at 14% 78%, rgba(204, 139, 101, 0.12), transparent 70%);
}
.hero-inner { max-width: 740px; }
.hero h1 { margin-bottom: 24px; }
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.26rem); color: var(--text-soft); max-width: 588px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-muted); font-size: 0.9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before {
    content: ""; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
    background: var(--gradient-soft); border: 1px solid rgba(204,139,101,0.4);
}

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 52px; }
.hero-stat {
    flex: 1; min-width: 150px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.hero-stat strong { font-family: var(--font-display); font-size: 1.9rem; display: block; }
.hero-stat span { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); padding: 26px 0; overflow: hidden; background: var(--surface-2); }
.marquee-label { text-align: center; color: var(--text-muted); font-size: 0.82rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 18px; }
.marquee-track { display: flex; gap: 56px; align-items: center; animation: scroll-x 28s linear infinite; width: max-content; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--text-soft); opacity: 0.72; white-space: nowrap; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Value ---------- */
.value { text-align: center; }
.value-statement {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.5rem, 3.2vw, 2.55rem); line-height: 1.3;
    max-width: 920px; margin: 0 auto; letter-spacing: -0.02em;
}
.value-statement .dim { color: var(--text-muted); }
.value-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.value-point { padding: 28px; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.value-point .vp-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--gradient-soft); display: grid; place-items: center; margin-bottom: 16px; }
.value-point .vp-icon svg { width: 22px; height: 22px; stroke: var(--primary); }
.value-point h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value-point p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Solutions ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.solution-card {
    position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    transition: transform 0.32s var(--ease), box-shadow 0.32s, border-color 0.32s;
}
.solution-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.cat-sales    { --cat: #cc8b65; --cat2: #dba07d; }
.cat-ops      { --cat: #c2a06a; --cat2: #d6bb8a; }
.cat-people   { --cat: #7fa68c; --cat2: #9cc0a6; }
.cat-insights { --cat: #c98a72; --cat2: #dba491; }
.sol-icon {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    margin-bottom: 18px; box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, var(--cat), var(--cat2));
}
.sol-icon svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 1.8; fill: none; }
.sol-cat { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.solution-card h3 { font-size: 1.22rem; margin: 5px 0 9px; }
.solution-card p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- AI section ---------- */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai-copy h2 { margin-bottom: 18px; }
.ai-copy > p { color: var(--text-muted); font-size: 1.06rem; margin-bottom: 30px; }
.ai-capabilities { display: flex; flex-direction: column; gap: 16px; }
.ai-cap { display: flex; gap: 15px; }
.ai-cap-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--gradient-soft); border: 1px solid rgba(204,139,101,0.2); display: grid; place-items: center; }
.ai-cap-icon svg { width: 21px; height: 21px; stroke: var(--primary); }
.ai-cap h4 { font-size: 1.05rem; margin-bottom: 3px; }
.ai-cap p { color: var(--text-muted); font-size: 0.93rem; }

.ai-demo {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg);
    position: relative;
}
.ai-demo::before {
    content: ""; position: absolute; inset: -2px; border-radius: var(--radius-lg); z-index: -1;
    background: var(--gradient); opacity: 0.25; filter: blur(26px);
}
.ai-demo-head { display: flex; align-items: center; gap: 11px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.ai-demo-dot { width: 34px; height: 34px; border-radius: 10px; background: var(--gradient); display: grid; place-items: center; }
.ai-demo-dot svg { width: 18px; height: 18px; stroke: #fff; }
.ai-demo-head strong { font-family: var(--font-display); font-size: 0.98rem; }
.ai-demo-head span { font-size: 0.8rem; color: #5cc88a; display: flex; align-items: center; gap: 6px; }
.ai-demo-head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5cc88a; }
.ai-bubble { padding: 13px 16px; border-radius: 14px; font-size: 0.92rem; margin-bottom: 12px; max-width: 92%; }
.ai-bubble.user { background: var(--gradient); color: #1c130d; margin-left: auto; border-bottom-right-radius: 4px; }
.ai-bubble.bot { background: var(--surface-2); color: var(--text-soft); border-bottom-left-radius: 4px; }
.ai-bubble.bot strong { color: var(--text); font-family: var(--font-display); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.ai-chip { font-size: 0.8rem; padding: 7px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }

/* AI claims strip */
.ai-claims {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--border);
}
.ai-claim { text-align: center; padding: 8px; }
.ai-claim strong {
    display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 8px;
}
.ai-claim span { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento-cell {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.bento-cell:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.bento-cell.wide { grid-column: span 2; }
.bento-cell.feature {
    background: var(--gradient); border-color: transparent; color: #1c130d;
    display: flex; flex-direction: column; justify-content: flex-end;
    box-shadow: var(--shadow-brand);
}
.bento-cell.feature p { color: rgba(28, 19, 13, 0.78); }
.bento-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--gradient-soft); display: grid; place-items: center; margin-bottom: 16px; }
.bento-icon svg { width: 21px; height: 21px; stroke: var(--primary); }
.bento-cell h3 { font-size: 1.12rem; margin-bottom: 7px; }
.bento-cell p { color: var(--text-muted); font-size: 0.92rem; }
.bento-cell.feature h3 { font-size: 1.55rem; }
.bento-big-num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; margin-bottom: 6px; color: #1c130d; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 22px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.service-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-num { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--primary); flex-shrink: 0; }
.service-item h4 { font-size: 1.04rem; margin-bottom: 4px; }
.service-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.industry-tile {
    display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
    padding: 28px 16px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.industry-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.industry-tile .it-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--gradient-soft); display: grid; place-items: center; }
.industry-tile .it-icon svg { width: 23px; height: 23px; stroke: var(--primary); }
.industry-tile span { font-family: var(--font-display); font-weight: 500; font-size: 0.93rem; }

/* ---------- CTA ---------- */
.cta-card {
    position: relative; overflow: hidden;
    background: var(--gradient); border-radius: var(--radius-lg);
    padding: clamp(40px, 6vw, 78px); text-align: center; color: #1c130d;
    box-shadow: var(--shadow-lg);
}
.cta-card::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(46% 60% at 18% 8%, rgba(255,255,255,0.22), transparent 70%),
        radial-gradient(46% 60% at 84% 96%, rgba(255,255,255,0.16), transparent 70%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card .eyebrow { color: #1c130d; background: rgba(0,0,0,0.1); border-color: rgba(0,0,0,0.2); }
.cta-card .eyebrow::before { background: #1c130d; }
.cta-card h2 { margin-bottom: 16px; }
.cta-card p { color: rgba(28, 19, 13, 0.82); max-width: 520px; margin: 0 auto 32px; font-size: 1.06rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-tagline { color: var(--text-muted); font-size: 0.93rem; margin: 18px 0; max-width: 320px; }
.footer-contact { font-size: 0.93rem; }
.footer-contact a { color: var(--text-soft); }
.footer-contact a:hover { color: var(--primary); }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-soft); font-size: 0.93rem; padding: 7px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.87rem;
}

/* ---------- Scroll reveal (directional slide-in) ---------- */
.reveal {
    opacity: 0; transform: translateY(46px);
    transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
}
.reveal.rv-left  { transform: translateX(-58px); }
.reveal.rv-right { transform: translateX(58px); }
.reveal.in-view  { opacity: 1; transform: translate(0, 0); }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
.reveal-d4 { transition-delay: 0.28s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .main-nav {
        position: fixed; inset: 76px 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: rgba(1, 51, 40, 0.98); backdrop-filter: blur(20px);
        padding: 20px 24px 30px; border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-135%); transition: transform 0.4s var(--ease);
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: 13px 14px; }
    .nav-cta { margin: 8px 0 0; text-align: center; }
    .nav-toggle { display: flex; }

    .solution-grid { grid-template-columns: repeat(2, 1fr); }
    /* tablet/mobile: reveals slide up, not sideways (avoids horizontal overflow) */
    .reveal.rv-left:not(.in-view), .reveal.rv-right:not(.in-view) { transform: translateY(42px); }
    .ai-grid { grid-template-columns: 1fr; gap: 36px; }
    .ai-claims { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .industry-grid { grid-template-columns: repeat(3, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .bg-canvas { opacity: 0; }
    .bg-canvas.ready { opacity: 0.3; }
    .solution-grid { grid-template-columns: 1fr; }
    .value-points { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .bento-cell.wide { grid-column: span 1; }
    .service-grid { grid-template-columns: 1fr; }
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: span 2; }
    .hero-actions .btn, .cta-actions .btn { flex: 1; }
    .hero-stat { min-width: calc(50% - 7px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal, .reveal.rv-left, .reveal.rv-right { opacity: 1; transform: none; }
}

/* ============================================================
   Inner pages — breadcrumb, page hero, content components
   ============================================================ */
.bg-canvas.inner { opacity: 0.4; }

/* Breadcrumb */
.breadcrumb { padding: 100px 0 0; position: relative; z-index: 1; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.86rem; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 500; }
.breadcrumb .bc-sep { color: var(--border-strong); }

/* Page hero */
.page-hero { padding: 30px 0 56px; position: relative; }
.page-hero-inner { max-width: 770px; }
.page-hero .ph-icon {
    width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
    margin-bottom: 22px; box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, var(--cat, #cc8b65), var(--cat2, #b5764f));
}
.page-hero .ph-icon svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 1.8; fill: none; }
.page-hero h1 { margin-bottom: 18px; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.24rem); color: var(--text-soft); max-width: 630px; margin-bottom: 30px; }
.error-hero { margin: 0 auto; text-align: center; }
.error-hero .lead { margin-left: auto; margin-right: auto; }
.error-hero .hero-actions { justify-content: center; }

/* Section head — left-aligned variant */
.section-head.left { margin: 0 0 clamp(32px, 5vw, 52px); text-align: left; max-width: 770px; }
.section-head.left p { margin-left: 0; }

/* Prose */
.prose { max-width: 770px; }
.prose h2 { margin-bottom: 16px; }
.prose-lead { font-size: 1.13rem; color: var(--text); margin-bottom: 16px; }
.prose p { color: var(--text-muted); margin-bottom: 14px; }

/* Info grid — features, challenges, services, industries hub */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card {
    position: relative; display: flex; flex-direction: column; padding: 26px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.info-card.linkable:hover { border-color: var(--border-strong); }
.info-bar {
    width: 36px; height: 5px; border-radius: 4px; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--cat, #cc8b65), var(--cat2, #b5764f));
}
.info-card h3 { font-size: 1.13rem; margin-bottom: 8px; }
.info-card p { color: var(--text-muted); font-size: 0.93rem; }
.info-card .service-num { display: block; font-size: 1.5rem; margin-bottom: 8px; }
.info-card .ind-icon {
    width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
    margin-bottom: 16px; background: var(--gradient-soft);
}
.info-card .ind-icon svg { width: 25px; height: 25px; stroke: var(--primary); stroke-width: 1.7; fill: none; }

/* Card link arrow */
.card-link {
    display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 16px;
    font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--primary);
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.solution-card:hover .card-link svg, .info-card:hover .card-link svg { transform: translateX(4px); }

/* AI band */
.ai-band {
    display: flex; gap: 22px; align-items: flex-start;
    background: var(--gradient); color: #1c130d; border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-brand);
}
.ai-band-icon {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 13px;
    background: rgba(0, 0, 0, 0.18); display: grid; place-items: center;
}
.ai-band-icon svg { width: 26px; height: 26px; stroke: #fff; }
.ai-band h3 { font-size: 1.3rem; margin-bottom: 8px; }
.ai-band p { color: rgba(28, 19, 13, 0.8); font-size: 1rem; }

/* Split — benefits + side card */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.split h2 { margin: 14px 0 18px; }
.benefit-list { display: flex; flex-direction: column; gap: 12px; }
.benefit-list li { position: relative; padding-left: 34px; color: var(--text-soft); font-size: 1rem; }
.benefit-list li::before {
    content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px;
    background: var(--gradient-soft); border: 1px solid rgba(204, 139, 101, 0.3);
}
.benefit-list li::after {
    content: ""; position: absolute; left: 7px; top: 6px; width: 8px; height: 5px;
    border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
    transform: rotate(-45deg);
}
.audience-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm);
}
.audience-card h3 { font-size: 1.13rem; margin-bottom: 10px; }
.audience-card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 16px; }
.text-link {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--primary);
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-mark::before, .faq-mark::after {
    content: ""; position: absolute; background: var(--primary); border-radius: 2px;
    transition: transform 0.25s var(--ease);
}
.faq-mark::before { left: 8px; top: 2px; width: 2px; height: 14px; }
.faq-mark::after  { left: 2px; top: 8px; width: 14px; height: 2px; }
.faq-item[open] .faq-mark::before { transform: rotate(90deg); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { color: var(--text-muted); font-size: 0.96rem; }

/* Steps */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card {
    padding: 26px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.step-num {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
    background: var(--gradient); color: #1c130d; font-family: var(--font-display); font-weight: 700;
    margin-bottom: 14px;
}
.step-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-info h2 { margin-bottom: 14px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 24px; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; }
.contact-methods li {
    display: flex; flex-direction: column; gap: 3px; padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.cm-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.contact-methods a { font-family: var(--font-display); font-weight: 600; color: var(--primary); }
.contact-form-wrap {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md);
}
.contact-form h2 { margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; }
.field .opt { color: var(--text-muted); font-weight: 400; }
.field input, .field textarea {
    width: 100%; font-family: var(--font-body); font-size: 0.96rem;
    padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(204, 139, 101, 0.15);
}
.field textarea { resize: vertical; }
.field-error { display: block; margin-top: 6px; font-size: 0.84rem; color: #f0857d; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 18px 20px; border-radius: var(--radius-sm); margin-bottom: 22px; }
.form-note strong { font-family: var(--font-display); display: block; margin-bottom: 4px; }
.form-note p { font-size: 0.93rem; }
.form-note-ok { background: rgba(92,200,138,0.12); border: 1px solid rgba(92,200,138,0.4); color: #7fd6a0; }
.form-note-warn { background: rgba(204,139,101,0.14); border: 1px solid rgba(204,139,101,0.42); color: #e2b48f; }
.form-note a { color: inherit; text-decoration: underline; }

/* Inner-page responsive */
@media (max-width: 940px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .step-grid { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .contact-layout { grid-template-columns: 1fr; gap: 28px; }
    .ai-band { flex-direction: column; gap: 16px; }
}
@media (max-width: 680px) {
    .info-grid { grid-template-columns: 1fr; }
    .step-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Blog & article pages
   ============================================================ */
.article-tag {
    display: inline-block; align-self: flex-start;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--primary); background: var(--gradient-soft);
    border: 1px solid rgba(204, 139, 101, 0.22);
    padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.article-card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.article-card p { flex-grow: 1; }
.article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 0.86rem; margin-top: 16px;
}
.article-meta .dot { opacity: 0.5; }

/* Article page */
.article-page { padding-bottom: 32px; }
.article-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.article-head .article-tag { margin: 0 0 6px; }
.article-head h1 { margin: 0 0 16px; }
.article-head .article-meta { justify-content: center; margin-top: 0; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body .prose-lead { font-size: 1.18rem; color: var(--text); margin-bottom: 24px; }
.article-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 36px 0 12px; }
.article-body p { color: var(--text-soft); margin-bottom: 14px; font-size: 1.03rem; }
.article-list { margin: 8px 0 18px; display: flex; flex-direction: column; gap: 9px; }
.article-list li { position: relative; padding-left: 26px; color: var(--text-soft); font-size: 1.03rem; }
.article-list li::before {
    content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px;
    border-radius: 3px; background: linear-gradient(135deg, var(--primary), var(--violet));
}
.back-link-wrap { margin-top: 30px; }

/* Footer newsletter */
.footer-newsletter {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 24px; padding-bottom: 36px; margin-bottom: 40px; border-bottom: 1px solid var(--border);
}
.footer-newsletter h3 { font-size: 1.3rem; margin-bottom: 5px; }
.footer-newsletter p { color: var(--text-muted); font-size: 0.93rem; max-width: 430px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
    font-family: var(--font-body); font-size: 0.95rem; padding: 13px 18px;
    border: 1px solid var(--border-strong); border-radius: 999px;
    background: var(--surface); color: var(--text); min-width: 270px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-form input[type="email"]:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(204, 139, 101, 0.15);
}
.newsletter-done { color: #5cc88a; font-family: var(--font-display); font-weight: 600; }
@media (max-width: 560px) {
    .newsletter-form { width: 100%; }
    .newsletter-form input[type="email"] { min-width: 0; flex: 1; }
}

/* ---------- Scroll progress + interaction polish ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--gradient); z-index: 200;
    transition: width 0.12s linear; box-shadow: 0 0 12px rgba(204, 139, 101, 0.55);
}
.solution-card .sol-icon,
.info-card .ind-icon { transition: transform 0.35s var(--ease), box-shadow 0.3s; }
.solution-card:hover .sol-icon,
.info-card.linkable:hover .ind-icon { transform: scale(1.08) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) {
    .scroll-progress { display: none; }
}
