/* ========================================
   Camplify - Summer Camp Management Software
   Clean, Modern, Minimal
   ======================================== */

:root {
    --primary: #38b6ff;
    --primary-light: #5FC5FE;
    --primary-dark: #1E9DE8;
    --accent: #10B981;
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-subtle: #F3F4F6;
    --bg-app: #F8FAFC;
    --sky-50: #f0f9ff;
    --section-glow: radial-gradient(ellipse, rgba(56, 183, 254, 0.14) 0%, transparent 70%);
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@font-face {
    font-family: 'Opun Mai';
    src: url('./fonts/OpunMai-Regular.woff2') format('woff2'),
         url('./fonts/OpunMai-Regular.woff') format('woff'),
         url('./fonts/OpunMai-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Opun Mai';
    src: url('./fonts/OpunMai-Bold.woff2') format('woff2'),
         url('./fonts/OpunMai-Bold.woff') format('woff'),
         url('./fonts/OpunMai-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px 8px 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, background 0.3s ease;
    white-space: nowrap;
    gap: 8px;
    width: 90%;
    opacity: 0.95;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border: 1.5px solid var(--primary);
    box-sizing: border-box;
    height: 36px;
    transition: all 0.2s ease;
}

.nav-btn-secondary:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 183, 254, 0.25);
}

.nav-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: var(--text-dark);
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    box-sizing: border-box;
    height: 36px;
}

.nav-btn-primary:hover {
    background: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-image {
    width: 110px;
    height: auto;
    display: block;
    margin-left: 15px;
    margin-right: 15px;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.04);
}

/* ========================================
   Header / Hero
   ======================================== */

.header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Dark overlay with gradient for better text readability */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.72) 0%,
            rgba(15, 23, 42, 0.42) 46%,
            rgba(15, 23, 42, 0.32) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(15, 23, 42, 0.45) 0%,
            rgba(15, 23, 42, 0.28) 50%,
            rgba(15, 23, 42, 0.62) 100%
        );
    pointer-events: none;
    z-index: 1;
}

/* Warm tint overlay to enhance the campfire ambiance */
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(234, 88, 12, 0.1) 0%,
        transparent 50%,
        rgba(56, 183, 254, 0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.7fr);
    align-items: center;
    gap: 24px 28px;
    text-align: left;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 132px 32px 56px;
    position: relative;
    z-index: 2;
}

