/* Adapted styles for index.html components to match api.html dark theme */

/* --- Nano Announcement Card (Dark Mode) --- */
.nano-announcement-wrapper {
    padding: 60px 0;
    background: transparent; /* Remove light gradient */
    position: relative;
    overflow: hidden;
}

.nano-announcement {
    position: relative;
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 42px 48px;
    background: rgba(255, 255, 255, 0.02); /* Dark background */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.nano-announcement:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(120deg, #4285f4, #ff5647, #4285f4);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5; /* Reduce opacity for dark mode */
}

.nano-announcement-bg {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: radial-gradient(circle at 20% 30%, rgba(66, 69, 255, 0.1), transparent 60%), radial-gradient(circle at 80% 70%, rgba(255, 90, 157, 0.1), transparent 65%);
    pointer-events: none;
}

.nano-announcement-glow {
    position: absolute;
    top: -140px;
    right: -140px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #6b8bff 0%, rgba(107, 139, 255, 0) 70%);
    filter: blur(60px);
    opacity: 0.2; /* Reduce opacity */
    pointer-events: none;
}

.nano-announcement-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.nano-announcement-left {
    flex: 1 1 420px;
    min-width: 300px;
}

.nano-announcement-right {
    flex: 0 1 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    position: relative;
}

.nano-title {
    font-size: 34px;
    line-height: 1.15;
    margin: 18px 0 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary); /* White text */
}

.nano-gradient {
    background: linear-gradient(90deg, #1a3cff, #6844ed 35%, #ff5ea8 70%, #ffb457);
    -webkit-background-clip: text;
    color: transparent;
}

.nano-text {
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-secondary); /* Light grey text */
    max-width: 540px;
    margin: 0 0 26px;
    font-weight: 500;
}

.nano-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1); /* Dark badge */
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34a853;
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7);
    animation: pulseDot 2.4s infinite;
    display: inline-block;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(52, 168, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0); }
}

.nano-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nano-btn-primary {
    background: #4245ff !important;
    border: none !important;
    color: white !important;
    padding: 14px 30px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    transition: .35s ease;
    text-decoration: none;
}

.nano-btn-primary:hover {
    background: #2d30d9 !important;
    transform: translateY(-2px);
}

.nano-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 30px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    transition: .35s ease;
    text-decoration: none;
}

.nano-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.nano-icon-planet {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nano-google-g {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

.nano-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(66, 69, 255, 0.28);
    animation: spin 22s linear infinite;
}

.nano-ring-1 { width: 100%; height: 100%; }
.nano-ring-2 { width: 70%; height: 70%; animation-duration: 14s; border-style: solid; border-color: rgba(94, 110, 255, 0.35); }

@keyframes spin { to { transform: rotate(360deg); } }

.nano-float-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #575aff, #4d94ff);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(94, 164, 255, 0.28);
    animation: floatDot 6s ease-in-out infinite;
}

.nano-float-dot.d1 { top: 12%; left: 18%; animation-delay: .2s; }
.nano-float-dot.d2 { bottom: 14%; right: 16%; animation-delay: 1.1s; }
.nano-float-dot.d3 { top: 22%; right: 8%; animation-delay: 2.4s; }

@keyframes floatDot { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(10px); } }

@media (max-width: 991px) {
    .nano-title { font-size: 30px; }
    .nano-announcement-inner { gap: 40px; }
    .nano-announcement { padding: 38px 34px; }
}

@media (max-width: 640px) {
    .nano-title { font-size: 26px; }
    .nano-announcement { padding: 34px 26px; }
    .nano-announcement-inner { flex-direction: column; }
    .nano-announcement-right { order: -1; }
}

/* --- Image Studio (Dark Mode) --- */
#image-studio {
    padding: 60px 0;
    background: transparent !important; /* Remove light background */
}

#image-studio .app-window {
    background: rgba(20, 20, 20, 0.8); /* Dark window */
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: windowFloat 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

#image-studio .window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-light);
}

#image-studio .traffic { display: flex; gap: 8px; }
#image-studio .traffic .dot { width: 10px; height: 10px; border-radius: 50%; }
#image-studio .traffic .dot.red { background: #ff5f57; }
#image-studio .traffic .dot.amber { background: #febc2e; }
#image-studio .traffic .dot.green { background: #28c840; }

#image-studio .window-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

#image-studio .window-actions { display: flex; gap: 8px; }

#image-studio .pill {
    padding: 6px 10px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 12px;
}

#image-studio .screen {
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
}

#image-studio .screen img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

@keyframes windowFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 576px) {
    #image-studio { padding: 40px 0 !important; }
    #image-studio .screen img { max-height: 300px; }
}

