/* =====================================================================
   Trinode Solutions — stylesheet (light theme)
   Plain CSS, no build step. Design tokens live in :root below.
   ===================================================================== */

:root {
    /* Brand (indigo) — text shades darkened for contrast on white,
       gradient shades kept vivid. */
    --brand-50:  #eef2ff;
    --brand-100: #e0e7ff;
    --brand:      #4f46e5;  /* links / eyebrow / text */
    --brand-strong: #4338ca;
    --grad-start: #6366f1;  /* button/gradient start */
    --grad-end:   #06b6d4;  /* button/gradient end */
    --accent:     #0891b2;  /* cyan icons / checks */
    --accent-deep:#0e7490;

    /* Surfaces & borders (light) */
    --bg:        #ffffff;
    --bg-alt:    #f8fafc;
    --surface:   #ffffff;
    --surface-2: #f1f5f9;
    --border:    #e2e8f0;
    --border-strong: #cbd5e1;
    --faint:     #94a3b8;

    /* Text */
    --heading:   #0f172a;
    --body:      #334155;
    --secondary: #475569;
    --muted:     #64748b;

    /* Misc */
    --radius:    16px;
    --radius-lg: 24px;
    --radius-sm: 10px;
    --container: 1200px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, .12);
    --shadow-brand: 0 14px 30px rgba(79, 70, 229, .25);
    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, 'SFMono-Regular', 'Menlo', monospace;
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(99, 102, 241, .22); color: var(--heading); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Layout --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---- Icons ---------------------------------------------------------- */
.icon { width: 24px; height: 24px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---- Buttons -------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .9rem;
    border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
    white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-primary {
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(79, 70, 229, .38); }
.btn-secondary {
    background: var(--surface); color: var(--heading);
    border-color: var(--border-strong); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: rgba(99, 102, 241, .5); background: var(--surface-2); }
.btn-white { background: #fff; color: var(--brand-strong); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); }
.btn-ghost { color: var(--secondary); padding: 13px 8px; }
.btn-ghost:hover { color: var(--heading); }
.btn-block { width: 100%; }

/* ---- Header --------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, .8); backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; transition: transform .3s; }
.logo:hover .logo-mark { transform: scale(1.08); }
.logo-text { font-size: 1.05rem; font-weight: 600; color: var(--heading); letter-spacing: -0.01em; }
.logo-text-muted { color: var(--muted); font-weight: 400; }

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--secondary); transition: color .2s, background .2s; }
.nav-link:hover { color: var(--heading); }
.nav-link.is-active { color: var(--heading); background: var(--surface-2); }
.nav-cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: transparent; border: none; color: var(--secondary); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle:hover { background: var(--surface-2); color: var(--heading); }

.mobile-menu { border-top: 1px solid var(--border); background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); }
.mobile-menu .container { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; padding-bottom: 16px; }
.mobile-link { padding: 12px 16px; border-radius: 10px; font-weight: 500; color: var(--body); }
.mobile-link:hover { background: var(--surface-2); color: var(--heading); }
.mobile-cta { margin-top: 8px; }

@media (min-width: 860px) {
    .nav-toggle, .mobile-menu { display: none; }
    .nav-cta { display: inline-flex; }
}
@media (max-width: 859px) {
    .nav-desktop { display: none; }
}

/* ---- Decorative backgrounds ----------------------------------------- */
.bg-grid {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(100, 116, 139, .1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100, 116, 139, .1) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 72%);
    mask-image: radial-gradient(ellipse at center, #000 15%, transparent 72%);
}
.bg-grid.top { -webkit-mask-image: radial-gradient(ellipse at top, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at top, #000 10%, transparent 70%); }
.glow {
    position: absolute; z-index: 0; pointer-events: none; border-radius: 999px;
    filter: blur(110px); opacity: .5;
}
.glow-brand { background: rgba(79, 70, 229, .28); }
.glow-accent { background: rgba(6, 182, 212, .18); }

/* ---- Eyebrow & section heading -------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 15px; border-radius: 999px; border: 1px solid var(--border-strong);
    background: var(--surface); font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .13em; color: var(--brand);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

.section-head { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.section-head.left { align-items: flex-start; text-align: left; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 46rem; }
.section-head .lede { font-size: 1.1rem; color: var(--secondary); max-width: 40rem; }

.lede { font-size: 1.1rem; color: var(--secondary); }
.text-gradient {
    background: linear-gradient(100deg, var(--brand), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Hero ----------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 110px; }
.hero-inner { max-width: 52rem; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; margin-top: 24px; }
.hero .hero-lede { margin-top: 24px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--secondary); max-width: 40rem; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .glow-1 { top: -12%; left: 50%; transform: translateX(-50%); width: 900px; height: 480px; }
.hero .glow-2 { top: 28%; right: 4%; width: 300px; height: 300px; }

/* ---- Stat strip ----------------------------------------------------- */
.stat-strip {
    margin: 80px auto 0; max-width: 60rem;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--border); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.stat-cell { background: var(--surface); padding: 30px 20px; text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--heading); letter-spacing: -0.03em; }
.stat-label { margin-top: 4px; font-size: .85rem; color: var(--muted); }
@media (min-width: 720px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } .stat-value { font-size: 2.3rem; } }

/* ---- Cards / grids -------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, .4); box-shadow: var(--shadow-md); }

.chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 14px; color: var(--brand);
    background: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(6, 182, 212, .08));
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .22);
}
.chip.lg { width: 56px; height: 56px; border-radius: 16px; }

/* Service card */
.service-card { padding: 28px; }
.service-card h3 { font-size: 1.15rem; margin-top: 20px; }
.service-card p { margin-top: 8px; font-size: .92rem; color: var(--secondary); }
.feature-list { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--body); }
.feature-list .check { color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }

/* Project card */
.project-card { display: flex; flex-direction: column; overflow: hidden; }
.project-visual { position: relative; height: 172px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.project-visual .grid-tex {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, .06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, .06) 1px, transparent 1px);
    background-size: 40px 40px; opacity: .5;
}
.project-initials { position: relative; font-size: 3rem; font-weight: 800; color: rgba(15, 23, 42, .82); letter-spacing: -0.03em; }
.project-year { position: absolute; left: 16px; top: 16px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px); padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--secondary); }
.accent-brand   { background: linear-gradient(135deg, rgba(99, 102, 241, .28), rgba(99, 102, 241, .04)); }
.accent-accent  { background: linear-gradient(135deg, rgba(6, 182, 212, .28), rgba(6, 182, 212, .04)); }
.accent-emerald { background: linear-gradient(135deg, rgba(16, 185, 129, .28), rgba(16, 185, 129, .04)); }
.accent-amber   { background: linear-gradient(135deg, rgba(245, 158, 11, .30), rgba(245, 158, 11, .05)); }
.project-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project-cat { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.project-body h3 { font-size: 1.15rem; margin-top: 8px; }
.project-body p { margin-top: 8px; font-size: .92rem; color: var(--secondary); flex: 1; }
.tag-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; font-size: .74rem; color: var(--secondary); }
.card-link { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--brand); }
.project-card:hover .card-link .icon-sm { transform: translateX(4px); }
.card-link .icon-sm { transition: transform .2s; }