.hero-copy {
    animation: fadeUp 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(36px, 4.6vw, 62px);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-headline-static,
.hero-rotating-word {
    display: inline-block;
    font-size: 1.2em;
}

.hero-rotating-word {
    transition: opacity 0.5s ease;
}

.hero-rotating-word--out {
    opacity: 0;
}

.hero p {
    font-size: clamp(16px, 1.7vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 42ch;
    margin-bottom: 28px;
    line-height: 1.7;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 16px rgba(56, 183, 254, 0.4), 0 1px 4px rgba(0, 0, 0, 0.1);
    animation: fadeUp 0.8s ease-out 0.2s backwards;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

.cta-button::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(56, 183, 254, 0.5), 0 2px 8px rgba(0, 0, 0, 0.12);
    filter: brightness(1.05);
}

.cta-button:hover::after {
    transform: translateX(3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator div:last-child {
    font-size: 20px !important;
    opacity: 0.8;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ========================================
   Showcase — SaaS app window frame
   ======================================== */

.showcase-backdrop {
    position: relative;
    padding: 32px 0 24px;
}

/* 70–75% viewport width, centered; extends into features for natural transition */
.hero-showcase-backdrop {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 8px;
}

.showcase-duo {
    position: relative;
    padding: 12px 0 124px;
}

.showcase-frame {
    position: relative;
    margin-left: 7%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.04),
                0 8px 24px rgb(0 0 0 / 0.1),
                0 32px 64px rgb(0 0 0 / 0.18),
                0 0 0 1px rgb(0 0 0 / 0.04),
                0 0 120px -20px rgba(56, 183, 254, 0.25);
}

.showcase-phone {
    position: absolute;
    left: 10.5%;
    bottom: 28px;
    width: 18.5%;
    min-width: 118px;
    max-width: 158px;
    z-index: 4;
    pointer-events: none;
    container-type: inline-size;
}

.showcase-phone-bezel {
    background: #fff;
    border-radius: 15.5cqw;
    padding: 1.8cqw;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 22px 50px rgba(15, 23, 42, 0.22),
        0 6px 16px rgba(15, 23, 42, 0.1);
}

.showcase-phone-screen {
    --hero-scale: 1;
    position: relative;
    overflow: hidden;
    border-radius: 13.7cqw;
    clip-path: inset(0 round 13.7cqw);
    line-height: 0;
    aspect-ratio: 496 / 1024;
    container-type: inline-size;
    box-shadow: inset 0 0 0 0.6px rgba(15, 23, 42, 0.22);
    background: #f8fafc;
}

/* Browser / app chrome bar */
.showcase-window {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    container-type: inline-size;
}

.showcase-window-bar {
    display: flex;
    align-items: center;
    height: max(20px, 3.32cqw);
    padding: 0 max(8px, 1.37cqw);
    background: #fff;
    flex-shrink: 0;
}

.showcase-window-dots {
    display: flex;
    align-items: center;
    gap: max(4px, 0.78cqw);
}

.showcase-window-dots span {
    width: max(7px, 1.17cqw);
    height: max(7px, 1.17cqw);
    border-radius: 50%;
    flex-shrink: 0;
}

.showcase-window-dots .tl-close {
    background: radial-gradient(circle at 30% 28%, #ff9a95 0%, #FF5F57 55%, #e0443e 100%);
    box-shadow: 0 0 0 0.5px #de413b;
}

.showcase-window-dots .tl-min {
    background: radial-gradient(circle at 30% 28%, #ffd56a 0%, #FEBC2E 55%, #e0a01a 100%);
    box-shadow: 0 0 0 0.5px #d89e16;
}

.showcase-window-dots .tl-zoom {
    background: radial-gradient(circle at 30% 28%, #62e06a 0%, #28C840 55%, #1aad2e 100%);
    box-shadow: 0 0 0 0.5px #17a32b;
}

/* Content area: HTML mockup scaled to the window width */
.showcase-window-content {
    --hero-scale: 1;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 1024 / 522;
    container-type: inline-size;
}

@supports (width: 1cqw) {
    .showcase-window-content {
        --hero-scale: calc(100cqw / 1280px);
    }

    .showcase-phone-screen {
        --hero-scale: calc(100cqw / 496px);
    }
}

/* Fade lower edge to suggest more content */
.showcase-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.95) 100%);
    pointer-events: none;
    z-index: 2;
}

/* ========================================
   Hero HTML/CSS product mockups
   Designed at a fixed canvas, then scaled with the device frame.
   ======================================== */

.hero-mk-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.hero-mk-icon {
    width: 1em;
    height: 1em;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.hero-desk,
.hero-phone {
    --mk-bg: #f8fafc;
    --mk-surface: #ffffff;
    --mk-surface-2: #f1f5f9;
    --mk-text: #0f172a;
    --mk-text-2: #64748b;
    --mk-border: #e2e8f0;
    --mk-border-light: #e9edf2;
    --mk-accent: #38b6ff;
    --mk-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --mk-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--mk-text);
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
}

.hero-desk {
    --hero-desk-w: 1280px;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: var(--hero-desk-w);
    height: calc(var(--hero-desk-w) * 522 / 1024);
    background: var(--mk-bg);
    transform-origin: top left;
    transform: scale(var(--hero-scale, 1));
}

.hero-desk-canvas {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.mockup-sidebar {
    flex: 0 0 90px;
    display: flex;
    padding: 12px 12px 12px 12px;
}

.mockup-sidebar-panel {
    width: 66px;
    display: flex;
    flex-direction: column;
    background: var(--mk-surface);
    border: 1px solid var(--mk-border-light);
    border-radius: 18px;
    box-shadow: var(--mk-shadow-md);
    padding: 12px 8px;
}

.mockup-sidebar-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.mockup-sidebar-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.mockup-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mockup-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: 14px;
    color: var(--mk-text-2);
}

.mockup-nav-btn .hero-mk-icon {
    width: 20px;
    height: 20px;
}

.mockup-nav-btn.is-active {
    color: var(--mk-accent);
    background: rgba(56, 182, 255, 0.12);
}

.mockup-sidebar-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.mockup-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 6px 0 2px;
    border-radius: 999px;
    background: var(--mk-surface-2);
    border: 1px solid var(--mk-border-light);
    color: var(--mk-text);
    font-size: 11px;
    font-weight: 600;
}

.mockup-main {
    flex: 1;
    min-width: 0;
    padding: 16px 24px 16px 8px;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.mockup-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-header-title .mockup-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--mk-text);
    letter-spacing: -0.02em;
}

.mockup-info {
    width: 16px;
    height: 16px;
    color: var(--mk-text-2);
}

.mockup-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    background: var(--mk-surface);
    border: 1px solid var(--mk-border-light);
    border-radius: 4px;
    box-shadow: var(--mk-shadow);
    font-size: 13px;
    font-weight: 500;
    color: var(--mk-text);
}

.mockup-date-pill .hero-mk-icon {
    width: 17px;
    height: 17px;
    color: var(--mk-text-2);
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.mockup-stat-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    background: var(--mk-surface);
    border: 1px solid var(--mk-border-light);
    border-radius: 12px;
    box-shadow: var(--mk-shadow);
    padding: 20px 16px;
    min-width: 0;
}

.mockup-stat-label {
    font-size: 13px;
    color: var(--mk-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--mk-text);
    line-height: 1.2;
}

.mockup-stat-menu {
    width: 16px;
    height: 16px;
    color: var(--mk-text-2);
    margin-top: -2px;
}

.mockup-widgets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.mockup-widgets-row {
    display: flex;
    gap: 8px;
    height: 350px;
}

.mockup-birthdays,
.mockup-schedule {
    background: var(--mk-surface);
    border: 1px solid var(--mk-border-light);
    border-radius: 12px;
    box-shadow: var(--mk-shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.mockup-birthdays {
    flex: 0 0 248px;
    padding: 16px 0 8px;
}

.mockup-widget-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 8px;
    color: var(--mk-text-2);
}

.mockup-widget-head .mockup-kicker,
.mockup-schedule-head .mockup-kicker {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--mk-text);
}

.mockup-widget-head .hero-mk-icon {
    width: 18px;
    height: 18px;
}

.mockup-count-pill {
    margin-left: auto;
    border-radius: 8px;
    background: var(--mk-bg);
    border: 1px solid var(--mk-border-light);
    color: var(--mk-text-2);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
}

.mockup-filter-field {
    margin: 0 16px 10px;
    padding: 10px 12px;
    border: 1px solid var(--mk-border);
    border-radius: 4px;
    font-size: 13px;
    color: var(--mk-text-2);
    background: var(--mk-surface);
}

.mockup-bday-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 12px 8px 16px;
    overflow: hidden;
}

