/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Roboto+Mono:wght@400;500&family=Space+Grotesk:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
    /* Colors - Midnight & Steel Premium Theme */
    --bg-main: #F8FAFC;
    --bg-secondary: #F1F5F9;
    --bg-surface: #FFFFFF;

    /* Premium Accents */
    --accent-primary: #0B1120;
    /* Darker, richer navy */
    --accent-secondary: #334155;
    /* Slate 700 */
    --accent-highlight: #3B82F6;
    /* Brighter, more modern blue */
    --accent-metallic: #94A3B8;
    /* Steel Grey */
    --accent-gold: #D4AF37;
    /* Premium Gold Accent */
    --accent-success: #10B981;
    --accent-warning: #F59E0B;

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-on-dark: #FFFFFF;

    /* Borders */
    --border-light: #E2E8F0;
    --border-strong: #CBD5E1;
    --border-glass: rgba(255, 255, 255, 0.5);

    /* Shadows - Premium/Apple Style */
    --shadow-soft:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -1px rgba(0, 0, 0, 0.02),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    --shadow-strong:
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.02),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(16px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);

    /* Fonts */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    /* Spacing */
    --container-width: 1280px;
    --section-padding: 120px 0;

    /* Gradients */
    --gradient-surface: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-metallic: linear-gradient(135deg, #E2E8F0 0%, #F8FAFC 50%, #E2E8F0 100%);
    --gradient-subtle: linear-gradient(to bottom right, #F8FAFC, #F1F5F9);
}

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

html {
    scroll-behavior: smooth;
    font-size: 20px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    background-image: var(--gradient-subtle);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-align: justify;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-align: left;
}

/* Font consistency: ensure body text elements inherit Inter */
p,
li,
span,
label,
input,
textarea,
select,
button {
    font-family: var(--font-body);
}

/* Ensure inline heading-style elements use the heading font */
.brand-name,
.section-header h2,
.section-header h3,
.hero-title,
.commitment-text h2 {
    font-family: var(--font-heading);
}

/* Monospace elements */
code,
pre,
kbd,
samp {
    font-family: var(--font-mono);
}

/* Elements that should not be justified */
nav,
.text-center,
.cta-button,
.cta-button-nav,
.cta-button-outline,
.footer-bottom,
.footer-nav,
.back-to-top,
.hero-cta,
blockquote,
.leadership-cards p {
    text-align: left;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.text-center,
.text-center h1,
.text-center h2,
.text-center h3,
.text-center h4,
.text-center h5,
.text-center h6 {
    text-align: center;
}

.text-right {
    text-align: right;
}

.gradient-text {
    background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-highlight {
    color: var(--accent-highlight);
    position: relative;
    display: inline-block;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-accent {
    color: var(--accent-theme);
}

.border-top-accent {
    border-top: 4px solid var(--accent-theme);
}

.section-intro-centered {
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    padding: 20px 0;
    transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

nav.scrolled {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(226, 232, 240, 0.8);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav li {
    position: relative;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

nav a:hover,
nav a.active {
    color: var(--accent-highlight);
}

/* Dropdowns */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 12px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    text-transform: none;
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 8px;
    width: 100%;
    color: var(--text-primary);
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--accent-highlight);
}

.cta-button-nav {
    padding: 10px 24px;
    background: var(--text-primary);
    color: var(--bg-main) !important;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cta-button-nav:hover {
    background: var(--accent-highlight);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* --- Components --- */

/* Primary Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: var(--text-on-dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.35);
    color: var(--text-on-dark);
    background: #1E293B;
}

.cta-button:hover::after {
    left: 120%;
}

/* Cards */
.card-base,
.pillar-card,
.step-item,
.platform-card,
.solution-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 48px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
    border-radius: 16px;
}

.pillar-card:hover,
.step-item:hover,
.platform-card:hover,
.solution-card:hover {
    border-color: var(--accent-highlight);
    box-shadow: var(--shadow-strong), var(--shadow-glow);
    transform: translateY(-4px) scale(1.01);
    z-index: 2;
}

/* Founder Image Styling */
.founder-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 48px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent-highlight);
}

.team-card:hover .founder-img {
    transform: scale(1.05);
    border-color: var(--accent-highlight);
}

.team-card h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.team-card .subtitle {
    color: var(--accent-highlight);
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Code Block Styling */
.code-block {
    background: #0f172a;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #e2e8f0;
    overflow-x: auto;
    box-shadow: var(--shadow-strong);
    text-align: left;
}

/* Abstract Visuals */
.abstract-circle {
    position: absolute;
    border: 1px solid var(--accent-theme);
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.abstract-grid {
    position: absolute;
    opacity: 0.1;
    background-image: linear-gradient(var(--accent-theme) 1px, transparent 1px), linear-gradient(90deg, var(--accent-theme) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* --- Sections --- */

/* General: all sections within main fill the viewport for immersive scroll feel */
main > section,
main ~ section:not(footer) {
    min-height: 100vh !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main > section > .container,
main ~ section:not(footer) > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero */
/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background:
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.6rem;
    line-height: 1.08;
    margin-bottom: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 560px;
    font-weight: 400;
    line-height: 1.7;
}

/* Commitment */
/* Commitment */
.commitment-section {
    padding: var(--section-padding);
    border-top: none;
    background: var(--bg-surface);
    position: relative;
}

.commitment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: radial-gradient(ellipse at center, var(--border-light) 0%, transparent 75%);
}

.commitment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.commitment-text h2 {
    font-size: 2.5rem;
    margin-bottom: 28px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.commitment-quote blockquote {
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary);
    font-style: normal;
    padding-left: 32px;
    border-left: 4px solid var(--accent-highlight);
}

/* Pillars */
/* Pillars */
.pillars-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin: 24px 0 12px;
    font-weight: 600;
}

.icon-box {
    color: var(--accent-highlight);
    margin-bottom: 32px;
    background: rgba(59, 130, 246, 0.1);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Platform */
/* Platform */
.platform-section {
    padding: var(--section-padding);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.platform-card {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-surface);
}

.platform-card h3 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.platform-card .subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: var(--accent-highlight);
    margin-bottom: 24px;
    display: block;
    font-weight: 600;
}

/* Solutions - New Clean Implementation */
.solutions-section-new {
    padding: 120px 0;
    background: var(--bg-secondary);
    border-top: none;
    position: relative;
}

.solutions-section-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: radial-gradient(ellipse at center, var(--border-light) 0%, transparent 75%);
}

.solutions-section-new .section-header {
    margin-bottom: 60px;
}

.solutions-section-new .section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.solutions-section-new .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.solutions-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.solution-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.solution-item:hover {
    border-color: var(--accent-highlight);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
    transform: translateY(-3px);
}

.solution-item-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    color: var(--accent-highlight);
    transition: all 0.25s ease;
}

.solution-item:hover .solution-item-icon {
    background: var(--accent-highlight);
    color: white;
}

.solution-item-content {
    flex: 1;
    min-width: 0;
}

.solution-item-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.solution-item-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.solution-item-arrow {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--border-strong);
    transition: all 0.25s ease;
    align-self: center;
}

.solution-item:hover .solution-item-arrow {
    color: var(--accent-highlight);
    transform: translateX(4px);
}

.solution-features {
    margin-top: 16px;
    padding-left: 0;
    list-style: none;
}

.solution-features li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.solution-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-highlight);
    font-weight: 600;
}

@media (max-width: 900px) {
    .solutions-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .solution-item {
        padding: 24px;
    }

    .solution-item-icon {
        width: 48px;
        height: 48px;
    }

    .solution-item-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Solutions - Legacy (kept for compatibility) */
.solutions-section {
    padding: var(--section-padding);
    border-top: none;
    background: var(--bg-main);
    position: relative;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 80px;
}

/* Partnerships */
/* Partnerships */
.partnerships-section {
    padding: 100px 0;
    border-top: none;
    text-align: center;
    background: var(--bg-surface);
    position: relative;
}

.partnerships-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: radial-gradient(ellipse at center, var(--border-light) 0%, transparent 75%);
}

.partners-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    margin-bottom: 48px;
    display: block;
    font-weight: 500;
}

