/* ==========================================================================
   AlgoNav Base CSS
   Shared styles for all pages (variables, resets, components, layouts)
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* Colors */
    --color-bg: #0a0f1a;
    --color-bg-alt: #0f1629;
    --color-bg-elevated: #151d30;
    --color-primary: #fc6200;
    --color-primary-light: #ff8533;
    --color-primary-gradient: linear-gradient(135deg, #fc6200 0%, #ff8533 100%);
    --color-accent: #3B82F6;
    --color-accent-light: #60a5fa;
    --color-text: #F3F4F6;
    --color-text-muted: #9CA3AF;
    --color-glass: rgba(255, 255, 255, 0.03);
    --color-glass-border: rgba(255, 255, 255, 0.08);

    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* ---------- Background Elements ---------- */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: -150px;
}

/* ---------- Glass Effect ---------- */
.glass {
    background: var(--color-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-glass-border);
    border-radius: 20px;
}

/* ---------- Container ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 1;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-bounce);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    background: var(--color-primary-gradient);
    color: white;
    box-shadow: 0 4px 20px -5px rgba(255, 122, 0, 0.5);
    cursor: pointer;
    border: none;
    transition: var(--transition-bounce);
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--color-glass-border);
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ---------- Header (base - overridden by shared-layout.css) ---------- */
header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1280px;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 42px;
}

header nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

header nav ul li a:not(.btn) {
    font-weight: 500;
    color: var(--color-text-muted);
}

header nav ul li a:hover {
    color: var(--color-text);
}

header nav ul li a.active {
    color: var(--color-primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--color-text-muted);
}

.nav-dropdown-menu li a:hover {
    background: rgba(255, 122, 0, 0.1);
    color: var(--color-primary);
}

/* ---------- Page Hero ---------- */
.page-hero {
    padding: 10rem 0 5rem;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.page-hero h1 .highlight {
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

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

/* ---------- Content Section ---------- */
.content-section {
    padding: var(--space-xl) 0;
}

.content-section.alt-bg {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

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

/* ---------- Feature Grid ---------- */
.feature-section {
    padding: var(--space-xl) 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    padding: var(--space-md);
    transition: var(--transition-bounce);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 122, 0, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 122, 0, 0.1);
    border: 1px solid rgba(255, 122, 0, 0.2);
    border-radius: 16px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

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

/* ---------- Use Cases ---------- */
.use-cases {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
    padding: var(--space-lg) 0;
}

.use-case-list,
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.use-case-item,
.use-case-card {
    padding: 1.5rem;
}

.use-case-item h4,
.use-case-card h4 {
    margin-bottom: 0.5rem;
}

.use-case-card h4 {
    margin-top: 1rem;
}

.use-case-item p,
.use-case-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.use-case-card {
    text-align: center;
}

.use-case-icon {
    font-size: 2rem;
}

/* ---------- Detail Content (alternating text+image sections) ---------- */
.detail-section {
    padding: var(--space-lg) 0;
}

.detail-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-lg);
}

.detail-block:last-child {
    margin-bottom: 0;
}

.detail-block.reverse {
    direction: rtl;
}

.detail-block.reverse>* {
    direction: ltr;
}

.detail-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.detail-text p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.detail-text ul {
    list-style: none;
    padding: 0;
}

.detail-text ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
}

.detail-text ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ---------- Pain Points / Challenges Section ---------- */
.challenges-section {
    padding: var(--space-lg) 0;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.challenges-grid .challenge-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.challenge-card {
    padding: 1.5rem;
}

.challenge-card h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary-light);
}

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

/* ---------- RTK vs PPK Comparison Section ---------- */
.rtk-ppk-section {
    padding: var(--space-xl) 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
}

.rtk-ppk-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.rtk-ppk-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.rtk-ppk-col {
    padding: var(--space-md);
}

.rtk-ppk-col h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.rtk-ppk-col .col-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.rtk-ppk-col ul {
    list-style: none;
    padding: 0;
}

.rtk-ppk-col ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-glass-border);
}

.rtk-ppk-col ul li:last-child {
    border-bottom: none;
}

.rtk-ppk-col.rtk-col ul li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #f59e0b;
}

.rtk-ppk-col.ppk-col ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.rtk-ppk-highlight {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(252, 98, 0, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%);
    border: 1px solid rgba(252, 98, 0, 0.2);
    border-radius: 16px;
}