.mockup-bday-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: var(--mk-bg);
    border: 1px solid var(--mk-border-light);
    border-radius: 4px;
    font-size: 13px;
    color: var(--mk-text-2);
    min-width: 0;
}

.mockup-bday-row.is-today {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.mockup-bday-row .hero-mk-icon {
    width: 16px;
    height: 16px;
    color: var(--mk-text-2);
}

.mockup-bday-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--mk-text);
    font-weight: 500;
}

.mockup-bday-sep {
    width: 1px;
    height: 12px;
    background: var(--mk-border);
    flex-shrink: 0;
}

.mockup-schedule {
    flex: 1;
}

.mockup-schedule-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--mk-border-light);
}

.mockup-schedule-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--mk-text-2);
}

.mockup-schedule-actions .hero-mk-icon {
    width: 16px;
    height: 16px;
}

.mockup-view-toggle {
    display: flex;
    border: 1px solid var(--mk-border-light);
    border-radius: 4px;
    overflow: hidden;
}

.mockup-view-toggle .hero-mk-icon {
    width: 14px;
    height: 14px;
    padding: 6px 8px;
    box-sizing: content-box;
}

.mockup-view-toggle .hero-mk-icon.is-on {
    color: var(--mk-accent);
    background: rgba(56, 182, 255, 0.1);
}

.mockup-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--mk-border-light);
    color: var(--mk-text-2);
}

.mockup-stats-bar span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mk-text);
}

.mockup-stats-bar .hero-mk-icon {
    width: 16px;
    height: 16px;
    color: var(--mk-text-2);
}

.mockup-event-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    overflow: hidden;
}

.mockup-event-row {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: var(--mk-bg);
    border-radius: 4px;
    min-width: 0;
}

.mockup-event-bar {
    width: 4px;
    border-radius: 2px;
    background: var(--mk-event, var(--mk-accent));
    flex-shrink: 0;
}

.mockup-event-body {
    flex: 1;
    min-width: 0;
}

.mockup-event-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mockup-event-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--mk-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-event-time {
    white-space: nowrap;
    font-size: 12px;
    color: var(--mk-text-2);
}

.mockup-event-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--mk-text);
    flex-shrink: 0;
}

.mockup-event-count .hero-mk-icon {
    width: 12px;
    height: 12px;
    color: var(--mk-text-2);
}

.mockup-event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 11px;
    color: var(--mk-text-2);
    min-width: 0;
}

.mockup-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mockup-event-meta .hero-mk-icon {
    width: 12px;
    height: 12px;
    opacity: 0.7;
    flex-shrink: 0;
}

.mockup-meta-div {
    color: var(--mk-border);
    flex-shrink: 0;
}

/* Phone calendar mockup */
.hero-phone {
    --hero-phone-w: 496px;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: var(--hero-phone-w);
    height: calc(var(--hero-phone-w) * 1024 / 496);
    background: var(--mk-bg);
    transform-origin: top left;
    transform: scale(var(--hero-scale, 1));
}

.hero-phone-canvas {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.mockup-phone-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: var(--mk-surface);
    border-bottom: 1px solid var(--mk-border-light);
    box-shadow: var(--mk-shadow);
    flex-shrink: 0;
}

.mockup-phone-brand img {
    width: 120px;
    height: auto;
    display: block;
}

.mockup-cal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 8px 0;
    padding: 8px;
    background: var(--mk-surface);
    border: 1px solid var(--mk-border-light);
    border-radius: 12px;
    box-shadow: var(--mk-shadow);
    flex-shrink: 0;
}

.mockup-cal-date {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mockup-cal-weekday {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--mk-text);
}

.mockup-cal-day {
    font-size: 13px;
    font-weight: 500;
    color: var(--mk-text-2);
    line-height: 1.25;
}

.mockup-cal-controls {
    display: flex;
    gap: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mockup-cal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: var(--mk-surface);
    border: 1px solid var(--mk-border);
    border-radius: 4px;
    color: var(--mk-text);
    font-size: 12px;
    font-weight: 500;
}

.mockup-cal-btn .hero-mk-icon {
    width: 16px;
    height: 16px;
}

.mockup-split-btn {
    display: inline-flex;
    align-items: center;
    background: var(--mk-accent);
    color: #fff;
    border-radius: 4px;
    box-shadow: var(--mk-shadow);
    height: 36px;
    padding: 0 4px 0 8px;
    flex-shrink: 0;
}

.mockup-split-btn .hero-mk-icon {
    width: 18px;
    height: 18px;
}

.mockup-split-div {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 4px;
}

.mockup-split-caret {
    width: 14px !important;
    height: 14px !important;
}

.mockup-phone-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    margin: 8px 8px 0;
    padding: 8px;
    background: var(--mk-surface);
    border: 1px solid var(--mk-border-light);
    border-radius: 12px;
    box-shadow: var(--mk-shadow);
    flex-shrink: 0;
}

.mockup-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--mk-border);
    border-radius: 4px;
    color: var(--mk-text-2);
    font-size: 13px;
    background: var(--mk-surface);
}

.mockup-search .hero-mk-icon {
    width: 16px;
    height: 16px;
}

.mockup-filter-icon,
.mockup-view-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--mk-text-2);
}

.mockup-filter-icon .hero-mk-icon,
.mockup-view-btn .hero-mk-icon {
    width: 20px;
    height: 20px;
}

.mockup-view-btn {
    background: var(--mk-accent);
    color: #fff;
}

.mockup-filter-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--mk-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.mockup-chip-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--mk-border-light);
    min-width: 0;
}