.partnerships-section h2 {
    margin-bottom: 24px;
}

.partner-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    /* Wider capability */
    gap: 32px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-card {
    background: #FFFFFF;
    border: 1px solid var(--border-strong);
    /* Stronger border */
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-soft);
    /* Default shadow */
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent-highlight);
}

.partner-logo-container {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    width: 100%;
}

.partner-logo-img {
    height: 100%;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    /* Increased opacity */
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-family: var(--font-body);
    font-weight: 400;
}

/* Footer */
/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--accent-primary);
    color: var(--text-on-dark);
    border-top: none;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent-primary));
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    margin-bottom: 48px;
    align-items: start;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    color: var(--text-on-dark);
    letter-spacing: -0.02em;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
}

.back-to-top {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-to-top:hover {
    color: white;
}

/* --- Page Banners --- */
.page-banner {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: none;
    overflow: hidden;
    padding-top: 80px;
    background: var(--bg-surface);
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: radial-gradient(ellipse at center, var(--border-light) 0%, transparent 75%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-banner h1 {
    font-size: 3.6rem;
    margin-bottom: 28px;
    line-height: 1.05;
}

.page-banner p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.page-banner .container {
    position: relative;
    width: 100%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
}

/* Product Themes */


/* Weave */
.theme-weave {
    --accent-theme: #06B6D4;
}





/* ===========================================
   BENTO GRID SYSTEM
   =========================================== */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 20px;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    border-color: var(--accent-highlight);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--accent-highlight), inset 0 1px 0 rgba(59, 130, 246, 0.1);
    transform: translateY(-4px) scale(1.005);
}

/* Bento Card Sizes */
.bento-card-lg {
    grid-column: span 8;
    grid-row: span 2;
    padding: 48px;
}

.bento-card-md {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-card-sm {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-card-wide {
    grid-column: span 6;
    grid-row: span 1;
}

.bento-card-tall {
    grid-column: span 4;
    grid-row: span 3;
}

/* Bento Card Variants */
.bento-card-accent {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.bento-card-accent:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%);
}

.bento-card-dark {
    background: var(--accent-primary);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark);
}

.bento-card-dark h3,
.bento-card-dark h4 {
    color: var(--text-on-dark);
}

.bento-card-dark p {
    color: rgba(255, 255, 255, 0.7);
}

/* Bento Card Content */
.bento-card .bento-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-highlight);
    transition: all 0.3s ease;
}

.bento-card:hover .bento-icon {
    background: var(--accent-highlight);
    color: white;
    transform: scale(1.05);
}

.bento-card .bento-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 5rem;
    font-weight: 700;
    color: var(--border-light);
    line-height: 1;
    opacity: 0.5;
}

.bento-card .bento-visual {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 60%;
    pointer-events: none;
    opacity: 0.1;
}

/* ===========================================
   PARTICLE BACKGROUND
   =========================================== */

.particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-highlight);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 20s infinite ease-in-out;
}

.particle:nth-child(2n) {
    animation-delay: -5s;
    animation-duration: 25s;
}

.particle:nth-child(3n) {
    animation-delay: -10s;
    animation-duration: 30s;
}

.particle-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-highlight), transparent);
    opacity: 0.2;
    animation: particle-line-move 15s infinite linear;
}

/* ===========================================
   GLASS CARD EFFECTS
   =========================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-card-dark {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===========================================
   DEPTH CARD (3D EFFECT)
   =========================================== */

.depth-card {
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.depth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    transform: translateZ(-20px) scale(0.95);
    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
}

.depth-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 40px rgba(59, 130, 246, 0.1);
}

/* ===========================================
   GLOW EFFECTS
   =========================================== */

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-highlight), #10B981);
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.4s ease;
}

.glow-effect:hover::after {
    opacity: 0.4;
}

.glow-text {
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
}