/* Process */
.process-card { position: relative; padding: 28px; }
.process-step { font-family: var(--mono); font-size: .85rem; font-weight: 700; color: var(--brand); }
.process-card h3 { margin-top: 12px; font-size: 1.1rem; }
.process-card p { margin-top: 8px; font-size: .9rem; color: var(--secondary); }

/* Values */
.value-card { padding: 24px; }
.value-card .chip { width: 44px; height: 44px; color: var(--accent); }
.value-card h3 { margin-top: 16px; font-size: 1.02rem; }
.value-card p { margin-top: 8px; font-size: .9rem; color: var(--secondary); }

/* ---- Split layout (why-us / about) ---------------------------------- */
.split { display: grid; gap: 48px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split .sticky { position: sticky; top: 108px; align-self: start; } }

/* ---- Page hero (inner pages) ---------------------------------------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero .container { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 84px; }
.page-hero .glow-1 { top: 0; left: 50%; transform: translateX(-50%); width: 700px; height: 280px; opacity: .4; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 24px; }
.page-hero .lede { margin-top: 24px; max-width: 42rem; }
.narrow { max-width: 48rem; }

/* ---- Services detail rows ------------------------------------------- */
.svc-row {
    display: grid; gap: 32px; padding: 36px; scroll-margin-top: 96px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.svc-row + .svc-row { margin-top: 24px; }
.svc-row h2 { font-size: 1.5rem; margin-top: 4px; }
.svc-num { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-top: 20px; }
.svc-row .lede { font-size: 1.1rem; color: var(--body); }
.svc-features { margin-top: 24px; display: grid; gap: 12px; }
.svc-features li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--body); }
.svc-features .check-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; background: rgba(99, 102, 241, .13); color: var(--accent); flex-shrink: 0; }
.svc-features .check-badge svg { width: 12px; height: 12px; }
@media (min-width: 820px) { .svc-row { grid-template-columns: 1fr 1.4fr; } .svc-features { grid-template-columns: 1fr 1fr; } }

