/* Galaxy Design System - Dark Theme */

:root {
    /* Galaxy Colors */
    --black: #000000;
    --dark-bg: #0a0a0a;
    --dark-surface: #17171a;
    --dark-border: #222125;
    --white: #ffffff;
    --gray-text: rgba(255, 255, 255, 0.7);
    --gray-muted: rgba(255, 255, 255, 0.5);

    /* Accent Colors */
    --accent-blue: #7cccff;
    --accent-orange: #ffaf95;
    --accent-green: #00ce84;
    --accent-purple: #beaaff;

    /* Spacing (Galaxy's system) */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
    --spacing-2xl: 160px;

    /* Transitions */
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Geist", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
    overflow-y: auto;
    /* Mobile safe areas for notched phones */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    /* Improve touch scrolling */
    -webkit-overflow-scrolling: touch;
}

/* Re-enable text selection for readable content */
p, h1, h2, h3, h4, li {
    -webkit-user-select: text;
    user-select: text;
}

/* Improve button/link touch targets on mobile */
@media (max-width: 810px) {
    a, button, .btn, .demo-button, .strategy-card {
        -webkit-tap-highlight-color: rgba(124, 204, 255, 0.1);
        tap-highlight-color: rgba(124, 204, 255, 0.1);
    }
}

/* Slide-in animation states */
.slide-section {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header - Fixed Navigation (Galaxy Style) */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    z-index: 9;
    transition: all var(--transition);
}

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

.logo-link {
    text-decoration: none;
    transition: opacity var(--transition);
}

