/* ==========================================
   RADICULL LANDING PAGE - STYLES
   Clean, confident, editorial aesthetic
   ========================================== */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --primary: #4338CA;
    --primary-hover: #3730A3;
    --primary-light: #EEF2FF;
    --secondary: #0F172A;
    --text-main: #334155;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    --border-color: #E2E8F0;
    
    /* Category Colors */
    --accent-success: #059669;
    --accent-success-bg: #ECFDF5;
    --accent-neutral: #D97706;
    --accent-neutral-bg: #FFFBEB;
    --accent-ignore: #94A3B8;
    --accent-ignore-bg: #F1F5F9;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 60px rgba(67, 56, 202, 0.15);
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-white);
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-top: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(67, 56, 202, 0.35);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 56, 202, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--secondary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 16px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .btn {
    margin-top: 8px;
}

/* --- Hero Section --- */
.hero {
    padding-top: 160px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Decoration */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(67, 56, 202, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, transparent 70%);
    top: 40%;
    right: 10%;
}

/* --- Hero Visual (Results Preview) --- */
.hero-visual {
    margin-top: 80px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.visual-dots {
    display: flex;
    gap: 8px;
}

.visual-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.visual-dots span:first-child { background: #FCA5A5; }
.visual-dots span:nth-child(2) { background: #FCD34D; }
.visual-dots span:last-child { background: #6EE7B7; }

.visual-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
}

.visual-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* Results Preview Grid */
.results-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.result-column {
    background: var(--bg-white);
    padding: 24px;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid;
}

.column-header.priority { border-color: var(--accent-success); }
.column-header.neutral { border-color: var(--accent-neutral); }
.column-header.ignore { border-color: var(--accent-ignore); }

.column-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.column-header.priority .column-icon {
    background: var(--accent-success-bg);
    color: var(--accent-success);
}

.column-header.neutral .column-icon {
    background: var(--accent-neutral-bg);
    color: var(--accent-neutral);
}

.column-header.ignore .column-icon {
    background: var(--accent-ignore-bg);
    color: var(--accent-ignore);
}

.column-label {
    display: flex;
    flex-direction: column;
}

.column-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
}

.column-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Result Items */
.result-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
}

.result-item.priority { border-left-color: var(--accent-success); }
.result-item.neutral { border-left-color: var(--accent-neutral); }
.result-item.ignore { 
    border-left-color: var(--accent-ignore);
    opacity: 0.7;
}

.result-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.item-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

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

.result-item.priority .item-indicator { background: var(--accent-success); }
.result-item.neutral .item-indicator { background: var(--accent-neutral); }
.result-item.ignore .item-indicator { background: var(--accent-ignore); }

.item-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.item-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.item-name small {
    font-weight: 400;
    opacity: 0.6;
}

.item-confidence_percent {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: white;
    flex-shrink: 0;
}

.result-item.priority .item-confidence_percent { color: var(--accent-success); }
.result-item.neutral .item-confidence_percent { color: var(--accent-neutral); }
.result-item.ignore .item-confidence_percent { color: var(--accent-ignore); }

.item-toggle {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.item-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.result-item[data-expanded="true"] .item-toggle {
    transform: rotate(180deg);
}

/* Item Details (Expandable) */
.item-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    background: var(--bg-light);
}

.result-item[data-expanded="true"] .item-details {
    max-height: 400px;
}

.detail-row {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.5;
}

.detail-tags {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--bg-white);
    color: var(--text-light);
    border-radius: 4px;
}

/* --- Steps Section --- */
#how-it-works {
    background: var(--bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--bg-light);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all var(--transition-slow);
    position: relative;
}

.step-card:hover {
    background: white;
    border-color: var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.step-visual {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    opacity: 0.1;
}

.step-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.step-card h3 {
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Philosophy Section --- */
#about {
    background: var(--bg-light);
}

.philosophy-section {
    background: linear-gradient(135deg, var(--primary) 0%, #5B21B6 100%);
    border-radius: var(--radius-xl);
    padding: 80px;
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.philosophy-content {
    color: white;
}

.philosophy-content h2 {
    color: white;
    margin-bottom: 24px;
}

.philosophy-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.philosophy-content strong {
    color: white;
}

.philosophy-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.highlight-icon {
    font-size: 1.5rem;
}

.philosophy-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visual-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.visual-card.accent {
    background: white;
}

.visual-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.visual-card.accent .stat-number {
    color: var(--primary);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.visual-card.accent .stat-label {
    color: var(--text-main);
}

/* --- Pricing Section --- */
#pricing {
    background: var(--bg-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all var(--transition-slow);
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), 0 0 0 4px var(--primary-light);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 0.95rem;
    color: var(--text-light);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.price .amount {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.price .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-main);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    color: var(--accent-success);
    flex-shrink: 0;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* --- Footer --- */
footer {
    background: var(--bg-dark);
    padding: 80px 0 40px;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

@media (max-width: 1024px) {
    .results-preview {
        grid-template-columns: 1fr;
    }
    
    .result-column {
        border-bottom: 1px solid var(--border-color);
    }
    
    .result-column:last-child {
        border-bottom: none;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .philosophy-section {
        padding: 60px 40px;
    }
}

@media (max-width: 968px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    
    .hero-visual {
        margin-top: 60px;
    }
    
    .steps-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .step-card {
        padding: 32px 24px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        padding: 16px 32px;
        width: 100%;
        max-width: 300px;
    }
    
    .visual-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .visual-meta {
        width: 100%;
        margin-left: 0;
    }
    
    .result-column {
        padding: 20px 16px;
    }
    
    .item-name {
        font-size: 0.85rem;
    }
    
    .philosophy-section {
        padding: 48px 24px;
    }
    
    .philosophy-highlight {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .visual-card {
        padding: 24px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .pricing-card {
        padding: 32px 24px;
    }
    
    .price .amount {
        font-size: 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


@media (max-width: 400px) {
    .item-score {
        display: none;
    }
    
    .item-name {
        max-width: 140px;
    }
}

/* Better handling for medium screens */
@media (min-width: 1025px) and (max-width: 1200px) {
    .item-name {
        max-width: 140px;
        font-size: 0.85rem;
    }
    
    .item-confidence_percent,
    .item-score {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-visual {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-visual {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}