.mockup-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 70%;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--mk-surface-2);
    border: 1px solid var(--mk-border);
    font-size: 12px;
    font-weight: 500;
    color: var(--mk-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-filter-chip .hero-mk-icon {
    width: 12px;
    height: 12px;
    color: var(--mk-text-2);
}

.mockup-cal-link {
    margin-left: auto;
    color: var(--mk-accent);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.mockup-calendar {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 80px 1fr;
    margin: 8px 8px 0;
    background: var(--mk-surface);
    border: 1px solid var(--mk-border-light);
    border-radius: 12px;
    box-shadow: var(--mk-shadow);
    overflow: hidden;
}

.mockup-cal-times {
    position: relative;
    border-right: 1px solid var(--mk-border);
    background: var(--mk-surface-2);
    min-height: 100%;
}

.mockup-cal-grid {
    position: relative;
    min-height: 100%;
}

.mockup-cal-time-label,
.mockup-cal-grid-head {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--mk-text-2);
    border-bottom: 1px solid var(--mk-border);
}

.mockup-cal-grid-head {
    justify-content: flex-end;
    padding-right: 8px;
    color: var(--mk-text-2);
}

.mockup-cal-grid-head .hero-mk-icon {
    width: 14px;
    height: 14px;
}

.mockup-cal-hour {
    height: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--mk-text);
    border-bottom: 1px solid var(--mk-border-light);
}

.mockup-time-blocks {
    position: absolute;
    top: 0;
    right: 4px;
    width: 10px;
    bottom: 0;
}

.mockup-time-blocks span {
    position: absolute;
    left: 0;
    width: 10px;
    border-radius: 4px;
    background: rgb(196, 199, 203);
}

.mockup-cal-lines {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 79px,
        var(--mk-border-light) 79px,
        var(--mk-border-light) 80px
    );
}

.mockup-event-block {
    position: absolute;
    left: 6px;
    right: 6px;
    z-index: 2;
    overflow: hidden;
    padding: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    box-shadow: var(--mk-shadow-md);
    color: #fff;
}

.mockup-event-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.mockup-event-room,
.mockup-event-groups {
    font-size: 11px;
    line-height: 1.35;
    opacity: 0.95;
}

.mockup-phone-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 56px;
    margin: 10px 22px 16px;
    padding: 0 10px;
    background: var(--mk-surface);
    border: 1px solid var(--mk-border-light);
    border-radius: 999px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.mockup-phone-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: var(--mk-text-2);
}

.mockup-phone-nav-btn .hero-mk-icon {
    width: 22px;
    height: 22px;
}

.mockup-phone-nav-btn.is-active {
    color: var(--mk-accent);
    background: rgba(56, 182, 255, 0.12);
}

.mockup-phone-nav .mockup-avatar {
    width: 32px;
    height: 32px;
    margin: 0;
    font-size: 11px;
}

/* Thumbnails: manual swap, no auto-rotate */

/* Tablet / phone: stack copy above devices */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 140px 24px 32px;
        gap: 24px;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1,
    .hero p {
        text-align: center;
    }

    .hero p {
        max-width: 46ch;
    }

    .hero-showcase-backdrop {
        width: min(92vw, 720px);
        margin: 0 auto -36px;
        padding: 0;
    }

    .showcase-duo {
        padding: 8px 0 96px;
    }

    .showcase-frame {
        margin-left: 8%;
    }

    .showcase-phone {
        left: 8.5%;
        bottom: 22px;
        width: 20%;
        min-width: 108px;
        max-width: 136px;
    }
}

/* Mobile: simplify frame, keep primary prominent */
@media (max-width: 768px) {
    .showcase-backdrop {
        padding: 20px 0 16px;
    }

    .hero-showcase-backdrop {
        width: 92vw;
        margin: 8px auto -36px;
    }

    .showcase-duo {
        padding: 4px 0 80px;
    }

    .showcase-frame {
        margin-left: 8%;
        border-radius: 10px;
    }

    .showcase-fade {
        height: 48px;
    }

    .showcase-phone {
        width: 22%;
        min-width: 100px;
        max-width: 124px;
        left: 7%;
        bottom: 18px;
    }
}

/* ========================================
   Features wrap + sticky scroll
   ======================================== */

.features-wrap {
    position: relative;
    scroll-margin-top: 80px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 250, 252, 0.45) 40%, rgba(255, 255, 255, 0.6) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 47px,
            rgba(56, 182, 255, 0.2) 47px,
            rgba(56, 182, 255, 0.2) 48px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 47px,
            rgba(56, 182, 255, 0.2) 47px,
            rgba(56, 182, 255, 0.2) 48px
        );
    background-color: #f8fafc;
}

.feature-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.sticky-scroll-section {
    height: 340vh;
    position: relative;
}

.sticky-scroll-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    overflow: hidden;
}

/* ── Left: text ── */

.sticky-scroll-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sticky-text-items {
    position: relative;
    min-height: 340px;
}

.sticky-text-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sticky-text-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-text-item h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.sticky-text-item p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.75;
    max-width: 42ch;
}

/* Progress dots */

.sticky-progress {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sticky-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    transition: width 0.35s ease, background 0.35s ease;
}

.sticky-dot.active {
    width: 28px;
    background: var(--primary);
}

/* ── Right: crossfading images ── */

.sticky-scroll-right {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(56, 182, 255, 0.18);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 24px 60px rgba(30, 157, 232, 0.12),
        0 8px 24px rgba(15, 23, 42, 0.08);
    container-type: inline-size;
}

