/* ==========================================
   SmartAttendant AI - Premium Light Mode Design System
   Design: Clean Slate-Indigo & Vibrant Accents
   ========================================== */

/* 1. CSS Custom Properties / Design Tokens */
:root {
    --bg-dark: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    
    --primary: #4F46E5;
    --primary-glow: rgba(79, 70, 229, 0.2);
    --cyan: #0284C7;
    --cyan-glow: rgba(2, 132, 199, 0.2);
    --emerald: #059669;
    --emerald-glow: rgba(5, 150, 105, 0.2);
    --purple: #7C3AED;
    --amber: #D97706;
    --rose: #E11D48;

    --text-main: #0F172A;
    --text-muted: #475569;
    --text-dim: #94A3B8;

    --border-glass: #E2E8F0;
    --border-glass-bright: #CBD5E1;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Background Soft Blobs */
.bg-blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.blob-1 {
    top: -100px;
    left: 20%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(255,255,255,0) 70%);
}

.blob-2 {
    top: 600px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(255,255,255,0) 70%);
}

.blob-3 {
    top: 1600px;
    left: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(255,255,255,0) 70%);
}

/* Utility Containers & Typography */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.text-gradient {
    background: linear-gradient(135deg, #312E81 0%, var(--primary) 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.text-center { text-align: center; }
.w-100 { width: 100%; }

/* Glassmorphism / Clean Card Utility */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-glass-bright);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.12);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4338CA 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338CA 0%, #3730A3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text-main);
    border: 1px solid var(--border-glass-bright);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.btn-secondary:hover {
    background: #F1F5F9;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass-bright);
}

.btn-outline:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
}

/* 3. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 0.85rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo-img {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: var(--transition);
}

.logo-icon-wrap {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #FFF;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    display: block;
    line-height: 1.1;
}

.brand-name .highlight {
    color: var(--primary);
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}

/* 4. Hero Section */
.hero-section {
    padding-top: 9rem;
    padding-bottom: 5rem;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
    color: var(--text-main);
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.75rem;
}

.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hero Visual Card */
.preview-card-wrap {
    position: relative;
}

.main-preview-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.12);
}

.preview-header {
    background: #F1F5F9;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.preview-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.status-badge {
    font-size: 0.75rem;
    color: var(--emerald);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-badge .pulse {
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
    animation: pulseAnim 1.5s infinite;
}

@keyframes pulseAnim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.preview-body {
    position: relative;
    padding: 0.5rem;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

.hud-overlay-tag {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass-bright);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.hud-overlay-tag.top-left { top: 1.5rem; left: 1.5rem; color: var(--cyan); }
.hud-overlay-tag.bottom-right { bottom: 1.5rem; right: 1.5rem; color: var(--emerald); }

/* 5. Section Headers Global */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    max-width: 680px;
    margin: 0 auto 3.5rem auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* 6. Interactive Sandbox Demo Section */
.sandbox-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: #FFFFFF;
}

.sandbox-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border-glass);
    padding-right: 1.5rem;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sample-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sample-feed-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #F8FAFC;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.sample-feed-btn:hover, .sample-feed-btn.active {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--primary);
    color: var(--text-main);
}

.sample-feed-btn.active .feed-name {
    color: var(--primary);
}

.feed-info {
    display: flex;
    flex-direction: column;
}

.feed-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.feed-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.sandbox-viewport {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.viewfinder-box {
    position: relative;
    width: 100%;
    height: 380px;
    background: #0B0F19 url('images/classroom-feed.png') center/cover no-repeat;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass-bright);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Laser Scanner Animation */
.laser-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38BDF8, var(--primary), transparent);
    box-shadow: 0 0 15px #38BDF8;
    opacity: 0;
    z-index: 10;
}

.laser-scanner.scanning {
    opacity: 1;
    animation: laserScan 1.8s linear forwards;
}