/* ---- Case study detail ---------------------------------------------- */
.case-meta { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-top: 28px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--secondary); }
.back-link:hover { color: var(--heading); }
.back-link svg { transform: rotate(180deg); }
.case-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags .tag { padding: 7px 14px; font-size: .85rem; background: var(--surface); border-radius: var(--radius-sm); }
.case-body { display: grid; gap: 40px; }
.case-block h2 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.case-block p { margin-top: 12px; font-size: 1.1rem; color: var(--body); }
.results-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; }
.results-panel h2 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.results-list { margin-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.results-list li { display: flex; gap: 12px; }
.results-list .check-badge { margin-top: 3px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; background: rgba(99, 102, 241, .13); color: var(--accent); flex-shrink: 0; }
.results-list .check-badge svg { width: 12px; height: 12px; }
.results-list span.r { font-weight: 600; color: var(--heading); }
.results-cta { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 24px; }
@media (min-width: 960px) { .case-body { grid-template-columns: 1.6fr 1fr; gap: 64px; } .results-panel-wrap { position: sticky; top: 96px; align-self: start; } }

.next-case { border-top: 1px solid var(--border); }
.next-case .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.next-case .label { font-size: .85rem; color: var(--muted); }
.next-case a.title { font-size: 1.5rem; font-weight: 700; color: var(--heading); }
.next-case a.title:hover { color: var(--brand); }

/* ---- Stats band (about) --------------------------------------------- */
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-self: start; }
.stat-cards .card { padding: 28px; text-align: center; }
.stat-cards .num { font-size: 2.4rem; font-weight: 800; }

/* ---- Timeline ------------------------------------------------------- */
.timeline { margin-top: 60px; }
.timeline-item { position: relative; display: grid; gap: 8px; padding-bottom: 44px; padding-left: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 6px; width: 12px; height: 12px; border-radius: 999px; background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); box-shadow: 0 0 0 4px var(--bg); z-index: 1; }
.timeline-item::after { content: ""; position: absolute; left: 10px; top: 10px; width: 2px; height: 100%; background: var(--border-strong); }
.timeline-item:last-child::after { display: none; }
.timeline-year { font-size: 1.1rem; font-weight: 700; color: var(--brand); }
.timeline-item h3 { font-size: 1.1rem; }
.timeline-item p { color: var(--secondary); max-width: 40rem; }
@media (min-width: 700px) {
    .timeline-item { grid-template-columns: 120px 1fr; gap: 32px; padding-left: 0; }
    .timeline-year { text-align: right; padding-right: 32px; }
    .timeline-content { padding-left: 32px; }
    .timeline-item::before { left: 120px; }
    .timeline-item::after { left: 125px; }
}

