@tailwind base;
@tailwind components;
@tailwind utilities;

/* Fonts: 'Instrument Sans' for a technical but human feel */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-text-main: #0a0a0a;
  --color-text-muted: #525252;
  --color-accent: #2563EB; /* Royal Blue */
}

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

h1, h2, h3, .serif {
  font-family: 'Instrument Sans', sans-serif; 
  letter-spacing: -0.02em;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* --- SOTA Shadows & Cards --- */

.sota-card {
    /* Background and Shadows now handled via utility classes for more flexibility */
    /* background: rgba(255, 255, 255, 0.7); */
    /* border: 1px solid rgba(255, 255, 255, 0.6); */
    
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sota-card:hover {
    transform: translateY(-4px) scale(1.005);
    /* background: rgba(255, 255, 255, 0.9); */
}

/* Helper for radial gradient used in HTML */
.bg-gradient-radial {
    background-image: radial-gradient(circle, var(--tw-gradient-from) 0%, var(--tw-gradient-to) 70%);
}

/* Special "Float" Shadow for Product Images */
.product-float {
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    transition: filter 0.5s ease, transform 0.5s ease;
}

.group:hover .product-float {
    transform: scale(1.05) translateY(-10px);
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.2));
}

/* --- Mesh Gradients Backgrounds --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #FAFAFA;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,0) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,0) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,0) 0, transparent 50%);
}

.orb-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(230,240,255,0.8) 0%, rgba(255,255,255,0) 70%);
    filter: blur(60px);
    animation: pulse-slow 10s infinite alternate;
}

.orb-2 {
    position: absolute;
    top: 40%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(240,253,244,0.8) 0%, rgba(255,255,255,0) 70%); /* Mint tint */
    filter: blur(80px);
    animation: pulse-slow 15s infinite alternate-reverse;
}

@keyframes pulse-slow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    100% { transform: scale(1.1) translate(20px, -20px); opacity: 0.5; }
}

/* === HARD FACTS SECTION (Redesigned) === */

.specs-section {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

.specs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Spec Card */
.spec-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.03),
        0 10px 20px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent, #64748b), var(--card-accent-end, #94a3b8));
    opacity: 0;
    transition: opacity 0.3s;
}

.spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 24px -8px rgba(0, 0, 0, 0.08),
        0 20px 40px -12px rgba(0, 0, 0, 0.06);
}

.spec-card:hover::before {
    opacity: 1;
}

/* Spec Card Header */
.spec-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.spec-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--icon-bg, #f1f5f9), var(--icon-bg-end, #e2e8f0));
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 2px 4px rgba(0,0,0,0.05);
}

.spec-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--icon-color, #64748b);
}

.spec-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.spec-card-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Spec Items */
.spec-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Reco Features - grows to push UVP to bottom */
.reco-features {
    flex-grow: 1;
}

.spec-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.spec-item:hover {
    background: #f1f5f9;
}

@media (max-width: 640px) {
    .spec-item {
        padding: 0.625rem 0.75rem;
    }
    
    .spec-item-name {
        font-size: 0.8125rem;
    }
    
    .spec-item-value {
        font-size: 1rem;
    }
    
    .winner-badge {
        padding: 2px 6px;
        font-size: 8px;
        margin-left: 4px;
    }
    
    .spec-card {
        padding: 1.25rem;
    }
    
    .spec-card-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .spec-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .spec-card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .spec-card-title {
        font-size: 1rem;
    }
}

.spec-item-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.spec-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.spec-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.spec-item-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Winner Item */
.spec-item.is-winner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.spec-item.is-winner .spec-item-value {
    color: #92400e;
}

