/* ===== DESIGN PAGE - STYLES ===== */

/* Accent overrides – violet/purple for design */
.design-page {
    --ds-accent: #8b5cf6;
    --ds-accent-rgb: 139, 92, 246;
    --ds-accent-secondary: #a78bfa;
    --ds-accent-glow: rgba(139, 92, 246, 0.15);
    --ds-accent-soft: rgba(139, 92, 246, 0.08);
    --ds-accent-border: rgba(139, 92, 246, 0.3);
}

/* Extra Background Orb */
.design-page .bg-gradient-orb-1 {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

.design-page .bg-gradient-orb-2 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.04) 0%, transparent 70%);
}

.bg-gradient-orb-3 {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ds-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: ds-float-up 15s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 3s;
    animation-duration: 20s;
}

@keyframes ds-float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* ===== HERO SECTION ===== */
.ds-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 60px 80px;
    gap: 60px;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: ds-pulse-glow 4s ease-in-out infinite;
}

@keyframes ds-pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 1;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-accent);
    margin-bottom: 32px;
}

.hero-badge.pulse {
    animation: ds-badge-pulse 2s ease-in-out infinite;
}

@keyframes ds-badge-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

.badge-icon {
    font-size: 20px;
}

.badge-icon svg {
    width: 16px;
    height: 16px;
    color: var(--ds-accent);
}

/* Hero Title */
.ds-hero .hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.ds-hero .highlight,
.highlight {
    background: linear-gradient(135deg, var(--ds-accent), var(--ds-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ds-hero .hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.ds-hero .hero-subtitle strong {
    color: var(--ds-accent);
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-check {
    color: var(--ds-accent);
    font-weight: 600;
}

/* Hero CTA */
.ds-hero .hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ds-accent), var(--ds-accent-secondary)) !important;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: ds-shine 3s infinite;
}

@keyframes ds-shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--ds-accent);
    background: rgba(139, 92, 246, 0.1);
}

/* ===== HERO VISUAL — Canvas Preview ===== */
.hero-visual {
    flex: 1;
    max-width: 520px;
    z-index: 1;
}

.canvas-preview {
    position: relative;
    perspective: 1000px;
}

.canvas-window {
    background: #1e1e2e;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

@keyframes ds-float {

    0%,
    100% {
        transform: translateY(0) rotateX(0);
    }

    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

.canvas-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #15151f;
}

.canvas-dots {
    display: flex;
    gap: 6px;
}

.canvas-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.canvas-dot:nth-child(1) {
    background: #ff5f56;
}

.canvas-dot:nth-child(2) {
    background: #ffbd2e;
}

.canvas-dot:nth-child(3) {
    background: #27c93f;
}

.canvas-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.canvas-body {
    position: relative;
    padding: 16px;
}

.canvas-artboard {
    position: relative;
    background: #12121e;
    border-radius: 8px;
    height: 240px;
    overflow: hidden;
}

.canvas-layer {
    position: absolute;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.layer-bg {
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.1) 50%, rgba(245, 158, 11, 0.08) 100%);
}

.layer-shape {
    opacity: 0.8;
    will-change: transform;
    transition: none;
}

.shape-1 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(168, 139, 250, 0.2));
    top: 20%;
    left: 10%;
    animation: ds-shape-float 8s ease-in-out infinite;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(236, 72, 153, 0.1));
    top: 50%;
    right: 15%;
    transform: rotate(45deg);
    animation: ds-shape-float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(245, 158, 11, 0.1));
    bottom: 15%;
    left: 35%;
    animation: ds-shape-float 10s ease-in-out infinite;
}

@keyframes ds-shape-float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(10px, -15px) rotate(5deg);
    }

    66% {
        transform: translate(-8px, 8px) rotate(-3deg);
    }
}