.logo-link:hover {
    opacity: 0.7;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.logo .institutional {
    color: var(--gray-muted);
    font-weight: 400;
    margin-left: var(--spacing-xs);
    font-size: 16px;
}

nav {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

nav a {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
    letter-spacing: -0.01em;
}

nav a:hover {
    color: var(--white);
}

/* Hero Section - Dark Theme */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    background: linear-gradient(180deg, var(--black) 0%, var(--dark-bg) 100%);
    border-bottom: 1px solid var(--dark-border);
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(124, 204, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(190, 170, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 1;
    max-width: 1000px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-text);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Main Content Sections */
main {
    background: var(--black);
}

/* Feature Sections - Columnar Layout (Galaxy Style) */
.feature-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    border-bottom: 1px dashed var(--dark-border);
    box-sizing: border-box;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-height: calc(100vh - 120px);
}

.feature-text {
    max-width: 560px;
}

.feature-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    background: rgba(124, 204, 255, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(124, 204, 255, 0.2);
}

.feature-tag.derivatives {
    background: rgba(255, 175, 149, 0.1);
    color: var(--accent-orange);
    border-color: rgba(255, 175, 149, 0.2);
}

.feature-tag.prime {
    background: rgba(0, 206, 132, 0.1);
    color: var(--accent-green);
    border-color: rgba(0, 206, 132, 0.2);
}

.feature-tag.workflow {
    background: rgba(190, 170, 255, 0.1);
    color: var(--accent-purple);
    border-color: rgba(190, 170, 255, 0.2);
}

.feature-text h2 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    color: var(--white);
}

.feature-text p {
    font-size: 18px;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.feature-list {
    list-style: none;
    margin-bottom: 24px;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray-text);
    font-size: 16px;
    line-height: 1.6;
    border-left: 2px solid var(--dark-border);
    margin-bottom: 12px;
    transition: all var(--transition);
}

.feature-list li:hover {
    border-left-color: var(--accent-blue);
    color: var(--white);
}

.feature-list li strong {
    color: var(--white);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.strategy-level-box {
    background: rgba(124, 204, 255, 0.08);
    border: 1px solid rgba(124, 204, 255, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

.strategy-level-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.strategy-level-box p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.feature-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.feature-item strong {
    display: block;
    color: var(--white);
    margin-bottom: 4px;
}

.feature-item span {
    color: var(--gray-text);
    font-size: 15px;
    line-height: 1.5;
}

/* Feature Visual - Right Side */
.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-demo-box {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.feature-demo-box h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.feature-demo-box p {
    font-size: 13px;
    color: var(--gray-text);
    margin-bottom: 16px;
    line-height: 1.5;
}

.feature-demo-box::-webkit-scrollbar {
    width: 6px;
}

.feature-demo-box::-webkit-scrollbar-track {
    background: var(--black);
    border-radius: 3px;
}

.feature-demo-box::-webkit-scrollbar-thumb {
    background: var(--dark-border);
    border-radius: 3px;
}

.feature-demo-box::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* CTA Buttons - Galaxy Style (rounded) */
.cta-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.btn {
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10000px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.01em;
}

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

.btn-primary:hover {
    background: var(--gray-text);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--dark-border);
}

.btn-secondary:hover {
    border-color: var(--gray-text);
    background: rgba(255, 255, 255, 0.05);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Results Container */
.results-container {
    margin-top: var(--spacing-md);
    padding: 0;
    background: transparent;
    border: none;
}

.loading {
    text-align: center;
    color: var(--gray-text);
    padding: var(--spacing-md);
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    font-size: 13px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.result-card {
    background: var(--black);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 16px;
    transition: all var(--transition);
}

.result-card:hover {
    border-color: rgba(124, 204, 255, 0.3);
    transform: translateY(-2px);
}

.result-card.success {
    border-color: rgba(0, 206, 132, 0.3);
    background: rgba(0, 206, 132, 0.02);
}

.result-card.warning {
    border-color: rgba(255, 175, 149, 0.3);
    background: rgba(255, 175, 149, 0.02);
}

.result-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--dark-border);
}

.result-details p {
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--gray-text);
    line-height: 1.4;
}

.result-details p:last-child {
    margin-bottom: 0;
}

.result-details strong {
    color: var(--white);
    font-weight: 600;
    display: inline-block;
    min-width: 110px;
    font-size: 12px;
}

.result-details p {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.result-details p strong {
    flex-shrink: 0;
}

/* Strategy/Product Section - Dark Theme */
.strategy-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--dark-bg);
    border-bottom: 1px dashed var(--dark-border);
    box-sizing: border-box;
}

.strategy-section h2 {
    font-size: 52px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--gray-text);
    margin-bottom: 32px;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.strategy-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 16px 18px;
    transition: all var(--transition);
}

.strategy-card:hover {
    border-color: rgba(124, 204, 255, 0.3);
    transform: translateY(-4px);
}

.strategy-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.segment {
    margin-bottom: 10px;
}

.segment strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.segment ul {
    list-style: none;
}

.segment li {
    padding: 3px 0 3px var(--spacing-md);
    position: relative;
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.5;
}

.segment li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--gray-muted);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 1px solid var(--dark-border);
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer p {
    margin-bottom: var(--spacing-sm);
    font-size: 14px;
}

