/* ------------------------------------------------------------------
   Witness Technologies: monochrome design system (matches pitch deck)
   ------------------------------------------------------------------ */

:root {
    --ink: #0c0c0c;
    --ink-soft: #171717;
    --paper: #ffffff;
    --tint: #f5f5f4;
    --muted: #5c5f66;
    --muted-inverse: #a6a6a6;
    --line: #e4e4e1;
    --line-strong: #c9c9c5;
    --line-inverse: #2a2a2a;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.22s ease;
    --container: 1160px;
}

::selection {
    background: var(--ink);
    color: var(--paper);
}

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

/* No CSS smooth-scroll: cross-page anchor landings must be instant.
   In-page clicks are smoothed in main.js instead. */
section[id],
header[id] {
    scroll-margin-top: 76px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.62;
    color: var(--ink);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv05' 1, 'cv11' 1;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition), opacity var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Typography ------------------------------------------------------- */

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

/* Section labels sit on a short 2px rule: the recurring structural mark
   of the design system. */
.eyebrow {
    position: relative;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--muted);
    padding-top: 16px;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--ink);
}

.eyebrow-inverse {
    color: var(--muted-inverse);
}

.eyebrow-inverse::before {
    background: var(--paper);
}

.section-title {
    font-size: clamp(1.75rem, 3.6vw, 2.6rem);
    max-width: 21em;
    margin-bottom: 20px;
}

.section-lede {
    color: var(--muted);
    margin-bottom: 28px;
}

.section-note {
    margin-top: 36px;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

/* Buttons ---------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition), opacity var(--transition), background var(--transition), border-color var(--transition);
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--ink);
    color: var(--paper);
}

.btn-light {
    background: var(--paper);
    color: var(--ink);
}

.btn-light:hover {
    opacity: 0.9;
}

.btn-ghost {
    border-color: var(--line-inverse);
    color: var(--paper);
}

.btn-ghost:hover {
    border-color: var(--muted-inverse);
}

/* Navigation ------------------------------------------------------- */

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--line-inverse);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.logo-word {
    font-size: 1.05rem;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted-inverse);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--paper);
}

/* .active is included so the scroll-spy can't turn the CTA text white
   on its white background (contact.html links it to #contact) */
.nav-links .nav-cta,
.nav-links .nav-cta.active {
    color: var(--ink);
    background: var(--paper);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.nav-links .nav-cta:hover {
    color: var(--ink);
    opacity: 0.88;
}

/* Dropdown menus */

.nav-dropdown {
    position: relative;
}

.nav-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted-inverse);
    transition: color var(--transition);
}

.nav-drop-btn:hover,
.nav-drop-btn.active,
.nav-dropdown.open .nav-drop-btn {
    color: var(--paper);
}

.nav-caret {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.nav-dropdown.open .nav-caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 320px;
    background: var(--ink-soft);
    border: 1px solid var(--line-inverse);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: none;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 18px;
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

@media (min-width: 681px) {
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }

    .nav-dropdown:hover .nav-caret {
        transform: rotate(180deg);
    }

    .nav-dropdown:hover .nav-drop-btn {
        color: var(--paper);
    }
}

.dropdown-item {
    display: block;
    padding: 12px 14px;
    border-radius: 9px;
}

.dropdown-item:hover {
    background: var(--ink);
}

.dropdown-item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--paper);
}

.dropdown-item-head .status {
    font-size: 0.58rem;
    padding: 3px 9px;
    border-color: var(--line-inverse);
    color: var(--muted-inverse);
}

.dropdown-item-head .status-live {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.dropdown-item-desc {
    display: block;
    font-size: 0.83rem;
    color: var(--muted-inverse);
    margin-top: 2px;
}

.dropdown-all {
    display: block;
    margin-top: 8px;
    padding: 12px 14px 6px;
    border-top: 1px solid var(--line-inverse);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted-inverse);
}

.dropdown-all:hover {
    color: var(--paper);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--paper);
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero ------------------------------------------------------------- */

.hero {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding: 190px 0 130px;
    overflow: hidden;
}

.hero-ring {
    position: absolute;
    top: 50%;
    right: -240px;
    width: 720px;
    height: 720px;
    transform: translateY(-50%);
    color: #1f1f1f;
    animation: ring-spin 240s linear infinite;
}

@keyframes ring-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-ring,
    .dot-live {
        animation: none;
    }

    .reveal {
        transition: none !important;
    }
}

.hero-content {
    position: relative;
    max-width: 820px;
}

