/* ==========================================================================
   Rizal site styles — MBR deck design system
   Palette, type scale, slide ("band") structure and card language are taken
   directly from the Rizal x Outworx Monthly Business Review deck.

   Load order matters: this sheet defines the shared system, and each page's
   own <style> block holds only the widget mockups unique to that page.
   ========================================================================== */
/* ---------- Tokens (from the MBR deck) ---------- */
:root {
    --green-deep: #0e332b;
    --green-mid: #123f36;
    --green-ink: #092019;
    --gold: #eaa721;
    --gold-soft: #f3c866;
    --red: #c1122e;
    --cream: #f6f3ea;
    --cream-dim: #ece7d9;
    --ink: #16241f;
    --ink-soft: #4c5a54;

    /* Compatibility aliases — consumed by the product widget styles */
    --bg-primary: #071a14;
    --bg-secondary: #0b2119;
    --text-primary: #ffffff;
    --text-secondary: #8a9a93;
    --accent: var(--gold);
    --accent-bright: var(--gold-soft);
    --accent-glow: rgba(234, 167, 33, 0.15);
    --border: rgba(255, 255, 255, 0.12);
    --card-bg: rgba(255, 255, 255, 0.05);

    --font: 'Helvetica Neue', Inter, Helvetica, Arial, sans-serif;
    --font-display: 'Teko', 'Helvetica Neue', Impact, sans-serif;
    --font-logo: 'Nova Square', 'Helvetica Neue', sans-serif;

    /* Deck type scale, reduced from the 1920px canvas */
    --type-display: clamp(52px, 7.6vw, 104px);
    --type-title: clamp(36px, 4.6vw, 58px);
    --type-subtitle: clamp(18px, 1.6vw, 23px);
    --type-h3: 20px;
    --type-body: 17px;
    --type-small: 15px;
    --type-micro: 12px;
    --type-stat: clamp(42px, 4.4vw, 60px);

    --pad-x: clamp(22px, 6vw, 100px);
    --pad-y: clamp(64px, 7.5vw, 108px);
    --band-inner: 1400px;
    --rule: 1px solid var(--cream-dim);
    --rule-dark: 1px solid rgba(255, 255, 255, 0.12);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--green-deep);
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    font-size: var(--type-body);
}