.layer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.layer-text span {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, var(--ds-accent) 50%, var(--ds-accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.canvas-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 30%;
    left: 50%;
    z-index: 5;
    pointer-events: none;
}

.canvas-cursor::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 8px solid #fff;
    border-top: 0px solid transparent;
    border-bottom: 12px solid transparent;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.canvas-toolbar {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.toolbar-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.toolbar-color:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ===== SECTION SHARED ===== */
.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--ds-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ===== TOOLS SECTION ===== */
.tools-section {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tools-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(var(--ds-accent-rgb), 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    border-color: var(--ds-accent);
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(var(--ds-accent-rgb), 0.1);
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 auto 16px;
    position: relative;
    font-family: 'Inter', sans-serif;
}

/* Photoshop — blue */
.tool-icon-ps {
    background: linear-gradient(135deg, #001e36 0%, #31a8ff 100%);
    color: #9dd3ff;
    box-shadow: 0 4px 20px rgba(49, 168, 255, 0.3);
}

/* After Effects — purple-blue */
.tool-icon-ae {
    background: linear-gradient(135deg, #1a0033 0%, #9999ff 100%);
    color: #d4c4ff;
    box-shadow: 0 4px 20px rgba(153, 153, 255, 0.3);
}

/* Figma — multi-color */
.tool-icon-figma {
    background: linear-gradient(135deg, #1e1e1e 0%, #a259ff 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(162, 89, 255, 0.3);
}

.tool-icon-figma svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Canva — teal/cyan */
.tool-icon-canva {
    background: linear-gradient(135deg, #006c5b 0%, #00c4cc 100%);
    color: #b2f0ee;
    box-shadow: 0 4px 20px rgba(0, 196, 204, 0.3);
}

.tool-icon-canva svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.tool-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
}

.tool-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 10px;
    background: rgba(var(--ds-accent-rgb), 0.1);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--ds-accent);
    position: relative;
}

/* ===== FEATURES BENTO GRID ===== */
.features-showcase {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(var(--ds-accent-rgb), 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    border-color: var(--ds-accent);
    transform: translateY(-4px);
}

.bento-large {
    grid-column: span 2;
}

.bento-wide {
    grid-column: span 3;
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--ds-accent-soft);
    border: 1px solid var(--ds-accent-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bento-icon svg {
    width: 22px;
    height: 22px;
    color: var(--ds-accent);
}

.bento-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.bento-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.bento-visual {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.format-tag {
    padding: 6px 12px;
    background: rgba(var(--ds-accent-rgb), 0.08);
    border: 1px solid rgba(var(--ds-accent-rgb), 0.15);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== PALETTE GENERATOR ===== */
.palette-generator {
    margin-top: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 14px;
    overflow: hidden;
}

.palette-bar {
    display: flex;
    gap: 4px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
}

.palette-color {
    flex: 1;
    border-radius: 6px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s ease;
    transform-origin: bottom;
}

.palette-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 2px;
}

.palette-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: opacity 0.2s ease;
    letter-spacing: 0.5px;
}

.palette-refresh {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 5px 7px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.palette-refresh:hover {
    color: var(--ds-accent);
    border-color: var(--ds-accent);
    background: rgba(var(--ds-accent-rgb), 0.1);
}

/* ===== WORKFLOW TIMELINE ===== */
.workflow-section {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--ds-accent), transparent);
}

.timeline-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    position: relative;
}

.timeline-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    background: var(--ds-accent-soft);
    border: 2px solid var(--ds-accent-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-icon svg {
    width: 22px;
    height: 22px;
    color: var(--ds-accent);
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    max-width: 1300px;
    margin: 0 auto;
    scroll-margin-top: 80px;
}

.pricing-explanation {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.pricing-card:hover {
    border-color: rgba(var(--ds-accent-rgb), 0.3);
    transform: translateY(-4px);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(var(--ds-accent-rgb), 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.featured-glow {
    background: radial-gradient(circle at center, rgba(var(--ds-accent-rgb), 0.08) 0%, transparent 60%);
}

.pricing-card.featured {
    border-color: var(--ds-accent-border);
    background: rgba(var(--ds-accent-rgb), 0.03);
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--ds-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-icon {
    width: 48px;
    height: 48px;
    background: var(--ds-accent-soft);
    border: 1px solid var(--ds-accent-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.pricing-icon svg {
    width: 22px;
    height: 22px;
    color: var(--ds-accent);
}

.pricing-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.pricing-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.price-block {
    margin-bottom: 24px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.amount {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff, var(--ds-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.custom-price {
    padding: 8px 0;
}

.custom-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--ds-accent);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features .check {
    color: var(--ds-accent);
    font-weight: 600;
    font-size: 14px;
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ===== FAQ ===== */
.faq-section {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: rgba(var(--ds-accent-rgb), 0.3);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
}

.faq-question svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--ds-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.ds-cta-section {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 100px 24px;
    max-width: 700px;
    margin: 0 auto;
}

.ds-cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.ds-cta-section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== COMPARE TABLE ===== */
.compare-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.compare-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.compare-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--ds-accent-border);
    color: #fff;
}

.compare-toggle.active {
    background: var(--ds-accent-soft);
    border-color: var(--ds-accent-border);
    color: var(--ds-accent);
}

.compare-toggle svg {
    color: currentColor;
}

.compare-table-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin 0.5s ease, opacity 0.4s ease;
    opacity: 0;
    margin-top: 0;
}

.compare-table-wrapper.visible {
    max-height: 600px;
    opacity: 1;
    margin-top: 32px;
}

.compare-table {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.compare-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    text-align: center;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
}

.compare-table th {
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    padding: 18px 20px;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.compare-table .featured-col {
    background: rgba(139, 92, 246, 0.04);
}

.compare-table thead .featured-col {
    background: rgba(139, 92, 246, 0.08);
    color: var(--ds-accent);
}

.table-check {
    color: var(--ds-accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.table-x {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.compare-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== MOTION DESIGN SECTION ===== */
.motion-section {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.motion-section .section-subtitle {
    max-width: 600px;
    margin: 8px auto 0;
}

/* Demo Card Container */
.motion-showcase {
    max-width: 900px;
    margin: 0 auto 60px;
}

.motion-demo-card {
    background: #1e1e2e;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(139, 92, 246, 0.08),
        0 0 120px rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: box-shadow 0.4s ease;
}

.motion-demo-card:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(139, 92, 246, 0.12),
        0 0 160px rgba(139, 92, 246, 0.05);
}

.motion-demo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #15151f;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.motion-demo-header .canvas-title {
    flex: 1;
}

.motion-demo-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.motion-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--ds-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.motion-play-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transform: scale(1.15);
}

.motion-play-btn svg {
    width: 14px;
    height: 14px;
}

/* ===== DEMO STAGE ===== */
.motion-demo-stage {
    position: relative;
    height: 420px;
    background: #08081a;
    overflow: hidden;
}

#motionCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Grid background with crosshair center */
.motion-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.7;
    animation: motion-grid-shift 20s linear infinite;
}

@keyframes motion-grid-shift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* Scanline CRT overlay */
.motion-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 2px,
            rgba(0, 0, 0, 0.08) 4px);
    pointer-events: none;
    z-index: 10;
}

/* Vignette dark corners */
.motion-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(8, 8, 26, 0.7) 100%);
    pointer-events: none;
    z-index: 9;
}

/* ===== ANIMATED RINGS ===== */
.motion-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    transform: translate(-50%, -50%);
}

.motion-ring-1 {
    width: 160px;
    height: 160px;
    animation: motion-ring-pulse 4s ease-in-out infinite;
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.05) inset;
}

.motion-ring-2 {
    width: 250px;
    height: 250px;
    animation: motion-ring-pulse 4s ease-in-out infinite 0.6s;
    border-color: rgba(139, 92, 246, 0.18);
}

.motion-ring-3 {
    width: 340px;
    height: 340px;
    animation: motion-ring-pulse 4s ease-in-out infinite 1.2s;
    border-color: rgba(139, 92, 246, 0.08);
    border-style: dashed;
}

@keyframes motion-ring-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.06) rotate(15deg);
        opacity: 1;
    }
}

/* ===== ORBITING DOTS ===== */
.motion-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: motion-orbit-spin 8s linear infinite;
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ds-accent);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.8), 0 0 30px rgba(139, 92, 246, 0.3);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-1 {
    width: 180px;
    height: 180px;
    animation-duration: 6s;
}

.orbit-1 .orbit-dot {
    width: 6px;
    height: 6px;
    background: #a78bfa;
}

.orbit-2 {
    width: 260px;
    height: 260px;
    animation-duration: 10s;
    animation-direction: reverse;
}

.orbit-2 .orbit-dot {
    width: 5px;
    height: 5px;
    background: #c4b5fd;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
}

.orbit-3 {
    width: 340px;
    height: 340px;
    animation-duration: 14s;
}

.orbit-3 .orbit-dot {
    width: 4px;
    height: 4px;
    background: #ddd6fe;
    box-shadow: 0 0 8px rgba(221, 214, 254, 0.6);
}

@keyframes motion-orbit-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===== GLITCH FLASH ===== */
.motion-glitch-flash {
    position: absolute;
    inset: 0;
    background: rgba(139, 92, 246, 0.08);
    opacity: 0;
    z-index: 8;
    pointer-events: none;
    animation: motion-glitch 8s ease infinite;
    mix-blend-mode: screen;
}

@keyframes motion-glitch {

    0%,
    100% {
        opacity: 0;
    }

    13% {
        opacity: 0;
    }

    13.5% {
        opacity: 1;
        background: rgba(139, 92, 246, 0.15);
    }

    14% {
        opacity: 0;
    }

    14.3% {
        opacity: 0.6;
        background: rgba(167, 139, 250, 0.1);
    }

    14.6% {
        opacity: 0;
    }

    74% {
        opacity: 0;
    }

    74.5% {
        opacity: 0.8;
        background: rgba(139, 92, 246, 0.12);
    }

    75% {
        opacity: 0;
    }
}


/* ===== HORIZONTAL WIPES ===== */
.motion-wipe {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), rgba(255, 255, 255, 0.9), rgba(139, 92, 246, 0.6), transparent);
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    animation: motion-wipe-h 8s ease infinite;
    filter: blur(0.5px);
}