.sticky-image-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-image-item.active {
    opacity: 1;
    transform: scale(1);
}

.sticky-image-item--preview {
    display: flex;
    padding: 3.2% 4.2% 3%;
    background: #fff;
    overflow: hidden;
}

.sticky-image-item--preview:has(.electives-ui) {
    padding-top: 2.4%;
}

.sticky-image-item--preview:has(.programs-ui) {
    padding: 2.4% 3.2% 1.6%;
}

.electives-ui {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    font-size: clamp(10px, 1.95cqi, 14px);
    color: var(--text-medium);
}

.electives-block {
    min-width: 0;
}

.electives-block:last-child {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.electives-heading {
    font-size: 0.95em;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.4em;
}

.electives-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5em;
}

.electives-metric,
.electives-day {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.7em;
}

.electives-metric {
    padding: 0.5em 0.65em 0.5em;
}

.electives-metric-value {
    display: block;
    font-size: 1.55em;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.05;
    margin-bottom: 0.18em;
    letter-spacing: -0.03em;
}

.electives-metric-label {
    display: block;
    font-size: 0.78em;
    line-height: 1.3;
    color: #6b7280;
}

.electives-days {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    flex: 1;
}

.electives-day {
    padding: 0.48em 0.7em 0.5em;
}

.electives-day-date {
    font-size: 0.9em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.28em;
    letter-spacing: -0.01em;
}

.electives-chip {
    display: inline-block;
    padding: 0.18em 0.65em;
    border-radius: 999px;
    border: 1px solid var(--primary);
    background: rgba(56, 182, 255, 0.08);
    color: var(--primary-dark);
    font-size: 0.75em;
    font-weight: 500;
    line-height: 1.4;
}

/* Auto-scheduler preview */
.scheduler-ui {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    font-size: clamp(9px, 1.7cqi, 13px);
    color: var(--text-medium);
    min-width: 0;
}

.scheduler-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5em;
}

.scheduler-name {
    font-size: 1.05em;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.scheduler-meta {
    font-size: 0.72em;
    color: #9ca3af;
    margin-top: 0.12em;
}

.scheduler-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4em;
}

.scheduler-field {
    border: 1px solid #e5e7eb;
    border-radius: 0.5em;
    background: #fff;
    padding: 0.28em 0.4em 0.35em;
    min-width: 0;
}

.scheduler-field-label {
    font-size: 0.68em;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.2em;
}

.scheduler-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2em;
    align-items: center;
}

.scheduler-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    max-width: 100%;
    padding: 0.08em 0.4em;
    border-radius: 999px;
    background: rgba(56, 182, 255, 0.14);
    color: var(--primary-dark);
    font-size: 0.68em;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scheduler-chip i {
    font-style: normal;
    opacity: 0.7;
    font-size: 0.9em;
}

.scheduler-more {
    font-size: 0.68em;
    color: #9ca3af;
    font-weight: 500;
}

.scheduler-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.55em;
}

.scheduler-toggle {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 0.12em;
    font-size: 0.72em;
    font-weight: 600;
    flex-shrink: 0;
}

.scheduler-toggle span {
    padding: 0.18em 0.55em;
    border-radius: 999px;
    color: #6b7280;
}

.scheduler-toggle .is-on {
    background: var(--primary);
    color: #fff;
}

.scheduler-toggle-hint {
    font-size: 0.72em;
    color: #9ca3af;
}

.scheduler-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4em;
}

.scheduler-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.55em;
    background: #fff;
    padding: 0.45em 0.5em 0.5em;
    min-width: 0;
}

.scheduler-card-name {
    display: flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.78em;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.4em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scheduler-dot {
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    flex-shrink: 0;
}

.scheduler-inputs {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 0.3em;
}

.scheduler-input {
    display: flex;
    align-items: center;
    gap: 0.25em;
    border: 1px solid #e5e7eb;
    border-radius: 0.4em;
    padding: 0.22em 0.35em;
    font-size: 0.7em;
    color: #374151;
    min-width: 0;
}

.scheduler-input-ico {
    color: #9ca3af;
    flex-shrink: 0;
}

.scheduler-input-x {
    margin-left: auto;
    color: #9ca3af;
}

.scheduler-input-suffix {
    margin-left: auto;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Programs preview */
.programs-ui {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.55em;
    font-size: clamp(11px, 2.2cqi, 15.5px);
    color: var(--text-medium);
    min-width: 0;
}

.programs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55em;
    flex-shrink: 0;
}

.programs-title {
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: 1.22em;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.programs-info {
    width: 1.05em;
    height: 1.05em;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    color: #9ca3af;
    font-size: 0.64em;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.programs-add {
    display: inline-flex;
    align-items: stretch;
    background: var(--primary);
    color: #fff;
    border-radius: 0.5em;
    font-size: 0.82em;
    font-weight: 600;
    overflow: hidden;
}

.programs-add span {
    padding: 0.38em 0.62em;
}

.programs-add-caret {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0.38em 0.45em;
}

.programs-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-shrink: 0;
}

.programs-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4em;
    border: 1px solid #e5e7eb;
    border-radius: 0.5em;
    padding: 0.4em 0.58em;
    color: #9ca3af;
    font-size: 0.82em;
    min-width: 0;
}

.programs-filter {
    font-size: 0.82em;
    font-weight: 600;
    color: var(--primary-dark);
    white-space: nowrap;
}

.programs-views {
    display: inline-flex;
    gap: 0.18em;
    margin-left: auto;
}

.programs-view {
    width: 1.55em;
    height: 1.55em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.35em;
    color: #9ca3af;
    font-size: 0.9em;
}

.programs-view.is-on {
    background: rgba(56, 182, 255, 0.16);
    color: var(--primary-dark);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5em;
    min-height: 0;
}

.program-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.6em;
    padding: 0.55em 0.6em 0.48em;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    min-width: 0;
}

