:root {
    /* Colors - Teal/Cyan Tech Palette */
    --clr-bg: #050a0a;
    --clr-primary: #00d1c1;
    --clr-primary-glow: rgba(0, 209, 193, 0.4);
    --clr-accent: #008f8f;
    --clr-text: #e0f2f1;
    --clr-text-muted: #94a3a3;
    --clr-glass-bg: rgba(10, 25, 25, 0.7);
    --clr-glass-border: rgba(0, 209, 193, 0.08);


    /* Accessibility: skip link */
    .skip-link {
        position: absolute;
        left: -9999px;
        top: auto;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .skip-link:focus {
        left: 1rem;
        top: 1rem;
        width: auto;
        height: auto;
        padding: 0.6rem 1rem;
        background: var(--clr-primary);
        color: var(--clr-bg);
        border-radius: 6px;
        z-index: 9999;
        text-decoration: none;
    }

    /* Typography */
    --ff-main: 'Outfit',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Effects */
    --glass-blur: blur(12px);
    --shadow-glow: 0 0 20px var(--clr-primary-glow);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--ff-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* CSS Grid background pattern */
    background-image:
        linear-gradient(var(--clr-glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--clr-glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--clr-bg) 80%);
    pointer-events: none;
    z-index: -1;
}

/* Typography Scale */
h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--clr-primary);
}

p {
    color: var(--clr-text-muted);
    max-width: 60ch;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Glassmorphism Components */
.glass-card {
    background: var(--clr-glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--clr-glass-border);
    border-radius: 12px;
    padding: 0;
    /* Remove default padding for full-width image */
    transition: var(--transition-smooth);
    overflow: hidden;
    /* Ensure image stays within border radius */
    display: flex;
    flex-direction: column;
}


/* Back to top button */
.back-to-top {
    position: fixed;
    right: 24px;
    left: auto;
    bottom: 28px;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    background: var(--clr-primary);
    color: var(--clr-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    border: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transform: translateY(10px) scale(0.98) !important;
    transition: opacity 260ms var(--transition-smooth), transform 260ms var(--transition-smooth) !important;
    z-index: 9999;
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

.back-to-top:focus {
    outline: 3px solid rgba(0, 209, 193, 0.18);
    outline-offset: 3px;
}

.back-to-top__icon {
    font-weight: 700;
    font-size: 1.1rem;
}


.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Vision Section */
#vision {
    background: #080f0f;
    position: relative;
    border-top: 1px solid var(--clr-glass-border);
}

.vision-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.vision-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--clr-glass-border);
    padding: var(--spacing-md);
    border-radius: 8px;
    height: 100%;
    transition: var(--transition-smooth);
    text-align: center;
}

.vision-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--clr-primary);
    transform: translateY(-5px);
}

.vision-icon {
    font-size: 3.5rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.vision-card:hover .vision-icon {
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--clr-primary-glow);
}

.vision-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.vision-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Mission Section Specifics */
.mission-highlight-card {
    background: linear-gradient(135deg, rgba(0, 209, 193, 0.05) 0%, rgba(10, 25, 25, 0.8) 100%);
    border: 1px solid var(--clr-glass-border);
    padding: var(--spacing-lg);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.mission-highlight-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 40px;
    font-size: 15rem;
    color: var(--clr-primary);
    opacity: 0.1;
    font-family: serif;
    pointer-events: none;
}

.mission-statement {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    color: #fff;
    line-height: 1.35;
    font-weight: 500;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.mission-aggregation {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.mission-orchestration {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.orchestration-tag {
    background: rgba(0, 209, 193, 0.08);
    border: 1px solid var(--clr-glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    color: var(--clr-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.orchestration-tag:hover {
    background: var(--clr-primary);
    color: var(--clr-bg);
    transform: translateY(-2px);
}

/* Mission cards moved from inline styles into CSS */
.mission-lead {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
    color: var(--clr-text-muted);
    font-size: 1.12rem;
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.mission-card .mission-content {
    padding: 1.25rem;
}


.mission-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}

.mission-icon {
    font-size: 3.5rem;
    color: var(--clr-primary);
    margin: 0 0 0.25rem 0;
}

.mission-text {
    color: var(--clr-text-muted);
    text-align: center;
    line-height: 1.6;
    max-width: 40ch;
}

@media (max-width: 800px) {
    .mission-cards {
        grid-template-columns: 1fr;
    }
}

/* Contact layout rules moved from inline styles */
.contact-flex {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-between;
    align-items: stretch;
}

.contact-info-col {
    flex: 1 1 320px;
    min-width: 260px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

@media (max-width: 800px) {
    .contact-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-action-col {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--clr-glass-border);
        padding-top: 2rem;
    }
}

/* Use Cases — icon above text cards */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.use-case-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--clr-glass-border);
    border-radius: 12px;
    padding: 1.14rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
}

.use-case-card:hover {
    transform: translateY(-6px);
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-glow);
}

.usecase-icon {
    color: var(--clr-primary);
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
}

.usecase-text {
    color: var(--clr-text-muted);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 28ch;
}

@media (max-width: 640px) {
    .usecase-text {
        max-width: 100%;
        font-size: 0.98rem;
    }
}

/* CTA card for Solutions section */
.cta-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 209, 193, 0.03), rgba(10, 25, 25, 0.6));
    border: 1px solid rgba(0, 209, 193, 0.12);
}