.rtk-ppk-highlight h4 {
    color: var(--color-primary-light);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.rtk-ppk-highlight p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.rtk-ppk-highlight p:last-child {
    margin-bottom: 0;
}

.rtk-ppk-highlight strong {
    color: var(--color-text);
}

@media (max-width: 768px) {
    .rtk-ppk-columns {
        grid-template-columns: 1fr;
    }
}

/* ---------- Keywords / Tags ---------- */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(252, 98, 0, 0.1);
    border: 1px solid rgba(252, 98, 0, 0.2);
    border-radius: 999px;
    font-size: 0.9rem;
}

.tag .tag-icon {
    color: var(--color-primary);
}

/* ---------- Bento Grid (Space page + future use) ---------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-card {
    padding: 2rem;
    transition: var(--transition-bounce);
}

.bento-card:hover {
    transform: translateY(-3px);
    border-color: rgba(252, 98, 0, 0.3);
}

.bento-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

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

.bento-card ul {
    margin-top: 1rem;
}

.bento-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-glass-border);
}

.bento-card ul li:last-child {
    border-bottom: none;
}

.bento-card ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.bento-span-12 {
    grid-column: span 12;
}

.bento-span-8 {
    grid-column: span 8;
}

.bento-span-7 {
    grid-column: span 7;
}

.bento-span-6 {
    grid-column: span 6;
}

.bento-span-5 {
    grid-column: span 5;
}

.bento-span-4 {
    grid-column: span 4;
}

.bento-span-3 {
    grid-column: span 3;
}

.bento-accent-left {
    border-left: 3px solid var(--color-primary);
}

.bento-gradient-bg {
    background: linear-gradient(135deg, rgba(252, 98, 0, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* ---------- Expertise Section ---------- */