main { padding-top: 74px; }
img { max-width: 100%; }
::selection { background: var(--gold); color: var(--green-deep); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ======================================================================
   SLIDE BANDS — every section is a slide
   ====================================================================== */
.band {
    position: relative;
    padding: var(--pad-y) max(var(--pad-x), calc((100% - var(--band-inner)) / 2));
    scroll-margin-top: 74px;
}

.band--green { background: var(--green-deep); color: #ffffff; }
.band--cream { background: var(--cream); color: var(--ink); }
.band--ink   { background: var(--green-ink); color: #ffffff; }

.band--green + .band--green,
.band--ink + .band--ink { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.band--cream + .band--cream { padding-top: 0; }
.band--cream + .band--cream::before {
    content: '';
    display: block;
    margin-bottom: var(--pad-y);
    border-top: var(--rule);
}

/* Slide number, echoing the deck's screen labels */
.band-index {
    position: absolute;
    top: 30px;
    left: var(--pad-x);
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--gold);
    max-width: none;
}
.band--cream .band-index { color: #b4913f; }

/* ---------- Eyebrow / title / body ---------- */
.section-label,
.hero-eyebrow {
    display: block;
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.band--cream .section-label { color: #a8801f; }
.section-label::before,
.hero-eyebrow::before { content: none; }

.section-title {
    font-family: var(--font-display);
    font-size: var(--type-title);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: 0.01em;
    color: #ffffff;
    margin-bottom: 20px;
}
.band--cream .section-title { color: var(--ink); }

.section-body {
    font-size: var(--type-body);
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.78);
    max-width: 56ch;
}
.band--cream .section-body { color: var(--ink-soft); }

/* Gold rule used as the deck's section marker */
.deck-rule {
    display: block;
    width: 64px;
    height: 5px;
    background: var(--gold);
    border: 0;
    margin-bottom: 28px;
}

/* ======================================================================
   HEADER
   ====================================================================== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(9, 32, 25, 0.88);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(234, 167, 33, 0.35);
}

.header-content {
    max-width: none;
    margin: 0 auto;
    padding-inline: max(var(--pad-x), calc((100% - var(--band-inner)) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-logo);
    font-size: 27px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-decoration: none;
}
.logo::before {
    content: '';
    width: 11px;
    height: 11px;
    background: var(--gold);
    flex-shrink: 0;
}

.nav-link,
.dropdown-toggle {
    font-family: var(--font);
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 15px;
    border-radius: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-link:hover,
.dropdown-toggle:hover {
    color: var(--gold-soft);
    background: rgba(234, 167, 33, 0.1);
}

.dropdown { position: relative; display: flex; align-items: center; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 7px; }
.dropdown-toggle svg { transition: transform 0.25s var(--ease); }
.dropdown.active .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown.active .dropdown-toggle { color: var(--gold-soft); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--green-ink);
    border: 1px solid rgba(234, 167, 33, 0.3);
    border-radius: 8px;
    padding: 7px;
    min-width: 190px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s var(--ease);
    z-index: 1000;
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: var(--type-small);
    font-weight: 500;
    padding: 10px 13px;
    border-radius: 5px;
    border-left: 2px solid transparent;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}

.dropdown-item:hover {
    color: #ffffff;
    background: rgba(234, 167, 33, 0.12);
    border-left-color: var(--gold);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 100%; height: 2px;
    background: var(--gold);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    padding-top: 74px;
    background: var(--green-ink);
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    overflow-y: auto;
}
.mobile-nav.active { opacity: 1; visibility: visible; }
.mobile-nav-inner { padding: 24px; display: flex; flex-direction: column; gap: 2px; }

.mobile-nav-section {
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 22px 12px 10px;
}

.mobile-nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    padding: 13px 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s var(--ease);
}
.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: #ffffff;
    border-left-color: var(--gold);
    background: rgba(234, 167, 33, 0.1);
}

/* ======================================================================
   SLIDE RAIL — the deck's screen labels, turned into wayfinding
   ====================================================================== */
.slide-rail {
    position: fixed;
    top: 50%;
    right: 26px;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-end;
}

.rail-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 5px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s var(--ease);
}
.rail-item:hover { color: var(--gold-soft); }

.rail-label {
    max-width: 0;
    background: inherit;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.4s var(--ease), opacity 0.3s var(--ease);
}
.rail-item:hover .rail-label { max-width: 190px; opacity: 1; }

.rail-tick {
    width: 16px;
    height: 2px;
    background: currentColor;
    flex-shrink: 0;
    transition: width 0.35s var(--ease);
}
.rail-item.active { color: var(--gold); }
.rail-item.active .rail-tick { width: 30px; }

body.on-cream .rail-item { color: rgba(22, 36, 31, 0.4); }
body.on-cream .rail-item:hover { color: #a8801f; }
body.on-cream .rail-item.active { color: #a8801f; }

/* ======================================================================
   HERO — the deck's title slide
   ====================================================================== */
.hero {
    position: relative;
    background: var(--green-deep);
    min-height: min(72vh, 660px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(70px, 9vw, 120px) max(var(--pad-x), calc((100% - var(--band-inner)) / 2)) clamp(70px, 9vw, 110px);
    margin-top: 0;
    overflow: hidden;
    text-align: left;
    scroll-margin-top: 74px;
}

/* Concentric gold rings — lifted from the deck's title slide */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero::before {
    top: -190px; right: -190px;
    width: 540px; height: 540px;
    border: 2px solid rgba(234, 167, 33, 0.22);
}
.hero::after {
    top: -80px; right: -80px;
    width: 270px; height: 270px;
    border: 2px solid rgba(234, 167, 33, 0.32);
}

.hero-bg, .hero-dots { display: none; }

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: none;
    text-align: left;
    animation: deckIn 0.9s var(--ease) both;
}

.hero-content::before {
    content: '';
    display: block;
    width: 64px;
    height: 5px;
    background: var(--gold);
    margin-bottom: 30px;
}

@keyframes deckIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { margin-bottom: 18px; }

/* Split title slide: copy left, figure right — as the deck's opener */
.hero--split .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(30px, 5vw, 80px);
    align-items: center;
    width: 100%;
}
.hero--split .hero-figure {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding-right: clamp(0px, 5vw, 90px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--type-display);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0 0 22px;
    max-width: 17ch;
}

.hero-title .normal {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    text-shadow: none;
}

.hero-title .glow {
    color: var(--gold-soft);
    -webkit-text-fill-color: var(--gold-soft);
    text-shadow: none;
}

.hero-subtitle {
    font-size: var(--type-subtitle);
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 14px;
    max-width: 62ch;
    letter-spacing: 0;
}

.hero-pricing {
    display: inline-block;
    font-size: var(--type-small);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-soft);
    border-left: 2px solid var(--gold);
    padding-left: 16px;
    margin-bottom: 38px;
}

/* ---------- Pills ---------- */
.hero-pills, .lifecycle-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 0;
}
.pill-clickable { text-decoration: none; }

.pill {
    display: block;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid rgba(234, 167, 33, 0.45);
    border-radius: 3px;
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-soft);
    transition: all 0.25s var(--ease);
}

.pill:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--green-deep);
    transform: none;
    box-shadow: none;
}

