@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/geist-mono/index.css');

:root {
    /* Palette */
    --bg-color: #F8FAFC;
    /* Slate 50 */
    --card-bg: #FFFFFF;
    /* Pure White */

    --text-main: #000000;
    /* Pure Black */
    --text-titanium: #8A8A8E;
    /* Titanium - Force this for all grey text */
    --text-detail: #CBD5E1;
    /* Lighter grey for very subtle details */

    /* Brand Colors */
    --acrospace-red: #FF3B30;
    --acro-green: #34FF5D;

    /* Fonts */
    --font-sans: 'Outfit', system-ui, sans-serif;
    /* Geometric Style */
    --font-mono: 'Geist Mono', 'Fira Code', monospace;

    /* Spacing */
    --container-width: 1000px;
    --header-height: 80px;

    /* Radius & Shadows */
    --radius-card: 24px;
    --radius-btn: 12px;

    /* Soft Shadows - No colored glows per "illegible/no nuances" instruction maybe? 
     Use clean shadows.
  */
    --shadow-card: 0 24px 48px -12px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 32px 64px -12px rgba(0, 0, 0, 0.06);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    padding: 0 20px 80px;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

h1 {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 24px;
    text-align: center;
}

h2 {
    font-size: 48px;
    margin-bottom: 48px;
    text-align: center;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-titanium);
    /* Fixed to Titanium */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

p {
    color: var(--text-titanium);
    /* Fixed to Titanium */
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

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

/* Section Common */
section {
    padding: 60px 0;
    /* Reduced from 120px */
}

/* ... existing animation code ... */

/* [Skipping animation classes for brevity in this replace block, 
   actually I need to be careful not to delete them if I can't see them. 
   I will target specific blocks instead.] */
/* Retrying with targeted replacements to avoid deleting unseen code */

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Soft Fade In Animation */
@keyframes subtleFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: subtleFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-0 {
    animation-delay: 0ms;
}

.delay-50 {
    animation-delay: 50ms;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-150 {
    animation-delay: 150ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* 1. HERO "THE GATEWAY" */
/* 1. HERO "THE GATEWAY" */
/* 1. HERO "THE GATEWAY" */
.hero {
    min-height: 90vh;
    /* More presence */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    /* For radial background */
}

/* Background Texture: Technical Grid */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Technical Grid */
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    /* Fade out edges */
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    z-index: -1;
    pointer-events: none;
}

/* HERO TRIAD (The 3 Inputs) */
.hero-triad {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    position: relative;
    z-index: 5;
    flex-wrap: wrap;
}

.hero-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 220px;
    /* Balanced width */
    height: 160px;
    /* Slightly taller */
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Base border */
    border-radius: 24px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

/* Card Visuals */
.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: #FFFFFF;
}

.hero-card-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Pushes content */
    text-align: left;
}

.hero-card-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    /* Aligned to Brand H1 style */
    display: block;
}

.hero-card-desc {
    font-size: 15px;
    color: var(--text-titanium);
    font-weight: 500;
    line-height: 1.3;
}

.hero-card-icon {
    position: absolute;
    bottom: 24px;
    right: 24px;
    color: #CBD5E1;
    transition: all 0.3s;
}

.hero-card:hover .hero-card-icon {
    transform: translateX(4px);
    color: var(--text-main);
}

.hero-card-icon svg {
    width: 20px;
    height: 20px;
}

/* ACCENT SYSTEM (Active on both Hero & System Cards) */
.card-accent-red {
    border-top: 4px solid var(--acrospace-red);
}

.card-accent-red:hover {
    border-color: var(--acrospace-red);
}

.card-accent-green {
    border-top: 4px solid var(--acro-green);
}

.card-accent-green:hover {
    border-color: var(--acro-green);
}

.card-accent-titanium {
    border-top: 4px solid var(--text-titanium);
}

.card-accent-titanium:hover {
    border-color: var(--text-titanium);
}

/* Color Utilities */
.text-red {
    color: var(--acrospace-red);
}

.text-green {
    color: var(--acro-green);
}

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

/* HERO CONTENT - Strict Alignment */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Force horizontal center */
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-logo {
    width: 160px;
    /* Slightly refined */
    height: auto;
    margin-bottom: 32px;
    display: block;
    /* Ensure no inline weirdness */
}

.ai-super-label {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--acro-green);
    /* Tech Green for AI Visibility */
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
    font-weight: 600;
    text-shadow: 0 0 12px rgba(52, 255, 93, 0.4);
    /* Glowing terminal effect */
}