.hero h1 {
    font-size: clamp(2.3rem, 5.4vw, 3.9rem);
    font-weight: 800;
    margin-bottom: 26px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--muted-inverse);
    max-width: 36em;
    margin-bottom: 38px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 54px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    font-size: 0.9rem;
    color: var(--muted-inverse);
}

.hero-badges li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--muted-inverse);
    flex-shrink: 0;
}

.dot-live {
    background: var(--paper);
    border-color: var(--paper);
    animation: dot-pulse 2.6s ease-out infinite;
}

@keyframes dot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
    }
    70%, 100% {
        box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
    }
}

.page-hero-light .dot-live,
.hero-badges .dot-live {
    animation-duration: 2.6s;
}

/* Sections --------------------------------------------------------- */

.section {
    padding: 104px 0;
}

.section-tint {
    background: var(--tint);
}

.section-dark {
    background: var(--ink);
    color: var(--paper);
}

/* Cards & grids ---------------------------------------------------- */

.grid {
    display: grid;
    gap: 14px;
    margin-top: 44px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Five cards as a 3 + 2 layout, with the second row centred */
.grid-5 {
    grid-template-columns: repeat(6, 1fr);
}

.grid-5 > * {
    grid-column: span 2;
}

.grid-5 > :nth-child(4) {
    grid-column: 2 / span 2;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 28px;
    transition: border-color var(--transition);
}

.card:hover {
    border-color: var(--line-strong);
}

.section-tint .card {
    background: var(--paper);
    border: 1px solid var(--line);
}

.section-tint .card-dark {
    background: var(--ink);
    border-color: var(--ink);
}

.card h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    font-size: 0.94rem;
}

.card-dark {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.card-dark:hover {
    border-color: var(--ink);
}

.card-dark h3 {
    color: var(--paper);
}

/* Products --------------------------------------------------------- */

.product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.product-head h3 {
    font-size: 1.35rem;
    margin-bottom: 0;
}

.status {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    white-space: nowrap;
}

.status-live {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.product-tagline {
    font-weight: 600;
    color: var(--ink) !important;
    margin-bottom: 12px;
}

.feature-list {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--muted);
}

.feature-list li {
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--ink);
    border-radius: 1.5px;
}

/* EduOps flagship -------------------------------------------------- */

.flagship {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 22px;
    margin-top: 44px;
    align-items: start;
}

.flagship-features {
    margin-top: 0;
    gap: 14px;
}

.chip {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    font-weight: 500;
    font-size: 0.93rem;
}

.flagship-panel {
    padding: 36px;
}

.tick-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    font-size: 0.97rem;
}

.card-dark .tick-list {
    color: var(--muted-inverse);
}

.tick-list li {
    padding-left: 26px;
    position: relative;
}

.tick-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 12px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

/* Traction --------------------------------------------------------- */

.stats {
    gap: 32px 0;
}

.stat {
    background: transparent;
    border-left: 1px solid var(--line-strong);
    border-radius: 0;
    padding: 6px 28px 6px 24px;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    font-weight: 600;
    margin: 14px 0 8px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.stat p {
    color: var(--muted);
    font-size: 0.88rem;
}

.market-band {
    margin-top: 22px;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 28px 34px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 44px;
    font-size: 0.95rem;
}

.market-band strong {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-right: 8px;
    font-variant-numeric: tabular-nums;
}

.market-band p {
    color: var(--muted-inverse);
    margin-left: auto;
    font-size: 0.9rem;
}

/* Platform --------------------------------------------------------- */

.platform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    margin-top: 44px;
    align-items: center;
}

.platform-copy p {
    color: var(--muted);
    margin-bottom: 24px;
}

.platform-copy .tick-list strong {
    color: var(--ink);
}

.platform-diagram {
    background: var(--tint);
    border-radius: var(--radius);
    padding: 34px;
    display: grid;
    gap: 14px;
    text-align: center;
}

.diagram-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.diagram-box {
    flex: 1 1 calc((100% - 24px) / 3);
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-sm);
    padding: 16px 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.diagram-core {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
}

.diagram-core span {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.diagram-core small {
    color: var(--muted-inverse);
    font-size: 0.82rem;
}

.diagram-base {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--radius-sm);
    padding: 13px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
}

/* Pricing ---------------------------------------------------------- */

.pricing-grid {
    margin-top: 36px;
}

.price-card h3 {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 14px;
}

.price {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink) !important;
    line-height: 1;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    margin-left: 3px;
}

.price-note {
    font-size: 0.9rem;
}

.price-featured {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
}

.price-featured h3 {
    color: var(--muted-inverse);
}

.price-featured .price {
    color: var(--paper) !important;
}

.price-featured .price span,
.price-featured .price-note {
    color: var(--muted-inverse);
}

