/* ============================================================
   Hansen Software — Main Stylesheet
   Modern, clean, professional design with generous white space.
   ============================================================ */

/* --- CSS Custom Properties (overridden by PHP-generated :root) --- */
:root {
    --primary: #1B3A5C;
    --secondary: #2F80ED;
    --accent: #10B981;
    --text: #1E293B;
    --light-bg: #F8FAFC;
    --dark-bg: #0F172A;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'DM Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --max-width: 1200px;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--primary);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; color: var(--gray-600); }

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

.section {
    padding: 80px 0;
}

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

.section--dark {
    background: var(--dark-bg);
    color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark p { color: var(--white); }
.section--dark p { opacity: 0.85; }

/* --- Top Bar --- */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    padding: 8px 0;
    text-align: center;
    letter-spacing: 0.02em;
}

.top-bar a { color: rgba(255,255,255,0.95); }
.top-bar a:hover { color: var(--white); }

/* --- Header / Navbar --- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 72px;
}

.logo img {
    height: 42px;
    width: auto;
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav > li {
    position: relative;
    list-style: none;
}

.main-nav > li > a,
.main-nav > li > span {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav > li > a:hover,
.main-nav > li > span:hover,
.main-nav > li:hover > a,
.main-nav > li:hover > span {
    background: var(--gray-50);
    color: var(--secondary);
}

.main-nav .caret {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: transform var(--transition);
}

.main-nav > li:hover .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 260px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    list-style: none;
    z-index: 100;
}

.main-nav > li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--gray-600);
    border-radius: 8px;
    transition: all var(--transition);
}

.dropdown li a:hover {
    background: var(--light-bg);
    color: var(--secondary);
    padding-left: 18px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    margin: 5px auto;
    transition: all var(--transition);
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--font-display);
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
.btn--primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}
.btn--outline:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn--accent:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn--white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn--white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn--gradient {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: var(--white);
    border-color: transparent;
}
.btn--gradient:hover {
    background: linear-gradient(135deg, #2570d4 0%, #0da372 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg { padding: 18px 36px; font-size: 1rem; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Hero Section --- */
.hero {
    position: relative;
    background: linear-gradient(145deg, var(--primary) 0%, #0D2137 100%);
    color: var(--white);
    padding: 100px 0 120px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(47,128,237,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.hero .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16,185,129,0.15);
    color: #6EE7B7;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    max-width: 640px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-page {
    padding: 60px 0 70px;
}

.hero-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* --- Cards --- */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

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

.card__icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
}

.card__title {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.card__text {
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Pricing Section --- */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.pricing-toggle .toggle-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: color var(--transition);
}

.pricing-toggle .toggle-label.active { color: var(--primary); }

.toggle-switch {
    position: relative;
    width: 56px;
    height: 30px;
    cursor: pointer;
}

.toggle-switch input { display: none; }

.toggle-switch .slider-track {
    position: absolute;
    inset: 0;
    background: var(--gray-300);
    border-radius: 999px;
    transition: background var(--transition);
}

.toggle-switch input:checked + .slider-track { background: var(--secondary); }

.toggle-switch .slider-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

.toggle-switch input:checked ~ .slider-thumb { transform: translateX(26px); }

.pricing-card {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
    background: var(--white);
    position: relative;
    transition: all var(--transition);
}

.pricing-card.recommended {
    border-color: var(--secondary);
    box-shadow: 0 0 0 1px var(--secondary), var(--shadow-xl);
    transform: scale(1.03);
}

.pricing-card .badge-rec {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    padding: 4px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 999px;
    letter-spacing: 0.06em;
}

.pricing-card h3 { margin-bottom: 6px; }

.pricing-card .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 16px 0 4px;
}

.pricing-card .price-note {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-card ul li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.pricing-card ul li::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--accent);
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center / contain no-repeat;
    margin-top: 2px;
}