/* ---- Contact -------------------------------------------------------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.5fr 1fr; gap: 64px; } }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .2s; }
.contact-method:hover { border-color: rgba(99, 102, 241, .4); }
.contact-method .chip { width: 44px; height: 44px; color: var(--accent); flex-shrink: 0; }
.contact-method .cm-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-method .cm-value { font-weight: 600; color: var(--heading); margin-top: 2px; }

.faq-card { margin-top: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
.faq-card h2 { font-size: 1.05rem; }
.faq-card dl { margin-top: 16px; display: flex; flex-direction: column; gap: 20px; }
.faq-card dt { font-size: .92rem; font-weight: 600; color: var(--heading); }
.faq-card dd { margin-top: 6px; font-size: .9rem; color: var(--secondary); }

/* ---- Forms ---------------------------------------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 500; color: var(--secondary); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 16px; border-radius: 12px;
    border: 1px solid var(--border-strong); background: #fff; color: var(--heading);
    font: inherit; font-size: .92rem; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--grad-start); box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-note { font-size: .78rem; color: var(--muted); max-width: 22rem; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 20px; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.form-success { text-align: center; padding: 44px 24px; }
.form-success .chip { width: 56px; height: 56px; margin: 0 auto; color: var(--accent); }
.form-success h3 { margin-top: 20px; font-size: 1.25rem; }
.form-success p { margin-top: 8px; color: var(--secondary); max-width: 24rem; margin-left: auto; margin-right: auto; }

/* ---- CTA banner ----------------------------------------------------- */
.cta-section { padding: 88px 0; }
.cta-banner {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand), var(--grad-end));
    padding: 72px 32px; text-align: center; box-shadow: 0 24px 50px rgba(79, 70, 229, .25);
}
.cta-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
    mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
}
.cta-content { position: relative; max-width: 40rem; margin: 0 auto; }
.cta-content h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-content p { color: rgba(238, 242, 255, .92); font-size: 1.1rem; margin-top: 20px; }
.cta-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---- Trinode Nexus -------------------------------------------------- */
.chip.sm { width: 34px; height: 34px; border-radius: 10px; }

/* Homepage spotlight panel */
.nexus-panel {
    position: relative; overflow: hidden;
    display: grid; gap: 40px; align-items: center;
    padding: 44px; border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(6, 182, 212, .08), transparent 55%),
        linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(255, 255, 255, .6));
    box-shadow: var(--shadow-sm);
}
.nexus-panel-text h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-top: 16px; }
.nexus-panel-text .lede { margin-top: 16px; }
.nexus-modules { display: grid; grid-template-columns: 1fr; gap: 12px; }
.nexus-module {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
    font-weight: 600; font-size: .92rem; color: var(--heading);
}
.nexus-module .chip { flex-shrink: 0; color: var(--brand); }
@media (min-width: 620px) { .nexus-modules { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .nexus-panel { grid-template-columns: 1.05fr 1fr; padding: 56px; } }

/* Product page hero */
.nexus-tagline { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 700; margin-top: 8px; }
.nexus-hero .lede { margin-top: 20px; }
.tech-row { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tech-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 4px; }

.highlight-card { padding: 32px; }
.highlight-card h3 { font-size: 1.15rem; }

/* ---- Prose (legal) -------------------------------------------------- */
.prose { max-width: 42rem; margin: 0 auto; }
.prose h1 { font-size: 2.2rem; }
.prose .updated { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.prose h2 { margin-top: 28px; font-size: 1.25rem; }
.prose p { margin-top: 18px; color: var(--body); }
.prose a { color: var(--brand); font-weight: 500; }
.prose a:hover { color: var(--brand-strong); }

/* ---- Footer --------------------------------------------------------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg-alt); padding: 56px 0; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-desc { margin-top: 16px; font-size: .88rem; color: var(--secondary); max-width: 20rem; }
.footer-social { margin-top: 24px; display: flex; gap: 8px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--muted); transition: color .2s, border-color .2s; }
.footer-social a:hover { color: var(--heading); border-color: rgba(99, 102, 241, .5); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h3 { font-size: .9rem; }
.footer-col ul { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: .88rem; color: var(--secondary); }
.footer-col a:hover { color: var(--heading); }
.footer-muted { font-size: .88rem; color: var(--muted); }
.footer-bottom { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--secondary); }

/* ---- Helpers -------------------------------------------------------- */
.mt-auto { margin-top: auto; }
.center { text-align: center; }
.flex-between { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* ---- Motion --------------------------------------------------------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fade-up .7s cubic-bezier(.16, 1, .3, 1) both; }
.fade-up.d1 { animation-delay: .05s; }
.fade-up.d2 { animation-delay: .12s; }
.fade-up.d3 { animation-delay: .19s; }
.fade-up.d4 { animation-delay: .26s; }
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