.fine-print {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--muted);
}

.launch-pricing {
    margin-top: 26px;
}

.slim-card {
    padding: 22px 28px;
    font-size: 0.97rem;
    color: var(--muted);
}

.slim-card strong {
    color: var(--ink);
}

/* Team / company --------------------------------------------------- */

.team-grid {
    margin-top: 44px;
}

.team-card {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.team-role {
    font-weight: 600;
    color: var(--ink) !important;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.company-meta {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* Contact ---------------------------------------------------------- */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    margin-top: 48px;
    align-items: start;
}

.contact-lede {
    color: var(--muted-inverse);
    margin-bottom: 36px;
    font-size: 1.05rem;
}

.contact-item {
    margin-bottom: 26px;
}

.contact-item h2,
.contact-item h3 {
    line-height: 1.4;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-inverse);
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-item p {
    font-size: 1.02rem;
}

.contact-item a:hover {
    opacity: 0.8;
}

.contact-form-wrapper {
    background: var(--ink-soft);
    border: 1px solid var(--line-inverse);
    border-radius: var(--radius);
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--muted-inverse);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 0.97rem;
    font-family: inherit;
    color: var(--paper);
    background: var(--ink);
    border: 1px solid var(--line-inverse);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #5b5b5b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--paper);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    border: none;
}

.form-status {
    margin-top: 16px;
    font-size: 0.93rem;
    display: none;
}

.form-status.success,
.form-status.error {
    display: block;
}

.form-status.success {
    color: #d9d9d9;
}

.form-status.error {
    color: #f0b4b4;
}

/* Footer ----------------------------------------------------------- */

.footer {
    background: var(--ink);
    color: var(--paper);
    padding: 64px 0 40px;
    border-top: 1px solid var(--line-inverse);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 52px;
}

.footer-brand .logo {
    margin-bottom: 18px;
}

.footer-tagline {
    color: var(--muted-inverse);
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 22em;
}

.footer-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--muted-inverse);
    max-width: 24em;
}

.footer-col h2 {
    line-height: 1.4;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--muted-inverse);
    margin-bottom: 18px;
}

.footer-col ul {
    display: grid;
    gap: 11px;
    font-size: 0.92rem;
}

.footer-col a,
.footer-col span {
    color: var(--muted-inverse);
}

.footer-col a:hover {
    color: var(--paper);
}

.footer-col .footer-item-note {
    font-size: 0.78rem;
    display: block;
    margin-top: 1px;
    opacity: 0.75;
}

.footer-bottom {
    border-top: 1px solid var(--line-inverse);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    font-size: 0.82rem;
    color: var(--muted-inverse);
}

/* Reveal animation -------------------------------------------------- */