/* --- Comparison Table --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comparison-table th:first-child { border-radius: 12px 0 0 0; }
.comparison-table th:last-child { border-radius: 0 12px 0 0; }

.comparison-table tr:nth-child(even) { background: var(--gray-50); }
.comparison-table tr:hover { background: rgba(47,128,237,0.04); }

.check { color: var(--accent); font-weight: 700; }
.dash { color: var(--gray-400); }

/* --- Testimonials / Reviews --- */
.review-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}

.review-card::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--secondary);
    opacity: 0.1;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.review-card .review-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.review-card .reviewer {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.review-card .reviewer-title {
    font-size: 0.82rem;
    color: var(--gray-500);
}

.stars { display: flex; gap: 2px; margin-bottom: 12px; }
.stars .star { width: 18px; height: 18px; color: #F59E0B; }

/* --- FAQ Accordion --- */
.faq-category { margin-bottom: 40px; }
.faq-category h3 { margin-bottom: 16px; }

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item.open { border-color: var(--secondary); }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--white);
    transition: background var(--transition);
}

.faq-question:hover { background: var(--gray-50); }

.faq-question .icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition);
    color: var(--secondary);
    flex-shrink: 0;
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--gray-600);
}

/* --- Blog Cards --- */
.blog-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    background: var(--white);
}

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

.blog-card__image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__body { padding: 24px; }

.blog-card__date {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-card__title { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card__excerpt { font-size: 0.9rem; margin-bottom: 16px; }

/* --- Contact Form --- */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(47,128,237,0.12);
}

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='%236B7280' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

/* --- Footer --- */
.site-footer {
    background: var(--dark-bg);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: all var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    margin-left: 20px;
}

.footer-bottom a:hover { color: var(--white); }

/* --- CTA Banner --- */
.cta-banner {
    /*background: linear-gradient(135deg, var(--secondary), var(--primary));*/
    /*background: linear-gradient(135deg, var(--secondary), #07111d);*/
    background: linear-gradient(145deg, var(--primary) 0%, #0D2137 100%);
    color: var(--white);
    padding: 64px 0;
    text-align: center;
}

.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 28px; }

/* --- Admin Edit Link --- */
.admin-edit-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    gap: 8px;
}

.admin-edit-link a {
    background: var(--primary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
}

.admin-edit-link a:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Phone Systems Grid --- */
.phone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.phone-badge {
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-700);
    text-align: center;
    transition: all var(--transition);
}

.phone-badge:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
    color: var(--secondary);
}

/* --- Page Content Styles --- */
.page-content {
    font-size: 1rem;
    line-height: 1.85;
}

.page-content a { text-decoration: underline; }

.page-content h2 { margin: 48px 0 20px; }
.page-content h3 { margin: 32px 0 16px; }
.page-content p { margin-bottom: 16px; }

.page-content ul,
.page-content ol {
    margin: 16px 0;
    padding-left: 28px;
}

.page-content ul li,
.page-content ol li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* --- Alerts & Flash Messages --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert--success {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.25);
    color: #065F46;
}

.alert--error {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.25);
    color: #991B1B;
}

.alert--info {
    background: rgba(47,128,237,0.08);
    border-color: rgba(47,128,237,0.25);
    color: #1E40AF;
}

/* --- Video Embed --- */
.video-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: all var(--transition);
}

.video-card:hover { box-shadow: var(--shadow-lg); }

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card__body { padding: 20px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-xl);
        max-height: 80vh;
        overflow-y: auto;
    }

    .main-nav.open { display: flex; }

    .main-nav > li > a,
    .main-nav > li > span {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--secondary);
        margin-left: 16px;
        padding: 4px 0 4px 8px;
        display: none;
    }

    .main-nav > li.open > .dropdown { display: block; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    .hero { padding: 60px 0 80px; }
    .section { padding: 56px 0; }

    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom a { margin-left: 0; }

    .pricing-card.recommended { transform: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .btn-group { flex-direction: column; }
    .btn-group .btn { width: 100%; justify-content: center; }
}

/* --- Animation / Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.15s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.25s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.3s; }

/* --- Loading spinner --- */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }
