/* Ceratine Labs - Public Website Styles */

/* ==========================================
   CSS Variables - Dark Tech Theme
   ========================================== */
:root {
    --bg-primary: #0b1121;
    --bg-secondary: #111827;
    --bg-tertiary: #1e293b;
    --bg-card: #151f32;
    --text-primary: #cbd5e1;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --accent-glow: rgba(96, 165, 250, 0.15);
    --white: #f1f5f9;
    --border-color: rgba(96, 165, 250, 0.12);
    --gradient-start: #0b1121;
    --gradient-end: #111827;
    --shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
    --shadow-hover: 0 20px 30px -15px rgba(0, 0, 0, 0.7);
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 600;
    line-height: 1.2;
}

.text-accent {
    color: var(--accent) !important;
}

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

.text-light {
    color: var(--text-primary) !important;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar-public {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-public.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    color: var(--white) !important;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    color: var(--text-primary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

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

.navbar-toggler {
    border-color: var(--border-color);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2896, 165, 250, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================
   Buttons
   ========================================== */
.btn-accent {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-accent:hover {
    background-color: var(--accent-glow);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-accent-solid {
    background-color: var(--accent);
    border: 2px solid var(--accent);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-accent-solid:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.2);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.btn-ghost:hover {
    color: var(--accent);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Animated gradient background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(96, 165, 250, 0.03) 0%, transparent 40%);
}

/* Grid pattern overlay */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(96, 165, 250, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(96, 165, 250, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* ==========================================
   Page Hero (smaller, for inner pages)
   ========================================== */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.page-hero .lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
}

/* ==========================================
   Cards
   ========================================== */
.card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.card-dark:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.card-dark .card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.card-dark h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-dark p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-dark .card-link {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-dark .card-link:hover {
    gap: 0.75rem;
}

/* Module/Feature Card */
.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.module-card .module-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.module-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.module-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-grow: 1;
}

.module-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.module-card ul li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.module-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ==========================================
   Stats Section
   ========================================== */
.stats-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   Section Styling
   ========================================== */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==========================================
   Feature List
   ========================================== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.feature-list li strong {
    color: var(--white);
}

/* ==========================================
   Tech Stack
   ========================================== */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 2rem 0;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.tech-item img {
    height: 40px;
    width: auto;
    filter: grayscale(100%) brightness(2);
    transition: filter 0.3s ease;
}

.tech-item:hover img {
    filter: grayscale(0%) brightness(1);
}

.tech-item span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(96, 165, 250, 0.05) 0%, transparent 60%);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
}

/* ==========================================
   Pricing Cards
   ========================================== */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.02);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ==========================================
   Filter Tabs
   ========================================== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================
   Forms
   ========================================== */
.form-dark .form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-dark .form-control,
.form-dark .form-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.form-dark .form-control:focus,
.form-dark .form-select:focus {
    background: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    color: var(--text-primary);
}

.form-dark .form-control::placeholder {
    color: var(--text-muted);
}

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

/* ==========================================
   Image Placeholder
   ========================================== */
.image-placeholder {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.image-placeholder.has-image {
    border: none;
    padding: 0;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-placeholder .placeholder-text {
    text-align: center;
    font-size: 0.85rem;
}

.image-placeholder .placeholder-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Screenshot frame effect */
.screenshot-frame {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
}

.screenshot-frame .screenshot-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.screenshot-frame .screenshot-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.screenshot-frame .screenshot-dot:nth-child(1) { background: #ff5f56; }
.screenshot-frame .screenshot-dot:nth-child(2) { background: #ffbd2e; }
.screenshot-frame .screenshot-dot:nth-child(3) { background: #27ca40; }

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   Breadcrumbs
   ========================================== */
.breadcrumb-dark {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-dark .breadcrumb-item {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.breadcrumb-dark .breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-dark .breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-dark .breadcrumb-item.active {
    color: var(--accent);
}

.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    content: "→";
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--bg-secondary);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        border: 1px solid var(--border-color);
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero .lead {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 60px 0;
    }

    .stat-item {
        margin-bottom: 1.5rem;
    }

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================
   Hero Particle Canvas
   ========================================== */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================
   Floating Gradient Orbs
   ========================================== */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, transparent 70%);
    top: 10%;
    left: -5%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    top: 50%;
    right: -3%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: 30%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, 40px) scale(1.1); }
    50% { transform: translate(20px, -30px) scale(0.95); }
    75% { transform: translate(-40px, 20px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, -40px) scale(1.08); }
    66% { transform: translate(30px, 50px) scale(0.92); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(40px, -30px) scale(1.1); }
    40% { transform: translate(-20px, -60px) scale(0.95); }
    60% { transform: translate(-50px, 20px) scale(1.05); }
    80% { transform: translate(30px, 40px) scale(0.98); }
}

/* ==========================================
   Hero Text Reveal Animation
   ========================================== */
.hero-title {
    overflow: hidden;
}

.hero-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Highlight glow pulse */
.highlight-glow {
    position: relative;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
    animation: glowPulse 3s ease-in-out infinite 1.5s;
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(96, 165, 250, 0.2); }
    50% { text-shadow: 0 0 40px rgba(96, 165, 250, 0.4), 0 0 80px rgba(96, 165, 250, 0.1); }
}

/* ==========================================
   Screenshot Float Animation
   ========================================== */
.animate-float {
    animation: fadeInFloat 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               gentleFloat 6s ease-in-out infinite 2s;
}

@keyframes fadeInFloat {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   Button Glow Effect
   ========================================== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent 30%, rgba(96, 165, 250, 0.4) 50%, transparent 70%);
    border-radius: 6px;
    z-index: -1;
    animation: btnShimmer 3s ease-in-out infinite 2s;
    opacity: 0;
}

@keyframes btnShimmer {
    0% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%); }
}

/* ==========================================
   Card Hover Glow Effect
   ========================================== */
.card-hover-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(96, 165, 250, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.card-hover-glow:hover::before {
    opacity: 1;
}

.card-hover-glow:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(96, 165, 250, 0.05);
}

.card-hover-glow > * {
    position: relative;
    z-index: 1;
}

/* ==========================================
   Scroll Reveal Animations
   ========================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-orb,
    .animate-float,
    .highlight-glow,
    .btn-glow::before {
        animation: none !important;
    }

    .hero-line {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-particles {
        display: none;
    }
}

/* ==========================================
   Pricing Calculator
   ========================================== */

/* Steps */
.pricing-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.pricing-step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pricing-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Hosting Options */
.hosting-option {
    display: block;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.hosting-option-inner {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.hosting-option:hover .hosting-option-inner {
    border-color: rgba(96, 165, 250, 0.3);
}

.hosting-option.selected .hosting-option-inner {
    border-color: var(--accent);
    background: rgba(96, 165, 250, 0.05);
}

.hosting-check {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.hosting-option.selected .hosting-check {
    opacity: 1;
    transform: scale(1);
}

.hosting-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0;
}

.hosting-price span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.hosting-specs {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.hosting-specs small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.hosting-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Storage Slider */
.pricing-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--bg-tertiary) var(--fill, 0%));
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.pricing-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.pricing-range::-webkit-slider-thumb:hover {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.pricing-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
    cursor: pointer;
}

.storage-display {
    font-size: 1.1rem;
    color: var(--white);
}

/* Baseline Modules */
.baseline-tier {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(96, 165, 250, 0.06);
}

.baseline-tier:last-child {
    border-bottom: none;
}

.baseline-label {
    min-width: 110px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 0.25rem;
}

.baseline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.baseline-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(96, 165, 250, 0.08);
    color: var(--text-primary);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
    border: 1px solid rgba(96, 165, 250, 0.1);
}

.baseline-chip i {
    color: var(--accent);
    font-size: 0.7rem;
}

/* Add-on Modules */
.addon-category {
    margin-bottom: 0.75rem;
}

.addon-category-title {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 0;
    margin-bottom: 0;
    user-select: none;
    transition: color 0.2s ease;
}

.addon-category-title:hover {
    color: var(--accent);
}

.addon-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.addon-category.collapsed .addon-toggle-icon {
    transform: rotate(-90deg);
}

.addon-category.collapsed .addon-list {
    display: none;
}

.addon-category-count {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
}

.addon-category-count.has-selection {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
}

.addon-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
}