.scroll-indicator { display: none; }

/* ======================================================================
   STATS
   ====================================================================== */
.stats-section { }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    border: var(--rule);
    border-radius: 8px;
    padding: 30px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: none;
}
.stat-card::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 6px;
}
.band--green .stat-card,
.band--ink .stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: var(--rule-dark);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(52px, 5vw, 68px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: 0.01em;
    color: var(--ink);
}
.stat-number span { color: #b4913f; font-size: 0.55em; font-weight: 700; }
.band--green .stat-number, .band--ink .stat-number { color: #ffffff; }
.band--green .stat-number span, .band--ink .stat-number span { color: var(--gold-soft); }

.stat-description {
    font-size: var(--type-small);
    line-height: 1.45;
    color: var(--ink-soft);
}
.band--green .stat-description,
.band--ink .stat-description { color: rgba(255, 255, 255, 0.68); }

/* Benefit highlights — the row that used to carry headline numbers */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 44px;
}
.highlight-card {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding-top: 22px;
    border-top: 2px solid var(--gold);
}
.highlight-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.highlight-body {
    font-size: var(--type-small);
    line-height: 1.6;
    color: var(--ink-soft);
}
.band--green .highlight-title, .band--ink .highlight-title { color: #ffffff; }
.band--green .highlight-body, .band--ink .highlight-body { color: rgba(255, 255, 255, 0.72); }

@media (max-width: 1024px) { .highlight-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; } }
@media (max-width: 620px)  { .highlight-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ======================================================================
   FEATURE ROWS
   ====================================================================== */
.features-section,
.principles-section {
    padding: 0;
    background: none;
}
.features-section > *,
.principles-section > * { max-width: none; }

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: clamp(36px, 5vw, 76px);
    align-items: center;
    padding: var(--pad-y) max(var(--pad-x), calc((100% - var(--band-inner)) / 2));
    position: relative;
    scroll-margin-top: 74px;
}

.feature-row > .feature-copy { max-width: 620px; }

.feature-copy .section-title { margin-bottom: 18px; }

.feature-widget { min-width: 0; }

/* ---------- Product UI mock chrome ---------- */
/* Widgets are dark product UI, so they never inherit a cream band's ink */
.widget-chrome,
.telephony-widget, .scorecard-widget, .insights-widget,
.sim-setup-widget, .call-widget {
    color: #ffffff;
}

.widget-chrome {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
.band--green .widget-chrome,
.band--ink .widget-chrome {
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.65);
}
.band--cream .widget-chrome {
    border-color: rgba(14, 51, 43, 0.18);
    box-shadow: 0 30px 60px -24px rgba(14, 51, 43, 0.45);
}

.widget-titlebar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.window-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.widget-titlebar-label {
    margin-left: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* ======================================================================
   BENEFITS / CAPABILITIES
   ====================================================================== */
.benefits-section, .capabilities-section { }
.benefits-wrap { max-width: none; }

.benefits-header, .capabilities-header, .role-header, .principles-intro {
    margin-bottom: 44px;
}
.capabilities-header .section-title { text-align: left !important; }
.band.benefits-header, .band.capabilities-header,
.band.role-header, .band.principles-intro { margin-bottom: 0; }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-card {
    background: #ffffff;
    border: var(--rule);
    border-radius: 8px;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.3s var(--ease);
}
.benefit-card::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--gold);
}
.benefit-card:hover { border-color: var(--gold); transform: none; box-shadow: none; }
.band--green .benefit-card,
.band--ink .benefit-card {
    background: rgba(255, 255, 255, 0.06);
    border: var(--rule-dark);
}

