/* ==========================================================================
   SWISS HERO COMPONENT (Modern Flat)
   ========================================================================== */

:root {
    --swiss-red: #FF3B30;
    --swiss-black: #111111;
    --swiss-off-white: #F5F5F0;
    --swiss-grid-color: rgba(0, 0, 0, 0.08);
}

/* Reset for Flat Design */
.swiss-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--swiss-off-white);
    color: var(--swiss-black);
    overflow: hidden;
    padding: var(--spacing-24) 0;
    font-family: var(--font-sans, 'Helvetica Neue', 'Inter', sans-serif);
}

/* The Grid - Mathematical Precision */
.swiss-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Creating a sharp grid using linear gradients */
    background-image: 
        linear-gradient(var(--swiss-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--swiss-grid-color) 1px, transparent 1px);
    background-size: 40px 40px; /* Tighter grid for modern look */
    pointer-events: none;
}

/* Container Layout */
.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1.3fr 1fr; /* Give text slightly more room */
        gap: var(--spacing-16);
    }
}

/* Typography - The Core of Swiss Design */
.hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

.hero__kicker {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: var(--font-weight-bold, 700);
    letter-spacing: 0.1em;
    color: var(--swiss-red);
    margin-bottom: var(--spacing-4);
    display: block;
}

.hero__title {
    margin: 0;
    line-height: 0.9;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero__line {
    display: block;
    font-size: clamp(3.5rem, 9vw, 7rem); /* Massive scale */
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__line:nth-child(1) { animation-delay: 0.1s; }
.hero__line:nth-child(2) { animation-delay: 0.2s; color: var(--swiss-red); }
.hero__line:nth-child(3) { animation-delay: 0.3s; }

.hero__divider {
    width: 60px;
    height: 6px;
    background-color: var(--swiss-black);
    margin: var(--spacing-6) 0;
    opacity: 0;
    animation: expandWidth 0.8s ease-out 0.5s forwards;
    transform-origin: left;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1.4;
    max-width: 480px;
    color: var(--swiss-black);
    opacity: 0.8;
    margin: 0;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

/* Actions */
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
    margin-top: var(--spacing-8);
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

@media (min-width: 768px) {
    .hero__actions {
        flex-direction: row;
        align-items: center;
    }
}

/* Swiss Button - Brutalist/Flat */
.btn--swiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-3);
    padding: var(--spacing-4) var(--spacing-8);
    background-color: var(--swiss-black);
    color: var(--swiss-off-white);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--swiss-black);
    transition: all 0.2s ease;
    /* Sharp corners */
    border-radius: 0; 
}

.btn--swiss:hover {
    background-color: var(--swiss-red);
    border-color: var(--swiss-red);
    color: white;
    transform: translateY(-2px);
}

.btn__arrow {
    font-size: 1.2em;
    transition: transform 0.2s ease;
}

.btn--swiss:hover .btn__arrow {
    transform: translateX(4px);
}

/* Stats - Technical Look */
.hero__stats {
    display: flex;
    gap: var(--spacing-10);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat__num {
    font-size: var(--font-size-2xl, 1.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat__label {
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    margin-top: 4px;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* ==========================================================================
   VISUAL GRAPHIC - FLAT GEOMETRY
   ========================================================================== */
.hero__visual {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease 0.4s forwards;
}

@media (min-width: 768px) {
    .hero__visual { height: 600px; }
}

/* The Composition Container */
.geo-composition {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100%;
    /* Ensure content stays within bounds */
    overflow: hidden; 
}

/* 1. Large Primary Block */
.geo-block--primary {
    position: absolute;
    top: 10%;
    right: 0;
    width: 80%;
    height: 60%;
    background-color: var(--swiss-black);
    /* No radius, hard edges */
    border-radius: 0; 
    z-index: 1;
}

/* 2. Intersecting Circle */
.geo-circle--1 {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 250px;
    height: 250px;
    background-color: var(--swiss-red);
    border-radius: 50%; /* Circles are okay in Swiss design */
    z-index: 2;
    /* Interaction */
    transition: transform 0.5s ease;
}

.geo-composition:hover .geo-circle--1 {
    transform: scale(1.05) translate(-10px, -10px);
}

/* 3. Constructivist Lines */
.geo-line {
    position: absolute;
    background-color: var(--swiss-black);
    z-index: 3;
}

.geo-line--1 {
    top: 40%;
    left: 10%;
    width: 60%;
    height: 20px; /* Thick stroke */
}

.geo-line--2 {
    bottom: 25%;
    right: 0;
    width: 40%;
    height: 10px;
    background-color: var(--swiss-red);
}

/* 4. Subtle Pattern Overlay */
.geo-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    opacity: 0.1;
    /* Diagonal hash pattern */
    background-image: linear-gradient(45deg, #000 25%, transparent 25%, transparent 50%, #000 50%, #000 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    /* Mask it to make it interesting */
    mask-image: linear-gradient(to right, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
    pointer-events: none;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
    .hero__visual {
        height: 300px;
        margin-top: var(--spacing-8);
    }
    
    .geo-composition {
        max-width: 100%;
    }
    
    .geo-line--1, .geo-line--2 {
        width: 100%; /* Full width lines on mobile */
    }
}