:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-neon: #60a5fa;
    --secondary: #1e293b;
    --accent: #8b5cf6;
    --accent-neon: #a78bfa;
    --background: #0f172a; /* Deep dark background for techi look */
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --glass: rgba(15, 23, 42, 0.7);
    --shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
    --container: 1200px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Techi Backgrounds */
.tech-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
    animation: gridScroll 20s linear infinite;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 50%
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.2;
}

@keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Preloader — Fast Logo Reveal */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.preloader-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 3px;
    animation: logoReveal 1.2s ease-out forwards;
}

.pre-vista {
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.pre-iq {
    color: var(--primary);
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 80px rgba(59, 130, 246, 0.3);
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.5);
        filter: blur(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.preloader.fade-out {
    opacity: 0;
    transform: scale(1.5);
    pointer-events: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    transform-style: preserve-3d;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.hero h1 span.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero h1 span.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(59, 130, 246, 0.2);
    z-index: -1;
}

.hero h1 span.brand {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    position: relative;
    transform: translateZ(50px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateZ(50px); }
    50% { transform: translateY(-20px) translateZ(50px); }
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.glass-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.glass-card img {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Features */
.features {
    padding: 100px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

footer .logo {
    color: var(--white);
    margin-bottom: 1.5rem;
    display: inline-block;
}

footer .logo span {
    color: var(--primary);
}

footer p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--primary);
    transform: translateY(-10px) rotateX(10deg);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Pricing */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.pricing-card {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    color: #1e293b;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #0f172a;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 900;
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    background: #0a0f1a;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.corporate-info {
    font-size: 0.85rem;
    max-width: 600px;
    line-height: 1.8;
}

.corporate-info p {
    margin-bottom: 0.2rem;
}

/* Page Headers */
.page-header {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(to bottom, #fff, var(--background));
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header h1 span {
    color: var(--primary);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
}

.dashboard-stack {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 540px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.main-dashboard {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    transform: translateZ(50px);
}

/* Both hero cards hold landscape screenshots, but the default .glass-card is
   a 300px square with object-fit:cover — which crops the sides off. Each card
   is sized to its own image's aspect ratio so nothing is cut.
   Front card  : sign-in screen  2362x1546 (~1.53:1)
   Behind card : flow graphic    1408x768  (~1.83:1) */
/* Intro paragraph now sits below the two hero images, so it needs its own
   sizing — it used to inherit from .hero-content p. */
.hero-tagline p {
    max-width: 60ch;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted, #9aa6bf);
}

/* Buttons now close the hero, below the intro paragraph. */
.hero-tagline .hero-btns {
    margin-top: 2rem;
}

/* --- Production-Grade: real capability specs --- */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0 2rem;
    text-align: left;
}

.spec {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
}

.spec i {
    width: 26px;
    height: 26px;
    color: var(--primary, #4d7cff);
    margin-bottom: 0.75rem;
}

.spec h4 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.spec p {
    font-size: 0.94rem;
    line-height: 1.65;
    margin: 0;
    color: var(--text-muted, #9aa6bf);
}

/* --- "Coming Soon" marker on an upcoming segment --- */
.feature-card.is-upcoming {
    position: relative;
}

.badge-soon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(77, 124, 255, 0.16);
    border: 1px solid rgba(77, 124, 255, 0.45);
    color: #8fb0ff;
    white-space: nowrap;
}

/* --- Legal pages (privacy) --- */
.legal-section {
    padding: 140px 0 90px;
}

.legal-body {
    max-width: 74ch;
    margin: 0 auto;
}

.legal-body h2 {
    font-size: 1.2rem;
    margin: 2.2rem 0 0.6rem;
}

.legal-body p {
    color: var(--text-muted, #9aa6bf);
    line-height: 1.75;
    margin: 0 0 0.9rem;
}

.legal-body a {
    color: var(--primary, #4d7cff);
}

.legal-updated {
    margin-top: 2.5rem;
    font-size: 0.88rem;
    opacity: 0.7;
}

/* --- Footer links --- */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
    margin: 1rem 0;
}

.footer-links a {
    color: var(--text-muted, #9aa6bf);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #fff;
}


/* Hero tagline — sits under the VistaIQ logo bar, smaller than a display
   headline and centred. */
.hero-tagline-text {
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    line-height: 1.25;
    text-align: center;
    max-width: 22ch;
    margin: 0 auto;
}

/* Both hero screens share one height so they read as a matched pair; each
   keeps its own width so neither image is distorted. */
.main-dashboard.glass-card,
.secondary-dashboard.glass-card {
    height: 360px;
}

.main-dashboard.glass-card {
    width: 550px;
}

.secondary-dashboard.glass-card {
    width: 660px;
}

.secondary-dashboard {
    position: absolute;
    top: 130px;
    right: 0;
    z-index: 4;
    transform: translateZ(0) rotateY(-10deg);
    opacity: 0.8;
}

.secondary-dashboard:hover {
    z-index: 10;
    opacity: 1 !important;
    transform: translateZ(150px) rotateY(0) !important;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px) rotateX(-10deg);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-hidden.animate-in {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.secondary-dashboard.reveal-hidden {
    transform: translateX(50px) translateZ(-50px) rotateY(-20deg);
}

.secondary-dashboard.reveal-hidden.animate-in {
    transform: translateZ(0) rotateY(-10deg);
}

.glass-card {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    overflow: hidden;
}

.glass-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-info h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.contact-info h1 span {
    color: var(--primary);
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    color: var(--primary);
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-form .glass-card {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255,255,255,0.8);
}

.w-full {
    width: 100%;
    cursor: pointer;
    border: none;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* Hamburger Menu (hidden on desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== TABLET (max-width: 968px) ===== */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(10, 15, 30, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        z-index: 999;
        gap: 0;
    }

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

    .nav-links li {
        margin: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    }

    .nav-links li a {
        font-size: 1.1rem;
    }

    /* Hero */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        max-width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .dashboard-stack {
        flex-direction: column;
        align-items: center;
    }

    .secondary-dashboard {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 1.5rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .contact-info h1 {
        font-size: 2.5rem;
    }

    /* Glass Card */
    .glass-card {
        width: 100%;
        height: auto;
    }
}

/* ===== MOBILE (max-width: 600px) ===== */
@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    /* Hero */
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    /* Preloader */
    .preloader-logo {
        font-size: 3rem;
    }

    /* Features */
    .features-summary, .features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    /* Pricing */
    .pricing {
        padding: 60px 0;
    }

    .pricing-card {
        padding: 2rem;
    }

    .price {
        font-size: 2.5rem;
    }

    /* Page Headers */
    .page-header {
        padding: 50px 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Contact */
    .contact-section {
        padding: 60px 0;
    }

    .contact-info h1 {
        font-size: 2rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .contact-form .glass-card {
        padding: 2rem 1.5rem;
    }

    /* Footer */
    footer {
        padding: 40px 0;
    }

    .corporate-info {
        font-size: 0.75rem;
        padding: 0 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Navbar */
    .navbar {
        height: 65px;
    }

    .logo {
        font-size: 1.3rem;
    }
}

/* Clickable Feature Cards Override */
a.feature-card.clickable-card {
    text-decoration: none !important;
    color: inherit;
    display: block;
    cursor: pointer;
}
a.feature-card.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
a.feature-card.clickable-card .link {
    display: inline-block;
}
a.feature-card.clickable-card h3 {
    text-decoration: none !important;
    color: #f8f9fa !important;
}
a.feature-card.clickable-card p {
    text-decoration: none !important;
    color: #a0aec0 !important;
}


/* =========================================================================
   HERO RESPONSIVE — appended last so it wins over the desktop card sizes
   defined earlier in this file. The pre-existing 968px block stacks the
   container but never releases .main-dashboard from absolute positioning
   nor caps the 550/660px card widths, which overflowed small screens.
   ========================================================================= */
@media (max-width: 1100px) {
    .dashboard-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        height: auto;
        max-width: 100%;
    }

    .main-dashboard,
    .secondary-dashboard {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .main-dashboard.glass-card,
    .secondary-dashboard.glass-card {
        width: 100%;
        max-width: 660px;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hero-tagline p,
    .hero-tagline .hero-btns {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-tagline .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-tagline-text {
        font-size: 1.5rem;
        max-width: 100%;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   HERO REFINEMENTS (review feedback)
   - intro paragraph + buttons centred to match the tagline
   - vertical gap tightened
   - tagline dropped a size
   Appended last so it overrides the earlier hero rules.
   ========================================================================= */
.hero {
    padding: 90px 0 80px;
}

.hero .container {
    gap: 2rem;
}

.hero-tagline-text {
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
    margin-bottom: 0;
}

.hero-image {
    margin-top: 0;
}

.hero-tagline {
    text-align: center;
}

.hero-tagline p {
    max-width: 62ch;
    margin: 0 auto;
}

.hero-tagline .hero-btns {
    justify-content: center;
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .hero {
        padding: 60px 0 60px;
    }

    .hero-tagline-text {
        font-size: 1.3rem;
    }
}

/* Specificity fix: `.hero h1` (0,1,1) outranks `.hero-tagline-text` (0,1,0),
   so the tagline stayed at 4.5rem. Qualify with the element to win. */
.hero h1.hero-tagline-text {
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
    line-height: 1.3;
    margin-bottom: 0;
    text-shadow: none;
}

@media (max-width: 600px) {
    .hero h1.hero-tagline-text {
        font-size: 1.3rem;
    }
}

/* Contextual link from a module block to its own page */
.module-link {
    display: inline-block;
    margin-top: 1.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.module-link:hover {
    background: rgba(59, 130, 246, 0.14);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.edition-panel--wild .module-link {
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
}

.edition-panel--wild .module-link:hover {
    background: rgba(139, 92, 246, 0.14);
    border-color: #8b5cf6;
}

/* =========================================================================
   CAPABILITY GRID — a sub-module with many groups rather than a sequence
   ========================================================================= */
/* Tighter heading and lead-in for the capability layout */
.page-header:has(+ .feature-flow) {
    padding-bottom: 18px;
}

.feature-flow:has(.cap-grid) {
    padding: 14px 0 10px;
}

.feature-flow:has(.cap-grid) .section-header {
    margin-bottom: 28px;
}

.feature-flow:has(.cap-grid) .section-header h2 {
    font-size: 1.7rem;
    margin-bottom: 0;
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.1rem;
}

.cap-card {
    padding: 1.3rem 1.2rem;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.16);
    backdrop-filter: blur(5px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.cap-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.cap-card i {
    width: 22px;
    height: 22px;
    margin-bottom: 0.5rem;
    color: var(--primary-neon);
}

.cap-card h3 {
    margin-bottom: 0.7rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.18);
    font-size: 1rem;
}

.cap-card ul {
    list-style: none;
    display: grid;
    gap: 0.32rem;
}

.cap-card li {
    position: relative;
    padding-left: 1.05rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.cap-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

/* =========================================================================
   FEATURE FLOW — what a sub-module contains, as connected steps
   ========================================================================= */
.feature-flow {
    padding: 6px 0 20px;
}

/* Title and its "What's inside" line share one row, tight under the nav */
.page-header:has(+ .feature-flow),
.page-header:has(+ .cta-section) {
    padding: 18px 0 4px;
}

.page-title-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.page-title-row h1 {
    margin-bottom: 0;
}

.page-subtitle {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .page-subtitle { font-size: 1.2rem; }
}

.flow-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.4rem 1.9rem;
    list-style: none;
}

/* Outlets run in parallel, not in sequence — no numbering, no arrows */
.flow-track--outlets {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}

.flow-track--outlets > .flow-step::before,
.flow-track--outlets > .flow-step::after {
    display: none;
}

/* Point-wise purpose list inside an outlet card */
.flow-points {
    display: grid;
    gap: 0.3rem;
    margin-top: 0.2rem;
    list-style: none;
}

.flow-points li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.flow-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

/* Five steps read 3 across, then 2 centred underneath */
.flow-track--5 {
    grid-template-columns: repeat(6, 1fr);
}

.flow-track--5 > .flow-step { grid-column: span 2; }
.flow-track--5 > .flow-step:nth-child(3)::before,
.flow-track--5 > .flow-step:nth-child(3)::after { display: none; }

.flow-track--5 > .flow-step--branch-l { grid-column: 2 / span 2; }
.flow-track--5 > .flow-step--branch-r { grid-column: 4 / span 2; }

/* One arrow leaves the centre of the top row and forks into both cards below.
   Sits in its own full-width row, so the fork lines up with the grid. */
.flow-split {
    grid-column: 1 / -1;
    position: relative;
    height: 2.6rem;
    margin: -0.9rem 0;
}

/* stem down from card 3, the last step of the top row */
.flow-split::before {
    content: '';
    position: absolute;
    left: 83.33%;
    top: 0;
    width: 2px;
    height: 50%;
    transform: translateX(-1px);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.25), rgba(96, 165, 250, 0.9));
}

/* cross-bar running back from card 3 over both branch points */
.flow-split::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 33.33%;
    right: 16.67%;
    height: 2px;
    background: rgba(96, 165, 250, 0.9);
}

/* the two drops, each ending in an arrowhead over its card */
.flow-split span {
    position: absolute;
    top: 50%;
    bottom: 0;
    width: 2px;
    background: rgba(96, 165, 250, 0.9);
}

.flow-split span:first-child { left: 33.33%; }
.flow-split span:last-child { left: 66.67%; }

.flow-split span::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid rgba(96, 165, 250, 0.95);
}

/* the fork replaces the per-card arrows on the bottom row */
.flow-step--branch-l::before,
.flow-step--branch-l::after,
.flow-step--branch-r::before,
.flow-step--branch-r::after { display: none; }

.flow-step {
    position: relative;
    padding: 1.8rem 1.5rem;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.16);
    backdrop-filter: blur(5px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.flow-step:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* Connector into the next step, drawn in the gutter */
/* --- Arrows joining the chain: shaft (::before) + head (::after) --- */
.flow-step:not(:last-child)::before,
.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    pointer-events: none;
}

.flow-step:not(:last-child)::before {
    right: -1.9rem;
    width: 1.9rem;
    height: 2px;
    transform: translateY(-1px);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.25), rgba(96, 165, 250, 0.9));
}

.flow-step:not(:last-child)::after {
    right: -0.7rem;
    transform: translateY(-50%);
    border-left: 8px solid rgba(96, 165, 250, 0.95);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* --- Product shot inside each card --- */
.flow-shot {
    margin-top: 1.2rem;
}

.cap-card .flow-shot {
    margin-top: 0.9rem;
}

.cap-card .flow-shot .screen-body {
    gap: 0.32rem;
    padding: 0.55rem;
    font-size: 0.64rem;
}

.flow-shot .screen-frame {
    border-radius: 10px;
}

.flow-shot .screen-bar {
    padding: 0.4rem 0.6rem;
}

.flow-shot .screen-title {
    margin-left: 0.4rem;
    font-size: 0.62rem;
}

.flow-shot .screen-body {
    gap: 0.4rem;
    padding: 0.7rem;
    font-size: 0.68rem;
}

.flow-shot .ui-row {
    padding: 0.3rem 0.45rem;
}

.flow-shot .ui-row i {
    width: 13px;
    height: 13px;
}

.flow-shot .ui-pill {
    font-size: 0.6rem;
}

.flow-index {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
}

.flow-step i {
    width: 26px;
    height: 26px;
    margin-bottom: 0.7rem;
    color: var(--primary-neon);
}

.flow-step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.12rem;
}

.flow-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.flow-tag {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.15rem 0.7rem;
    border-radius: 50px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #d6c9ff;
    font-size: 0.72rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .feature-flow { padding: 50px 0 10px; }

    /* Stacked: every arrow points down to the next card */
    .flow-track,
    .flow-track--5 { grid-template-columns: 1fr; }

    .flow-track--5 > .flow-step { grid-column: 1; }

    /* the fork only makes sense in a two-row layout */
    .flow-split { display: none; }

    .flow-track--5 > .flow-step:nth-child(3)::before,
    .flow-track--5 > .flow-step:nth-child(3)::after,
    .flow-step--branch-l::before,
    .flow-step--branch-l::after { display: block; }

    .flow-step--branch-r::before,
    .flow-step--branch-r::after { display: none; }

    .flow-step:not(:last-child)::before,
    .flow-track--5 > .flow-step:nth-child(3)::before,
    .flow-step--branch-l::before {
        top: auto;
        right: auto;
        left: 50%;
        bottom: -2.4rem;
        width: 2px;
        height: 2.4rem;
        transform: translateX(-1px);
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.25), rgba(96, 165, 250, 0.9));
    }

    .flow-step:not(:last-child)::after,
    .flow-track--5 > .flow-step:nth-child(3)::after,
    .flow-step--branch-l::after {
        top: auto;
        right: auto;
        left: 50%;
        bottom: -1.2rem;
        transform: translateX(-50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 8px solid rgba(96, 165, 250, 0.95);
        border-bottom: 0;
    }
}

/* =========================================================================
   SUB MODULE NAV — native <details> disclosure, no JS
   ========================================================================= */
.nav-sub {
    position: relative;
}

.nav-sub summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    list-style: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-sub summary::-webkit-details-marker {
    display: none;
}

.nav-sub summary:hover,
.nav-sub details[open] summary {
    color: var(--primary);
}

.nav-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.25s ease;
}

.nav-sub details[open] .nav-caret {
    transform: rotate(180deg);
}

.nav-sub-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 270px;
    padding: 0.5rem;
    list-style: none;
    border-radius: 14px;
    background: rgba(10, 15, 30, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.8), 0 0 24px rgba(59, 130, 246, 0.12);
    backdrop-filter: blur(12px);
}

.nav-sub-menu li {
    margin: 0;
}

.nav-sub-menu a {
    display: block;
    padding: 0.55rem 0.9rem;
    border-radius: 9px;
    color: var(--text-muted);
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
}

.nav-sub-menu a:hover {
    background: rgba(59, 130, 246, 0.14);
    color: var(--white);
}

.nav-sub-note {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.75rem;
    color: #c4b5fd;
    white-space: normal;
}

@media (max-width: 968px) {
    .nav-sub summary {
        font-size: 1.1rem;
    }

    /* Inside the drawer the menu pushes content down instead of floating */
    .nav-sub-menu {
        position: static;
        transform: none;
        min-width: 0;
        margin-top: 0.6rem;
        padding: 0.25rem 0;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    .nav-sub-menu a {
        padding: 0.55rem 0 0.55rem 0.9rem;
        border-left: 2px solid rgba(59, 130, 246, 0.3);
        border-radius: 0;
        white-space: normal;
    }
}

/* =========================================================================
   EDITION PICKER + PANELS (features.html #leisure / #wildlife)
   Two clickable desktop screens choose an edition; JS shows one panel at a
   time and scrolls to it. Without JS both panels stay visible.
   ========================================================================= */
.edition-picker-section {
    padding: 0 0 70px;
}

/* Title sits close to the two screens it introduces */
.page-header:has(+ .edition-picker-section) {
    padding-bottom: 28px;
}

.edition-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

.pick-screen {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.pick-screen:hover,
.pick-screen:focus-visible {
    transform: translateY(-8px);
}

/* The window itself — the edition artwork, which carries its own title */
.scene {
    position: relative;
    aspect-ratio: 1.39;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 24px rgba(59, 130, 246, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pick-screen:hover .scene,
.pick-screen:focus-visible .scene,
.pick-screen.is-active .scene {
    border-color: var(--primary);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 34px rgba(59, 130, 246, 0.3);
}

.pick-screen--wild .scene {
    border-color: rgba(139, 92, 246, 0.3);
}

.pick-screen--wild:hover .scene,
.pick-screen--wild:focus-visible .scene,
.pick-screen--wild.is-active .scene {
    border-color: #8b5cf6;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 34px rgba(139, 92, 246, 0.3);
}

.scene > svg,
.scene > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.pick-screen:hover .scene > svg,
.pick-screen:hover .scene > img {
    transform: scale(1.06);
}

/* Scrim so an overlaid title stays readable */
.scene::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 8, 20, 0.55) 0%, rgba(4, 8, 20, 0.1) 45%, rgba(4, 8, 20, 0.7) 100%);
}

/* A photo carries its own title — only a light vignette to seat it in the frame */
.scene:has(img)::after {
    background: linear-gradient(180deg, rgba(4, 8, 20, 0.18) 0%, transparent 22%, transparent 72%, rgba(4, 8, 20, 0.45) 100%);
}

/* Active-state chip — on the scene, so it works with a title or a photo */
.pick-screen.is-active .scene::before {
    content: 'Showing below';
    position: absolute;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.9rem;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    background: rgba(10, 15, 30, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.55);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #bfd4ff;
    white-space: nowrap;
}

.pick-screen--wild.is-active .scene::before {
    border-color: rgba(139, 92, 246, 0.6);
    color: #d6c9ff;
}

.pick-hint {
    margin-top: 1.8rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* One edition at a time — JS toggles the attribute */
.edition-panel {
    scroll-margin-top: 90px;
}

.edition-panel[hidden] {
    display: none;
}

.edition-intro {
    padding: 60px 0 0;
}

.edition-end {
    padding: 0 1.5rem 40px;
    text-align: center;
    color: var(--text-muted);
}

.edition-end .link {
    margin-left: 0.4rem;
}

/* Wildlife accents — same layout, different family colour */
.edition-panel--wild .module-index {
    color: #b8a4ff;
}

.edition-panel--wild .module-text li::before {
    background: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

.module-block--diff .screen-frame {
    border-color: rgba(139, 92, 246, 0.5);
}

@media (max-width: 900px) {
    .edition-picker {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .edition-picker-section { padding: 0 0 50px; }
    .edition-intro { padding: 40px 0 0; }
    }

.edition-eyebrow {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.75);
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.55), inset 0 0 22px rgba(59, 130, 246, 0.25);
    color: #eaf2ff;
    text-shadow: 0 0 14px rgba(96, 165, 250, 0.9), 0 0 32px rgba(59, 130, 246, 0.6);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* The chain heading sits under the eyebrow, not over it */
.edition-intro .section-header h2 {
    font-size: 1.9rem;
}

.edition-eyebrow--wild {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(167, 139, 250, 0.75);
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.55), inset 0 0 22px rgba(139, 92, 246, 0.25);
    color: #f3edff;
    text-shadow: 0 0 14px rgba(167, 139, 250, 0.9), 0 0 32px rgba(139, 92, 246, 0.6);
}

/* =========================================================================
   HERO — single-line tagline, tighter to the header, matched screens
   ========================================================================= */
.hero {
    padding: 48px 0 80px;
}

.hero .container {
    gap: 1.75rem;
}

.hero h1.hero-tagline-text {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(1.25rem, 2.5vw, 2.05rem);
    margin: 0 auto;
}

/* Both hero screens share one frame so they read as a matched pair;
   contain (not cover) keeps each screenshot uncropped inside it. */
.main-dashboard.glass-card,
.secondary-dashboard.glass-card {
    width: 620px;
    height: 380px;
}

.main-dashboard img,
.secondary-dashboard img {
    object-fit: contain;
}

/* Below this the tagline no longer fits on one line — let it wrap. */
@media (max-width: 900px) {
    .hero h1.hero-tagline-text {
        white-space: normal;
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 36px 0 60px;
    }

    .hero h1.hero-tagline-text {
        font-size: 1.25rem;
    }
}

/* Re-assert the stacked-card sizing: the matched 620x380 frame above is a
   plain rule and would otherwise beat the earlier 1100px block. */
@media (max-width: 1100px) {
    .main-dashboard.glass-card,
    .secondary-dashboard.glass-card {
        width: 100%;
        max-width: 660px;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* =========================================================================
   MODULE BLOCKS + SCREEN MOCKUPS (features.html)
   One text column beside one desktop-screen frame. Every screen uses the
   same .screen-frame shell and the small .ui-* primitives below, so a new
   module is markup only — no new CSS.
   ========================================================================= */
.module-block {
    padding: 70px 0;
    scroll-margin-top: 100px;
}

.module-block + .module-block {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.module-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 3.5rem;
    align-items: center;
}

/* Alternating sides — flip class, not nth-of-type, so section order is free */
.module-block--flip .module-text {
    order: 2;
}

.module-index {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.module-text h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.module-text > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.module-text ul {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.module-text li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text);
    line-height: 1.5;
}

.module-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

/* --- The screen --- */
.module-screen {
    min-width: 0;
}

.screen-frame {
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(17, 24, 44, 0.96), rgba(10, 15, 30, 0.96));
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 24px rgba(59, 130, 246, 0.08);
    overflow: hidden;
}

.screen-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.screen-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.35);
}

.screen-dot:first-child { background: rgba(239, 68, 68, 0.55); }
.screen-dot:nth-child(2) { background: rgba(234, 179, 8, 0.55); }
.screen-dot:nth-child(3) { background: rgba(34, 197, 94, 0.55); }

.screen-title {
    margin-left: 0.6rem;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.screen-body {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    padding: 1rem;
    font-size: 0.78rem;
}

/* POS puts its three panels side by side, wrapping on narrow screens */
.screen-body--pos {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: start;
}

/* Monitor stand */
.screen-stand {
    width: 110px;
    height: 12px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.05));
    border-inline: 1px solid rgba(59, 130, 246, 0.18);
}

.screen-base {
    width: 200px;
    height: 7px;
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    background: rgba(59, 130, 246, 0.16);
}

/* --- Reusable in-screen UI primitives --- */
.ui-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ui-strong { font-weight: 600; color: var(--white); }
.ui-muted { color: var(--text-muted); }

.ui-pill {
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #bfd4ff;
    font-size: 0.68rem;
    white-space: nowrap;
}

.ui-pill--ok {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    color: #9ae6b4;
}

.ui-pill--warn {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.4);
    color: #f5d98a;
}

.ui-list { display: grid; gap: 0.4rem; }

.ui-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ui-row > span:nth-child(2) { flex: 1; min-width: 0; }

.ui-row i {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

.ui-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.4rem; }

.ui-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.5rem; }

.ui-tile {
    display: grid;
    gap: 0.2rem;
    padding: 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.14);
    color: var(--text-muted);
}

.ui-tile i { width: 16px; height: 16px; color: var(--primary); }
.ui-tile .ui-strong { font-size: 0.95rem; }

.ui-panel {
    display: grid;
    gap: 0.4rem;
    align-content: start;
    padding: 0.7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.14);
}

.ui-panel i { width: 15px; height: 15px; color: var(--primary); }

.ui-line {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--text-muted);
}

.ui-total {
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(59, 130, 246, 0.3);
    color: var(--white);
    font-weight: 600;
}

/* PMS availability grid */
.ui-cal {
    display: grid;
    grid-template-columns: 78px repeat(6, 1fr);
    gap: 4px;
    align-items: center;
}

.ui-cal-label { color: var(--text-muted); font-size: 0.7rem; }
.ui-cal-day { text-align: center; color: var(--text-muted); font-size: 0.68rem; }

.ui-cal-cell {
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--white);
    overflow: hidden;
    white-space: nowrap;
    padding: 0 0.3rem;
}

/* POS table map */
.ui-tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }

.ui-table {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
    color: var(--white);
}

/* Safari slot board — six slots on one row, cells share the calendar look */
.ui-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.35rem; }

/* Fills last so they win over the cell/table backgrounds above */
.ui-fill-a { background: rgba(59, 130, 246, 0.45); }
.ui-fill-b { background: rgba(139, 92, 246, 0.45); }
.ui-fill-c { background: rgba(34, 197, 94, 0.38); }

/* BI bar chart */
.ui-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    height: 84px;
    padding: 0.4rem 0.2rem 0;
}

.ui-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.85), rgba(59, 130, 246, 0.25));
}

