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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f0f0ff;
    color: #2e1065;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

p {
    font-weight: 400;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4a1d96 0%, #6d28d9 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.probability-counter {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: #fef3c7;
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* Scenario Sections */
.scenario-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
    margin-top: -4vh;
}

.scenario-1 {
    background-color: #fef3c7;
}

.scenario-2 {
    background-color: #f0f0ff;
}

.scenario-3 {
    background-color: #fef3c7;
}

.scenario-4 {
    background-color: #f0f0ff;
}

.diagonal-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #4a1d96 0%, #fef3c7 100%);
    opacity: 0.3;
}

.scenario-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    z-index: 1;
}

.scenario-left {
    text-align: center;
}

.scenario-number {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: #4a1d96;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.scenario-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #dc2626;
}

.scenario-right h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2e1065;
}

.scenario-right p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.pie-chart {
    width: 100px;
    height: 100px;
    margin-top: 1rem;
}

.pie-background {
    fill: none;
    stroke: #d4d4d8;
    stroke-width: 28;
}

.pie-segment {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 28;
    transform-origin: 30px 30px;
    transform: rotate(-90deg);
}

.pie-wrong {
    stroke: #dc2626;
}

/* Myth Buster Section */
.myth-buster-section {
    background-color: #f0f0ff;
    padding: 6rem 2rem;
    position: relative;
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
    margin-top: -4vh;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2e1065;
}

.myth-item {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.myth-side,
.reality-side {
    padding: 2rem;
    border-radius: 8px;
}

.myth-side {
    background: rgba(220, 38, 38, 0.1);
}

.reality-side {
    background: rgba(22, 163, 74, 0.1);
}

.myth-side h3,
.reality-side h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.myth-side p,
.reality-side p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.badge-myth {
    background-color: #dc2626;
    color: #ffffff;
}

.badge-reality {
    background-color: #16a34a;
    color: #ffffff;
}

.myth-arrow {
    text-align: center;
    font-size: 2rem;
    color: #4a1d96;
    font-weight: 700;
}

/* Icon Array Section */
.icon-array-section {
    background-color: #fef3c7;
    padding: 6rem 2rem;
    position: relative;
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
    margin-top: -4vh;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #2e1065;
}

.icon-array {
    width: 100%;
    max-width: 800px;
    height: 200px;
    margin: 0 auto 2rem;
    display: block;
}

.icon-array use {
    fill: #d4d4d8;
    transition: fill 0.3s ease;
}

.icon-array use.highlighted {
    fill: #f97316;
    filter: drop-shadow(0 0 8px #f97316);
}

.array-hint {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

/* Calculator Section */
.calculator-section {
    background-color: #f0f0ff;
    padding: 6rem 2rem;
    position: relative;
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
    margin-top: -4vh;
}

.calculator-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2e1065;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 1rem;
    border: 2px solid #4a1d96;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    background-color: #ffffff;
    color: #2e1065;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #f97316;
}

.input-percent {
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    font-weight: 700;
    color: #4a1d96;
    pointer-events: none;
}

.calculate-btn {
    padding: 0.75rem 2rem;
    background-color: #f97316;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.calculate-btn:hover {
    background-color: #ea580c;
    transform: scale(1.05);
}

.calculate-btn:active {
    transform: scale(0.98);
}

.personal-array {
    width: 100%;
    max-width: 800px;
    height: 200px;
    margin: 2rem auto;
    display: block;
}

.personal-array use {
    fill: #d4d4d8;
    transition: fill 0.3s ease;
}

.personal-array use.highlighted {
    fill: #f97316;
    filter: drop-shadow(0 0 8px #f97316);
}

/* Footer */
.footer {
    background-color: #4a1d96;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
    position: relative;
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
    margin-top: -4vh;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scenario-content,
    .myth-item {
        grid-template-columns: 1fr;
    }

    .myth-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .probability-counter {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }

    .scenario-number {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }

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

    .scenario-right h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .calculator-form {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        min-width: 100%;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.scenario-section {
    animation: fadeIn 0.6s ease-out forwards;
}

.myth-item {
    animation: fadeIn 0.6s ease-out forwards;
}

.icon-array-section {
    animation: fadeIn 0.6s ease-out forwards;
}

.calculator-section {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
