* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Apple Graustufen Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #e8e8ed;
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --text-tertiary: #6e6e73;
    --text-quaternary: #86868b;
    --border-light: #d2d2d7;
    --border-dark: #424245;

    /* Akzentfarben */
    --accent-blue: #0071e3;
    --accent-green: #34c759;
    --accent-orange: #ff9500;
    --accent-red: #ff3b30;

    /* Schatten */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.2);

    /* Radien */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================ */
/* KEYFRAME ANIMATIONS */
/* ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: scale(1.02);
        box-shadow: var(--shadow-lg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 113, 227, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 113, 227, 0.6);
    }
}

@keyframes slideInStagger {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(400px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateX(0);
    }
}

@keyframes borderPulse {
    0%, 100% {
        border-color: var(--border-light);
    }
    50% {
        border-color: var(--accent-blue);
    }
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ============================================ */
/* HEADER */
/* ============================================ */
header {
    text-align: center;
    padding: 80px 40px;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.course-tag {
    background: var(--bg-primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: bounceIn 0.8s ease-out 0.4s both;
}

.course-tag:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: var(--shadow-lg);
    background: var(--text-primary);
    color: var(--bg-primary);
}

.brand {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    animation: fadeInRight 0.8s ease-out 0.6s both;
    transition: all 0.3s ease;
}

.brand:hover {
    transform: scale(1.05);
}

.brand a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.brand a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.brand a:hover::after {
    width: 100%;
}

header h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    animation: scaleIn 1s ease-out 0.3s both;
    transition: all 0.4s ease;
}

header h1:hover {
    transform: scale(1.02);
    letter-spacing: -0.02em;
}

header .subtitle {
    font-size: 1.4rem;
    color: var(--text-tertiary);
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

header .author {
    font-size: 1rem;
    color: var(--text-quaternary);
    margin-top: 20px;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

/* ============================================ */
/* TASK SECTION */
/* ============================================ */
.task-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.task-section:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-light);
}

.task-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.task-icon {
    font-size: 2rem;
    animation: wiggle 2s ease-in-out infinite;
}

.task-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.task-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.customer-query {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-secondary);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: all 0.4s ease;
    animation: flipIn 0.8s ease-out 0.3s both;
}

.customer-query:hover {
    border-color: var(--text-tertiary);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.quote-mark {
    font-size: 3rem;
    color: var(--text-tertiary);
    font-family: Georgia, serif;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

.customer-query p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
}

.customer-query strong {
    color: var(--text-primary);
    font-weight: 700;
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.customer-query:hover strong {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ============================================ */
/* WHISKY DATA CARDS */
/* ============================================ */
.data-section {
    margin-bottom: 40px;
}

.data-section h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-size: 1.75rem;
    font-weight: 600;
    animation: fadeInDown 0.8s ease-out;
}

.whisky-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.whisky-data-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    animation: fadeInUp 0.8s ease-out both;
}

.whisky-data-card:nth-child(1) { animation-delay: 0.1s; }
.whisky-data-card:nth-child(2) { animation-delay: 0.2s; }
.whisky-data-card:nth-child(3) { animation-delay: 0.3s; }

.whisky-data-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: var(--text-primary);
}

.whisky-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    transition: all 0.4s ease;
}

.whisky-data-card:hover .whisky-icon {
    animation: wiggle 0.5s ease-in-out;
    transform: scale(1.2);
}

.whisky-data-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whisky-data-card:hover h3 {
    letter-spacing: 0.02em;
}