.benefit-title {
    font-size: var(--type-h3);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.012em;
    color: var(--ink);
}
.band--green .benefit-title, .band--ink .benefit-title { color: #ffffff; }

.benefit-body {
    font-size: var(--type-small);
    line-height: 1.6;
    color: var(--ink-soft);
}
.band--green .benefit-body, .band--ink .benefit-body { color: rgba(255, 255, 255, 0.72); }

.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.benefit-list li {
    position: relative;
    padding-left: 18px;
    font-size: var(--type-small);
    line-height: 1.5;
    color: var(--ink-soft);
}
.benefit-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 9px;
    width: 8px; height: 2px;
    background: var(--gold);
}
.band--green .benefit-list li { color: rgba(255, 255, 255, 0.72); }

.caps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--cream-dim);
    border: var(--rule);
}
.band--green .caps-grid,
.band--ink .caps-grid {
    background: rgba(255, 255, 255, 0.12);
    border: var(--rule-dark);
}

.cap-item {
    background: var(--cream);
    padding: 22px 26px;
    font-size: var(--type-small);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.cap-item::before {
    content: '';
    width: 20px; height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}
.cap-item:hover { background: #ffffff; transform: none; }
.band--green .cap-item,
.band--ink .cap-item { background: var(--green-deep); color: #ffffff; }
.band--green .cap-item:hover { background: var(--green-mid); }

/* The deck carries no emoji — structure is expressed with rules and numbers.
   Delete this rule to bring the emoji icons back. */
.benefit-icon, .cap-emoji, .product-icon { display: none; }

/* ======================================================================
   PRODUCTS (home) — the agent lifecycle, so numbering is meaningful
   ====================================================================== */
.products-section { }
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: product;
}

.product-card-clickable { text-decoration: none; display: block; }

.product-card {
    position: relative;
    height: 100%;
    background: #ffffff;
    border: var(--rule);
    border-radius: 8px;
    padding: 32px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-increment: product;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.product-card::before {
    content: counter(product, decimal-leading-zero);
    position: static;
    display: block;
    width: auto; height: auto;
    background: none;
    opacity: 1;
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #b4913f;
    margin-bottom: 2px;
}
.product-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.product-card:hover::before { opacity: 1; }

.product-number { display: none; }

.product-title {
    font-size: var(--type-h3);
    font-weight: 700;
    letter-spacing: -0.012em;
    color: var(--ink);
}

.product-description {
    font-size: var(--type-small);
    line-height: 1.6;
    color: var(--ink-soft);
}


/* ======================================================================
   AGENT LIFECYCLE — hero loop and the flow slide
   ====================================================================== */
.lifecycle-loop { width: min(100%, 460px); height: auto; overflow: visible; }
.loop-ring { fill: none; stroke: rgba(234, 167, 33, 0.28); stroke-width: 2; }
.loop-flow {
    fill: none;
    stroke: var(--gold);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 46 884;
    animation: loopTravel 7s linear infinite;
}
@keyframes loopTravel { to { stroke-dashoffset: -930; } }

/* Inner ring runs backwards: what each stage sends back to the ones before it */
.loop-ring-back {
    fill: none;
    stroke: rgba(234, 167, 33, 0.2);
    stroke-width: 1.5;
    stroke-dasharray: 5 7;
}
.loop-flow-back {
    fill: none;
    stroke: var(--gold-soft);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 34 670;
    opacity: 0.75;
    animation: loopTravelBack 9s linear infinite;
}
@keyframes loopTravelBack { to { stroke-dashoffset: 704; } }
.loop-node { fill: var(--green-deep); stroke: var(--gold); stroke-width: 2.5; }
.loop-num {
    fill: var(--gold);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-anchor: middle;
}
.loop-label {
    fill: #ffffff;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-anchor: middle;
}
.loop-centre {
    fill: rgba(255, 255, 255, 0.45);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-anchor: middle;
}

.flow-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 46px;
    padding-top: 26px;
    border-top: 2px solid var(--gold);
    list-style: none;
    counter-reset: flow;
}

.flow-track > li { display: flex; }

.flow-step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-increment: flow;
    text-decoration: none;
    color: inherit;
}
.flow-step::before {
    content: '';
    position: absolute;
    top: -33px;
    left: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--gold);
}

