/* ═══════════════════════════════════════════════════════════
   MOTION CRAFT LABS V2 — Components
   Strictly mapped to DESIGN.md component definitions
   ═══════════════════════════════════════════════════════════ */

/* ── Containers ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

.section {
    padding: var(--space-section) 0;
    position: relative;
    background-color: var(--canvas);
}

.section-alt {
    background-color: var(--surface-1);
}

/* ── Section Headers ── */
.section-header {
    margin-bottom: var(--space-xxl);
    max-width: 700px;
}

.section-header.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.20;
    letter-spacing: -0.13px;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
    display: inline-block;
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-desc {
    color: var(--ink-muted);
    font-size: 18px;
    line-height: 1.30;
    letter-spacing: -0.18px;
}

/* ── Buttons ── */

/* Primary Button: Glowing Blue Pill */
.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--mcl-accent-blue);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.14px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.button-primary:hover {
    background-color: var(--mcl-accent-glow);
    box-shadow: 0 0 25px rgba(96, 165, 250, 0.5);
    transform: translateY(-2px) scale(1.03);
}

.button-primary:active {
    transform: translateY(0) scale(0.97);
}

/* Secondary Button: Outlined Geometric Pill */
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--mcl-text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.14px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--mcl-border);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.button-secondary:hover {
    background-color: rgba(30, 45, 64, 0.2);
    border-color: var(--mcl-accent-electric);
    transform: translateY(-2px) scale(1.03);
}

.button-secondary:active {
    transform: translateY(0) scale(0.97);
}

/* Translucent Button */
.button-translucent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-2);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.14px;
    padding: 8px 14px;
    border-radius: var(--radius-xxl);
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.button-translucent:hover {
    background-color: var(--hairline);
}

/* Icon Button Circular */
.button-icon-circular {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--surface-1);
    color: var(--ink);
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--hairline);
}

.button-icon-circular:hover {
    background-color: var(--surface-2);
    transform: scale(1.05);
}

.button-full {
    width: 100%;
}

/* ── Navigation (top-nav) ── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: rgba(9, 9, 9, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(0, 153, 255, 0.1);
    box-shadow: 0 10px 30px -15px var(--glow-blue);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
}

.logo {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo-accent {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.14px;
    color: var(--ink-muted);
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-signin {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.14px;
    color: var(--ink-muted);
}

.nav-signin:hover {
    color: var(--ink);
}

/* Hamburger menu toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background-color: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--canvas);
    padding: var(--space-xl);
    flex-direction: column;
    gap: var(--space-md);
    z-index: 999;
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.5px;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--hairline-soft);
}

/* ── Cards & Containers ── */

/* Pricing card default */
.pricing-card {
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--ink);
    border-radius: var(--radius-xl);
    padding: 35px 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 153, 255, 0.3);
    box-shadow: 0 20px 40px -15px var(--glow-blue);
}

.pricing-card-featured {
    background: rgba(10, 12, 16, 0.85);
    border-color: rgba(37, 99, 235, 0.25);
}

.pricing-card-featured:hover {
    border-color: var(--mcl-accent-electric);
    box-shadow: 0 20px 45px -12px var(--glow-electric);
}

.pricing-tier {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.13px;
    color: var(--ink-muted);
    text-transform: uppercase;
    margin-bottom: var(--space-xxs);
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.8px;
    margin-bottom: var(--space-xs);
}

.pricing-desc {
    font-size: 14px;
    color: var(--ink-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -1.5px;
    margin-bottom: var(--space-lg);
    color: var(--ink);
}

.pricing-price span {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    font-size: 14px;
    color: var(--ink-muted);
}

.pricing-features li span.check {
    color: var(--semantic-success);
    font-size: 16px;
    line-height: 1;
}

/* Template card */
.template-card {
    background-color: var(--surface-1);
    color: var(--ink);
    border-radius: var(--radius-lg);
    padding: 12px;
    border: 1px solid var(--hairline);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.template-card:hover {
    transform: translateY(-2px);
    border-color: var(--hairline);
}

/* Product mockup tile */
.product-mockup-tile {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--ink);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.product-mockup-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px -10px rgba(255, 255, 255, 0.08);
}

/* ── Gradient Spotlight Cards (Signature component) ── */
.gradient-spotlight-card {
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.gradient-spotlight-card:hover {
    transform: translateY(-6px);
}

.gradient-spotlight-card--indigo {
    background: linear-gradient(135deg, #0b0c15 0%, rgba(99, 102, 241, 0.15) 100%);
}

.gradient-spotlight-card--indigo:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.25);
}

.gradient-spotlight-card--sapphire {
    background: linear-gradient(135deg, #030712 0%, rgba(37, 99, 235, 0.2) 100%);
}

.gradient-spotlight-card--sapphire:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.25);
}