.addon-item:hover {
    border-color: rgba(96, 165, 250, 0.25);
}

.addon-item.selected {
    border-color: var(--accent);
    background: rgba(96, 165, 250, 0.04);
}

.addon-item-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
}

.addon-item-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.addon-item-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.addon-item-price {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
    white-space: nowrap;
}

.addon-item-price span {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.addon-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.addon-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.addon-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.addon-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.addon-checkbox:checked + .addon-toggle-slider {
    background: var(--accent);
}

.addon-checkbox:checked + .addon-toggle-slider::before {
    transform: translateX(20px);
    background: var(--bg-primary);
}

/* Pricing Summary (Sticky) */
.pricing-summary-wrap {
    position: sticky;
    top: 100px;
}

.pricing-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
}

.pricing-summary-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.summary-subtotal {
    font-weight: 600;
    color: var(--white);
}

.summary-addon-line {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.summary-addon-subtotal {
    font-weight: 600;
    color: var(--text-secondary);
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.summary-addons {
    max-height: 200px;
    overflow-y: auto;
}

.summary-total {
    background: rgba(96, 165, 250, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.summary-total-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.summary-total-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.summary-total-amount.flash {
    animation: totalFlash 0.4s ease;
}

@keyframes totalFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.summary-total-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.summary-footnote {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
}

/* ==========================================
   Packages Page
   ========================================== */

/* Base banner */
.packages-base-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
}

.packages-base-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.packages-base-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Package Card */
.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.package-card:hover {
    transform: translateY(-5px);
    border-color: var(--package-color, var(--accent));
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5),
                0 0 30px color-mix(in srgb, var(--package-color, var(--accent)) 10%, transparent);
}

.package-header {
    padding: 2rem 2rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.package-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: color-mix(in srgb, var(--package-color) 12%, transparent);
    color: var(--package-color);
    border: 1px solid color-mix(in srgb, var(--package-color) 20%, transparent);
}

.package-name {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.package-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Package Pricing */
.package-pricing {
    padding: 1.25rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--package-color);
}

.package-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.package-price-detail {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.package-price-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Package Body */
.package-description {
    padding: 1.5rem 2rem 0;
}

.package-description p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.package-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.package-modules {
    padding: 1.25rem 2rem 0;
}

.package-module-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--white);
}

.package-module-item i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.package-highlights {
    padding: 1.25rem 2rem 0;
}

.package-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.25rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.package-highlight-item i {
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.package-actions {
    padding: 1.5rem 2rem 2rem;
    margin-top: auto;
}

/* Custom Build Visual */
.custom-build-visual {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 2rem;
}

.custom-build-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.custom-build-block i {
    color: var(--accent);
}

.custom-build-block:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.custom-build-plus {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px dashed var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    animation: plusPulse 2s ease-in-out infinite;
}

@keyframes plusPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Packages responsive */
@media (max-width: 991.98px) {
    .package-header,
    .package-pricing,
    .package-description,
    .package-modules,
    .package-highlights,
    .package-actions {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Pricing responsive */
@media (max-width: 991.98px) {
    .pricing-summary-wrap {
        position: static;
    }

    .baseline-tier {
        flex-direction: column;
        gap: 0.4rem;
    }

    .baseline-label {
        min-width: auto;
    }
}

@media (max-width: 767.98px) {
    .pricing-step {
        padding: 1.25rem;
    }

    .addon-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .addon-item-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }

    .hosting-option {
        margin-bottom: 0.5rem;
    }
}

/* ==========================================
   Utilities
   ========================================== */
.bg-dark-primary { background-color: var(--bg-primary) !important; }
.bg-dark-secondary { background-color: var(--bg-secondary) !important; }
.bg-dark-card { background-color: var(--bg-card) !important; }

.border-accent { border-color: var(--accent) !important; }
.border-subtle { border-color: var(--border-color) !important; }

.rounded-lg { border-radius: 12px !important; }

.shadow-dark { box-shadow: var(--shadow) !important; }

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection styling */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}