.flow-step-num {
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #a8801f;
}
.flow-step-title {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.flow-step-body {
    font-size: var(--type-small);
    line-height: 1.6;
    color: var(--ink-soft);
}
a.flow-step:hover .flow-step-title { color: #8a6712; }

.flow-aside {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 26px;
    align-items: start;
    margin-top: 52px;
    padding-top: 28px;
    border-top: var(--rule);
}
.flow-aside-label {
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a8801f;
    padding-top: 4px;
    white-space: nowrap;
}
.flow-aside-title {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 6px;
}
.flow-aside-body {
    font-size: var(--type-small);
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 70ch;
}

/* Return paths continue the flow slide: same idea, second direction */
.flow-returns {
    background: var(--green-deep);
    color: #ffffff;
    padding: clamp(46px, 5vw, 68px) max(var(--pad-x), calc((100% - var(--band-inner)) / 2))
             clamp(56px, 6.5vw, 88px);
}
.flow-sub-title {
    padding-top: 22px;
    border-top: 2px solid var(--gold);
    font-size: clamp(24px, 2.4vw, 31px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.018em;
    color: #ffffff;
}
.flow-returns .link-grid { margin-top: 30px; }

/* Return paths: what flows backwards through the loop */
.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 44px;
}
.link-card {
    padding-left: 18px;
    border-left: 2px solid var(--gold);
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.link-route {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.link-route span { color: rgba(255, 255, 255, 0.35); }
.link-body { font-size: var(--type-small); line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.link-foot {
    margin-top: 30px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
    max-width: 92ch;
}
@media (max-width: 1024px) { .link-grid { grid-template-columns: 1fr; } }

.mode-label {
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}
.mode-card::before { margin-bottom: 2px; }

/* Agent Assist modes */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 42px;
}
.mode-card {
    background: rgba(255, 255, 255, 0.06);
    border: var(--rule-dark);
    border-radius: 8px;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mode-card::before {
    content: '';
    width: 36px;
    height: 2px;
    background: var(--gold);
}
.mode-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: #ffffff;
}
.mode-body { font-size: var(--type-small); line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.mode-eg {
    margin-top: auto;
    padding-top: 14px;
    border-top: var(--rule-dark);
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    color: var(--gold-soft);
}

@media (max-width: 1024px) {
    .flow-track { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
    .modes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .flow-track { grid-template-columns: 1fr; gap: 34px; }
    .flow-aside { grid-template-columns: 1fr; gap: 14px; }
}

/* ======================================================================
   VIDEO
   ====================================================================== */
.video-section { }
.video-container {
    position: relative;
    max-width: 1000px;
    margin: 36px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(14, 51, 43, 0.18);
    box-shadow: 0 30px 60px -24px rgba(14, 51, 43, 0.45);
    background: var(--green-ink);
}
.video-container::before { content: none; }
.video-container iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ======================================================================
   CTA — the deck's closing slide
   ====================================================================== */
.cta-section {
    position: relative;
    background: var(--green-ink);
    padding: clamp(78px, 9vw, 130px) max(var(--pad-x), calc((100% - var(--band-inner)) / 2));
    text-align: left;
    scroll-margin-top: 74px;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    bottom: -200px; right: -160px;
    width: 520px; height: 520px;
    border-radius: 50%;
    border: 2px solid rgba(234, 167, 33, 0.16);
    background: none;
    pointer-events: none;
}
.cta-section > *:not(.band-index) { position: relative; }

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(44px, 5.6vw, 76px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 18px;
}
.cta-title::before {
    content: '';
    display: block;
    width: 64px; height: 5px;
    background: var(--gold);
    margin-bottom: 30px;
}

.cta-sub {
    font-size: var(--type-subtitle);
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 38px;
    max-width: 60ch;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gold);
    color: var(--green-deep);
    font-family: var(--font);
    font-size: var(--type-small);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 17px 34px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.cta-button:hover {
    background: var(--gold-soft);
    transform: translateY(-2px);
    box-shadow: none;
}
.cta-button::after, .cta-button:hover::after { content: none; }

/* ======================================================================
   FORM
   ====================================================================== */
.email-form { max-width: 660px; margin: 0; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-group { margin-bottom: 26px; }

.email-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    padding: 17px 20px;
    font-family: var(--font);
    font-size: var(--type-body);
    color: #ffffff;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.email-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.email-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.checkbox-group { margin-bottom: 26px; }

.checkbox-label-header {
    font-size: var(--type-micro);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.checkbox-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.checkbox-item input[type="checkbox"],
.demo-section input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.checkbox-label, .demo-label {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 3px;
    font-size: var(--type-small);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.checkbox-label:hover, .demo-label:hover {
    border-color: rgba(234, 167, 33, 0.6);
    color: #ffffff;
}

.checkbox-custom {
    width: 16px; height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s var(--ease);
}
.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 4px; top: 0px;
    width: 5px; height: 10px;
    border: solid var(--green-deep);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s var(--ease);
}

.checkbox-item input:checked + .checkbox-label,
.demo-section input:checked + .demo-label {
    border-color: var(--gold);
    background: rgba(234, 167, 33, 0.12);
    color: #ffffff;
}
.checkbox-item input:checked + .checkbox-label .checkbox-custom,
.demo-section input:checked + .demo-label .checkbox-custom {
    background: var(--gold);
    border-color: var(--gold);
}
.checkbox-item input:checked + .checkbox-label .checkbox-custom::after,
.demo-section input:checked + .demo-label .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}
.checkbox-item input:focus-visible + .checkbox-label,
.demo-section input:focus-visible + .demo-label {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.demo-section { margin-bottom: 30px; }
.demo-label { display: inline-flex; }

.submit-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gold);
    color: var(--green-deep);
    font-family: var(--font);
    font-size: var(--type-small);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 17px 34px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.submit-button:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: none; }
.submit-button::after, .submit-button:hover::after { content: none; }

.form-disclaimer {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
    max-width: 52ch;
}

.success-alert {
    display: none;
    margin-top: 24px;
    padding: 15px 20px;
    border-left: 3px solid var(--gold);
    background: rgba(234, 167, 33, 0.12);
    color: var(--gold-soft);
    font-size: var(--type-small);
    font-weight: 700;
    max-width: 660px;
}
.success-alert.show { display: block; }

/* ======================================================================
   FOOTER
   ====================================================================== */
footer {
    padding: 54px max(var(--pad-x), calc((100% - var(--band-inner)) / 2));
    border-top: 1px solid rgba(234, 167, 33, 0.3);
    background: var(--green-deep);
}

.footer-content {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.footer-rule { width: 64px; height: 4px; background: var(--gold); }

.footer-badges {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-badges img {
    filter: brightness(0.85);
    transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-badges img:hover { filter: brightness(1); transform: translateY(-2px); }

.social-icon { display: inline-block; opacity: 0.85; transition: all 0.3s var(--ease); }
.social-icon:hover { opacity: 1; transform: translateY(-2px); }
.social-icon svg { display: block; }

.footer-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-align: left;
    line-height: 1.7;
}
.footer-text a { color: var(--gold-soft); text-decoration: none; transition: color 0.25s; }
.footer-text a:hover { color: var(--gold); }

/* ======================================================================
   SCROLL REVEAL
   ====================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 1180px) {
    .slide-rail { display: none; }
}

@media (max-width: 1024px) {
    /* Loop drops below the copy rather than disappearing: it is the page's thesis */
    .hero--split .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero--split .hero-figure {
        min-height: 0;
        padding-right: 0;
        justify-content: flex-start;
    }
    .lifecycle-loop { width: min(100%, 330px); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .caps-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-row { grid-template-columns: 1fr; gap: 40px; }
    .feature-row > .feature-copy { max-width: 700px; }
    .feature-row.reverse .feature-copy,
    .feature-row.reverse .feature-widget { order: initial; }
}

@media (max-width: 768px) {
    nav { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: flex; }
    .band-index { display: none; }
    .products-grid { grid-template-columns: 1fr; }
    .caps-grid { grid-template-columns: 1fr; }
    .checkbox-wrapper { grid-template-columns: repeat(2, 1fr); }
    .hero { min-height: auto; }
    .submit-button, .cta-button { width: 100%; justify-content: center; }
    .footer-badges { gap: 22px; }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr; }
    .checkbox-wrapper { grid-template-columns: 1fr; }
    .hero-title { max-width: none; }
}