.gradient-spotlight-card--blue {
    background: linear-gradient(135deg, #090e1a 0%, rgba(59, 130, 246, 0.2) 100%);
}

.gradient-spotlight-card--blue:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.25);
}

.gradient-spotlight-card--cyan {
    background: linear-gradient(135deg, #020b12 0%, rgba(6, 182, 212, 0.18) 100%);
}

.gradient-spotlight-card--cyan:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.25);
}

/* Soft atmosphere layer */
.gradient-spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.gradient-spotlight-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-xs);
    position: relative;
    z-index: 2;
}

.gradient-spotlight-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

/* ── Accordions (FAQ Row) ── */
.faq-row {
    background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-md);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.faq-row:hover {
    border-color: rgba(0, 153, 255, 0.2);
    box-shadow: 0 10px 30px -10px var(--glow-blue);
    transform: translateY(-2px);
}

.faq-row[open] {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 10px 30px -10px var(--glow-blue);
    background: rgba(10, 12, 16, 0.6);
}

.faq-row summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.18px;
    color: var(--ink);
    outline: none;
}

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

.faq-row[open] summary {
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: var(--space-sm);
}

.faq-row-answer {
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-muted);
}

.faq-icon-arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    font-size: 20px;
    color: var(--ink-muted);
}

.faq-row[open] .faq-icon-arrow {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

/* ── Form Inputs ── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxs);
    margin-bottom: var(--space-md);
}

.form-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.13px;
    color: var(--ink-muted);
    text-transform: uppercase;
}

.form-control {
    background-color: var(--surface-1);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--hairline);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-control::placeholder {
    color: #555555;
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px rgba(0, 153, 255, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

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

/* ── Footer ── */
#footer {
    background-color: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 32px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col h5 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.13px;
    color: var(--ink);
    text-transform: uppercase;
    margin-bottom: var(--space-xxs);
}

.footer-col a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.13px;
    color: var(--ink-muted);
    transition: color 0.2s ease;
}

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

.footer-copy {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.13px;
    color: var(--ink-muted);
    border-top: 1px solid var(--hairline-soft);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* ── Grids & Layout Structures ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xxl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* Responsive breakdowns */
@media (max-width: 1199px) {

    .container,
    .container-sm,
    .nav-inner {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 991px) {

    .services-grid,
    .pricing-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 810px) {
    #navbar {
        height: 56px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .services-grid,
    .pricing-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .section {
        padding: 64px 0;
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background-color: var(--primary);
    z-index: 1001;
    width: 0%;
}

/* ── Interactive Card Highlight & Spotlight Border ── */
.pricing-card::before,
.product-mockup-tile::before,
.gradient-spotlight-card::before,
.why-card::before,
.info-card::before,
.social-network-card::before,
.team-card::before,
.addon-card::before,
.faq-row::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
            rgba(255, 255, 255, 0.15),
            transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pricing-card:hover::before,
.product-mockup-tile:hover::before,
.gradient-spotlight-card:hover::before,
.why-card:hover::before,
.info-card:hover::before,
.social-network-card:hover::before,
.team-card:hover::before,
.addon-card:hover::before,
.faq-row:hover::before {
    opacity: 1;
}

/* Radial light glow beneath cards on hover */
.pricing-card::after,
.product-mockup-tile::after,
.gradient-spotlight-card::after,
.why-card::after,
.info-card::after,
.social-network-card::after,
.team-card::after,
.addon-card::after,
.faq-row::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
            rgba(106, 76, 245, 0.08),
            transparent 60%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pricing-card:hover::after,
.product-mockup-tile:hover::after,
.gradient-spotlight-card:hover::after,
.why-card:hover::after,
.info-card:hover::after,
.social-network-card:hover::after,
.team-card:hover::after,
.addon-card:hover::after,
.faq-row:hover::after {
    opacity: 1;
}

.pricing-card-featured::after {
    background: radial-gradient(300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
            rgba(106, 76, 245, 0.12),
            transparent 60%);
}

/* ── Theme Switcher Responsive Overrides ── */
.sidebar-footer {
    background-color: var(--surface-2) !important;
}

.chat-messages {
    background-color: var(--canvas) !important;
}