.glow-border {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.05);
}

/* ===========================================
   FLOAT ANIMATIONS
   =========================================== */

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-slow {
    animation: float 10s ease-in-out infinite;
}

.float-animation-fast {
    animation: float 4s ease-in-out infinite;
}

/* ===========================================
   ANIMATED HERO COMPONENTS
   =========================================== */

.hero-animated {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-visual-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
}

.hero-floating-element {
    position: absolute;
    animation: float 8s ease-in-out infinite;
}

.hero-floating-element:nth-child(2) {
    animation-delay: -2s;
}

.hero-floating-element:nth-child(3) {
    animation-delay: -4s;
}

/* Orbit animation for hero elements */
.orbit-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.orbit-ring {
    position: absolute;
    border: 1px dashed var(--border-light);
    border-radius: 50%;
    animation: orbit-rotate 30s linear infinite;
}

.orbit-ring:nth-child(1) {
    width: 100%;
    height: 100%;
}

.orbit-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation-duration: 25s;
    animation-direction: reverse;
}

.orbit-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    animation-duration: 20s;
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-highlight);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-highlight);
}

/* ===========================================
   CODE TYPING ANIMATION
   =========================================== */

.typing-container {
    position: relative;
    font-family: var(--font-mono);
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent-highlight);
    margin-left: 2px;
    animation: cursor-blink 1s step-end infinite;
}

.typing-line {
    opacity: 0;
    transform: translateY(10px);
    animation: typing-reveal 0.5s forwards;
}

.typing-line:nth-child(1) {
    animation-delay: 0.5s;
}

.typing-line:nth-child(2) {
    animation-delay: 1s;
}

.typing-line:nth-child(3) {
    animation-delay: 1.5s;
}

.typing-line:nth-child(4) {
    animation-delay: 2s;
}

.typing-line:nth-child(5) {
    animation-delay: 2.5s;
}

/* ===========================================
   PIPELINE VISUALIZATION
   =========================================== */

.pipeline-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 40px 0;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.pipeline-node {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    border: 3px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    flex-shrink: 0;
}

/* Dashed orbit ring around pipeline nodes */
.pipeline-node-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed currentColor;
    opacity: 0.3;
    animation: orbit-rotate 10s linear infinite;
    pointer-events: none;
}

.pipeline-node:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.pipeline-node.active {
    background: var(--accent-theme);
    color: white;
}

.pipeline-label {
    margin-top: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.pipeline-connector {
    flex: 1;
    height: 4px;
    background: var(--border-light);
    position: relative;
    margin: 0 -20px;
    z-index: 1;
}

.pipeline-connector::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-theme), transparent);
    animation: pipeline-flow 2s ease-in-out infinite;
}

.pipeline-particles {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 20px;
    transform: translateY(-50%);
    overflow: hidden;
}

.pipeline-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-theme);
    border-radius: 50%;
    animation: pipeline-particle-move 3s linear infinite;
    opacity: 0;
}

.pipeline-particle:nth-child(1) {
    animation-delay: 0s;
}

.pipeline-particle:nth-child(2) {
    animation-delay: 0.5s;
}

.pipeline-particle:nth-child(3) {
    animation-delay: 1s;
}

.pipeline-particle:nth-child(4) {
    animation-delay: 1.5s;
}

.pipeline-particle:nth-child(5) {
    animation-delay: 2s;
}

/* ===========================================
   WEAVE PATTERN (SVG Animation)
   =========================================== */

.weave-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.weave-line {
    stroke: var(--accent-theme);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: weave-draw 3s ease forwards;
}

.weave-line:nth-child(2) {
    animation-delay: 0.3s;
}

.weave-line:nth-child(3) {
    animation-delay: 0.6s;
}

.weave-line:nth-child(4) {
    animation-delay: 0.9s;
}

/* ===========================================
   ANIMATION KEYFRAMES
   =========================================== */

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes particle-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translate(100px, -50px) scale(1.2);
        opacity: 0.5;
    }

    50% {
        transform: translate(50px, -100px) scale(0.8);
        opacity: 0.2;
    }

    75% {
        transform: translate(-50px, -50px) scale(1.1);
        opacity: 0.4;
    }
}

@keyframes particle-line-move {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateX(200%);
        opacity: 0;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    }
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes typing-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orbit-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pipeline-flow {
    0% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0;
        left: 100%;
    }
}

@keyframes pipeline-particle-move {
    0% {
        left: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes weave-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

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

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===========================================
   THEME-SPECIFIC OVERRIDES
   =========================================== */

.theme-weave .bento-card-accent {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0.02) 100%);
    border-color: rgba(6, 182, 212, 0.2);
}

.theme-weave .glow-effect::after {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
}

.theme-weave .pipeline-node {
    border-color: #06B6D4;
}



/* ===========================================
   FIX: Heading centering in centered containers
   Base rule h1-h6 { text-align: left } overrides
   inherited centering, so we fix it per-context.
   =========================================== */

/* Generic: headings inside inline text-align:center parents */
[style*="text-align: center"] h1,
[style*="text-align: center"] h2,
[style*="text-align: center"] h3,
[style*="text-align: center"] h4,
[style*="text-align: center"] h5,
[style*="text-align: center"] h6,
[style*="text-align:center"] h1,
[style*="text-align:center"] h2,
[style*="text-align:center"] h3,
[style*="text-align:center"] h4,
[style*="text-align:center"] h5,
[style*="text-align:center"] h6 {
    text-align: center;
}

/* Interface card: center headings and descriptions */
.interface-card h3,
.interface-card h4,
.interface-card > div > div > h4,
.interface-card > div > div > p {
    text-align: center;
}

/* Depth cards: always centered layout */
.depth-card h3,
.depth-card h4 {
    text-align: center;
}

/* Card-base in commitment section: center content */
.commitment-quote .card-base {
    text-align: center;
}

.commitment-quote .card-base h3 {
    text-align: center;
}

.commitment-quote .card-base .icon-box {
    margin-left: auto;
    margin-right: auto;
}

