@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --color-bg: #ffffff;
    --color-text-main: #000000;
    --color-text-muted: #555555;
    --color-accent: #ff0000;
    /* Swiss Red */
    --color-border: #e5e5e5;
    --color-gray-light: #f5f5f5;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.04em;
    /* Tight tracking for Swiss feel */
}

/* --- Utilities --- */

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

.bg-accent {
    background-color: var(--color-accent);
}

.border-accent {
    border-color: var(--color-accent);
}

.tracking-tight-swiss {
    letter-spacing: -0.03em;
}

/* --- Swiss Grid & Layout --- */

.swiss-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.section-divider {
    border-top: 1px solid #000;
}

/* --- Buttons (Swiss Minimal) --- */

.btn-primary {
    background-color: #000;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 32px;
    border: none;
    border-radius: 0;
    /* Square edges */
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #000;
    color: #000;
    padding: 15px 31px;
    border-radius: 0;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

/* --- Hero Section Refinement --- */

.hero-h1 {
    font-size: clamp(3.25rem, 7vw, 5.5rem);
    line-height: 1.0;
    letter-spacing: -0.05em;
    font-weight: 800;
    max-width: 14ch;
    /* Limit width to prevent extreme line breaks */
}

.hero-p {
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    line-height: 1.5;
    font-weight: 500;
    max-width: 50ch;
    /* Better readability */
}

@media (max-width: 1024px) {
    .hero-h1 {
        font-size: clamp(3.125rem, 9vw, 4.5rem);
        line-height: 1.05;
    }
}

.section-h2 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
    font-weight: 800;
    text-transform: uppercase;
}

.step-h3 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.step-p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .btn-primary {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }
}

/* --- Inputs (Clean Lines) --- */

.input-swiss {
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #000;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    border-radius: 0;
    transition: border-color 0.2s ease;
}

.input-swiss:focus {
    border-color: #000;
    outline: none;
    box-shadow: none;
}

.input-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- UI Elements --- */

.glass-panel {
    background: #fff;
    border: 1px solid #e5e5e5;
    /* No blur, solid clean look */
}

.step-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.step-active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.step-inactive {
    background: #fff;
    color: #aaa;
}

/* --- Chart --- */
.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

/* --- Typography Helpers --- */
.display-text {
    font-size: 4rem;
    line-height: 0.9;
    font-weight: 800;
}

@media (min-width: 768px) {
    .display-text {
        font-size: 6rem;
    }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fff;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
}

::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* --- Animations --- */

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

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

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

@keyframes float-swiss {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-slide-left {
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    /* Initial state */
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.Swiss-line {
    position: absolute;
    background-color: var(--color-accent);
}

.blend-multiply {
    mix-blend-mode: multiply;
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--color-accent);
}

#mobileMenuBtn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#mobileMenuBtn.active span:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#mobileMenu.active {
    transform: translateX(0);
}