/* Shared visual layer for the TokenSense marketing pages. */
:root {
    --bg: #f8f7fc;
    --bg-subtle: #f2f0f7;
    --text: #1a1525;
    --text-secondary: #766b83;
    --border: #e8e2f1;
    --accent: #7652d8;
    --accent-hover: #6540c4;
    --accent-light: rgba(118, 82, 216, 0.09);
    --accent-gradient: linear-gradient(135deg, #7652d8, #a579e8);
    --site-ink: #1a1525;
    --site-muted: #766b83;
    --site-canvas: #f8f7fc;
    --site-surface: #f2f0f7;
    --site-panel: #ffffff;
    --site-line: #e8e2f1;
    --site-purple: #7652d8;
    --site-purple-hover: #6540c4;
    --site-purple-soft: rgba(118, 82, 216, 0.09);
    --site-shadow: 0 16px 40px rgba(67, 47, 104, 0.08);
    --site-shadow-hover: 0 18px 42px rgba(67, 47, 104, 0.13);
    --site-radius: 12px;
}

html {
    background: var(--site-canvas);
}

body {
    color: var(--site-ink);
    background: var(--site-canvas);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.28;
    background-image: repeating-linear-gradient(0deg, rgba(118, 82, 216, 0.018) 0 1px, transparent 1px 4px);
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

button,
[class*="btn"],
.hero-cta {
    font-family: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--site-purple);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 8px 12px;
    color: #fff;
    background: var(--site-purple);
    border-radius: 4px;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.header {
    background: rgba(248, 247, 252, 0.86);
    border-bottom: 1px solid rgba(232, 226, 241, 0.72);
    box-shadow: 0 4px 18px rgba(67, 47, 104, 0.035);
}

.header.scrolled {
    box-shadow: 0 8px 22px rgba(67, 47, 104, 0.08);
}

.logo-text {
    color: var(--site-ink);
}

.nav a {
    font-weight: 500;
}

.nav a:hover,
.btn-quiet:hover {
    color: var(--site-purple);
}

.nav a::after {
    background: var(--site-purple);
}

.section-label {
    color: var(--site-purple);
    font-weight: 600;
}

.section-title,
.wwd-title,
.products-title,
.cap-title,
.hero-title,
.product-hero-title,
.cta-inner h2 {
    text-wrap: balance;
}

.section-desc,
.hero-desc,
.product-hero-sub,
.about-intro p,
.cta-inner p {
    text-wrap: pretty;
}

.section,
.product-hero {
    position: relative;
}

.about,
.features,
.products,
.use-cases {
    background: var(--site-surface);
    border-color: var(--site-line);
}

.pillar,
.wwd-card,
.product-main,
.product-placeholder,
.feature-card,
.use-case-card {
    border-color: var(--site-line);
    border-radius: var(--site-radius);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.pillar,
.wwd-card,
.product-main,
.feature-card,
.use-case-card {
    background: var(--site-panel);
}

.pillar:hover,
.wwd-card:hover,
.product-main:hover,
.feature-card:hover,
.use-case-card:hover {
    border-color: rgba(118, 82, 216, 0.42);
    box-shadow: var(--site-shadow-hover);
}

.wwd-card,
.product-main,
.feature-card,
.use-case-card,
.hero-cta,
.contact-btn,
.btn,
.btn-white,
.btn-white-secondary {
    transition: transform 220ms ease, color 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.wwd-card-icon,
.feature-icon,
.how-step-num,
.contact-item-icon {
    background: var(--site-purple-soft) !important;
    color: var(--site-purple);
}

.features .feature-icon svg {
    stroke: var(--site-purple) !important;
}

.pillar:nth-child(1)::before,
.pillar:nth-child(2)::before,
.pillar:nth-child(3)::before {
    background: var(--site-purple);
}

.cap-dot.purple,
.cap-dot.pink,
.cap-dot.cyan {
    background: var(--site-purple);
}

.hero-cta,
.contact-btn,
.product-hero .btn-primary,
.btn-white {
    background: var(--site-purple);
    box-shadow: 0 8px 22px rgba(118, 82, 216, 0.16);
}

.hero-cta:hover,
.contact-btn:hover,
.product-hero .btn-primary:hover,
.btn-white:hover {
    background: var(--site-purple-hover);
    box-shadow: 0 12px 26px rgba(118, 82, 216, 0.24);
}

.hero-cta:active,
.contact-btn:active,
.product-hero .btn:active,
.btn-white:active,
.btn-white-secondary:active {
    transform: translateY(1px) scale(0.985);
}

.btn-outline:hover,
.btn-white-secondary:hover {
    border-color: var(--site-purple);
    color: var(--site-purple);
}

.product-hero-label {
    color: var(--site-purple);
    background: var(--site-purple-soft);
}

.product-badge.launched,
.use-case-tag {
    background: var(--site-purple-soft);
    color: var(--site-purple);
}

.product-main-visual {
    background: linear-gradient(135deg, rgba(118, 82, 216, 0.12), rgba(192, 132, 252, 0.08));
}

.contact-inner,
.cta-inner {
    border-color: rgba(118, 82, 216, 0.2);
    box-shadow: var(--site-shadow);
}

.contact-btn,
.btn-white {
    color: #fff;
}

.btn-white-secondary {
    border-color: rgba(118, 82, 216, 0.3);
    color: var(--site-purple);
}

.footer {
    border-color: var(--site-line);
}

@media (max-width: 768px) {
    :root {
        --gutter: 20px;
    }

    .section {
        padding-top: 88px;
        padding-bottom: 88px;
    }

    .product-hero {
        padding-top: calc(var(--header-h) + 52px);
    }

    .hero-inner {
        padding-left: 0;
        padding-right: 0;
    }

    .about-intro,
    .section-desc {
        max-width: 100%;
    }

    .contact-grid {
        flex-direction: column;
        gap: 16px;
    }

    .contact-item-divider {
        display: none;
    }

    .contact-item {
        justify-content: center;
    }

    .cta-inner {
        margin-bottom: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Refined editorial layer: clearer hierarchy, quieter surfaces and tactile controls. */
:root {
    --site-canvas: #f7f8fb;
    --site-surface: #f0f2f7;
    --site-panel: #ffffff;
    --site-ink: #172033;
    --site-muted: #697386;
    --site-line: #dfe4ed;
    --site-purple: #5d4bc4;
    --site-purple-hover: #4c3bad;
    --site-purple-soft: rgba(93, 75, 196, 0.08);
    --site-shadow: 0 18px 48px rgba(35, 48, 75, 0.08);
    --site-shadow-hover: 0 22px 48px rgba(35, 48, 75, 0.13);
    --accent-gradient: #5d4bc4;
}

body::before {
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(77, 91, 123, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 91, 123, 0.018) 1px, transparent 1px);
    background-size: 28px 28px;
}

.container,
.about-inner,
.header-inner { max-width: 1160px; }

.header {
    background: rgba(247, 248, 251, 0.78);
    border-bottom-color: rgba(223, 228, 237, 0.82);
}

.header.scrolled { background: rgba(247, 248, 251, 0.93); }
.logo { gap: 10px; }
.logo img { filter: drop-shadow(0 5px 8px rgba(93, 75, 196, 0.16)); }
.logo-text { font-weight: 700; }
.nav { gap: 30px; }
.nav a { font-size: 13px; color: #596579; }
.nav a::after { height: 2px; border-radius: 2px; bottom: -8px; }
.nav a[aria-current="page"] { color: var(--site-purple); font-weight: 600; }
.nav a[aria-current="page"]::after { width: 100%; }

.footer-text a { margin-left: 10px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-text a:hover { color: var(--site-purple); }

.hero { min-height: 100dvh; }
.hero::before {
    background:
        linear-gradient(90deg, rgba(247,248,251,0.99) 0%, rgba(247,248,251,0.94) 40%, rgba(247,248,251,0.35) 68%, rgba(247,248,251,0.08) 100%),
        radial-gradient(circle at 76% 48%, rgba(93,75,196,0.13), transparent 32%);
}
.hero-brand {
    color: #536076;
    padding: 7px 12px;
    border: 1px solid rgba(93, 75, 196, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.56);
    box-shadow: 0 4px 12px rgba(35, 48, 75, 0.04);
}

.product-hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

/* Keep compact hero metadata optically centred rather than inheriting body line-height. */
.product-back,
.product-hero-label {
    align-items: center;
    justify-content: center;
    height: 28px;
    line-height: 1;
    margin-bottom: 0;
}

.product-back svg {
    display: block;
    flex: 0 0 auto;
}
.product-hero-label { padding: 0 12px; }
.hero-title { max-width: 680px; letter-spacing: 0; }
.hero-title .accent { background: none; -webkit-text-fill-color: currentColor; color: var(--site-purple); }
.hero-desc { max-width: 485px; color: var(--site-muted); }
.hero-cta,
.contact-btn {
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(93, 75, 196, 0.18);
}
.hero-cta:hover,
.contact-btn:hover { transform: translateY(-2px); }

.section { padding: 132px 0; }
.section-label { font-size: 10px; letter-spacing: 0.12em; }
.about-intro { max-width: 770px; }
.about-intro p { color: var(--site-muted); }

.pillar,
.wwd-card,
.product-main,
.product-placeholder {
    border-radius: 8px;
    border-color: var(--site-line);
}
.pillar { padding: 34px 30px 30px; }
.pillar::before { height: 2px; }
.pillar-num { color: var(--site-purple); opacity: 0.15; }
.pillar:hover,
.wwd-card:hover,
.product-main:hover {
    transform: translateY(-5px);
    border-color: rgba(93, 75, 196, 0.38);
}
.wwd-grid { gap: 16px; }
.wwd-card { padding: 32px; }
.wwd-card-icon { border-radius: 7px; }
.wwd-card h4,
.pillar-name { letter-spacing: 0; }

.products-header { margin-bottom: 44px; }
.product-showcase { gap: 16px; }
.product-main { overflow: hidden; }
.product-main-visual {
    height: 196px;
    background:
        linear-gradient(135deg, rgba(93,75,196,0.13), rgba(93,75,196,0.035)),
        repeating-linear-gradient(90deg, transparent 0 31px, rgba(93,75,196,0.04) 32px);
}
.product-main-info { padding: 30px 32px 34px; }
.product-badge { border-radius: 3px; }
.product-placeholder { background: rgba(255, 255, 255, 0.52); }

.cap-list { border-color: var(--site-line); }
.cap-row {
    grid-template-columns: 28px 1fr auto;
    gap: 20px;
    padding: 25px 10px;
    border-color: var(--site-line);
}
.cap-row:hover { padding-left: 16px; background: rgba(93,75,196,0.035); }
.cap-dot { width: 7px; height: 7px; box-shadow: 0 0 0 5px var(--site-purple-soft); }
.cap-desc { color: var(--site-muted); }

.contact-inner,
.cta-inner {
    border-radius: 10px;
    background: var(--site-surface);
    border-color: rgba(93, 75, 196, 0.2);
    box-shadow: var(--site-shadow);
}
.contact-inner { padding: 72px 48px; }
.contact-inner::before,
.cta-inner::before {
    opacity: 0.72;
    background: repeating-linear-gradient(-20deg, transparent 0 31px, rgba(93,75,196,0.045) 32px 33px);
}
.contact-inner h2,
.contact-item,
.contact-item a { color: var(--site-ink); }
.contact-inner > p { color: var(--site-muted); }
.contact-item-icon { background: var(--site-purple-soft) !important; }
.contact-item-icon svg { stroke: var(--site-purple) !important; }
.contact-item-divider { background: var(--site-line); }
.contact-btn { background: var(--site-purple); color: #fff; }
.contact-btn:hover { background: var(--site-purple-hover); color: #fff; box-shadow: 0 12px 26px rgba(93,75,196,0.24); }

.cta-inner { border-radius: 10px; }
.cta-inner h2 { color: var(--site-ink); letter-spacing: 0; }
.cta-inner p,
.cta-contact-link { color: var(--site-muted); }
.cta-contact-link:hover { color: var(--site-purple); }

.footer { background: transparent; }
.footer-text { color: #788399; }

@media (max-width: 768px) {
    .nav {
        display: flex;
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        gap: 0;
        padding: 12px var(--gutter) 20px;
        background: rgba(247, 248, 251, 0.98);
        border-bottom: 1px solid var(--site-line);
        box-shadow: 0 14px 28px rgba(35,48,75,0.08);
        transform: translateY(-130%);
        opacity: 0;
        visibility: hidden;
        transition: transform 220ms ease, opacity 220ms ease, visibility 220ms ease;
    }
    .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav a { padding: 12px 0; }
    .mobile-toggle { display: block; background: none; border: 0; cursor: pointer; padding: 8px; }
    .mobile-toggle span { display: block; width: 20px; height: 1.5px; margin: 4px 0; background: var(--site-ink); }
    .hero { min-height: 100dvh; }
    .hero-title { font-size: clamp(40px, 12vw, 54px); }
    .section { padding: 88px 0 96px; }
    .about-pillars,
    .wwd-grid,
    .product-showcase { gap: 12px; }
    .pillar, .wwd-card { padding: 26px; }
    .cap-row { grid-template-columns: 20px 1fr; gap: 13px; }
    .cap-desc { grid-column: 2; text-align: left; margin-top: -12px; }
    .contact-inner { padding: 52px 24px; }
}