/* ===========================================
   WEAVE PIPELINE (Define/Orchestrate/Execute)
   =========================================== */

.weave-pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
    gap: 0;
}

.weave-pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 150px;
    position: relative;
    z-index: 2;
}

.weave-pipeline-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 3px solid #06B6D4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.2);
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.weave-pipeline-circle:hover {
    box-shadow: 0 8px 40px rgba(6, 182, 212, 0.4);
    transform: scale(1.08);
}

.weave-pipeline-circle--active {
    background: #06B6D4;
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.4);
}

.weave-pipeline-circle--active:hover {
    box-shadow: 0 12px 48px rgba(6, 182, 212, 0.6);
}

.weave-pipeline-orbit {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px dashed rgba(6, 182, 212, 0.3);
    animation: orbit-rotate 15s linear infinite;
    pointer-events: none;
}

.weave-pipeline-circle--active .weave-pipeline-orbit {
    border-color: rgba(6, 182, 212, 0.4);
}

.weave-pipeline-label {
    margin-top: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-align: center;
}

.weave-pipeline-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    max-width: 150px;
    margin-top: 8px;
}

/* --- Connector line between stages --- */
.weave-pipeline-connector {
    flex: 1;
    height: 4px;
    position: relative;
    z-index: 1;
    margin-top: 38px; /* Align with center of 80px circle */
    min-width: 60px;
    overflow: visible;
}

.weave-pipeline-connector .connector-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, #06B6D4, #22D3EE, #06B6D4);
    background-size: 200% 100%;
    animation: connector-shimmer 3s ease-in-out infinite;
    border-radius: 2px;
}

.weave-pipeline-connector .connector-glow {
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 16px;
    background: linear-gradient(90deg, transparent 0%, rgba(6, 182, 212, 0.15) 30%, rgba(34, 211, 238, 0.25) 50%, rgba(6, 182, 212, 0.15) 70%, transparent 100%);
    background-size: 200% 100%;
    animation: connector-shimmer 3s ease-in-out infinite;
    filter: blur(4px);
    border-radius: 8px;
    pointer-events: none;
}

.weave-pipeline-connector .connector-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #22D3EE 0%, #06B6D4 70%, transparent 100%);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.8), 0 0 4px rgba(34, 211, 238, 0.6);
    animation: connector-flow 2.5s linear infinite;
}

.weave-pipeline-connector .connector-particle:nth-child(3) {
    animation-delay: 0.85s;
    width: 8px;
    height: 8px;
}

.weave-pipeline-connector .connector-particle:nth-child(4) {
    animation-delay: 1.7s;
    width: 7px;
    height: 7px;
}

.weave-pipeline-connector .connector-particle:nth-child(5) {
    animation-delay: 0.4s;
    width: 6px;
    height: 6px;
    opacity: 0.7;
}

@keyframes connector-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes connector-flow {
    0% { left: -5%; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* --- Pipeline responsive: vertical on mobile --- */
@media (max-width: 900px) {
    .weave-pipeline {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .weave-pipeline-stage {
        min-width: unset;
    }

    .weave-pipeline-connector {
        width: 4px;
        height: 50px;
        flex: none;
        margin-top: 0;
        min-width: unset;
    }

    .weave-pipeline-connector .connector-line {
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, #06B6D4, #22D3EE, #06B6D4);
        background-size: 100% 200%;
        animation: connector-shimmer-v 3s ease-in-out infinite;
    }

    .weave-pipeline-connector .connector-glow {
        top: 0;
        left: -6px;
        right: auto;
        width: 16px;
        height: 100%;
        background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.2), transparent);
        background-size: 100% 200%;
        animation: connector-shimmer-v 3s ease-in-out infinite;
    }

    .weave-pipeline-connector .connector-particle {
        top: auto;
        left: 50% !important;
        transform: translateX(-50%);
        animation: connector-flow-v 2.5s linear infinite;
    }
}

@keyframes connector-shimmer-v {
    0%, 100% { background-position: 50% 0%; }
    50% { background-position: 50% 100%; }
}

@keyframes connector-flow-v {
    0% { top: -5%; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ===========================================
   FIX: Interface section mobile layout
   - Prevent clipping of tall stacked content
   - Stack 2-column grids to single column
   - Disable float animation on mobile
   =========================================== */

@media (max-width: 900px) {
    /* Remove height constraints so stacked content can expand */
    #interface {
        min-height: auto !important;
        height: auto !important;
        padding-top: 80px !important;
        padding-bottom: 80px !important;
        overflow: hidden;
    }

    #interface > .container {
        min-height: auto !important;
        height: auto !important;
    }

    /* Disable float animation on mobile */
    #interface .interface-card {
        animation: none !important;
    }

    /* Stack 2-column template grid to 1 column */
    #interface div[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Constrain all inner containers to viewport */
    #interface div[style*="max-width: 1000px"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Card: keep overflow hidden (for glow), reduce padding, fit within parent */
    #interface .interface-card {
        padding: 24px !important;
        border-radius: 14px !important;
        margin-bottom: 32px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        width: auto !important;
    }

    /* Ensure all content inside the card stays within bounds */
    #interface .interface-card * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Force text to wrap within card */
    #interface .interface-card p,
    #interface .interface-card h3,
    #interface .interface-card h4,
    #interface .interface-card div {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    /* Template cards: reduce padding for mobile */
    #interface .template-card {
        padding: 14px !important;
        gap: 12px !important;
    }

    /* Section header spacing */
    #interface .section-header {
        margin-bottom: 40px !important;
    }

    /* Wizard step cards - stack to 1 column */
    #interface div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* YAML editor demo - constrain width */
    #interface div[style*="border-radius: 16px"][style*="overflow: hidden"][style*="background: #0f172a"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    #interface .interface-card {
        padding: 16px !important;
    }

    #interface div[style*="padding: 32px"] {
        padding: 16px !important;
    }

    #interface .template-card {
        padding: 12px !important;
    }

    /* Further reduce YAML demo font for small phones */
    #interface div[style*="font-family"][style*="font-size: 0.8rem"] {
        font-size: 0.65rem !important;
    }
}