/* --- Hero Layout Tweaks (index) --- */
.hero-layout {
    align-items: center;
    gap: 3rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-bullets i {
    color: #8ab4ff;
    font-size: 0.9rem;
}

/* Hero gallery cards - deck / overlapping layout */
.hero-gallery {
    display: flex;
    gap: 0;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 1rem 0;
}

.hero-card {
    flex: 0 0 300px; /* large base size so we can increase visual presence */
    width: 300px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.85);
    transform-origin: center bottom;
    transition: transform 0.45s cubic-bezier(.2,.9,.3,1), box-shadow 0.35s ease;
    cursor: pointer;
}

.hero-card + .hero-card {
    margin-left: -160px; /* overlap amount, creates deck effect */
}

.hero-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.45s ease;
}

.hero-card-left { z-index: 1; transform: rotate(-7deg) translateY(10px); }
.hero-card-center { z-index: 2; transform: translateY(0); }
.hero-card-right { z-index: 3; transform: rotate(7deg) translateY(10px); }

.hero-card:hover { transform: translateY(-12px) scale(1.03); z-index: 8; box-shadow: 0 50px 120px rgba(0,0,0,0.95); }

/* responsive reductions so the deck scales down while staying in formation */
@media (max-width: 1400px) {
    .hero-card { flex: 0 0 420px; width: 420px; }
    .hero-card + .hero-card { margin-left: -140px; }
}

@media (max-width: 1100px) {
    .hero-card { flex: 0 0 360px; width: 360px; }
    .hero-card + .hero-card { margin-left: -120px; }
}

@media (max-width: 900px) {
    .hero-card { flex: 0 0 300px; width: 300px; }
    .hero-card + .hero-card { margin-left: -90px; }
}

@media (max-width: 768px) {
    /* Stack vertically on small screens to avoid overlap and keep left column readable */
    .hero-layout { grid-template-columns: minmax(0, 1fr); }
    .hero-gallery { justify-content: center; padding-top: 1rem; }
    .hero-card { position: relative; width: 92%; flex: 0 0 auto; margin: 0; }
    .hero-card + .hero-card { margin-left: 0; margin-top: 1rem; }
    .hero-card-left, .hero-card-center, .hero-card-right { transform: none; }
}

/* --- API Section Card (Dark Mode) --- */
.api-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 18px 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.api-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.api-chip {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.api-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34a853;
    box-shadow: 0 0 0 4px rgba(52, 168, 83, 0.35);
}

.api-snippet {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.65);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8rem;
    color: #e1e1e1;
    overflow-x: auto;
}

.api-snippet code {
    white-space: pre;
}

.api-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.8rem;
}

.api-meta-label {
    display: block;
    color: var(--text-secondary);
}

.api-meta-value {
    display: block;
    color: #8ab4ff;
    font-weight: 600;
}

/* --- How It Works Section (Dark Mode) --- */
.how-it-works-section {
    border-top: 1px solid var(--border-light);
    padding: 6rem 0;
}

.how-it-works-content.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: flex-start;
}

.steps-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #4285f4, #34a853);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.step-card:hover::before {
    opacity: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(66, 133, 244, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8ab4ff;
}

.step-icon i {
    font-size: 18px;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.step-content h3 {
    font-size: 1.05rem;
    color: white;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .step-card {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        row-gap: 8px;
    }

    .step-number {
        order: -1;
    }
}

.how-it-works-aside {
    align-self: stretch;
}

.aside-card {
    height: 100%;
    padding: 24px 22px;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(66, 133, 244, 0.35), transparent 55%),
        radial-gradient(circle at bottom right, rgba(52, 168, 83, 0.35), transparent 55%),
        rgba(8, 9, 13, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aside-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 14px 0;
}

.aside-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aside-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.aside-list i {
    color: #34a853;
    font-size: 14px;
}

.aside-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
}

.aside-label {
    color: var(--text-secondary);
}

.aside-value {
    color: #8ab4ff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .how-it-works-content.two-column {
        grid-template-columns: minmax(0, 1fr);
    }

    .how-it-works-aside {
        order: -1;
    }
}

/* --- FAQ Accordion (Dark Mode) --- */
.flat-accordion .flat-toggle {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.flat-accordion .flat-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.flat-accordion .toggle-title {
    padding: 20px 24px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    position: relative;
}

.flat-accordion .toggle-title.active {
    color: #fff;
}

.flat-accordion .toggle-content {
    display: none;
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.flat-accordion .toggle-title::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.flat-accordion .toggle-title.active::after {
    content: '-';
}

/* --- CTA Section --- */
.cta {
    padding: 80px 0;
    text-align: center;
}

.cta-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.cta-title h6 {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.cta-title h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* --- Text Animation --- */
.animationtext .cd-words-wrapper {
    display: inline-block;
    position: relative;
    text-align: left;
}
.animationtext .cd-words-wrapper b {
    display: inline-block;
    position: absolute;
    white-space: nowrap;
    left: 0;
    top: 0;
}
.animationtext .cd-words-wrapper b.is-visible {
    position: relative;
}
.animationtext .item-text {
    background: linear-gradient(to right, #4285f4, #34a853, #fbbc05, #ea4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Social Icons in Hero --- */
.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}
.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
}
.social-icons a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* --- List Item --- */
.list-item {
    list-style: none;
    margin: 24px 0;
}
.list-item li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}
.list-item li i {
    color: #4285f4;
}

/* --- Pricing Pulse --- */
.gradient-pulse-border {
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 164, 0.5);
    box-shadow: 0 0 0 0 rgba(255, 107, 164, 0.25);
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 211, 0.2); }
    50% { box-shadow: 0 0 12px 4px rgba(255, 107, 181, 0.2); }
}

