/* Cardioton Heart Health Toolkit Styles */
:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --accent: #E53935;
    --cta: #FF6F00;
    --bg: #F5F5F5;
    --text: #212121;
    --white: #FFFFFF;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.3rem; color: var(--primary); }
.logo-icon { font-size: 1.5rem; }
.header-badge {
    background: var(--accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}
.btn-header {
    background: var(--cta);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.hero-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; }
.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.btn-primary {
    background: var(--cta);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--white);
    display: inline-block;
    cursor: pointer;
}
.hero-trust {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Benefits */
.benefits { padding: 60px 0; background: var(--white); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.benefit-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: var(--bg);
}
.benefit-icon { font-size: 3rem; margin-bottom: 15px; }
.benefit-card h3 { color: var(--primary); margin-bottom: 10px; }

/* Calculator */
.calculator-section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.calculator-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.calculator-inputs {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.input-group { flex: 1; min-width: 150px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.2rem;
    text-align: center;
}
.input-group input:focus { outline: none; border-color: var(--primary); }
.input-unit { display: block; text-align: center; margin-top: 5px; color: #666; font-size: 0.9rem; }
.input-divider { font-size: 2rem; font-weight: 700; color: var(--primary); padding-bottom: 20px; }
.btn-calculate {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-calculate:hover {
    background: var(--primary-dark);
}

/* Results */
.result-container {
    margin-top: 30px;
    padding: 30px;
    border-radius: 15px;
    display: none;
}
.result-container:not(.hidden) { display: block; }
.result-container.normal { background: #E8F5E9; border: 2px solid var(--success); }
.result-container.caution { background: #FFF8E1; border: 2px solid var(--warning); }
.result-container.warning { background: #FFE0B2; border: 2px solid #FF9800; }
.result-container.danger { background: #FFEBEE; border: 2px solid var(--danger); }
.result-container.crisis { background: #FFEBEE; border: 3px solid #B71C1C; }

/* Gauge */
.gauge-container {
    margin-bottom: 25px;
}
.gauge-bg {
    height: 30px;
    background: linear-gradient(to right, 
        #4CAF50 0%, #4CAF50 20%, 
        #FFEB3B 20%, #FFEB3B 40%, 
        #FF9800 40%, #FF9800 60%, 
        #FF5722 60%, #FF5722 80%, 
        #F44336 80%, #F44336 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}
.gauge-bar {
    position: relative;
    height: 100%;
}
.gauge-fill {
    height: 100%;
    background: rgba(255,255,255,0.3);
    width: 0%;
    transition: width 1s ease-out;
}
.gauge-marker {
    position: absolute;
    top: -5px;
    width: 4px;
    height: 40px;
    background: #000;
    border: 2px solid #fff;
    border-radius: 2px;
    transform: translateX(-50%);
}

/* Result Box */
.result-box {
    text-align: center;
    margin-bottom: 25px;
}
.result-category {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.result-container.normal .result-category { color: var(--success); }
.result-container.caution .result-category { color: var(--warning); }
.result-container.warning .result-category { color: #FF9800; }
.result-container.danger .result-category { color: var(--danger); }
.result-container.crisis .result-category { color: #B71C1C; }

.result-reading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.result-message {
    font-size: 1.1rem;
    color: #555;
}

/* Recommendations */
.recommendations {
    background: rgba(255,255,255,0.7);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}
.recommendations h4 {
    margin-bottom: 15px;
    color: var(--primary);
}
.recommendations ul {
    padding-left: 20px;
}
.recommendations li {
    margin-bottom: 8px;
}

/* Result CTA */
.result-cta {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
}
.result-cta p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.btn-result {
    display: inline-block;
    background: var(--cta);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Ingredients Section */
.ingredients-section {
    padding: 60px 0;
    background: var(--white);
}
.ingredients-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.ingredients-section .section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.ingredient-card {
    text-align: center;
    padding: 25px;
    background: var(--bg);
    border-radius: 15px;
    transition: transform 0.3s;
}