@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary: #E8503A;
    --primary-dk: #C73E2B;
    --navy: #1A1F3A;
    --teal: #2EBDB6;
    --teal-dk: #239990;
    --gold: #F0B429;
    --bg: #FFFFFF;
    --bg-subtle: #F5F6FA;
    --bg-dark: #1A1F3A;
    --text: #1A1F3A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Navbar ── */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 var(--border);
    padding: 14px 0;
}

.navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--navy) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.critter-logo {
    width: 32px;
    height: 32px;
}

.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted) !important;
    margin: 0 4px;
    padding: 6px 12px !important;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--navy) !important;
    background: var(--bg-subtle);
}

/* ── Buttons ── */
.btn-playful {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
    border-radius: 50px;
    padding: 10px 24px;
    transition: all 0.2s ease;
}

.btn-primary-custom {
    background-color: var(--primary);
    border: none;
    color: #fff;
    box-shadow: 0 4px 0 var(--primary-dk);
}

.btn-primary-custom:hover {
    background-color: #D94433;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--primary-dk);
    color: #fff;
}

.btn-primary-custom:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--primary-dk);
}

.btn-secondary-custom {
    background-color: var(--teal);
    border: none;
    color: #fff;
    box-shadow: 0 4px 0 var(--teal-dk);
}

.btn-secondary-custom:hover {
    background-color: #28AAA3;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--teal-dk);
    color: #fff;
}

.btn-secondary-custom:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--teal-dk);
}

/* ── Hero ── */
.hero-section {
    padding: 140px 0 100px;
    background: linear-gradient(160deg, #F5F6FA 0%, #EEF0F8 60%, #E8F4F8 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(46, 189, 182, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(232, 80, 58, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 3.25rem;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: var(--navy);
}

.hero-title span {
    color: var(--primary);
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.7;
}

.floating-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.25;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(8deg);
    }
}

/* ── Stats ── */
.stats-section {
    padding: 56px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.stat-emoji {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-purple {
    color: #6D28D9;
}

.color-blue {
    color: #1D4ED8;
}

.color-gold {
    color: var(--gold);
}

/* ── Section headings ── */
.section-eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.5px;
    color: var(--navy);
    margin-bottom: 14px;
}

/* ── Feature cards ── */
.card-custom {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    background: var(--bg);
    padding: 32px 28px;
}

.card-custom:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07);
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

/* ── Course cards ── */
.badge-duration {
    background-color: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid var(--border);
    letter-spacing: 0.3px;
}

/* ── Demo section ── */
.demo-section {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0;
    border-radius: var(--radius-lg);
    margin: 0 16px;
    box-shadow: 0 24px 64px rgba(26, 31, 58, 0.25);
}

.demo-section p.lead {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
}

.editor-window {
    background: #0D1117;
    border-radius: var(--radius-md);
    border: 1px solid #30363D;
    overflow: hidden;
}

.editor-header {
    background: #161B22;
    padding: 10px 14px;
    display: flex;
    gap: 6px;
    align-items: center;
    border-bottom: 1px solid #30363D;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #FF5F56;
}

.dot.yellow {
    background: #FFBD2E;
}

.dot.green {
    background: #27C93F;
}

.editor-body {
    padding: 24px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #C9D1D9;
    min-height: 200px;
    line-height: 1.7;
}

.output-window {
    background: white;
    color: var(--text);
    border-radius: var(--radius-md);
    padding: 24px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px dashed var(--border);
    color: var(--text-muted);
}

/* ── Reviews ── */
.reviews-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.review-card::before {
    content: "\201C";
    font-family: Georgia, serif;
    position: absolute;
    top: 16px;
    left: 22px;
    font-size: 4rem;
    line-height: 1;
    color: var(--teal);
    opacity: 0.2;
}

.parent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

/* ── Modals ── */
.modal-content {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 24px 28px 20px;
}

.modal-body {
    padding: 28px;
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(46, 189, 182, 0.15);
    border-color: var(--teal);
    background: white;
    outline: none;
}

.form-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

/* ── Footer ── */
footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 32px;
}

.footer-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-contact:hover {
    color: white;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: white;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 32px 0 20px;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}