.program-card-top {
    display: flex;
    align-items: center;
    gap: 0.45em;
    margin-bottom: 0.5em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid #f1f5f9;
}

.program-icon {
    width: 1.75em;
    height: 1.75em;
    border-radius: 0.4em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78em;
    flex-shrink: 0;
    line-height: 1;
}

.program-name {
    font-size: 0.9em;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.program-check {
    margin-left: auto;
    width: 0.95em;
    height: 0.95em;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.18em;
    flex-shrink: 0;
}

.program-icon svg {
    width: 0.95em;
    height: 0.95em;
    display: block;
}

.program-stats {
    display: flex;
    gap: 0.65em;
    font-size: 0.78em;
    color: #64748b;
    white-space: nowrap;
}

.program-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
}

.program-stats svg {
    width: 1.05em;
    height: 1.05em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mobile: restyle the same sticky nodes into stacked cards (no cloned DOM) */
@media (max-width: 768px) {
    .sticky-scroll-section {
        height: auto;
    }

    .sticky-scroll-container {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
        max-width: 600px;
        padding: 60px 24px 40px;
        overflow: visible;
    }

    .sticky-scroll-left,
    .sticky-text-items,
    .sticky-scroll-right {
        display: contents;
    }

    .sticky-progress {
        display: none;
    }

    .sticky-text-item {
        position: static;
        opacity: 0;
        transform: translateY(28px);
        pointer-events: auto;
        transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
        margin-bottom: 40px;
    }

    .sticky-text-item[data-index="2"] {
        margin-bottom: 0;
    }

    .sticky-text-item.active {
        opacity: 0;
        transform: translateY(28px);
    }

    .sticky-text-item.is-inview,
    .sticky-text-item.is-inview.active {
        opacity: 1;
        transform: none;
    }

    .sticky-text-item h2 {
        font-size: clamp(20px, 5vw, 26px);
        letter-spacing: -0.4px;
        margin-bottom: 10px;
    }

    .sticky-text-item p {
        font-size: 16px;
        max-width: none;
    }

    .sticky-image-item {
        position: relative;
        inset: auto;
        opacity: 0;
        transform: translateY(28px);
        width: 100%;
        aspect-ratio: 16 / 10;
        border-radius: 16px;
        overflow: hidden;
        background: #f8fafc;
        border: 1px solid rgba(56, 182, 255, 0.16);
        box-shadow: 0 8px 32px rgba(30, 157, 232, 0.1);
        container-type: inline-size;
        transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .sticky-image-item.active {
        opacity: 0;
        transform: translateY(28px);
    }

    .sticky-image-item.is-inview,
    .sticky-image-item.is-inview.active {
        opacity: 1;
        transform: none;
    }

    .sticky-image-item[data-index="0"] { order: 1; }
    .sticky-text-item[data-index="0"] { order: 2; }
    .sticky-image-item[data-index="1"] { order: 3; }
    .sticky-text-item[data-index="1"] { order: 4; }
    .sticky-image-item[data-index="2"] { order: 5; }
    .sticky-text-item[data-index="2"] { order: 6; }

    .sticky-image-item--preview {
        aspect-ratio: auto;
        height: auto;
        display: flex;
        padding: 16px 18px 18px;
    }

    .sticky-image-item--preview:has(.electives-ui) {
        padding-top: 16px;
    }

    .sticky-image-item--preview:has(.programs-ui) {
        padding: 16px 18px 18px;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .sticky-text-item,
    .sticky-text-item.active,
    .sticky-image-item,
    .sticky-image-item.active {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   Features bento (Campfront-inspired)
   ======================================== */

.features-bento-section {
    padding: 48px 24px 32px;
}

.features-bento-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.features-bento-header {
    text-align: center;
    margin-bottom: 40px;
}

.features-bento-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.features-bento {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
    gap: 18px;
}

.bento-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    min-height: 240px;
}

.bento-card--wide {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 520px;
}

.bento-card-copy {
    padding: 28px 28px 16px;
    position: relative;
    z-index: 1;
}

.bento-card-copy h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.bento-card-copy p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.bento-card--photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-card--photo .bento-card-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72) 70%);
    color: #fff;
    padding: 80px 28px 28px;
}

.bento-card--photo .bento-card-copy p {
    color: rgba(255, 255, 255, 0.82);
}

.bento-card--calendar {
    min-height: 320px;
}

.bento-cal {
    margin: 0 16px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    flex: 1;
}

.bento-cal-range {
    padding: 8px 10px 0;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.bento-cal-head {
    display: grid;
    grid-template-columns: 32px repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    margin-top: 4px;
}

.bento-cal-head span {
    padding: 6px 2px 7px;
    text-align: center;
    font-size: 9px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
    border-left: 1px solid #eef2f6;
}

.bento-cal-head span:first-child {
    border-left: 0;
}

.bento-cal-head b {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #1f2937;
}

.bento-cal-body {
    display: grid;
    grid-template-columns: 32px repeat(7, minmax(0, 1fr));
    flex: 1;
    min-height: 168px;
}

.bento-cal-times {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 3px 6px 2px;
    font-size: 8px;
    color: #94a3b8;
    text-align: right;
    line-height: 1;
}

.bento-cal-col {
    position: relative;
    border-left: 1px solid #eef2f6;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(100% / 6 - 1px),
        #f1f5f9 calc(100% / 6 - 1px),
        #f1f5f9 calc(100% / 6)
    );
}

.bento-cal-event {
    position: absolute;
    left: 1px;
    right: 1px;
    border-radius: 3px;
    padding: 2px 3px;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.15;
    overflow: hidden;
    color: #fff;
    letter-spacing: -0.02em;
}

.bento-cal-event.is-muted {
    background: #e2e8f0;
    color: #334155;
}

.bento-card--preview {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card--wide.bento-card--preview .bento-app {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 160px;
}

.bento-housing-card {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.bento-housing-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
}

.bento-housing-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 28px 8px 0;
    border-bottom: 1px solid #e9edf2;
}

.bento-housing-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #38b6ff 0%, #1e9de8 100%);
    flex-shrink: 0;
}