.reveal {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.pre {
    opacity: 0;
    transform: translateY(18px);
}

/* Responsive -------------------------------------------------------- */

@media (max-width: 980px) {
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-5 > *,
    .grid-5 > :nth-child(4) {
        grid-column: auto;
    }

    .flagship,
    .platform,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .platform {
        gap: 36px;
    }

    .hero-ring {
        right: -320px;
        opacity: 0.6;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 680px) {
    .section {
        padding: 76px 0;
    }

    .hero {
        padding: 150px 0 90px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .flagship-features,
    .form-row {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: var(--ink);
        border-bottom: 1px solid var(--line-inverse);
        padding: 12px 24px 20px;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 10px 0;
    }

    .nav-links .nav-cta {
        display: inline-block;
        margin-top: 8px;
        padding: 10px 22px;
    }

    /* Dropdowns become always-expanded groups in the mobile menu */
    .nav-drop-btn {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 0 6px;
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        cursor: default;
    }

    .nav-caret {
        display: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        display: block;
        min-width: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 4px 14px;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-item {
        padding: 8px 0;
        border-radius: 0;
    }

    .dropdown-item:hover {
        background: transparent;
    }

    .dropdown-item-desc {
        display: none;
    }

    .dropdown-all {
        margin-top: 2px;
        padding: 8px 0 4px;
        border-top: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-bottom: 40px;
    }

    .footer {
        padding-top: 52px;
    }

    .market-band p {
        margin-left: 0;
    }

    .logo-word {
        font-size: 0.98rem;
    }
}

/* ------------------------------------------------------------------
   Subpages: product, company and team pages
   ------------------------------------------------------------------ */

/* Page hero (smaller dark hero for inner pages) */

.page-hero {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding: 170px 0 96px;
    overflow: hidden;
}

.page-hero .hero-ring {
    width: 560px;
    height: 560px;
    right: -200px;
}

.page-hero .hero-content {
    max-width: 780px;
}

.page-hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 22px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--muted-inverse);
    margin-bottom: 26px;
}

.breadcrumb a:hover {
    color: var(--paper);
}

.breadcrumb .crumb-sep {
    opacity: 0.5;
}

.breadcrumb .crumb-current {
    color: var(--paper);
    font-weight: 600;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.hero-status .status {
    border-color: var(--line-inverse);
    color: var(--muted-inverse);
}

.hero-status .status-live {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

/* Light hero variants (tint / paper) */

.page-hero-light {
    background: var(--tint);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.page-hero-paper {
    background: var(--paper);
}

.page-hero-light .hero-sub {
    color: var(--muted);
}

.page-hero-light .breadcrumb {
    color: var(--muted);
}

.page-hero-light .breadcrumb a:hover,
.page-hero-light .breadcrumb .crumb-current {
    color: var(--ink);
}

.page-hero-light .hero-badges {
    color: var(--muted);
}

.page-hero-light .dot {
    border-color: var(--muted);
}

.page-hero-light .dot-live {
    background: var(--ink);
    border-color: var(--ink);
}

.page-hero-light .hero-status .status {
    background: var(--paper);
    border-color: var(--line);
    color: var(--muted);
}

.page-hero-light .hero-status .status-live {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.btn-ghost-dark {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-ghost-dark:hover {
    opacity: 0.7;
}

/* Split hero (copy + product visual) */

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 64px;
    align-items: center;
}

.hero-visual {
    min-width: 0;
}

/* Product UI mockups ----------------------------------------------- */

.mock-panel {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    font-size: 0.88rem;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.page-hero-light .mock-panel {
    box-shadow: 0 24px 56px rgba(12, 12, 12, 0.12);
}

.mock-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: 0.92rem;
}

.mock-chip {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: var(--tint);
    color: var(--muted);
    border-radius: 999px;
    padding: 4px 11px;
    white-space: nowrap;
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 0 14px;
}

.mock-stat strong {
    display: block;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.mock-stat span {
    color: var(--muted);
    font-size: 0.73rem;
}

.mock-rows {
    display: grid;
    gap: 8px;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--tint);
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 0.83rem;
    color: var(--ink-soft);
}

.mock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    flex-shrink: 0;
}

.mock-time {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.mock-tag {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    white-space: nowrap;
}

.mock-tag-fill {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

/* Kanban mock (DealOps) */

.mock-kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mock-col {
    background: var(--ink-soft);
    border: 1px solid var(--line-inverse);
    border-radius: var(--radius-sm);
    padding: 13px;
}

.mock-col-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted-inverse);
    margin-bottom: 11px;
}

.mock-card {
    background: var(--paper);
    color: var(--ink);
    border-radius: 9px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
}

.mock-card:last-child {
    margin-bottom: 0;
}

.mock-card small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.71rem;
    margin-top: 3px;
}

.mock-card-ghost {
    background: transparent;
    border: 1.5px dashed var(--line-inverse);
    color: var(--muted-inverse);
    text-align: center;
    font-weight: 500;
}

/* Platform hero diagram */

.hero-diagram {
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    color: var(--ink);
}

/* Company hero facts strip */

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 48px;
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.hero-fact strong {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.hero-fact span {
    color: var(--muted);
    font-size: 0.82rem;
}

/* Team hero visual */

.team-hero-visual {
    text-align: center;
}

.avatar-cluster {
    display: flex;
    justify-content: center;
}

.avatar-cluster .avatar {
    width: 96px;
    height: 96px;
    font-size: 1.45rem;
    border: 5px solid var(--paper);
    margin-left: -18px;
}

.avatar-cluster .avatar:first-child {
    margin-left: 0;
}

.cluster-caption {
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 24em;
    margin-left: auto;
    margin-right: auto;
}

/* Subpage hero responsiveness (must come after the base rules above) */

.hero-facts {
    gap: 18px 28px;
    justify-content: space-between;
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        max-width: 520px;
    }

    .team-hero-visual {
        text-align: left;
    }

    .avatar-cluster {
        justify-content: flex-start;
    }

    .cluster-caption {
        margin-left: 0;
        text-align: left;
    }
}

@media (max-width: 680px) {
    .mock-kanban {
        grid-template-columns: repeat(2, 1fr);
    }

    .mock-col:last-child {
        display: none;
    }

    .mock-stats {
        gap: 6px;
    }

    .mock-stat strong {
        font-size: 1rem;
    }

    .mock-panel {
        padding: 18px;
    }

    .hero-facts {
        gap: 16px 32px;
    }

    .hero-fact strong {
        font-size: 1.3rem;
    }
}

/* Learn-more links on cards */

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--ink);
}

.learn-more::after {
    content: '\2192';
    transition: transform var(--transition);
}

.learn-more:hover::after {
    transform: translateX(4px);
}

/* Chip rows (roles, tags) */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.chip-row .chip {
    padding: 12px 22px;
    font-size: 0.93rem;
}

.section-tint .chip {
    background: var(--paper);
    border: 1px solid var(--line);
}

/* CTA band */

.cta-band {
    display: grid;
    grid-template-columns: 1.5fr auto;
    grid-template-areas:
        'title actions'
        'desc actions';
    align-items: center;
    gap: 12px 56px;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 56px;
    text-align: left;
}

.cta-band h2 {
    grid-area: title;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    margin-bottom: 0;
    align-self: end;
}

.cta-band p {
    grid-area: desc;
    color: var(--muted-inverse);
    max-width: 40em;
    margin: 0;
    font-size: 0.97rem;
    align-self: start;
}

.cta-band .hero-actions {
    grid-area: actions;
    justify-content: flex-end;
    margin-bottom: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Company story timeline */

.timeline {
    margin-top: 48px;
    max-width: 640px;
}

.timeline-item {
    position: relative;
    padding: 0 0 40px 36px;
    border-left: 2px solid var(--line);
}

.timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--paper);
    border: 2.5px solid var(--ink);
}

.timeline-year {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin-bottom: 6px;
}

.timeline-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--muted);
    font-size: 0.97rem;
}