.arrow {
    color: var(--text-quaternary);
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.whisky-data-card:hover .arrow {
    transform: translateY(4px);
    color: var(--text-primary);
}

.aromen-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.aroma {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.aroma:hover {
    transform: scale(1.15) rotate(-2deg);
}

.aroma.smoky {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.aroma.smoky:hover {
    background: var(--text-secondary);
    color: var(--bg-primary);
}

.aroma.fruity {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.aroma.fruity:hover {
    background: var(--accent-orange);
    color: var(--bg-primary);
}

.aroma.spicy {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.aroma.spicy:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ============================================ */
/* SOLUTION SECTIONS */
/* ============================================ */
.solution-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-bottom: 40px;
    position: relative;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 1s ease-out both;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.solution-section:nth-of-type(2) { animation-delay: 0.2s; }
.solution-section:nth-of-type(3) { animation-delay: 0.4s; }
.solution-section:nth-of-type(4) { animation-delay: 0.6s; }

.solution-section:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.section-number {
    position: absolute;
    top: -18px;
    left: 36px;
    background: var(--text-primary);
    color: var(--bg-primary);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    animation: rotateIn 0.8s ease-out 0.5s both;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-number:hover {
    transform: rotate(360deg) scale(1.2);
    background: var(--accent-blue);
}

.solution-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 28px;
    padding-left: 36px;
    font-weight: 600;
}

.principle-box {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    border-left: 4px solid var(--text-primary);
    transition: all 0.4s ease;
    animation: fadeInLeft 0.6s ease-out 0.3s both;
}

.principle-box:hover {
    transform: translateX(8px);
    border-left-color: var(--accent-blue);
    box-shadow: var(--shadow-sm);
}

.principle-box h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.principle-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.principle-box strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ============================================ */
/* EXERCISE BOXES */
/* ============================================ */
.exercise-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease-out both;
    transition: all 0.3s ease;
}

.exercise-box:hover {
    background: var(--bg-tertiary);
}

.exercise-box h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.exercise-box:hover h3 {
    border-bottom-color: var(--text-primary);
}

/* Dimension Legend */
.dimension-legend {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.legend-label {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
}

.dimension-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dim-item {
    background: var(--bg-secondary);
    padding: 10px 16px;
    border-radius: 10px;
    font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.dim-item:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

/* Answer Table */
.answer-table {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.answer-row {
    display: grid;
    grid-template-columns: 170px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInStagger 0.5s ease-out both;
    border: 2px solid transparent;
}

.answer-row:nth-child(1) { animation-delay: 0.1s; }
.answer-row:nth-child(2) { animation-delay: 0.2s; }
.answer-row:nth-child(3) { animation-delay: 0.3s; }
.answer-row:nth-child(4) { animation-delay: 0.4s; }

.answer-row:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--text-primary);
}

.answer-row.given {
    opacity: 0.6;
}

.answer-row.search-row {
    background: var(--bg-secondary);
    border: 2px solid var(--text-primary);
}

.answer-row.search-row:hover {
    background: var(--text-primary);
}

.answer-row.search-row:hover .whisky-name,
.answer-row.search-row:hover .vector-display {
    color: var(--bg-primary);
}

.whisky-name {
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.vector-display {
    font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.vector-display.filled {
    color: var(--accent-green);
    background: rgba(52, 199, 89, 0.1);
    font-weight: 600;
    animation: glow 2s ease-in-out infinite;
    border: 1px solid var(--accent-green);
}

.given-tag {
    font-size: 0.75rem;
    color: var(--text-quaternary);
    background: var(--bg-tertiary);
    padding: 6px 14px;
    border-radius: 20px;
}

.check-mark {
    color: var(--accent-green);
    font-size: 1.6rem;
    font-weight: bold;
    animation: successPop 0.5s ease-out;
}

/* ============================================ */
/* FORMULA DISPLAY */
/* ============================================ */
.formula-display {
    text-align: center;
    padding: 28px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    transition: all 0.4s ease;
    animation: scaleIn 0.6s ease-out both;
}

.formula-display:hover {
    border-color: var(--text-primary);
    transform: scale(1.02);
}

.formula-display p {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.formula {
    font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, monospace;
    color: var(--text-primary);
    font-weight: 700;
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 8px;
}

/* ============================================ */
/* CALCULATION BLOCKS */
/* ============================================ */
.calculation-block {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInLeft 0.6s ease-out both;
}

.calculation-block:nth-child(1) { animation-delay: 0.1s; }
.calculation-block:nth-child(2) { animation-delay: 0.2s; }
.calculation-block:nth-child(3) { animation-delay: 0.3s; }

.calculation-block:hover {
    transform: translateX(8px) translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--text-primary);
}

.calculation-block.winner {
    border-left-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.05) 0%, var(--bg-primary) 100%);
    animation: pulse 3s ease-in-out infinite, fadeInLeft 0.6s ease-out both;
}

.calculation-block.winner:hover {
    border-left-color: var(--accent-green);
}

.calculation-block h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: 600;
}

.calc-visual {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.calculation-block:hover .calc-visual {
    background: var(--bg-tertiary);
}

.vec-compare {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: center;
    padding: 10px 0;
    font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.vec-compare:hover {
    transform: translateX(4px);
}

.vec-compare .label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.vec-compare .vec {
    color: var(--text-primary);
}

.vec-compare.multiply {
    border-top: 2px solid var(--border-light);
    padding-top: 14px;
    margin-top: 6px;
}

.vec-compare .hl {
    color: var(--text-primary);
    font-weight: 700;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
}

.vec-compare .hl2 {
    color: var(--text-tertiary);
}

.vec-compare .match {
    color: var(--accent-green);
    font-weight: 700;
    background: rgba(52, 199, 89, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
    animation: glow 2s ease-in-out infinite;
}

.calc-steps {
    padding-left: 8px;
}

.calc-steps p {
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.calc-steps p:hover {
    transform: translateX(4px);
    color: var(--text-primary);
}

.calc-steps strong {
    color: var(--text-primary);
}

.result-zero {
    color: var(--accent-red) !important;
}

.result-high {
    color: var(--accent-green) !important;
    font-size: 1.2em;
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================ */
/* SOLUTION ANSWER BOX */
/* ============================================ */
.solution-answer-box {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.08) 0%, rgba(52, 199, 89, 0.02) 100%);
    border: 2px solid var(--accent-green);
    border-radius: var(--radius-xl);
    padding: 36px;
    margin-top: 36px;
    animation: scaleIn 0.8s ease-out both;
    transition: all 0.4s ease;
}

.solution-answer-box:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(52, 199, 89, 0.2);
}

.solution-answer-box h3 {
    color: var(--accent-green);
    font-size: 1.4rem;
    margin-bottom: 28px;
    text-align: center;
    font-weight: 600;
}

.answer-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.answer-item {
    display: grid;
    grid-template-columns: 190px 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 18px 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInRight 0.5s ease-out both;
}

.answer-item:nth-child(1) { animation-delay: 0.1s; }
.answer-item:nth-child(2) { animation-delay: 0.2s; }
.answer-item:nth-child(3) { animation-delay: 0.3s; }

.answer-item:hover {
    transform: translateX(-8px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.answer-item.highlight {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.12) 0%, var(--bg-primary) 100%);
    border: 2px solid var(--accent-green);
    animation: pulse 3s ease-in-out infinite, fadeInRight 0.5s ease-out both;
}

.answer-label {
    font-weight: 600;
    color: var(--text-primary);
}

.answer-field {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.filled-answer {
    color: var(--accent-green) !important;
    font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, monospace;
    font-weight: 600;
}

.final-answer {
    background: var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    animation: bounceIn 0.8s ease-out 0.5s both;
    transition: all 0.4s ease;
}

.final-answer:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.final-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--bg-primary);
    font-size: 1.15rem;
}

.final-row:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.final-value {
    font-weight: 700;
    font-size: 1.5rem;
}

/* ============================================ */
/* EMBEDDING SECTION */
/* ============================================ */
.embedding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.embed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.5s ease-out both;
    border-left: 4px solid transparent;
}

.embed-item:nth-child(1) { animation-delay: 0.05s; }
.embed-item:nth-child(2) { animation-delay: 0.1s; }
.embed-item:nth-child(3) { animation-delay: 0.15s; }
.embed-item:nth-child(4) { animation-delay: 0.2s; }
.embed-item:nth-child(5) { animation-delay: 0.25s; }
.embed-item:nth-child(6) { animation-delay: 0.3s; }
.embed-item:nth-child(7) { animation-delay: 0.35s; }
.embed-item:nth-child(8) { animation-delay: 0.4s; }

.embed-item:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.embed-item span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.embed-item span:last-child {
    font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, monospace;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.embed-item.smoky {
    border-left-color: var(--text-tertiary);
}

.embed-item.smoky:hover {
    background: var(--text-tertiary);
}

.embed-item.smoky:hover span {
    color: var(--bg-primary);
}

.embed-item.fruity {
    border-left-color: var(--accent-orange);
}

.embed-item.fruity:hover {
    background: var(--accent-orange);
}

.embed-item.fruity:hover span {
    color: var(--bg-primary);
}

.embed-item.spicy {
    border-left-color: var(--text-primary);
}

.embed-item.spicy:hover {
    background: var(--text-primary);
}

.embed-item.spicy:hover span {
    color: var(--bg-primary);
}

.given-search {
    background: var(--bg-secondary);
    border: 2px solid var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    animation: flipIn 0.8s ease-out both;
    transition: all 0.4s ease;
}

.given-search:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.given-search h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.search-calc {
    font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 0.95rem;
}

.search-calc p {
    margin: 8px 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.search-calc p:hover {
    transform: translateX(6px);
    color: var(--text-primary);
}

.search-calc .mean-result {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 600;
}

/* Mean Calculations */
.mean-calculation {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mean-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    border-left: 5px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInLeft 0.6s ease-out both;
}

.mean-card:nth-child(1) { animation-delay: 0.1s; }
.mean-card:nth-child(2) { animation-delay: 0.2s; }
.mean-card:nth-child(3) { animation-delay: 0.3s; }

.mean-card:hover {
    transform: translateX(8px) translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--text-primary);
}

.mean-card.highlight {
    border-left-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.05) 0%, var(--bg-primary) 100%);
}

.mean-card h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.mean-steps {
    font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 0.9rem;
}

.mean-steps > p {
    margin: 6px 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.mean-steps > p:hover {
    transform: translateX(6px);
    color: var(--text-primary);
}

.mean-formula-display {
    background: var(--bg-secondary);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    margin: 18px 0;
    transition: all 0.3s ease;
}

.mean-card:hover .mean-formula-display {
    background: var(--bg-tertiary);
}

.mean-formula-display p {
    margin: 5px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.mean-formula-display strong {
    color: var(--text-primary);
}

.mean-steps .mean-result {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 600;
}

/* Embed Similarity Cards */
.embed-similarity {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.embed-calc-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: scaleIn 0.6s ease-out both;
    border: 2px solid transparent;
}

.embed-calc-card:nth-child(1) { animation-delay: 0.1s; }
.embed-calc-card:nth-child(2) { animation-delay: 0.2s; }
.embed-calc-card:nth-child(3) { animation-delay: 0.3s; }

.embed-calc-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: var(--text-primary);
}

.embed-calc-card.winner {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.08) 0%, var(--bg-primary) 100%);
    animation: pulse 3s ease-in-out infinite, scaleIn 0.6s ease-out both;
}

.embed-calc-card h4 {
    color: var(--text-primary);
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 1.1rem;
}

.embed-calc-card .vectors {
    font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 0.8rem;
    color: var(--text-quaternary);
    margin-bottom: 18px;
}

.mini-calc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mini-calc p {
    margin: 8px 0;
    transition: all 0.3s ease;
}

.mini-calc p:hover {
    transform: translateX(4px);
    color: var(--text-primary);
}

.mini-calc strong {
    color: var(--text-primary);
}

/* ============================================ */
/* COMPARISON SECTION */
/* ============================================ */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 36px;
}

.method-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease-out both;
    border: 2px solid transparent;
}