.expertise-section {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
    padding: var(--space-lg) 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.expertise-card {
    padding: 1.5rem;
    text-align: center;
}

.expertise-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.expertise-card h4 {
    margin-bottom: 0.5rem;
}

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

/* ---------- Inline Highlight Boxes ---------- */
.highlight-box {
    padding: 0.75rem 1rem;
    background: rgba(252, 98, 0, 0.1);
    border: 1px solid rgba(252, 98, 0, 0.2);
    border-radius: 8px;
}

.highlight-box strong {
    color: var(--color-primary-light);
}

.highlight-box p {
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

/* ---------- Inline Tags ---------- */
.inline-tag {
    padding: 0.3rem 0.75rem;
    background: rgba(252, 98, 0, 0.1);
    border: 1px solid rgba(252, 98, 0, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--color-primary-light);
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: var(--space-xl) 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-content h2 span {
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-glass-border);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-glass-border);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ---------- Hero Pill Tags (shared across all product pages) ---------- */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-glass-border);
    border-radius: 999px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.hero-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.hero-pill-icon {
    color: var(--color-primary);
}

/* ---------- Algorithm Block (shared reusable section) ---------- */
.algorithm-block {
    padding: var(--space-lg) 0;
    background: linear-gradient(135deg, rgba(252, 98, 0, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
}

.algorithm-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.algorithm-text {
    flex: 1;
    min-width: 300px;
}

.algorithm-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.algorithm-text p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.algorithm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.algorithm-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-glass-border);
    border-radius: 999px;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.algorithm-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.algorithm-badge-icon {
    color: var(--color-primary);
}

/* ---------- Positioning Suite Context Strip ---------- */
.suite-context-strip {
    padding: var(--space-md) 0 var(--space-sm);
}

.suite-context-inner {
    text-align: center;
}

.suite-context-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.suite-context-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.suite-context-options a,
.suite-context-options span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    border: 1px solid var(--color-glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.suite-context-options a:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--color-text);
}

.suite-context-options .active {
    background: rgba(252, 98, 0, 0.12);
    border-color: rgba(252, 98, 0, 0.4);
    color: var(--color-primary);
    font-weight: 600;
    cursor: default;
}

.suite-context-link {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.suite-context-link a {
    color: var(--color-accent-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.suite-context-link a:hover {
    color: var(--color-text);
}

/* ---------- Bento Grid (positioning-suite algorithm section) ---------- */
.bento-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-span-4 {
    grid-column: span 4;
}

.bento-span-6 {
    grid-column: span 6;
}

.bento-span-8 {
    grid-column: span 8;
}

.bento-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.bento-card-hero {
    padding: 2.5rem;
}

.bento-card-accent {
    border-left: 3px solid var(--color-primary);
}

.bento-card-highlight {
    background: linear-gradient(135deg, rgba(252, 98, 0, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.bento-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(252, 98, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.bento-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.bento-card-header-sm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bento-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(252, 98, 0, 0.2) 0%, rgba(255, 133, 51, 0.1) 100%);
    border: 1px solid rgba(252, 98, 0, 0.3);
    border-radius: 12px;
    font-size: 1.5rem;
}

.bento-icon-sm {
    font-size: 1.5rem;
}

.bento-title {
    font-size: 1.5rem;
    margin: 0;
    font-family: var(--font-heading);
}

.bento-title-sm {
    font-size: 1.2rem;
    margin: 0;
    font-family: var(--font-heading);
}

.bento-title-md {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.bento-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.bento-body {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    max-width: 600px;
}

.bento-body-sm {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bento-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--color-text);
}

.bento-tag-accent {
    padding: 0.3rem 0.6rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--color-accent-light);
}

.bento-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bento-checklist li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bento-checklist li:last-child {
    border-bottom: none;
}

.bento-check {
    color: var(--color-primary);
}

.bento-callout {
    background: rgba(252, 98, 0, 0.1);
    border: 1px solid rgba(252, 98, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.85rem;
}

.bento-callout strong {
    color: var(--color-primary);
}

.bento-callout span {
    color: var(--color-text-muted);
}

.bento-stat {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.bento-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-stat-number-result {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-text);
}

.bento-stat-arrow {
    color: var(--color-text-muted);
}

.bento-stat-caption {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.bento-sensor-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bento-sensor {
    text-align: center;
}

.bento-sensor-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.bento-sensor-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.bento-cta {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.bento-card-vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------- Card Hover Effects (glass cards, feature cards, deployment cards) ---------- */
.glass {
    transition: var(--transition-smooth);
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.deployment-card.glass:hover,
.feature-card.glass:hover {
    border-color: rgba(252, 98, 0, 0.3);
    box-shadow: 0 8px 32px rgba(252, 98, 0, 0.1);
}

/* ---------- Use Case / Benefit Icon ---------- */
.card-emoji-icon {
    font-size: 2.5rem;
}

/* ---------- Hero Actions Row ---------- */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ---------- Padded Glass Panel ---------- */
.glass-padded {
    padding: 2rem;
}

/* ---------- Specs Section (shared input/output/processing) ---------- */
.specs-inner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.specs-inner-grid h3 {
    margin-bottom: 0.75rem;
}

.specs-inner-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--color-text-muted);
}

.specs-inner-grid ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.specs-inner-grid ul li:last-child {
    border-bottom: none;
}

.specs-inner-grid ul li strong {
    color: var(--color-text);
}

.specs-inner-grid p {
    color: var(--color-text-muted);
}

.specs-note {
    margin-top: 0.9rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.specs-note-sm {
    margin-top: 0.4rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.specs-cta-row {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.specs-footer-note {
    margin-top: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ---------- Code Block Copy Button ---------- */
.code-block-wrapper {
    position: relative;
}

.code-copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--color-glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-main);
    z-index: 2;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.2);
}

.code-copy-btn.copied {
    color: #a5d6a7;
    border-color: rgba(165, 214, 167, 0.3);
}

/* ---------- Onboarding Step Connectors ---------- */
.onboarding-grid {
    position: relative;
}

.onboarding-card {
    position: relative;
}

.onboarding-card::after {
    content: '→';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateX(50%) translateY(-50%);
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.6;
    z-index: 2;
}

.onboarding-card:last-child::after {
    display: none;
}

/* ---------- Scroll Reveal Animation ---------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.scroll-reveal-stagger>.scroll-reveal:nth-child(1) {
    transition-delay: 0s;
}

.scroll-reveal-stagger>.scroll-reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.scroll-reveal-stagger>.scroll-reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.scroll-reveal-stagger>.scroll-reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.scroll-reveal-stagger>.scroll-reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.scroll-reveal-stagger>.scroll-reveal:nth-child(6) {
    transition-delay: 0.5s;
}

/* ---------- Stat Counter Animation ---------- */
.stat-animate {
    transition: all 0.8s ease-out;
}

/* ---------- Security Section Icons ---------- */
.specs-card-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.specs-card-icon svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .bento-12 {
        display: flex;
        flex-direction: column;
    }

    .bento-span-4,
    .bento-span-6,
    .bento-span-8 {
        grid-column: span 1;
    }

    .detail-block {
        grid-template-columns: 1fr;
    }

    .detail-block.reverse {
        direction: ltr;
    }

    .page-hero {
        padding: 8rem 0 3rem;
    }

    .onboarding-card::after {
        display: none;
    }

    .algorithm-content {
        flex-direction: column;
        text-align: center;
    }

    .algorithm-text {
        min-width: 100%;
    }

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

    .challenges-grid .challenge-card:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

/* ---------- Code Preview Tabs ---------- */
.code-tabs {
    display: flex;
    gap: 0;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

.code-tab {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--color-glass-border);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.code-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
}

.code-tab.active {
    background: var(--color-bg-elevated);
    color: var(--color-primary);
    border-color: var(--color-glass-border);
}

.code-tab-panel {
    display: none;
}

.code-tab-panel.active {
    display: block;
}

.code-tabs-wrapper .code-block {
    border-radius: 0 16px 16px 16px;
}

/* ---------- Stat Counter Animation ---------- */
.bento-stat-number,
.bento-stat-number-result {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bento-stat.counting .bento-stat-number,
.bento-stat.counting .bento-stat-number-result {
    animation: stat-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes stat-pop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(10px);
    }

    60% {
        opacity: 1;
        transform: scale(1.08) translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ---------- Industry Page Shared Styles ---------- */

/* Bento card header (space.html) */
.bento-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bento-card-header h3 {
    margin: 0;
}

.bento-card-emoji {
    font-size: 2rem;
}

.bento-card-subtitle {
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* Space-tag inline badges (space.html bento cards) */
.space-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.space-tag {
    padding: 0.3rem 0.75rem;
    background: rgba(252, 98, 0, 0.1);
    border: 1px solid rgba(252, 98, 0, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--color-primary-light);
}

/* LEO-PNT info cards (space.html) */
.bento-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bento-info-item {
    padding: 0.75rem 1rem;
    background: rgba(252, 98, 0, 0.1);
    border: 1px solid rgba(252, 98, 0, 0.2);
    border-radius: 8px;
}

.bento-info-item strong {
    color: var(--color-primary-light);
}

.bento-info-item p {
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

.bento-card-body {
    margin-bottom: 1.5rem;
}

/* Feature card with accent top border (automotive.html) */
.feature-card-accent {
    border-top: 3px solid var(--color-primary);
}

/* Step label (automotive.html "STEP 1", "STEP 2" etc.) */
.step-label {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Research / publications inline link */
.research-link {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
}

/* Highlight box centered wrapper (farming.html) */
.highlight-box-center {
    text-align: center;
    margin-top: var(--space-md);
}

.highlight-box-center .highlight-box {
    display: inline-block;
    max-width: 800px;
}

/* Utility: remove padding-top */
.pt-0 {
    padding-top: 0;
}

/* ---------- Workflow Steps (infrastructure / pipeline) ---------- */
.workflow-section {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
    padding: var(--space-lg) 0;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: workflow;
}

.workflow-step {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    counter-increment: workflow;
}

.workflow-step::before {
    content: counter(workflow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary-gradient);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1rem;
}

.workflow-step h4 {
    margin-bottom: 0.5rem;
}

.workflow-step p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.workflow-intro {
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Trajectory Explanation (mapping.html) ---------- */
.trajectory-explanation {
    max-width: 860px;
    margin: 0 auto;
}

.trajectory-explanation p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.trajectory-explanation p:last-child {
    margin-bottom: 0;
}

.trajectory-explanation strong {
    color: var(--color-text);
}

.trajectory-callout {
    padding: 1.5rem 2rem;
    background: rgba(252, 98, 0, 0.08);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.trajectory-callout p {
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ---------- Compatibility List (mapping.html) ---------- */
.compatibility-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}

.compatibility-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
}

.compatibility-item .check {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.compatibility-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.compatibility-item strong {
    color: var(--color-text);
    display: block;
    margin-bottom: 0.25rem;
}