@keyframes laserScan {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* Bounding Face Boxes */
.face-box {
    position: absolute;
    border: 2px solid var(--emerald);
    background: rgba(16, 185, 129, 0.25);
    border-radius: 6px;
    box-shadow: 0 0 15px var(--emerald-glow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.face-box.visible {
    opacity: 1;
    transform: scale(1);
}

.box-1 { top: 22%; left: 26%; width: 75px; height: 75px; }
.box-2 { top: 35%; left: 50%; width: 70px; height: 70px; }
.box-3 { top: 26%; left: 72%; width: 68px; height: 68px; }

.face-label {
    position: absolute;
    top: -26px;
    left: 0;
    white-space: nowrap;
    background: rgba(5, 150, 105, 0.95);
    color: #FFF;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.viewfinder-hud {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-main);
    border-top: 1px solid var(--border-glass);
}

.latency-tag {
    color: var(--primary);
    font-weight: 600;
}

.sandbox-results-panel {
    background: #F8FAFC;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.results-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.log-stream {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-family: monospace;
    font-size: 0.8rem;
    max-height: 100px;
    overflow-y: auto;
}

.log-entry .time { color: var(--text-dim); }
.log-entry.success .event { color: var(--emerald); font-weight: 600; }
.log-entry.info .event { color: var(--cyan); font-weight: 600; }

/* 7. Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.feature-card {
    padding: 2rem;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.glow-indigo { background: rgba(79, 70, 229, 0.1); color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }
.glow-cyan { background: rgba(2, 132, 199, 0.1); color: var(--cyan); box-shadow: 0 0 20px var(--cyan-glow); }
.glow-emerald { background: rgba(5, 150, 105, 0.1); color: var(--emerald); box-shadow: 0 0 20px var(--emerald-glow); }
.glow-purple { background: rgba(124, 58, 237, 0.1); color: var(--purple); }
.glow-amber { background: rgba(217, 119, 6, 0.1); color: var(--amber); }
.glow-rose { background: rgba(225, 29, 72, 0.1); color: var(--rose); }

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 8. Workflow Section */
.timeline-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.step-card {
    padding: 2rem;
    position: relative;
}

.step-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: #CBD5E1;
}

.step-icon {
    width: 46px;
    height: 46px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.step-arrow {
    color: var(--text-dim);
    font-size: 1.4rem;
}

/* 9. Fixed Pricing Plans Section */
.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.toggle-label.active-period {
    color: var(--text-main);
}

.discount-badge {
    background: rgba(5, 150, 105, 0.12);
    color: var(--emerald);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    margin-left: 0.3rem;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: #CBD5E1;
    border-radius: var(--radius-full);
    position: relative;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch.active::after {
    left: 27px;
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-top: 2rem;
}

.pricing-card {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--border-glass);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 20px 45px -10px rgba(79, 70, 229, 0.18);
    transform: translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: #FFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.pricing-header {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.limit-badge-box {
    background: rgba(79, 70, 229, 0.06);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.limit-highlight {
    font-size: 0.95rem;
    color: var(--primary);
}

.limit-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.price-val {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* 10. FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-icon {
    transition: var(--transition);
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 1rem;
}

/* 11. Footer */
.site-footer {
    background: #F1F5F9;
    border-top: 1px solid var(--border-glass);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

.bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

/* 12. Modal & Toast Systems */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    position: relative;
    max-width: 480px;
    width: 100%;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    border: 1px solid var(--border-glass-bright);
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.3rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    padding: 0.75rem 1rem;
    background: #F8FAFC;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-main);
    outline: none;
    font-family: var(--font-body);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #FFFFFF;
    border: 1px solid var(--emerald);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.2);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1100;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--emerald);
}

.toast-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
}

.toast-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 10. Payment Screen Modal Styles */
.payment-modal-card {
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
}

.payment-modal-header {
    margin-bottom: 1.25rem;
}

.payment-plan-selector {
    display: flex;
    gap: 0.5rem;
    background: #F1F5F9;
    padding: 0.4rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.plan-pill-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.plan-pill-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

.plan-pill-btn.active {
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.pill-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
}

.pill-price {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.pill-badge {
    position: absolute;
    top: -8px;
    background: var(--primary);
    color: #FFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}

.payment-summary-box {
    background: rgba(79, 70, 229, 0.04);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

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

.summary-val {
    color: var(--text-main);
}

.summary-row.total-row {
    border-top: 1px solid rgba(79, 70, 229, 0.15);
    padding-top: 0.4rem;
    margin-top: 0.25rem;
}

.price-text {
    color: var(--primary);
    font-size: 1.1rem;
}

.security-guarantee-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.loading-spinner {
    font-size: 2.5rem;
    color: var(--primary);
}

.success-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(5, 150, 105, 0.1);
    color: var(--emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1rem auto;
}

.receipt-box {
    background: #F8FAFC;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.badge-success-pill {
    background: rgba(5, 150, 105, 0.12);
    color: var(--emerald);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.modal-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-description { margin: 0 auto 2rem auto; }
    .hero-cta-group { justify-content: center; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .timeline-steps { grid-template-columns: 1fr; text-align: center; }
    .step-arrow { display: none; }
    .sandbox-container { grid-template-columns: 1fr; }
    .sandbox-sidebar { border-right: none; border-bottom: 1px solid var(--border-glass); padding-right: 0; padding-bottom: 1.5rem; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .hero-title { font-size: 2.3rem; }
    .features-grid { grid-template-columns: 1fr; }
    .calc-metrics-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .footer-links-group { grid-template-columns: 1fr 1fr; }
}