.bento-housing-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    line-height: 40px;
}

.bento-housing-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.bento-housing-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #64748b;
}

.bento-housing-stat svg {
    flex-shrink: 0;
}

.bento-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.bento-activity-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.bento-activity-name {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.bento-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
}

.bento-activity-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bento-activity-meta-item svg,
.bento-activity-remove svg {
    display: block;
    flex-shrink: 0;
}

.bento-activity-remove {
    color: #64748b;
    flex-shrink: 0;
    line-height: 0;
    padding-top: 2px;
}

.bento-app {
    margin: 8px 28px 28px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
}

.bento-app-section {
    margin-bottom: 18px;
}

.bento-app-section:last-child {
    margin-bottom: 0;
}

.bento-app-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.bento-app-groups,
.bento-app-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bento-app-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    border: none;
}

.bento-app-group-name {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}

.bento-app-group-counts {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
    font-size: 14px;
    flex-shrink: 0;
}

.bento-app-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bento-app-count svg,
.bento-app-chevron {
    display: block;
    flex-shrink: 0;
}

.bento-app-chevron {
    color: #64748b;
}

.bento-app-footnote {
    margin-top: 8px;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.4;
}

.bento-app-footnote strong {
    font-weight: 700;
}

.bento-app-expand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bento-app-expand .bento-app-label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.bento-app-preview {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    min-width: 0;
}

.bento-app-expand .bento-app-chevron {
    margin-left: auto;
}

.bento-app-slot {
    padding: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.bento-app-slot-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
}

.bento-app-slot-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.bento-app-slot-meta,
.bento-app-slot-fleet {
    font-size: 12px;
    color: #64748b;
}

.bento-app-slot-fleet {
    margin-top: 4px;
}

.bento-card--stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-stat {
    margin: 8px 28px 28px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

.bento-stat-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.bento-stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.bento-stat-pill {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #047857;
    background: #d1fae5;
    border-radius: 999px;
    padding: 4px 10px;
}

@media (min-width: 901px) {
    .bento-card--bar {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        min-height: 0;
    }

    .bento-card--bar .bento-card-copy {
        padding-bottom: 28px;
        flex: 1;
        min-width: 0;
    }

    .bento-card--bar .bento-app,
    .bento-card--bar .bento-stat {
        margin: 16px 28px 16px 0;
        flex: 0 0 345px;
        width: 345px;
        max-width: 46%;
    }
}

@media (max-width: 900px) {
    .features-bento {
        grid-template-columns: 1fr;
    }

    .bento-card--wide {
        grid-column: auto;
        grid-row: auto;
        min-height: 320px;
    }
}

/* ========================================
   KEEP: integrations section
   Do not delete. Markup is commented out in index.html until Campminder
   logo approval and calendar integration are ready. Keep these assets:
   media/campminder-logo.webp, google-calendar-logo.webp, apple-calendar-logo.webp
   ======================================== */

.features-integrations {
    padding: 72px 24px 120px;
}

.features-integrations-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.features-integrations-copy h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 700;
    letter-spacing: -1.1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.features-integrations-copy p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 42ch;
}

.integration-orbit {
    position: relative;
    min-height: 340px;
}

.integration-tile {
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08),
        0 0 0 8px rgba(56, 182, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.integration-tile img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
}

.integration-tile--empty {
    pointer-events: none;
}

.integration-tile[data-slot="1"] { top: 12px; left: 18%; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 28px 6px rgba(123, 66, 188, 0.32); }
.integration-tile[data-slot="2"] { top: 28px; right: 16%; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 28px 6px rgba(16, 185, 129, 0.22); }
.integration-tile[data-slot="3"] { top: 132px; left: 4%; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 28px 6px rgba(99, 102, 241, 0.22); }
.integration-tile[data-slot="4"] { top: 148px; right: 8%; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 28px 6px rgba(244, 114, 182, 0.2); }
.integration-tile[data-slot="5"] { bottom: 24px; left: 28%; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 28px 6px rgba(251, 191, 36, 0.22); }
.integration-tile[data-slot="6"] { bottom: 40px; right: 26%; opacity: 0.72; }

@media (max-width: 900px) {
    .features-integrations-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .integration-orbit {
        min-height: 280px;
    }
}

/* END KEEP: integrations section */

/* ========================================
   About Section
   ======================================== */