.ui-bar--peak { background: linear-gradient(180deg, rgba(34, 197, 94, 0.9), rgba(34, 197, 94, 0.25)); }

/* --- Responsive --- */
@media (max-width: 900px) {
    .module-block { padding: 50px 0; }

    .module-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Text always leads on a stacked layout */
    .module-block--flip .module-text { order: 0; }

    .screen-body { font-size: 0.74rem; }
    .ui-cal { grid-template-columns: 64px repeat(6, 1fr); }
}

@media (max-width: 600px) {
    .module-text > p { font-size: 1rem; }
    .screen-body { padding: 0.75rem; gap: 0.6rem; }
    .ui-cal { grid-template-columns: 56px repeat(6, 1fr); gap: 3px; }
    .ui-cal-cell { height: 20px; font-size: 0.6rem; }
    .ui-chart { height: 64px; }
    .screen-stand { width: 84px; }
    .screen-base { width: 150px; }
}

/* =========================================================================
   ACCOUNTS CAPABILITY MAP (accounts.html)
   Thirteen groups; two of them (ledgers, statements) nest sub-groups.
   ========================================================================= */
.acct-map {
    padding: 40px 0 20px;
}

.acct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.acct-card {
    padding: 1.6rem 1.5rem;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.16);
    backdrop-filter: blur(5px);
    border-top: 3px solid var(--primary);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.acct-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Cycle the accent so the groups read as distinct at a glance */