/* Fact grid (registered company details) */

.fact-grid {
    margin-top: 44px;
}

.fact-item h3 {
    line-height: 1.4;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.fact-item p {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.97rem;
}

/* Team page profiles */

.team-card-lg {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 40px;
}

.avatar-lg {
    width: 84px;
    height: 84px;
    font-size: 1.35rem;
}

.team-card-lg h3 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.team-card-lg .team-role {
    margin-bottom: 14px;
}

@media (max-width: 680px) {
    .page-hero {
        padding: 140px 0 72px;
    }

    .team-card-lg {
        flex-direction: column;
        padding: 30px;
    }
}

/* CTA band responsiveness (kept last so it wins over the base rule) */
@media (max-width: 980px) {
    .cta-band {
        grid-template-columns: 1fr;
        grid-template-areas:
            'title'
            'desc'
            'actions';
        padding: 44px 36px;
        gap: 14px;
    }

    .cta-band .hero-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        white-space: normal;
        margin-top: 14px;
    }
}

@media (max-width: 680px) {
    .cta-band {
        padding: 40px 24px;
    }
}

/* Homepage hero: stacked product preview ---------------------------- */

.hero-grid-home h1 {
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
}

.suite-stack {
    position: relative;
    padding: 118px 0 0 28px;
}

.suite-back {
    position: absolute;
    top: 0;
    right: -24px;
    width: 78%;
    background: var(--ink-soft);
    color: var(--paper);
    border-color: var(--line-inverse);
    box-shadow: none;
}

.suite-back .mock-titlebar {
    border-bottom-color: var(--line-inverse);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.suite-back .mock-chip {
    background: var(--ink);
    color: var(--muted-inverse);
}

.suite-back .mock-row {
    background: var(--ink);
    color: var(--muted-inverse);
}

.suite-back .mock-dot {
    border-color: var(--muted-inverse);
}

.suite-back .mock-tag {
    background: transparent;
    border-color: var(--line-inverse);
    color: var(--muted-inverse);
}

.suite-back .mock-tag-fill {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.suite-front {
    position: relative;
}

.suite-core {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0 22px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted-inverse);
}

.suite-core svg {
    width: 18px;
    height: 18px;
    color: var(--paper);
}

@media (max-width: 980px) {
    .suite-stack {
        padding-left: 0;
    }

    .suite-back {
        right: 0;
    }
}

@media (max-width: 680px) {
    .suite-stack {
        padding-top: 108px;
    }

    .suite-back {
        width: 100%;
    }

    .suite-core {
        margin-left: 0;
    }
}

/* Skip link --------------------------------------------------------- */

.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1100;
    padding: 10px 18px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transform: translateY(-160%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: none;
}

/* 404 --------------------------------------------------------------- */

.btn-nav {
    padding: 9px 18px;
}

.not-found {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.not-found-code {
    display: block;
    font-size: clamp(4.5rem, 12vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: var(--line-inverse);
    margin-bottom: 18px;
    font-variant-numeric: tabular-nums;
}

.not-found-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 8px;
    font-size: 0.93rem;
}

.not-found-links a {
    color: var(--muted-inverse);
}

.not-found-links a:hover {
    color: var(--paper);
}