.about-section {
    padding: 120px 24px 96px;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 80px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.6) 0%,
            #ffffff 18%,
            #ffffff 40%,
            var(--sky-50) 100%
        ),
        #f8fafc;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -120px;
    width: 560px;
    height: 560px;
    background: var(--section-glow);
    pointer-events: none;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.about-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-text h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.about-text p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-image {
    position: relative;
    aspect-ratio: 4032 / 2877;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease 0.2s;
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
    padding: 72px 24px 80px;
    background: linear-gradient(180deg, var(--sky-50) 0%, var(--sky-50) 55%, #f5fbff 82%, #ffffff 100%);
    scroll-margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 12%;
    right: -120px;
    width: 560px;
    height: 560px;
    background: var(--section-glow);
    pointer-events: none;
}

.faq-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -120px;
    width: 560px;
    height: 560px;
    background: var(--section-glow);
    pointer-events: none;
}

.faq-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-header {
    text-align: center;
    margin-bottom: 56px;
}

.faq-label {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.faq-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.faq-header p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-header p a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.faq-header p a:hover {
    text-decoration: underline;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.faq-item[open],
.faq-item.is-open {
    border-color: rgba(56, 183, 254, 0.3);
    box-shadow: 0 4px 16px rgba(56, 183, 254, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    list-style: none;
    user-select: none;
    gap: 16px;
    transition: background 0.15s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
}

.faq-item[open] .faq-question,
.faq-item.is-open .faq-question {
    color: var(--primary-dark);
}

.faq-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

/* Horizontal bar (always visible) */
.faq-icon::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 1.5px;
    background: var(--text-medium);
    border-radius: 1px;
    transition: background 0.2s ease;
}

/* Vertical bar (hidden when open) */
.faq-icon::after {
    content: '';
    position: absolute;
    width: 1.5px;
    height: 10px;
    background: var(--text-medium);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}

.faq-item[open] .faq-icon,
.faq-item.is-open .faq-icon {
    border-color: var(--primary);
    background: rgba(56, 183, 254, 0.08);
}

.faq-item[open] .faq-icon::before,
.faq-item.is-open .faq-icon::before,
.faq-item[open] .faq-icon::after,
.faq-item.is-open .faq-icon::after {
    background: var(--primary);
}

.faq-item[open] .faq-icon::after,
.faq-item.is-open .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    display: block !important; /* override browser's details[closed] display:none */
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 0px solid var(--bg-subtle);
}

/* Show the inner border only when open (avoids a hairline on collapsed items) */
.faq-item.is-open .faq-answer {
    border-top-width: 1px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    padding: 16px 24px 22px;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 80px 20px;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    padding: 120px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 60%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 80px;
}

/* Top-right decorative glow */
.contact-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 560px;
    height: 560px;
    background: radial-gradient(ellipse, rgba(56, 183, 254, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

/* Bottom-left decorative glow */
.contact-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(ellipse, rgba(30, 157, 232, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 56px;
    line-height: 1.6;
}

.contact-form {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    padding: 48px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(56, 183, 254, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(56, 183, 254, 0.08), 0 0 0 1px rgba(56, 183, 254, 0.04);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--bg-light);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(56, 183, 254, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 16px rgba(56, 183, 254, 0.4), 0 1px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(56, 183, 254, 0.5), 0 2px 8px rgba(0, 0, 0, 0.12);
    filter: brightness(1.05);
}

.form-legal {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-legal a {
    color: var(--primary);
    text-decoration: underline;
}

.success-message {
    display: none;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: successSlideIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    animation: successProgress 0.4s ease-out;
}

.success-message.show {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.success-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successIconPop 0.5s ease-out 0.2s backwards;
}

.success-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.success-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.success-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.success-text {
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.95;
    font-weight: 400;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successIconPop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes successProgress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 72px 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 280px;
}

.footer-brand a {
    display: inline-block;
    line-height: 0;
}

.footer-logo {
    width: 160px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-brand a:hover .footer-logo {
    opacity: 1;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

.footer-nav {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-heading {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .footer {
        padding: 56px 24px 0;
    }

    .footer-main {
        flex-direction: column;
        gap: 48px;
        padding-bottom: 48px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-nav {
        gap: 48px;
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 968px) {
    .nav {
        padding: 10px 16px 10px 14px;
        gap: 16px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
    }
}

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.nav-hamburger svg {
    display: block;
    color: var(--text-dark);
}

/* ── Mobile menu overlay ── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-menu.open {
    opacity: 1;
}

.mobile-menu-card {
    width: calc(100% - 40px);
    max-width: 480px;
    margin-top: 10px;
    background: #ffffff;
    border-radius: 20px;
    padding: 14px 18px 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-12px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open .mobile-menu-card {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 4px;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-dark);
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.mobile-menu-close:hover {
    background: var(--bg-subtle);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.mobile-menu-link {
    display: block;
    padding: 16px 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s ease;
}

.mobile-menu-link:hover {
    color: var(--primary);
}

.mobile-menu-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.mobile-cta-primary {
    display: block;
    text-align: center;
    padding: 14px;
    background: var(--text-dark);
    color: #ffffff;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mobile-cta-primary:hover {
    background: #374151;
}

.mobile-cta-secondary {
    display: block;
    text-align: center;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.mobile-cta-secondary:hover {
    border-color: var(--primary);
    background: rgba(56, 183, 254, 0.04);
}

@media (max-width: 768px) {
    .nav {
        top: 10px;
        left: 20px;
        right: 20px;
        transform: none;
        width: auto;
        padding: 8px 10px 8px 12px;
        gap: 8px;
    }

    .nav-left .nav-links {
        display: none;
    }

    .nav-btn-secondary {
        display: none;
    }

    .nav-btn-desktop-only {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        padding: 128px 20px 24px;
    }

    .about-section {
        padding: 80px 20px;
    }

    .contact-section {
        padding: 80px 20px;
    }

    .contact-form {
        padding: 32px 20px;
    }
}

/* ========================================
   Animations
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