.spec-item.is-winner .spec-item-dot {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Value Winner (Green) */
.spec-item.is-value-winner {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.spec-item.is-value-winner .spec-item-value {
    color: #065f46;
}

.spec-item.is-value-winner .spec-item-dot {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Winner items - consistent layout */
.spec-item.is-winner,
.spec-item.is-value-winner {
    flex-wrap: nowrap;
}

.spec-item.is-winner .spec-item-brand,
.spec-item.is-value-winner .spec-item-brand {
    flex: 1 1 auto;
    min-width: 0;
}

.spec-item.is-winner .spec-item-name,
.spec-item.is-value-winner .spec-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spec-item.is-winner > .flex,
.spec-item.is-value-winner > .flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Brand Colors */
.dot-bosch { background: linear-gradient(135deg, #f59e0b, #d97706); }
.dot-lidl { background: linear-gradient(135deg, #10b981, #059669); }
.dot-moulinex { background: linear-gradient(135deg, #64748b, #475569); }

/* Winner Badge */
.winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* Progress Bar (Alternative) */
.spec-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 100px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.spec-progress-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.spec-progress-fill.gold { background: linear-gradient(90deg, #fbbf24, #d97706); }
.spec-progress-fill.green { background: linear-gradient(90deg, #34d399, #059669); }
.spec-progress-fill.slate { background: linear-gradient(90deg, #94a3b8, #475569); }

/* Big Stat Display */
.big-stat {
    text-align: center;
    padding: 1.5rem;
}

.big-stat-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--stat-color, #0f172a), var(--stat-color-end, #334155));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.big-stat-unit {
    font-size: 1.25rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 2px;
}

.big-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* Comparison Bar */
.comparison-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.comparison-bar-label {
    width: 70px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

.comparison-bar-track {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 100px;
    overflow: hidden;
}

.comparison-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.comparison-bar-value {
    width: 60px;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}

/* Legacy support */
.spec-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    align-items: center;
    transition: background-color 0.2s;
}

.spec-row:hover {
    background-color: rgba(0,0,0,0.01);
}

.spec-bar-bg {
    height: 6px;
    width: 100%;
    background: #E5E7EB;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 8px;
}

.spec-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: #18181B;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.slider-wrapper {
    will-change: transform;
}

.slider-dot {
    cursor: pointer;
    width: 6px;
    height: 6px;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 20px;
    background-color: #0f172a !important; /* Slate 900 for high contrast */
}

.slider-arrow {
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Ensure images don't overflow their containers in the slider */
.slider-wrapper img {
    max-height: 100%;
    max-width: 90%;
    object-fit: contain;
}

/* Each slide must clip its own content to prevent scaled images from bleeding into visible area */
.slider-wrapper > div {
    overflow: hidden;
}


/* Increase spacing between sections */
#test {
    margin-top: 4rem;
}

/* === SOTA SCORE CIRCLES === */

.score-circle {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-circle-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    box-shadow: 
        4px 4px 12px rgba(0, 0, 0, 0.08),
        -4px -4px 12px rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.score-circle svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.score-circle-track {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3;
}

.score-circle-progress {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gold Score (Winner) */
.score-circle-gold .score-circle-progress {
    stroke: url(#gradient-gold);
}

.score-circle-gold .score-value {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-circle-gold::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(251, 191, 36, 0.3) 50%, transparent 100%);
    animation: score-glow-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.score-circle-gold:hover::after,
.group:hover .score-circle-gold::after {
    opacity: 1;
}

/* Green Score (Value) */
.score-circle-green .score-circle-progress {
    stroke: url(#gradient-green);
}

.score-circle-green .score-value {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-circle-green::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(16, 185, 129, 0.3) 50%, transparent 100%);
    animation: score-glow-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.score-circle-green:hover::after,
.group:hover .score-circle-green::after {
    opacity: 1;
}

/* Slate Score (Neutral) */
.score-circle-slate .score-circle-progress {
    stroke: url(#gradient-slate);
}

.score-circle-slate .score-value {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-circle-slate::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(100, 116, 139, 0.3) 50%, transparent 100%);
    animation: score-glow-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.score-circle-slate:hover::after,
.group:hover .score-circle-slate::after {
    opacity: 1;
}

@keyframes score-glow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.score-value {
    position: relative;
    z-index: 10;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-family: 'Instrument Sans', system-ui, sans-serif;
}

.score-label {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    white-space: nowrap;
}

.moulinex-card .slider-wrapper img {
    transform: scale(1.35) translateY(-17px);
}

.moulinex-card .slider-wrapper .product-float {
    /* override general hover to keep alignment */
    transition: transform 0.5s ease;
}

.moulinex-card:hover .slider-wrapper img {
    transform: scale(1.45) translateY(-27px) !important;
}


/* === SOTA BADGES === */

/* Base Badge Styles */
.badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 2px 8px -2px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
    pointer-events: none;
}

/* Shine Animation */
.badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-20deg);
    animation: badge-shine 4s ease-in-out infinite;
}

@keyframes badge-shine {
    0%, 100% { left: -100%; }
    15%, 85% { left: 150%; }
}

/* Badge Icon Container */
.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* === TESTSIEGER Badge (Gold/Premium) === */
.badge-winner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
    color: #92400e;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge-winner .badge-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4);
}

.badge-winner .badge-icon svg {
    color: white;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.badge-winner:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 20px -4px rgba(251, 191, 36, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

/* === PREISTIPP Badge (Green/Value) === */
.badge-value {
    background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 50%, #10b981 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-value .badge-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4);
}

.badge-value .badge-icon svg {
    color: white;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.badge-value:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 20px -4px rgba(16, 185, 129, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

/* === ALLROUNDER Badge (Slate/Neutral Premium) === */
.badge-allrounder {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 50%, #94a3b8 100%);
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.badge-allrounder .badge-icon {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 2px 6px rgba(71, 85, 105, 0.4);
}

.badge-allrounder .badge-icon svg {
    color: white;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.badge-allrounder:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 20px -4px rgba(100, 116, 139, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Pulse animation for winner badge icon */
@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.badge-winner .badge-icon {
    animation: icon-pulse 2s ease-in-out infinite;
}

/* Legacy shine-badge support */
.shine-badge {
    position: relative;
    overflow: hidden;
}

.shine-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg);
    animation: shine-move 3s infinite;
}

@keyframes shine-move {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* === FAZIT SECTION === */

.fazit-section {
    position: relative;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}

.fazit-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Recommendation Card */
.reco-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.reco-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--reco-color, #64748b), var(--reco-color-end, #94a3b8));
    opacity: 0.5;
    transition: opacity 0.3s;
}

.reco-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.reco-card:hover::before {
    opacity: 1;
}

.reco-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    align-self: flex-start;
    width: fit-content;
}

.reco-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.reco-card-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.reco-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.reco-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.reco-feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reco-feature-icon svg {
    width: 12px;
    height: 12px;
}

.reco-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.reco-cta:hover {
    transform: translateX(4px);
}

/* Mobile Responsive for Reco Cards */
@media (max-width: 640px) {
    .reco-card {
        padding: 1.25rem;
    }
    
    .reco-card-title {
        font-size: 1.25rem;
    }
    
    .reco-card-subtitle {
        font-size: 0.8125rem;
    }
    
    .reco-feature {
        font-size: 0.8125rem;
    }
    
    .reco-feature-icon {
        width: 18px;
        height: 18px;
    }
    
    .reco-badge {
        font-size: 9px;
        padding: 5px 10px;
    }
    
    .final-word {
        padding: 1.5rem;
    }
    
    .final-word-quote {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Final Word Box */
.final-word {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
}

.final-word-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #e2e8f0;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.final-word-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.final-word-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.final-word-name {
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
}

.final-word-role {
    font-size: 0.75rem;
    color: #64748b;
}

/* === HERO SECTION REDESIGN === */

.hero-section {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 50%, #f8fafc 100%);
}

/* Ambient Glow Background */
.hero-ambient-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, rgba(251, 146, 60, 0.05) 30%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: hero-glow-float 20s ease-in-out infinite alternate;
}

@keyframes hero-glow-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 20px) scale(1.05); }
}

/* Subtle Grid Pattern */
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.7;
}

/* Hero Headline Styling */
.hero-headline {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.hero-headline-accent {
    background-size: 200% auto;
    animation: hero-gradient-shift 8s ease-in-out infinite;
}

@keyframes hero-gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Primary CTA Button */
.hero-cta-primary {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow: 
        0 10px 40px -10px rgba(15, 23, 42, 0.4),
        0 4px 12px -4px rgba(15, 23, 42, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.05);
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 50px -15px rgba(15, 23, 42, 0.5),
        0 8px 20px -6px rgba(15, 23, 42, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.hero-cta-primary:hover::before {
    opacity: 1;
}

/* Shine effect on primary CTA */
.hero-cta-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.8s ease;
}

.hero-cta-primary:hover::after {
    left: 150%;
}

/* Secondary CTA Button */
.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #475569;
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px -2px rgba(0,0,0,0.06);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.5);
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Trust Badge Hover */
.hero-trust-badge {
    transition: transform 0.3s ease;
}

.hero-trust-badge:hover {
    transform: translateY(-2px);
}

/* Compass Decorative Rings */
.compass-deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    pointer-events: none;
}

.compass-deco-ring-1 {
    width: 130%;
    height: 130%;
    animation: compass-ring-rotate 60s linear infinite;
}

.compass-deco-ring-2 {
    width: 160%;
    height: 160%;
    border-style: dotted;
    animation: compass-ring-rotate 90s linear infinite reverse;
}

@keyframes compass-ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll Indicator Animation */
.hero-scroll-indicator {
    animation: hero-scroll-fade 3s ease-in-out infinite;
}

@keyframes hero-scroll-fade {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.7; transform: translateX(-50%) translateY(5px); }
}

/* Slow Pulse Animation */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.animate-pulse-slow {
    animation: pulse-slow 6s ease-in-out infinite;
}

/* Hero Mobile Responsive */
@media (max-width: 1024px) {
    .hero-section {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 4rem;
    }
    
    .hero-ambient-glow {
        top: -10%;
        right: -20%;
        width: 80vw;
        height: 80vw;
    }
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-trust-badge {
        width: calc(50% - 0.75rem);
    }
    
    .hero-trust-badge:last-child {
        width: 100%;
    }
    
    .hero-grid-pattern {
        opacity: 0.4;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-trust-badge {
        width: 100%;
    }
    
    .hero-scroll-indicator {
        display: none !important;
    }
}

/* Utilities */
.text-balance {
    text-wrap: balance;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* === PREMIUM NAVIGATION STYLES === */

/* Navigation Background States */
#main-nav.scrolled .nav-bg {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02);
}

#main-nav.scrolled {
    padding-top: 0;
    padding-bottom: 0;
}

#main-nav.scrolled .h-20 {
    height: 4rem;
}

#main-nav.scrolled .md\:h-24 {
    height: 4.5rem;
}

/* Mobile Menu States */
.mobile-menu.active {
    pointer-events: auto;
}

.mobile-menu.active .mobile-menu-backdrop {
    opacity: 1;
}

/* Mobile Menu Panel - default hidden state */
.mobile-menu-panel {
    transform: translateX(100%);
}

.mobile-menu.active .mobile-menu-panel {
    transform: translateX(0);
}

/* Hamburger Animation */
.mobile-menu.active + .hamburger-icon span:nth-child(1),
button[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

button[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

button[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 100%;
}

/* Navigation Link Active Indicator */
.nav-link.active {
    color: #0f172a;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
}

/* Logo Compass Animation */
@keyframes compass-pulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(15, 23, 42, 0.3);
    }
}

#main-nav a:first-of-type:hover > div:first-child > div:first-child {
    animation: compass-pulse 2s ease-in-out infinite;
}

/* Mobile Menu Slide Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-menu.active .mobile-menu-panel nav a {
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.mobile-menu.active .mobile-menu-panel nav a:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-menu-panel nav a:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.active .mobile-menu-panel nav a:nth-child(3) { animation-delay: 0.2s; }

/* CTA Button Glow Effect */
#main-nav a[href="#test"]:not(.nav-link)::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
    filter: blur(10px);
}#main-nav a[href="#test"]:not(.nav-link):hover::before {
    opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #main-nav .h-20 {
        height: 4.5rem;
    }
    
    #main-nav.scrolled .h-20 {
        height: 4rem;
    }
}

/* === PREMIUM BADGE === */

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

.premium-badge {
    backdrop-filter: blur(8px);
}

.premium-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(251, 191, 36, 0.15) 0%, transparent 50%);
    pointer-events: none;
}