/* ===========================================
   BENTO GRID RESPONSIVE
   =========================================== */

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(8, 1fr);
    }

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

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

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

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

@media (max-width: 900px) {
    /* Stack bento grid to single column on tablets */
    .bento-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
        gap: 16px !important;
    }

    .bento-card-lg,
    .bento-card-md,
    .bento-card-sm,
    .bento-card-wide,
    .bento-card-tall {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* Large bento card: stack flex children vertically */
    .bento-card-lg {
        flex-direction: column !important;
        min-height: auto !important;
        gap: 24px !important;
        padding: 24px !important;
    }

    /* Override rigid flex-basis on visual element inside large card */
    .bento-card-lg > div[style*="flex: 0 0 300px"],
    .bento-card-lg > div[style*="flex: 0 0 280px"],
    .bento-card-lg > div[style*="flex:0 0 300px"],
    .bento-card-lg > div[style*="flex:0 0 280px"] {
        flex: 1 1 auto !important;
        max-width: 100% !important;
    }

    /* Inner visual box sizing */
    .bento-card-lg div[style*="width: 200px"][style*="height: 200px"] {
        width: 140px !important;
        height: 140px !important;
        margin: 0 auto;
    }

    /* Inline heading sizes inside bento */
    .bento-card h3[style*="font-size: 2rem"] {
        font-size: 1.4rem !important;
    }

    .bento-card h3[style*="font-size: 1.6rem"] {
        font-size: 1.25rem !important;
    }

    .bento-card p[style*="font-size: 1.15rem"] {
        font-size: 1rem !important;
    }

    /* Bento card internal grids */
    .bento-card-lg[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

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

    .bento-card-lg,
    .bento-card-md,
    .bento-card-sm,
    .bento-card-wide,
    .bento-card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-card {
        padding: 24px;
    }

    .bento-card .bento-number {
        font-size: 3rem;
    }

    .pipeline-container {
        flex-direction: column;
        gap: 40px;
    }

    .pipeline-connector {
        width: 4px;
        height: 60px;
        margin: -20px 0;
    }

    .orbit-container {
        width: 280px;
        height: 280px;
    }
}

/* ===========================================
   MOBILE HAMBURGER MENU
   =========================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.9rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
    }

    .hero-visual-svg {
        max-width: 300px;
    }

    /* Stack two-column grids */
    section>.container>div[style*="grid-template-columns: 1fr 1fr"],
    section>.container>div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Reset order on stacked grids */
    section>.container>div>div[style*="order: 2"],
    section>.container>div>div[style*="order:2"] {
        order: 0 !important;
    }

    section>.container>div>div[style*="order: 1"],
    section>.container>div>div[style*="order:1"] {
        order: 0 !important;
    }

    /* Platform grid */
    .platform-grid {
        grid-template-columns: 1fr;
    }

    /* Frameworks section grid */
    #platform-overview .container>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Partner logos grid */
    .partner-logos-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* Tablets and large phones */
@media (max-width: 900px) {

    /* Scale down base font for mobile */
    html {
        font-size: 16px;
    }

    /* Show mobile menu toggle, hide desktop menu */
    .mobile-menu-toggle {
        display: flex;
    }

    nav .container {
        position: relative;
    }

    /* --- Fullscreen nav when menu is open --- */
    nav.menu-open {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #FFFFFF;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 1000;
        border-bottom: none;
        padding: 20px 0 0;
    }

    nav.menu-open .container {
        flex-direction: column;
        align-items: center;
        height: 100%;
    }

    /* Keep logo and toggle in a row at the top */
    nav.menu-open .container > .logo,
    nav.menu-open .container > .mobile-menu-toggle {
        position: absolute;
        top: 20px;
    }

    nav.menu-open .container > .logo {
        left: 20px;
    }

    nav.menu-open .container > .mobile-menu-toggle {
        right: 20px;
    }

    /* Hide menu by default, show when open */
    nav ul.nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        flex: 1;
        padding: 0 24px;
    }

    nav ul.nav-menu.is-open {
        display: flex;
    }

    nav ul.nav-menu li {
        width: 100%;
        max-width: 280px;
        text-align: center;
        border-bottom: 1px solid var(--border-light);
    }

    nav ul.nav-menu li:last-child {
        border-bottom: none;
        margin-top: 12px;
    }

    nav ul.nav-menu a {
        display: block;
        padding: 16px;
        font-size: 1rem;
    }

    nav ul.nav-menu .cta-button-nav {
        display: inline-block;
        margin-top: 8px;
    }

    /* About page hero: stack columns */
    .page-banner .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Hide about page orbit visual on tablet/mobile */
    div[style*="min-height: 450px"][style*="justify-content: center"] {
        display: none !important;
    }

    /* Hide weave hero orbit visual on tablet/mobile */
    div[style*="height: 500px"][style*="justify-content: center"] {
        display: none !important;
    }

    /* Center text on hero sections when visual is hidden */
    .page-banner-content {
        text-align: center !important;
    }

    .page-banner-content h1,
    .page-banner-content h2,
    .page-banner-content h3,
    .page-banner-content p,
    .page-banner-content span {
        text-align: center !important;
    }

    .page-banner-content div[style*="display: flex"][style*="gap: 16px"] {
        justify-content: center !important;
    }

    .page-banner-content div[style*="display: inline-flex"] {
        display: flex !important;
        justify-content: center !important;
    }

    .page-banner-content p {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Inline section grids to single column */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Homepage hero grid */
    .hero-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Center hero content when grid is 1-column */
    .hero-content {
        text-align: center !important;
    }

    .hero-content h1,
    .hero-content p {
        text-align: center !important;
    }

    .hero-content > div:first-child {
        display: flex !important;
        justify-content: center !important;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
    }

    /* 3-column grids to single column */
    div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* 2-column stat grids inside cards */
    div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 12px"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Mobile dropdown handling */
    nav .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        background: none;
        border-radius: 0;
        margin: 0;
        transition: all 0.3s ease;
        box-shadow: none;
        border: none;
        min-width: 0;
        text-align: center;
    }

    nav .dropdown-menu li {
        border-bottom: none;
    }

    nav .dropdown-menu a {
        padding: 12px 16px;
        text-align: center;
        color: var(--accent-highlight);
        font-size: 0.95rem;
    }

    nav .dropdown.is-open .dropdown-menu {
        visibility: visible;
        max-height: 200px;
        padding: 0;
    }

    nav .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: hidden;
        max-height: 0;
    }

    nav .dropdown.is-open:hover .dropdown-menu {
        visibility: visible;
        max-height: 200px;
    }

    nav .dropdown-toggle .dropdown-arrow {
        transition: transform 0.3s ease;
    }

    nav .dropdown.is-open .dropdown-toggle .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Solutions grid */
    .solutions-cards {
        grid-template-columns: 1fr;
    }

    /* 3-column grids to single column */
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns:repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Pipeline horizontal layout - vertical on tablet (legacy #pipeline support) */
    #pipeline>.container>div[style*="display: flex"][style*="align-items: center"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    #pipeline>.container>div>div[style*="flex: 1"][style*="height: 4px"] {
        width: 4px !important;
        height: 50px !important;
        flex: none !important;
        margin: 0 !important;
    }

    #pipeline>.container>div>div[style*="flex-direction: column"] {
        margin-bottom: 0 !important;
    }

    /* Weave page hero grid */
    div[style*="min-height: 70vh"] {
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }

    /* Weave hero h1 override */
    h1[style*="font-size: 4rem"] {
        font-size: 2.5rem !important;
    }

    /* About hero h1 override */
    h1[style*="font-size: 3.15rem"] {
        font-size: 2rem !important;
    }

    /* About page banner min-height - tablets keep full viewport */
    .page-banner[style*="min-height: 85vh"],
    div[style*="min-height: 85vh"] {
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }

    /* Section padding reduction */
    section[style*="padding: 120px"] {
        padding: 80px 0 !important;
    }

    /* Section header margins */
    div[style*="margin-bottom: 80px"] {
        margin-bottom: 48px !important;
    }

    div[style*="margin-bottom: 120px"] {
        margin-bottom: 60px !important;
    }

    /* Gap reductions */
    div[style*="gap: 80px"] {
        gap: 40px !important;
    }

    /* Large inline paragraph font sizes */
    p[style*="font-size: 1.25rem"] {
        font-size: 1.05rem !important;
    }

    p[style*="font-size: 1.15rem"] {
        font-size: 1rem !important;
    }

    p[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
    }

    /* Inline heading size overrides */
    h3[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }

    h3[style*="font-size: 2.8rem"] {
        font-size: 2rem !important;
    }

    h2[style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }

    h2[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }

    /* Feature number overlays */
    div[style*="font-size: 8rem"] {
        font-size: 5rem !important;
    }

    /* Sections with heavy padding */
    section[style*="padding: 140px"] {
        padding: 80px 0 !important;
    }

    /* Weave interactive demo card padding */
    div[style*="padding: 50px"] {
        padding: 32px !important;
    }

    /* Stat flex container on Weave hero */
    div[style*="gap: 40px"][style*="margin-top: 50px"] {
        gap: 24px !important;
        flex-wrap: wrap !important;
        margin-top: 30px !important;
    }

    /* Weave code demo */
    div[style*="padding: 24px"][style*="font-family"] {
        padding: 16px !important;
        font-size: 0.7rem !important;
    }

    /* Scroll-to-explore on weave */
    div[style*="bottom: 40px"][style*="transform: translateX"] {
        display: none !important;
    }

    /* Pipeline horizontal steps on weave */
    div[style*="display: flex"][style*="justify-content: center"][style*="gap: 0"][style*="max-width: 900px"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    html {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    /* Typography scaling */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.15rem !important;
    }

    /* ===== MOBILE FULL-SCREEN SECTIONS ===== */
    /* Every section fills the viewport on mobile */
    main > section,
    main ~ section:not(footer) {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    main > section > .container,
    main ~ section:not(footer) > .container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .page-banner,
    .page-banner[style] {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    /* ===== MOBILE CENTERING ===== */
    /* Center all text on mobile for hero, banner, and commitment sections */
    .hero-content h1,
    .hero-content h2,
    .hero-content h3,
    .hero-content p,
    .page-banner-content h1,
    .page-banner-content h2,
    .page-banner-content h3,
    .page-banner-content p,
    .page-banner-content span,
    .commitment-text h2,
    .commitment-text p,
    .commitment-quote blockquote {
        text-align: center !important;
    }

    /* Center section headers on mobile */
    .section-header h2,
    .section-header p {
        text-align: center !important;
    }

    /* Center inline badges/labels */
    .hero-content > div:first-child {
        display: flex !important;
        justify-content: center !important;
    }

    .page-banner-content > div:first-child {
        display: flex !important;
        justify-content: center !important;
    }

    .page-banner-content > span,
    .page-banner-content > span[style] {
        text-align: center !important;
    }

    /* Center CTA buttons */
    .page-banner-content div[style*="display: flex"][style*="gap: 16px"] {
        justify-content: center !important;
    }

    /* Center commitment section content on mobile */
    .commitment-section .container,
    .commitment-section .commitment-grid {
        text-align: center;
    }

    .commitment-section .commitment-text p {
        text-align: center !important;
    }

    .commitment-section .commitment-quote {
        text-align: center;
    }

    /* Hero section */
    .hero-section {
        padding-top: 90px;
        padding-bottom: 50px;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

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

    .hero-content > div:first-child {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Commitment section */
    .commitment-section {
        padding: 60px 0;
    }

    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .commitment-text {
        min-width: 0;
        overflow: hidden;
    }

    .commitment-text h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .commitment-quote blockquote {
        font-size: 1.1rem;
        padding-left: 16px;
    }

    /* Pillars/Foundation section */
    #pillars {
        padding: 60px 0 !important;
    }

    #pillars .section-header {
        margin-bottom: 40px !important;
    }

    #pillars .section-header h2 {
        font-size: 1.5rem !important;
    }

    #pillars>.container>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 40px !important;
    }

    #pillars>.container>div[style*="grid-template-columns"]>div[style*="order"] {
        order: 0 !important;
    }

    /* Feature section number overlays */
    div[style*="font-size: 8rem"] {
        font-size: 3rem !important;
        top: 10px !important;
        right: 10px !important;
    }

    /* Inline feature heading sizes */
    h3[style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
    }

    h3[style*="font-size: 2.8rem"] {
        font-size: 1.5rem !important;
    }

    h2[style*="font-size: 3rem"] {
        font-size: 1.5rem !important;
    }

    h2[style*="font-size: 2.5rem"] {
        font-size: 1.4rem !important;
    }

    /* Frameworks section */
    #platform-overview {
        padding: 60px 0 !important;
    }

    #platform-overview .section-header {
        margin-bottom: 40px !important;
    }

    #platform-overview>.container>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Platform cards */
    .platform-card {
        min-height: auto;
        padding: 24px;
    }

    .platform-card h3 {
        font-size: 1.5rem !important;
    }

    /* Solutions section */
    .solutions-section-new {
        padding: 60px 0;
    }

    .solution-item {
        padding: 20px;
    }

    .solution-item-icon {
        width: 44px;
        height: 44px;
    }

    .solution-item-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Partners section */
    .partnerships-section {
        padding: 50px 0;
    }

    .partner-logos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .partner-card {
        padding: 24px 20px;
    }

    .partner-description {
        font-size: 0.95rem;
    }

    /* Footer */
    footer {
        padding: 50px 0 24px;
    }

    footer::before {
        top: -30px;
        height: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        margin-bottom: 24px;
    }

    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-links {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    /* Page banners - fill viewport on mobile (reinforce over inline styles) */
    .page-banner,
    .page-banner[style] {
        height: auto;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .page-banner h1 {
        font-size: 1.6rem;
    }

    .page-banner h1[style*="font-size"] {
        font-size: 1.6rem !important;
    }

    .page-banner p {
        font-size: 0.9rem;
    }

    .page-banner-content {
        max-width: 100% !important;
    }

    /* CTA buttons */
    .cta-button {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .cta-button-outline {
        padding: 12px 28px !important;
        font-size: 0.9rem !important;
    }

    /* Bento grid mobile - tighter gaps */
    .bento-grid {
        gap: 14px;
    }

    .bento-card {
        padding: 20px;
    }

    .bento-card-lg {
        padding: 24px;
    }

    .bento-card-lg[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .bento-card-lg > div[style*="flex: 0 0 280px"],
    .bento-card-lg > div[style*="flex: 0 0 300px"] {
        flex: 1 1 auto !important;
    }

    .bento-card .bento-number {
        font-size: 2.5rem;
    }

    /* Animated shield visual in bento - smaller */
    .bento-card div[style*="width: 200px"][style*="height: 200px"] {
        width: 140px !important;
        height: 140px !important;
    }

    /* Pipeline visualization */
    .pipeline-container {
        flex-direction: column;
        gap: 30px;
    }

    .pipeline-connector {
        width: 4px;
        height: 40px;
        margin: -15px auto;
    }

    /* Team grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card {
        padding: 24px 20px;
    }

    .founder-img {
        width: 100px;
        height: 100px;
    }

    /* Code blocks */
    .code-block {
        padding: 1rem;
        font-size: 0.75rem;
    }

    /* Cards general */
    .card-base,
    .pillar-card,
    .step-item,
    .platform-card,
    .solution-card {
        padding: 24px;
    }

    /* Glass cards */
    .glass-card {
        padding: 16px;
    }

    /* Depth cards */
    .depth-card {
        padding: 20px;
    }

    /* Section headers - tighten spacing */
    .section-header {
        margin-bottom: 40px !important;
    }

    /* Leadership cards */
    .leadership-cards {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Inline font sizes that are too large */
    p[style*="font-size: 1.25rem"] {
        font-size: 1rem !important;
    }

    p[style*="font-size: 1.15rem"] {
        font-size: 0.95rem !important;
    }

    p[style*="font-size: 1.2rem"] {
        font-size: 0.95rem !important;
    }

    span[style*="font-size: 1.8rem"] {
        font-size: 1.3rem !important;
    }

    span[style*="font-size: 1.4rem"] {
        font-size: 1.1rem !important;
    }

    /* Weave hero h1 - even smaller on phone */
    h1[style*="font-size: 4rem"] {
        font-size: 2rem !important;
    }

    /* About hero h1 */
    h1[style*="font-size: 3.15rem"] {
        font-size: 1.6rem !important;
    }

    /* Section padding overrides */
    section[style*="padding: 120px"] {
        padding: 60px 0 !important;
    }

    section[style*="padding: 140px"] {
        padding: 60px 0 !important;
    }

    section[style*="padding: 100px"] {
        padding: 50px 0 !important;
    }

    /* Gap overrides */
    div[style*="gap: 80px"] {
        gap: 30px !important;
    }

    div[style*="gap: 60px"] {
        gap: 24px !important;
    }

    div[style*="gap: 48px"] {
        gap: 20px !important;
    }

    /* Margin-bottom overrides */
    div[style*="margin-bottom: 120px"] {
        margin-bottom: 40px !important;
    }

    div[style*="margin-bottom: 80px"] {
        margin-bottom: 32px !important;
    }

    div[style*="margin-top: 120px"] {
        margin-top: 40px !important;
    }

    /* Feature card padding */
    div[style*="padding: 48px"] {
        padding: 24px !important;
    }

    div[style*="padding: 36px"] {
        padding: 20px !important;
    }

    div[style*="padding: 50px"] {
        padding: 24px !important;
    }

    /* Hero/banner sections on mobile - fill viewport */
    div[style*="min-height: 90vh"],
    div[style*="min-height: 85vh"] {
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }

    /* Weave inner content min-height */
    div[style*="min-height: 70vh"] {
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }

    /* Weave hero padding-top */
    section[style*="min-height: 90vh"] {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }

    /* About page banner override */
    .page-banner[style*="min-height: 85vh"] {
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }

    /* Weave scroll-to-explore */
    div[style*="bottom: 40px"][style*="transform: translateX"] {
        display: none !important;
    }

    /* Weave code editor demo */
    div[style*="padding: 24px"][style*="font-family: 'Roboto Mono'"] {
        padding: 12px !important;
        font-size: 0.65rem !important;
        line-height: 1.6 !important;
    }

    /* Weave stat numbers */
    div[style*="gap: 40px"][style*="margin-top: 50px"] {
        gap: 16px !important;
        flex-wrap: wrap !important;
        margin-top: 24px !important;
        padding-top: 20px !important;
    }

    /* Template cards wrapping */
    .template-card {
        padding: 14px !important;
    }

    /* CTA section inner */
    .cta-section {
        padding: 60px 0 !important;
    }

    .cta-section h2 {
        font-size: 1.5rem !important;
    }

    .cta-section p {
        font-size: 0.9rem !important;
    }

    /* Inline text-align center for sections */
    .text-center h2 {
        text-align: center !important;
    }

    /* Weave pipeline steps - force vertical on phone */
    div[style*="display: flex"][style*="justify-content: center"][style*="gap: 0"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    /* Pipeline connectors handled by .weave-pipeline responsive rules */

    /* Pipeline stages - adjust spacing */
    div[style*="width: 80px"][style*="height: 80px"][style*="border-radius: 50%"] {
        width: 64px !important;
        height: 64px !important;
    }

    div[style*="width: 80px"][style*="height: 80px"][style*="border-radius: 50%"] svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Weave hero SVG pattern background on mobile */
    .weave-line {
        opacity: 0.3;
    }

    /* Stat display sections */
    div[style*="font-size: 2.5rem"] {
        font-size: 1.6rem !important;
    }

    div[style*="font-size: 2rem"] {
        font-size: 1.4rem !important;
    }

    /* Hide forced <br> in headings on mobile */
    h1 br,
    h2 br {
        display: none;
    }

    /* Ensure page doesn't overflow horizontally */
    html,
    body {
        overflow-x: hidden;
    }

    /* Ensure all images scale down */
    img {
        max-width: 100%;
        height: auto;
    }

    /* SVG visuals that are too wide */
    svg[viewBox] {
        max-width: 100%;
        height: auto;
    }
}

/* Small phones */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.35rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    .page-banner h1 {
        font-size: 1.4rem;
    }

    .page-banner h1[style*="font-size"] {
        font-size: 1.4rem !important;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    .cta-button-outline {
        padding: 12px 24px !important;
        font-size: 0.85rem !important;
        width: 100%;
        text-align: center;
    }

    /* About page hero buttons */
    .page-banner-content div[style*="display: flex"][style*="gap: 16px"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .page-banner-content div[style*="display: flex"][style*="gap: 16px"] a {
        width: 100%;
        text-align: center;
    }

    /* Solution items */
    .solution-item {
        flex-direction: column;
        text-align: center;
    }

    .solution-item-icon {
        margin: 0 auto;
    }

    .solution-item-arrow {
        display: none;
    }

    /* Partner cards */
    .partner-card {
        padding: 20px 16px;
    }

    .partner-description {
        font-size: 0.9rem;
    }

    /* Bento cards */
    .bento-card {
        padding: 16px;
    }

    .bento-card-lg {
        padding: 20px;
    }

    .bento-icon {
        width: 44px;
        height: 44px;
    }

    /* Leadership cards on about page */
    div[style*="display: grid"][style*="repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .leadership-cards > div {
        padding: 24px 20px !important;
    }

    /* Founder card images */
    div[style*="width: 88px"][style*="height: 88px"] {
        width: 64px !important;
        height: 64px !important;
    }

    /* Stat boxes in bento */
    div[style*="display: flex"][style*="gap: 20px"] {
        gap: 12px !important;
    }

    /* Nav menu on small phones */
    nav.menu-open .container > .logo {
        left: 16px;
    }

    nav.menu-open .container > .mobile-menu-toggle {
        right: 16px;
    }

    nav ul.nav-menu a {
        padding: 14px;
        font-size: 0.9rem;
    }

    /* Section padding tighter */
    section[style*="padding: 120px"] {
        padding: 50px 0 !important;
    }

    section[style*="padding: 100px"] {
        padding: 50px 0 !important;
    }

    /* Inline gap overrides */
    div[style*="gap: 80px"] {
        gap: 30px !important;
    }

    div[style*="gap: 60px"] {
        gap: 24px !important;
    }

    div[style*="gap: 48px"] {
        gap: 20px !important;
    }

    /* Feature card padding */
    div[style*="padding: 48px"] {
        padding: 24px !important;
    }

    div[style*="padding: 36px"] {
        padding: 20px !important;
    }
}

/* Height-based media queries for short screens */
@media (max-height: 700px) and (min-width: 769px) {
    .hero-section {
        min-height: 100vh;
        padding: 120px 0 80px;
    }

    .page-banner {
        height: auto;
        min-height: 100vh;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    nav ul.nav-menu a {
        padding: 18px 16px;
    }

    .solution-item {
        padding: 28px;
    }

    /* Remove hover effects that don't work well on touch */
    .pillar-card:hover,
    .step-item:hover,
    .platform-card:hover,
    .solution-card:hover,
    .bento-card:hover,
    .depth-card:hover {
        transform: none;
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 80px 0 60px;
    }

    .page-banner {
        min-height: 100vh;
        padding: 80px 0 40px;
    }

    nav ul.nav-menu {
        padding-top: 60px;
        justify-content: flex-start;
        gap: 0;
    }

    nav ul.nav-menu a {
        padding: 12px 16px;
    }
}