.wipe-1 {
    top: 38%;
    left: 0;
    right: 0;
    animation-delay: 0.5s;
}

.wipe-2 {
    top: 62%;
    left: 0;
    right: 0;
    animation-delay: 0.8s;
}

@keyframes motion-wipe-h {

    0%,
    100% {
        opacity: 0;
        transform: scaleX(0);
    }

    10% {
        opacity: 0;
    }

    13% {
        opacity: 1;
        transform: scaleX(1);
    }

    18% {
        opacity: 0.3;
        transform: scaleX(0.6);
    }

    23% {
        opacity: 0;
        transform: scaleX(0);
    }
}

/* ===== TIMELINE SCRUBBER ===== */
.motion-timeline {
    position: absolute;
    bottom: 16px;
    left: 20px;
    right: 20px;
    z-index: 11;
}

.timeline-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    position: relative;
    overflow: visible;
}

.motion-timeline .timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--ds-accent), #ec4899, var(--ds-accent-secondary));
    background-size: 200% 100%;
    border-radius: 2px;
    animation:
        motion-timeline-sweep 8s linear infinite,
        motion-timeline-color 4s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

@keyframes motion-timeline-color {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.timeline-head {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.7), 0 0 30px rgba(139, 92, 246, 0.2);
    animation: motion-timeline-head 8s linear infinite;
}