.method-card:nth-child(1) { animation-delay: 0.1s; }
.method-card:nth-child(2) { animation-delay: 0.2s; }

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--text-primary);
    background: var(--bg-primary);
}

.method-card h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
    font-weight: 600;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.method-card:hover h3 {
    border-bottom-color: var(--text-primary);
}

.pros-cons {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pros h4 {
    color: var(--accent-green);
    margin-bottom: 14px;
    font-size: 1rem;
}

.cons h4 {
    color: var(--accent-red);
    margin-bottom: 14px;
    font-size: 1rem;
}

.method-card ul {
    list-style: none;
    padding-left: 0;
}

.method-card ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.method-card ul li:hover {
    transform: translateX(6px);
    color: var(--text-primary);
}

.pros ul li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.cons ul li::before {
    content: "−";
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.1rem;
}

.when-to-use {
    margin-top: 28px;
    padding: 22px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    transition: all 0.4s ease;
}

.method-card:hover .when-to-use {
    border-color: var(--text-primary);
}

.when-to-use h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.when-to-use p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Final Comparison Table */
.final-comparison {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 36px;
    animation: fadeInUp 0.8s ease-out both;
}

.final-comparison h3 {
    color: var(--text-primary);
    margin-bottom: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 1.3rem;
}

.final-comparison table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.final-comparison th,
.final-comparison td {
    padding: 18px 28px;
    text-align: left;
    transition: all 0.3s ease;
}

.final-comparison th {
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.final-comparison td {
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
}

.final-comparison tbody tr {
    transition: all 0.3s ease;
}

.final-comparison tbody tr:hover {
    background: var(--bg-secondary);
}

.final-comparison tbody tr:hover td {
    color: var(--text-primary);
}

.final-comparison .winner-row {
    background: rgba(52, 199, 89, 0.1);
}

.final-comparison .winner-row td {
    color: var(--accent-green);
    font-weight: 600;
}

.final-comparison .winner-row:hover {
    background: rgba(52, 199, 89, 0.2);
}

.conclusion {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
}

.conclusion strong {
    color: var(--accent-green);
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
footer {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-quaternary);
    font-size: 0.9rem;
    animation: fadeInUp 0.8s ease-out both;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .solution-section {
        padding: 32px 24px;
    }

    .section-number {
        left: 24px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .solution-section h2 {
        padding-left: 32px;
        font-size: 1.5rem;
    }

    .answer-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .answer-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .vec-compare {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .customer-query {
        flex-direction: column;
        text-align: center;
    }

    .quote-mark {
        display: none;
    }

    .header-top {
        justify-content: center;
    }
}

/* ============================================ */
/* SMOOTH SCROLL */
/* ============================================ */
html {
    scroll-behavior: smooth;
}

/* Selection Style */
::selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}