.acct-card:nth-child(4n+2) { border-top-color: var(--accent); }
.acct-card:nth-child(4n+3) { border-top-color: #22c55e; }
.acct-card:nth-child(4n)   { border-top-color: #e5c07b; }

.acct-card--wide {
    grid-column: 1 / -1;
}

.acct-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.acct-num {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary-neon);
}

.acct-head i {
    width: 18px;
    height: 18px;
    color: var(--primary-neon);
}

.acct-head h3 {
    font-size: 1.05rem;
    line-height: 1.3;
}

.acct-card ul {
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.acct-card li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.acct-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

/* Nested ledger groups */
.acct-subs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.acct-sub {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(59, 130, 246, 0.12);
}

.acct-sub h4 {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--white);
}

@media (max-width: 600px) {
    .acct-card { padding: 1.3rem 1.2rem; }
    .acct-subs { grid-template-columns: 1fr; }
}

/* Mini screen inside each accounts card — the .ui-* primitives, scaled down */
.acct-screen {
    margin-bottom: 1.1rem;
}

.acct-screen .screen-frame {
    border-radius: 10px;
}

.acct-screen .screen-bar {
    padding: 0.4rem 0.6rem;
}

.acct-screen .screen-dot {
    width: 7px;
    height: 7px;
}

.acct-screen .screen-title {
    margin-left: 0.4rem;
    font-size: 0.62rem;
}

.acct-screen .screen-body {
    gap: 0.45rem;
    padding: 0.7rem;
    font-size: 0.68rem;
}

.acct-screen .ui-row {
    padding: 0.3rem 0.45rem;
}

.acct-screen .ui-tile {
    padding: 0.45rem 0.5rem;
}

.acct-screen .ui-tile .ui-strong {
    font-size: 0.82rem;
}

.acct-screen .ui-chart {
    height: 52px;
}

.acct-screen .ui-pill {
    padding: 0.1rem 0.4rem;
    font-size: 0.6rem;
}