.hero h1 {
    /* Targeted scale */
    font-size: 110px;
    /* Even bigger */
    font-weight: 800;
    /* BOLDER */
    letter-spacing: -0.06em;
    margin-bottom: 24px;
    line-height: 0.85;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* 2. THE CORE (Vision + System) */
#the-core {
    padding: 100px 0;
    background: linear-gradient(to bottom, #F8FAFC, #FFFFFF);
}

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

.section-title {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
}

.core-manifesto p {
    font-size: 22px;
    color: var(--text-main);
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 1.5;
}

.core-manifesto .highlight {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    border-left: 4px solid var(--acro-green);
    padding-left: 24px;
    display: block;
    margin-top: 40px;
}

.core-name {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-titanium);
    margin-top: 60px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.core-infographic {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    background: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Technical Specs Block */
.tech-specs {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tech-label {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-titanium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-weight: 600;
}

.tech-specs ul {
    list-style: none;
}

.tech-specs li {
    font-size: 15px;
    color: var(--text-titanium);
    margin-bottom: 12px;
    line-height: 1.5;
}

.tech-specs strong {
    color: var(--text-main);
    font-weight: 700;
    margin-right: 6px;
}


/* 3 & 4. UNIFIED SYSTEM CARDS */
#ecosystem,
#products {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.super-label {
    display: block;
    font-size: 13px;
    color: var(--text-titanium);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 16px;
}

.system-grid {
    display: grid;
    gap: 32px;
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.system-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.system-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #F1F5F9;
    /* Default */
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s;
}

/* Specific Color Injection */
.card-accent-red .card-icon,
.card-accent-red .hero-card-icon {
    background: rgba(255, 59, 48, 0.1);
    color: var(--acrospace-red);
}

.card-accent-titanium .card-icon,
.card-accent-titanium .hero-card-icon {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-main);
}

.card-accent-green .card-icon,
.card-accent-green .hero-card-icon {
    background: rgba(52, 255, 93, 0.1);
    color: var(--acro-green);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.system-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.system-card p {
    font-size: 16px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1;
}

.card-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    margin-top: auto;
    display: inline-block;
}

.card-link.inactive {
    color: #CBD5E1;
    cursor: default;
}

/* Product Card Variations */
.system-card.product {
    text-align: left;
}

.prod-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 100px;
    background: #F1F5F9;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-titanium);
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.prod-badge.highlight {
    background: var(--text-main);
    color: #FFF;
}

.system-card.featured {
    border-color: var(--text-main);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.prod-feat {
    list-style: none;
    border-top: 1px solid #F1F5F9;
    padding-top: 24px;
    margin: 0;
}

.prod-feat li {
    font-size: 14px;
    color: var(--text-titanium);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-weight: 500;
}

.prod-feat li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--acro-green);
    font-size: 18px;
    line-height: 1;
}

/* 5. MANIFESTO */
#manifesto {
    padding: 160px 0;
    text-align: center;
}

.manifesto-wrapper h2 {
    font-size: 80px;
    margin-bottom: 40px;
    background: -webkit-linear-gradient(#000, #555);
    background: linear-gradient(#000, #555);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback/Standard */
}

.manifesto-sub {
    font-size: 28px;
    color: var(--text-titanium);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* 6. CONTACTS & FOOTER */
#contatti {
    padding-bottom: 80px;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.contact-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-titanium);
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--text-main);
}

.legal-content {
    background-color: var(--card-bg);
    padding: 80px 60px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 48px;
}

.legal-content h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: var(--text-main);
}

.legal-content p,
.legal-content li {
    font-size: 16px;
    color: var(--text-titanium);
    margin-bottom: 16px;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding-top: 100px;
    color: var(--text-titanium);
    font-size: 13px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-links a:hover {
    color: var(--text-main);
}


/* === RESPONSIVE ALIGNMENT === */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

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

    .section-title {
        font-size: 48px;
    }
}

/* RESPONSIVE COMPACTING */
@media (max-width: 768px) {
    body {
        padding: 0;
        overflow-x: hidden;
        /* Prevent horizontal scroll/zoom */
        width: 100%;
    }

    .container {
        padding: 0 24px;
        /* Internal spacing instead of body padding */
        width: 100%;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    /* Force Logo Centering */
    .hero-logo {
        margin: 0 auto 32px auto;
        display: block;
    }

    .hero h1 {
        font-size: 11vw;
        /* Responsive scaling to fit width */
        max-width: 100%;
        line-height: 1.1;
        margin-bottom: 24px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 18px;
        padding: 0 10px;
        margin-bottom: 12px;
    }

    /* Hero Cards - Compact Stack */
    .hero-triad {
        gap: 12px;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .hero-card {
        width: 100%;
        height: auto;
        min-height: 80px;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 16px 24px;
        justify-content: space-between;
    }

    .hero-card-label {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .hero-card-desc {
        font-size: 12px;
        color: #64748B;
        margin: 0;
    }

    .hero-card-icon {
        position: static;
        margin-left: 16px;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    /* General Sections */
    #the-core,
    #ecosystem,
    #products,
    #manifesto {
        padding: 60px 0;
    }

    .core-grid,
    .system-grid,
    .three-col {
        /* Force single column for all grids */
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    /* Manifesto Adjustment */
    .manifesto-wrapper h2 {
        font-size: 42px;
        /* Smaller for mobile */
    }

    /* Footer */
    footer {
        padding: 60px 24px 40px;
    }
}