:root {
    --bg: #f8fafc;
    --primary: #005eb8; /* NHS Blue */
    --primary-light: #e6f0ff;
    --text-dark: #0f172a;
    --text-dim: #64748b;
    --white: #ffffff;
    --divider: #e2e8f0;
    --accent-peak: #22c55e;
    --accent-low: #8b5cf6;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --glass: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--divider);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nhs-badge {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 800;
    padding: 4px 12px;
    font-size: 1.2rem;
    border-radius: 4px;
    letter-spacing: -1px;
}

.nhs-badge.small { font-size: 0.9rem; padding: 2px 8px; }

.nav-title {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, var(--primary-light) 0%, var(--bg) 100%);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 4rem;
}

.hero-image-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 8px solid var(--white);
}

.hero-image-container img {
    width: 100%;
    display: block;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    padding: 8rem 0;
}

.feature-grid.reverse {
    direction: rtl;
}

.feature-grid.reverse .feature-text {
    direction: ltr;
}

.feature-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

h2 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 900;
}

.feature-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease;
}

.feature-image img:hover {
    transform: scale(1.02);
}

/* Algo Cards */
.algo-cards {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.algo-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--divider);
    flex: 1;
}

.algo-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.algo-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Summary Bento */
.summary-section {
    padding: 8rem 0;
    text-align: center;
}

.summary-section h2 { margin-bottom: 1rem; }
.summary-section p { max-width: 600px; margin: 0 auto 4rem; }

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.bento-item {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    text-align: left;
    border: 1px solid var(--divider);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.bento-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.spec-list {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--divider);
    padding-bottom: 0.5rem;
}

.spec span { color: var(--text-dim); }
.spec strong { color: var(--primary); }

.divider {
    border: 0;
    border-top: 1px solid var(--divider);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.floating-img {
    animation: float 6s ease-in-out infinite;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--divider);
    text-align: center;
}

.footer-content p {
    font-size: 0.9rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .feature-grid, .feature-grid.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 0;
    }
    .bento-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
}