.footer-note {
    font-size: 12px;
    color: var(--gray-muted);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Smooth Scroll Sections */
section {
    scroll-margin-top: 80px; /* Offset for fixed header */
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feature-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero h1 {
        font-size: 56px;
    }

    .feature-text h2 {
        font-size: 48px;
    }

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

@media (max-width: 810px) {
    .container {
        padding: 0 20px;
    }

    header {
        height: 60px;
        background: rgba(0, 0, 0, 0.95);
    }

    header .container {
        padding: 0 20px;
    }

    .logo {
        font-size: 18px;
    }

    .institutional {
        display: none;
    }

    nav {
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a {
        font-size: 13px;
        white-space: nowrap;
        padding: 6px 12px;
    }

    /* Hero section - allow scrolling, premium mobile feel */
    .hero {
        min-height: 100vh !important;
        height: auto !important;
        padding: 80px 0 60px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        align-items: flex-start !important;
    }

    .hero .container {
        max-height: none !important;
        overflow: visible !important;
    }

    .hero h1 {
        font-size: 32px !important;
        line-height: 1.15;
        margin-bottom: 16px !important;
        font-weight: 700 !important;
    }

    .hero-subtitle {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
        opacity: 0.9;
    }

    .hero p {
        font-size: 15px !important;
        line-height: 1.5;
    }

    .hero-stats {
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 24px !important;
    }

    .stat {
        width: 100%;
        padding: 16px 20px !important;
        text-align: left;
    }

    .stat-number {
        font-size: 22px !important;
        margin-bottom: 6px !important;
        font-weight: 700 !important;
    }

    .stat-label {
        font-size: 13px !important;
        line-height: 1.4 !important;
        opacity: 0.8;
    }

    /* Spacing adjustments for Product Vision box */
    .hero div[style*="margin-top: 48px"] {
        margin-top: 32px !important;
    }

    .hero div[style*="margin-top: 32px"] {
        margin-top: 24px !important;
    }

    /* Feature sections - scrollable, readable */
    .feature-section {
        min-height: 100vh !important;
        height: auto !important;
        padding: 80px 0 60px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        align-items: flex-start !important;
    }

    .feature-section .container {
        max-height: none !important;
        overflow: visible !important;
        width: 100%;
    }

    .feature-content {
        max-height: none !important;
        gap: 32px !important;
        overflow: visible !important;
        width: 100%;
    }

    .feature-visual {
        margin-top: 24px;
        width: 100%;
        overflow-x: hidden;
    }

    .feature-text h2 {
        font-size: 28px !important;
        line-height: 1.2;
        margin-bottom: 12px !important;
        font-weight: 700 !important;
    }

    .feature-text p {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
        opacity: 0.9;
    }

    .feature-tag {
        font-size: 11px !important;
        padding: 6px 12px !important;
        margin-bottom: 12px !important;
        display: inline-block;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .feature-list {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .feature-list li {
        font-size: 14px !important;
        margin-bottom: 16px !important;
        padding: 10px 0 !important;
        padding-left: 20px !important;
        line-height: 1.5 !important;
    }

    .feature-list li strong {
        font-size: 15px !important;
        margin-bottom: 4px !important;
        display: block;
    }

    .feature-item {
        margin-bottom: 16px !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }

    .feature-item svg {
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .feature-item strong {
        font-size: 14px !important;
        margin-bottom: 4px !important;
        font-weight: 600 !important;
    }

    .feature-item span {
        font-size: 14px !important;
        line-height: 1.5 !important;
        opacity: 0.85;
    }

    .feature-visual {
        margin-top: 24px;
        width: 100%;
        overflow-x: hidden;
    }

    /* Strategy level box on mobile */
    .strategy-level-box {
        padding: 16px 18px;
        margin: 20px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .strategy-level-box h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .strategy-level-box p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Strategy sections - scrollable, readable */
    .strategy-section {
        min-height: 100vh !important;
        height: auto !important;
        padding: 80px 0 60px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        align-items: flex-start !important;
    }

    .strategy-section .container {
        max-height: none !important;
        overflow: visible !important;
    }

    .strategy-section h2 {
        font-size: 28px !important;
        margin-bottom: 12px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
    }

    .strategy-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-top: 24px !important;
    }

    .strategy-card {
        padding: 20px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 12px !important;
    }

    .strategy-card h4 {
        font-size: 17px !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
    }

    .strategy-card p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
        opacity: 0.85;
    }

    .strategy-card ul {
        margin-top: 12px !important;
    }

    .strategy-card li {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
        padding: 6px 0 !important;
    }

    .strategy-card li strong {
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .demo-button,
    .btn,
    .btn-primary {
        padding: 14px 28px !important;
        font-size: 15px !important;
        margin-top: 16px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
    }

    .cta-buttons {
        margin-top: 20px !important;
    }

    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 16px !important;
    }

    .phase-card {
        padding: 20px !important;
    }

    .section-subtitle {
        font-size: 15px !important;
        margin-bottom: 20px !important;
        line-height: 1.5 !important;
        opacity: 0.85;
    }

    /* Results grid - single column on mobile to prevent cutoff */
    .results-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .result-card {
        padding: 16px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 10px !important;
        width: 100%;
    }

    .result-card h4 {
        font-size: 15px !important;
        margin-bottom: 10px !important;
        font-weight: 600 !important;
    }

    .result-details p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 6px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .result-details strong {
        min-width: auto !important;
        flex-shrink: 0;
    }

    /* Feature demo boxes - remove internal scroll on mobile */
    .feature-demo-box {
        padding: 20px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 12px !important;
        width: 100%;
        box-sizing: border-box;
        max-height: none !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
    }

    .feature-demo-box h4 {
        font-size: 18px !important;
        margin-bottom: 16px !important;
        font-weight: 600 !important;
    }

    .feature-demo-box p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
        opacity: 0.85;
    }

    /* Ensure no horizontal overflow */
    .feature-demo-box .results-grid {
        width: 100%;
        overflow-x: hidden;
    }


    /* Product Vision box on mobile - readable */
    div[style*="padding: 28px 40px"] {
        padding: 20px !important;
        margin-top: 24px !important;
        border-radius: 12px !important;
    }

    div[style*="padding: 28px 40px"] h4 {
        font-size: 12px !important;
        margin-bottom: 8px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px;
    }

    div[style*="padding: 28px 40px"] p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    /* Disclaimer text at bottom of hero */
    .hero div[style*="margin-top: 32px"] p {
        font-size: 11px !important;
        line-height: 1.5 !important;
        opacity: 0.6;
    }

    /* Inline grid layouts (measuring impact, etc) */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    div[style*="display: grid"][style*="gap: 28px"] {
        gap: 16px !important;
    }

    /* Measuring impact boxes */
    div[style*="padding: 20px 28px"] {
        padding: 16px !important;
        border-radius: 10px !important;
    }

    /* Inline grid layouts (4 cards) */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Cards in tokenization section */
    div[style*="padding: 24px"] {
        padding: 18px !important;
        border-radius: 10px !important;
    }

    /* Reduce margins on sections with inline styles */
    section[style*="padding: 80px 0"] {
        min-height: 100vh !important;
        height: auto !important;
        padding: 80px 0 60px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Any section headings with inline styles */
    h2[style*="font-size: 44px"] {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
        font-weight: 700 !important;
    }

    h2[style*="margin-bottom: 6px"] {
        margin-bottom: 12px !important;
        font-size: 26px !important;
    }

    /* Paragraphs with inline styles */
    p[style*="font-size: 17px"] {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    p[style*="font-size: 15px"] {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    p[style*="font-size: 13px"] {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    /* Divs with emoji headings */
    div[style*="font-size: 32px"] {
        font-size: 28px !important;
        margin-bottom: 8px !important;
    }

    h4[style*="font-size: 18px"] {
        font-size: 16px !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
    }

    h4[style*="font-size: 16px"] {
        font-size: 15px !important;
        font-weight: 600 !important;
    }

    h4[style*="font-size: 17px"] {
        font-size: 15px !important;
        font-weight: 600 !important;
    }

    /* Top badge/tag elements */
    div[style*="padding: 6px 16px"] {
        padding: 6px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 20px !important;
    }

    span[style*="font-size: 12px"] {
        font-size: 11px !important;
        font-weight: 600 !important;
    }

    /* Footer styling for mobile */
    footer {
        padding: 40px 0 !important;
        font-size: 12px !important;
    }

    footer p {
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin-bottom: 8px !important;
    }

    .footer-note {
        font-size: 11px !important;
        opacity: 0.6;
    }

    /* Ensure all ul/li elements are readable */
    ul {
        padding-left: 20px !important;
    }

    li {
        padding: 6px 0 !important;
    }

    /* Segment elements in strategy cards */
    .segment {
        margin-bottom: 16px !important;
    }

    .segment strong {
        font-size: 14px !important;
        margin-bottom: 6px !important;
        font-weight: 600 !important;
    }

    .segment ul {
        margin-top: 10px !important;
    }

    .segment li {
        font-size: 14px !important;
        line-height: 1.5 !important;
        padding: 6px 0 6px 20px !important;
    }

    .segment p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
        opacity: 0.85;
    }

}

@media (max-width: 390px) {
    .hero h1 {
        font-size: 28px !important;
    }

    .feature-text h2 {
        font-size: 24px !important;
    }

    .stat-number {
        font-size: 28px !important;
    }

    nav a {
        font-size: 11px;
        padding: 6px 10px;
    }

    .container {
        padding: 0 12px;
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