@keyframes motion-timeline-sweep {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes motion-timeline-head {
    0% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}

.timeline-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.timeline-marks span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* ===== PAUSED STATE ===== */
.motion-demo-stage.paused *,
.motion-demo-stage.paused::before,
.motion-demo-stage.paused::after {
    animation-play-state: paused !important;
}

/* ===== FEATURE CARDS ===== */
.motion-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.motion-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.motion-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(var(--ds-accent-rgb), 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.motion-feature-card:hover::before {
    opacity: 1;
}

.motion-feature-card:hover {
    border-color: var(--ds-accent);
    transform: translateY(-4px);
}

.motion-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--ds-accent-soft);
    border: 1px solid var(--ds-accent-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.motion-feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--ds-accent);
}

.motion-feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.motion-feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.motion-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

/* Feature card stagger */
.motion-feature-card.animate-target:nth-child(1) {
    transition-delay: 0s;
}

.motion-feature-card.animate-target:nth-child(2) {
    transition-delay: 0.1s;
}

.motion-feature-card.animate-target:nth-child(3) {
    transition-delay: 0.2s;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-target.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.tool-card.animate-target:nth-child(1) {
    transition-delay: 0s;
}

.tool-card.animate-target:nth-child(2) {
    transition-delay: 0.1s;
}

.tool-card.animate-target:nth-child(3) {
    transition-delay: 0.2s;
}

.tool-card.animate-target:nth-child(4) {
    transition-delay: 0.3s;
}

.bento-card.animate-target:nth-child(1) {
    transition-delay: 0s;
}

.bento-card.animate-target:nth-child(2) {
    transition-delay: 0.1s;
}

.bento-card.animate-target:nth-child(3) {
    transition-delay: 0.15s;
}

.bento-card.animate-target:nth-child(4) {
    transition-delay: 0.2s;
}

.bento-card.animate-target:nth-child(5) {
    transition-delay: 0.25s;
}

.pricing-card.animate-target:nth-child(1) {
    transition-delay: 0s;
}

.pricing-card.animate-target:nth-child(2) {
    transition-delay: 0.1s;
}

.pricing-card.animate-target:nth-child(3) {
    transition-delay: 0.2s;
}

.pricing-card.animate-target:nth-child(4) {
    transition-delay: 0.3s;
}

.timeline-item.animate-target:nth-child(1) {
    transition-delay: 0s;
}

.timeline-item.animate-target:nth-child(2) {
    transition-delay: 0.12s;
}

.timeline-item.animate-target:nth-child(3) {
    transition-delay: 0.24s;
}

.timeline-item.animate-target:nth-child(4) {
    transition-delay: 0.36s;
}

.timeline-item.animate-target:nth-child(5) {
    transition-delay: 0.48s;
}

.faq-item.animate-target:nth-child(1) {
    transition-delay: 0s;
}

.faq-item.animate-target:nth-child(2) {
    transition-delay: 0.08s;
}

.faq-item.animate-target:nth-child(3) {
    transition-delay: 0.16s;
}

.faq-item.animate-target:nth-child(4) {
    transition-delay: 0.24s;
}

.faq-item.animate-target:nth-child(5) {
    transition-delay: 0.32s;
}

.timeline-item.animate-target {
    animation: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .ds-hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 24px 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-features {
        justify-content: center;
    }

    .ds-hero .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        max-width: 480px;
        width: 100%;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-bento {
        grid-template-columns: 1fr 1fr;
    }

    .bento-large {
        grid-column: span 2;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .motion-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .motion-features-grid .motion-feature-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .ds-hero {
        padding: 100px 16px 40px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .features-bento {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-wide {
        grid-column: span 1;
    }

    .motion-features-grid {
        grid-template-columns: 1fr;
    }

    .motion-features-grid .motion-feature-card:last-child {
        grid-column: span 1;
    }

    .motion-demo-stage {
        height: 280px;
    }

    .kinetic-line {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .motion-logo-shape {
        width: 70px;
        height: 70px;
    }

    .motion-logo-text {
        font-size: 22px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .compare-table {
        border-radius: 14px;
    }

    .compare-table th,
    .compare-table td {
        padding: 12px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .ds-hero .hero-title {
        font-size: 2.5rem;
    }

    .pricing-card {
        padding: 28px 20px;
    }
}