:root {
    --brand-50: #f0f9ff;
    --brand-100: #e0f2fe;
    --brand-500: #0ea5e9;
    --brand-600: #0284c7;
    --brand-700: #0369a1;
    --brand-800: #075985;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --radius: 1rem;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --font-heading: 'Playfair Display', serif;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --max-w: 60rem; /* 960px max-width global */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* WCAG AA: Focus ring */
:focus-visible {
    outline: 3px solid var(--brand-500);
    outline-offset: 3px;
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-700);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Layout */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 1rem;
}

.section--alt {
    background: var(--bg-alt);
}

.text-center {
    text-align: center;
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Typography */
.heading-xl {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
}

.heading-lg {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
}

.heading-md {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
}

.text-lg {
    font-size: 1.125rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-700), #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-height: 44px; /* WCAG minimum touch target */
    min-width: 44px;
}

.btn--primary {
    background: var(--brand-600);
    color: white;
    box-shadow: 0 8px 30px rgba(2, 132, 199, 0.3);
}

.btn--primary:hover {
    background: var(--brand-700);
    transform: translateY(-2px);
}

.btn--outline {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--brand-600);
    color: var(--brand-600);
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-700);
    text-decoration: none;
}

.navbar-links {
    display: none;
    gap: 1.5rem;
}

.navbar-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: var(--brand-700);
}

/* Hero */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(to bottom, var(--brand-50), white);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--brand-100);
    color: var(--brand-800);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Hero Image */
.hero-image-wrapper {
    margin-top: 3rem;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Features List */
.feature-list {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.feature-list .icon {
    color: #10b981; /* green-500 */
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.video-facade {
    grid-column: span 2;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    background: #000;
}

/* Center the last 2 items (Item 25 & 26) in a 3-column layout */
.video-facade:nth-child(25) {
    grid-column: 2 / span 2;
}

.video-facade:nth-child(26) {
    grid-column: 4 / span 2;
}

.video-facade img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-facade:hover img {
    opacity: 1;
}

.play-btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: white;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulseGlow 2s infinite;
}

.play-btn-glow svg {
    width: 28px;
    height: 28px;
    margin-left: 4px; /* optical alignment */
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.video-facade iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    border: none;
}

/* Pricing Cards */
.pricing-card {
    text-align: center;
    position: relative;
}

.pricing-card.popular {
    background: var(--text); /* Dark Slate 900 */
    color: white;
    border-color: var(--text);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
    transform: scale(1.05);
}

.pricing-card.popular h3 {
    color: white;
}

.pricing-card.popular .price-strike {
    color: #f87171; /* red-400 */
}

.pricing-card.popular .price-actual {
    color: white;
}

.pricing-card.popular .feature-list li {
    color: #cbd5e1; /* slate-300 */
}

.pricing-card.popular .feature-list .icon {
    color: #10b981; /* keep the green check */
}

.pricing-card.popular .btn--primary {
    background: white;
    color: var(--text);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.pricing-card.popular .btn--primary:hover {
    background: var(--bg-alt);
    transform: translateY(-2px);
}

.pricing-card .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b; /* Amber 500 */
    color: white;
    padding: 0.35rem 1.25rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.price-strike {
    color: #ef4444; /* red-500 */
    text-decoration: line-through;
    font-size: 1.125rem;
    font-weight: 600;
}

.price-actual {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.5rem;
}

/* FAQ */
details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: white;
    margin-bottom: 1rem;
}

details summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    margin-bottom: 1rem;
    color: var(--brand-700);
}

details .faq-content {
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

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

.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 1rem 2rem;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

/* Responsive */
@media (min-width: 768px) {
    .navbar-links {
        display: flex;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-facade,
    .video-facade:nth-child(25),
    .video-facade:nth-child(26) {
        grid-column: 1 / -1;
    }
    
    .hero {
        padding-top: 6rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .btn--lg {
        width: 100%;
        justify-content: center;
    }
}