.cta-card .btn-primary {
    background: var(--clr-primary);
    color: var(--clr-bg);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.cta-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    /* Matches .content-grid gap */
    padding: 0;
    background: var(--clr-bg);
    overflow: hidden;
    align-items: stretch;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: max(var(--spacing-md), calc((100vw - 1200px) / 2 + var(--spacing-md)));
    padding-right: 0;
    /* Handled by grid gap */
    padding-top: 160px;
    padding-bottom: var(--spacing-lg);
    gap: 2.5rem;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 2.1rem);
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.hero__highlight {
    color: var(--clr-primary);
    /* Purple highlight from reference image */
    display: block;
    margin-top: 0.5rem;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 45ch;
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.btn-hero {
    padding: 0.8rem 1.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    /* Rounded buttons like reference */
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-transform: capitalize;
}

.hero__visual {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    dia align-items: center;
    justify-content: flex-start;
    /* Starts at the middle of the screen */
    padding-right: max(var(--spacing-md), calc((100vw - 1200px) / 2 + var(--spacing-md)));
    padding-left: 0;
    /* Handled by grid gap */
    /* Matches .hero__content paddings for vertical sync */
    padding-top: 160px;
    padding-bottom: var(--spacing-lg);
}

.visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 100%;
    /* Cinematic balance removed for content-driven height */
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
    /* Changed from black to support masking */

    /* Soft edge blending effect */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent),
        linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent),
        linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;

    /*box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 209, 193, 0.1);
    border: 1px solid var(--clr-glass-border);*/
}

.hero-video {
    position: absolute;
    /* Restored for perfect crossfade stacking */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-video.active {
    opacity: 0.95;
    z-index: 2;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Atmospheric vignette */
    background: radial-gradient(circle, transparent 20%, rgba(5, 10, 10, 0.7) 100%);
    pointer-events: none;
    z-index: 3;
}

@keyframes videoZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 80px;
    }

    .hero__visual {
        height: 60vh;
        padding: 2rem;
    }

    .visual-wrapper {
        width: 100%;
        height: 100%;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-glass-border);
    transition: var(--transition-smooth);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 4rem;
    transition: var(--transition-smooth);
}

nav.scrolled {
    background: rgba(5, 10, 10, 0.95);
}

nav.scrolled .container {
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    user-select: none;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-weight: 900;
    font-size: 1rem;
    color: var(--clr-bg);
    /*background: #fff;*/
    /*padding: 4px 8px;*/
    border-radius: 50px;
    line-height: 1;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.05rem;
    font-size: 1.1rem;
    color: #fff;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2rem);
    list-style: none;
    align-items: center;
    /* Prevent links from wrapping and pushing the nav taller */
    flex-wrap: nowrap;
    overflow: visible;
}