/* Notice card styling for Pricing area */
.notice-card {
    margin: 0 auto 50px;
    max-width: 760px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
    color: var(--text-primary);
}

.notice-card .notice-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.04);
    color: #ffd9f0;
    flex: 0 0 40px;
}
.notice-card .notice-icon i { font-size: 18px; }

.notice-card .notice-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

@media (max-width: 800px) {
    .notice-card { padding: 12px 14px; max-width: 92%; gap: 12px; }
    .notice-card .notice-text { font-size: 15px; }
    .notice-card .notice-icon { width: 36px; height: 36px; flex: 0 0 36px; }
}

/* Info tooltip (used in Pricing features list) */
.info-tooltip {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 8px;
    cursor: pointer;
}

.info-trigger i { font-size: 0.85rem; }

.info-tooltip-text {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 220px;
    max-width: 360px;
    background: rgba(18,18,18,0.98);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
    z-index: 50;
    font-size: 0.92rem;
    line-height: 1.35;
}

.info-tooltip-text::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: rgba(18,18,18,0.98) transparent transparent transparent;
}

.info-tooltip:hover .info-tooltip-text,
.info-tooltip:focus-within .info-tooltip-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.info-tooltip .highlight-blue { color: #63a4ff; font-weight: 700; }
.info-tooltip .highlight { color: #ffd166; font-weight: 700; }

@media (max-width: 640px) {
    .info-tooltip-text { left: 0; right: auto; min-width: 180px; max-width: 90vw; }
    .info-tooltip-text::after { right: 20px; }
}

/* --- Grid Utilities --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 991px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Sticky Popup (Dark Mode) --- */
#sticky-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(20, 20, 20, 0.9);
    font-size: 15px;
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

#sticky-popup .icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    filter: invert(1); /* Invert icon for dark mode if it's dark */
}

#sticky-popup a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 8px;
    border-radius: 10px;
}

#sticky-popup a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 576px) {
    #sticky-popup {
        font-size: 12px;
        padding: 6px 8px;
        max-width: calc(100vw - 16px);
        flex-wrap: nowrap;
        white-space: nowrap;
        justify-content: center;
        gap: 6px;
    }

    #sticky-popup .icon {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }

    #sticky-popup a {
        padding: 4px 6px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* --- How It Works Section (Dark Mode) --- */
.how-it-works-section {
    border-top: 1px solid var(--border-light);
    padding: 6rem 0;
}

.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.gallery-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-column .platform-slider {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-column .platform-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 20, 37, 0.8) 0%, rgba(26, 34, 56, 0.8) 100%);
    height: 100%;
}

.gallery-column .platform-slider .swiper-slide img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 12px;
}

.gallery-column .platform-slider .swiper-pagination {
    bottom: 20px;
    z-index: 20;
}

.gallery-column .platform-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.gallery-column .platform-slider .swiper-pagination-bullet-active {
    background: #4285f4;
    width: 28px;
    border-radius: 12px;
}

.gallery-column .platform-slider .swiper-button-prev,
.gallery-column .platform-slider .swiper-button-next {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 20;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-column .platform-slider .swiper-button-prev:after,
.gallery-column .platform-slider .swiper-button-next:after {
    font-size: 16px;
    font-weight: bold;
}

.gallery-column .platform-slider .swiper-button-prev:hover,
.gallery-column .platform-slider .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.gallery-column .platform-slider .swiper-button-prev {
    left: 15px;
}

.gallery-column .platform-slider .swiper-button-next {
    right: 15px;
}

.steps-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.step-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #4285f4, #34a853);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.step-card:hover::before {
    opacity: 1;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.1rem;
    color: white;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gallery-column .platform-slider {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .how-it-works-content {
        gap: 24px;
    }
    
    .gallery-column .platform-slider {
        height: 280px;
    }
    
    .step-card {
        padding: 16px;
        gap: 12px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.swipe-up {
    transform: translate(-50%, 0) !important;
    opacity: 1 !important;
}

.swipe-down {
    transform: translate(-50%, 100%) !important;
    opacity: 0 !important;
}