.nav-links a {
    color: var(--clr-text-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 1rem 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.4rem;

    /* Avoid breaking into multiple lines for long link text */
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

/* Ensure list items can shrink as needed inside the flex container */
.nav-links li {
    min-width: 0;
}


.nav-links a:hover {
    color: #fff;
}

/* Active nav link (scrollspy) */
.nav-links a.active {
    color: #fff;
    border-bottom: 2px solid var(--clr-primary);
}

/* Mobile-specific active style and scrolled nav offset */
@media (max-width: 1024px) {

    /* When the mobile menu is open, place it below the nav height (default 80px)
       but when nav has class `scrolled` reduce the top to 60px. */
    .nav-links.active {
        top: 80px;
        /* default nav height */
    }

    nav.scrolled .nav-links.active {
        top: 60px;
        /* smaller nav when scrolled */
    }

    /* On mobile use a pill-style highlight instead of bottom border */
    .nav-links a.active {
        background: rgba(0, 209, 193, 0.08);
        border-bottom: none;
        padding: 0.6rem 0.8rem;
        border-radius: 8px;
        color: #fff;
    }
}

.arrow {
    width: 5px;
    height: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: var(--transition-smooth);
    opacity: 0.6;
}

.has-dropdown:hover .arrow {
    transform: rotate(-135deg);
    margin-top: 3px;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--clr-glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--clr-glass-border);
    border-radius: 8px;
    min-width: 200px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    list-style: none;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    padding: 0.6rem 1rem;
    display: block;
    color: var(--clr-text-muted);
    font-size: 0.75rem;
    text-transform: none;
}

.dropdown a:hover {
    color: var(--clr-primary);
    background: rgba(0, 209, 193, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    height: auto;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-login {
    background: var(--clr-primary);
    color: var(--clr-bg);
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px;
    height: auto;
    /* Prevent stretching */
}

.icon-arrow {
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.btn-login:hover .icon-arrow {
    transform: translateX(4px);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 1rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clr-primary);
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--clr-primary);
    transition: var(--transition-smooth);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.7rem;
}

.btn-primary {
    background: var(--clr-primary);
    color: var(--clr-bg);
    border: none;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
}

.btn-outline:hover {
    background: var(--clr-primary-glow);
    color: #fff;
}

/* logo styling */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.pi-logo {
    font-size: 10rem;
    font-weight: 900;
    background: linear-gradient(135deg, #eee 0%, #333 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    line-height: 1;
    position: relative;
    user-select: none;
}

.pi-logo::after {
    content: 'PI';
    position: absolute;
    left: 0;
    top: 0;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px var(--clr-primary);
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
}

.company-name {
    text-transform: uppercase;
    letter-spacing: 0.8em;
    font-size: 1.2rem;
    color: var(--clr-text);
    margin-top: -1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Global Responsive Utilities */
@media (max-width: 768px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) {

    /* Collapse the desktop nav earlier to avoid crowding the CTA */
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 0 var(--spacing-md);
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
    }

    /* Mobile menu open state */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        position: fixed;
        top: 80px;
        right: 1rem;
        left: 1rem;
        background: var(--clr-glass-bg);
        backdrop-filter: var(--glass-blur);
        border: 1px solid var(--clr-glass-border);
        border-radius: 8px;
        padding: 1rem;
        z-index: 1500;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    }

    .nav-links.active a {
        padding: 0.6rem 0.8rem;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.card-list {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
}

.card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.card-list li::before {
    content: '•';
    color: var(--clr-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

/* Section Utilities */
.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.section-title span {
    color: var(--clr-primary);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--clr-text-muted);
}

.text-content b,
.text-content strong {
    color: #fff;
    font-weight: 600;
}

/* Introduction Section */
.intro {
    background: linear-gradient(to bottom, var(--clr-bg), #080f0f);
}

.intro__branding {
    margin-top: 3rem;
    display: flex;
    justify-content: flex-start;
}

.pi-metallic {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #eee 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
    letter-spacing: -0.05em;
    user-select: none;
}

/* Trends Section */
.trends {
    background: #080f0f;
}

.trends-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.trend-item {
    padding-left: 0;
}

.trend-item h3 {
    color: var(--clr-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.trend-item p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Image Stack Component */
.image-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-stack__item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 1px solid var(--clr-glass-border);
}

.image-stack__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.image-stack__item:hover img {
    transform: scale(1.05);
}

/* Highlight Utilities */
.highlight-cyan {
    color: var(--clr-primary);
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .intro__branding {
        justify-content: center;
    }

    .section-padding {
        padding: var(--spacing-lg) 0;
    }
}

/* About Company Section */
#company {
    background: transparent
}

.about-visual {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-list {
    list-style: none;
    margin-top: 1.5rem;
    text-align: left;
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    line-height: 2;
    padding: 0;
}

.check-icon {
    color: var(--clr-primary);
    margin-right: 0.5rem;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.glass-card:hover .about-image {
    opacity: 1;
    transform: scale(1.02);
}

.card-icon-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Technology Section - Bento Grid Redesign */
#technology {
    /*background: linear-gradient(to bottom, #080f0f, var(--clr-bg));*/
    position: relative;
    overflow: hidden;
}

/* Background aesthetic elements */
#technology::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 209, 193, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.tech-hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 1;
}

.tech-hero h3 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--clr-text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.tech-card {
    background: rgba(10, 25, 25, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.tech-card:hover {
    background: rgba(20, 35, 35, 0.6);
    border-color: var(--clr-primary-glow);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Card Sizes */
.span-2 {
    grid-column: span 2;
}

.row-2 {
    grid-row: span 2;
}

.span-4 {
    grid-column: span 4;
}

/* Card Content Styles */
.tech-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tech-card h3 i {
    color: var(--clr-primary);
    font-size: 1.2rem;
    background: rgba(0, 209, 193, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tech-list li {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tech-list li i {
    color: var(--clr-accent);
    font-size: 0.8rem;
}

/* Use Cases Tag Cloud */
.tech-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-content: flex-start;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.tech-tag:hover {
    background: rgba(0, 209, 193, 0.1);
    border-color: var(--clr-primary);
    color: #fff;
    transform: scale(1.05);
    cursor: default;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .tech-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .span-2,
    .row-2,
    .span-4 {
        grid-column: auto;
        grid-row: auto;
    }

    .tech-list[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .tech-hero h3 {
        font-size: 2rem;
    }
}

.tech-quote {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-muted);
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tech-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Why It Matters Section */
.why-matters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.why-matters-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--clr-primary);
    font-weight: 600;
}

.why-matters-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.why-matters-title .highlight {
    color: var(--clr-primary);
    display: block;
}

.why-matters-description {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 100%;
}

.why-matters-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: var(--spacing-lg);
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--clr-glass-border);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--clr-primary);
    transform: translateX(5px);
}

.benefit-icon {
    color: var(--clr-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.benefit-card span {
    color: var(--clr-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .why-matters-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .why-matters-title {
        font-size: 1.8rem;
    }
}

/* Tighter mobile adjustments for smaller phones */
@media (max-width: 768px) {
    .hero {
        /* Ensure space below the fixed nav (80px) plus breathing room */
        padding-top: 100px;
        grid-template-columns: 1fr;
    }

    .hero__content {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 20px;
        padding-bottom: 2rem;
        gap: 1.25rem;
        z-index: 5;
        /* keep buttons above visual */
    }

    .hero__title {
        font-size: 1.6rem;
        line-height: 1.15;
    }

    .hero__subtitle {
        max-width: 100%;
        font-size: 0.98rem;
        margin-right: 0;
    }

    .hero__actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .btn-hero {
        width: auto;
        padding: 0.9rem 1.1rem;
        font-size: 0.9rem;
    }

    .hero__visual {
        height: 38vh;
        padding: 1rem;
        display: none;
        padding-top: 0.5rem;
        z-index: 1;
    }

    .visual-wrapper {
        min-height: 200px;
        max-width: 100%;

        border-radius: 14px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    /* Hide the video on small devices to preserve bandwidth and avoid layout issues */
    .hero-video {
        display: none !important;
        min-height: 200px;
    }

    /* Use the hero video's poster as a lightweight background on phones */
    .visual-wrapper {
        background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?auto=format&fit=crop&q=80&w=1200');
    }

    /* Ensure mobile nav open state sits below the scrolled/smaller header */
    .nav-links.active {
        top: 72px;
    }

    /* Improve legibility inside small mobile menu */
    .nav-links.active a {
        padding: 0.7rem 0.9rem;
        font-size: 0.82rem;
    }

    /* Center section and hero text on small screens */
    .hero__content,
    .text-content,
    .section-title {
        text-align: center !important;
    }

    .text-content p {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
        text-align: center;
    }

    /* Make hero buttons centered and easier to tap */
    .hero__actions {
        align-items: center;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        max-width: 340px;
    }

    /* Center visual elements inside content areas */
    .glass-card.about-visual {
        margin: 1.5rem auto 0;
    }

    /* Stack benefit cards vertically for mobile readability */
    .why-matters-benefits {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .benefit-card {
        padding: 1.2rem;
        border-radius: 10px;
        text-align: left;
        display: flex;
        gap: 0.9rem;
        align-items: flex-start;
        background: rgba(255, 255, 255, 0.01);
        border: 1px solid rgba(255, 255, 255, 0.03);
    }

    .benefit-card .benefit-icon {
        font-size: 1.1rem;
        margin-top: 4px;
        color: var(--clr-primary);
    }


    @media (max-width: 480px) {
        .back-to-top {
            right: 16px;
            bottom: 20px;
            width: 44px;
            height: 44px;
        }
    }
}

/* Circular progress ring overlay for back-to-top */
.progress-ring {
    position: absolute;
    inset: 0;
    /* fill the button */
    width: 56px;
    height: 56px;
    display: block;
    pointer-events: none;
}

.progress-ring__bg,
.progress-ring__circle {
    transition: stroke-dashoffset 240ms linear, stroke 220ms ease;
}

.progress-ring__circle {
    stroke-dasharray: 150;
    /* fallback, will be updated by JS */
    stroke-dashoffset: 150;
}

.back-to-top__icon {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.1rem;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}