/* =============================================
   Depctor Marketing — public website
   Extends auth/tokens theme for rayups.com
   ============================================= */

.marketing-page {
    font-family: var(--dep-font);
    background: var(--dep-bg);
    color: var(--dep-text);
    min-height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    --mkt-accent: var(--dep-accent);
    --mkt-accent-soft: var(--dep-accent-soft);
    --mkt-accent-glow: var(--dep-accent-glow);
}

/* Per-product themes — mirror login-page role accents */
.marketing-page--object-detection {
    --auth-accent: #22D3EE;
    --auth-accent-soft: rgba(34, 211, 238, 0.12);
    --auth-accent-glow: rgba(34, 211, 238, 0.35);
    --mkt-accent: #22D3EE;
    --mkt-accent-soft: rgba(34, 211, 238, 0.12);
    --mkt-accent-glow: rgba(34, 211, 238, 0.35);
}

.marketing-page--face-recoz {
    --auth-accent: #34D399;
    --auth-accent-soft: rgba(52, 211, 153, 0.12);
    --auth-accent-glow: rgba(52, 211, 153, 0.35);
    --mkt-accent: #34D399;
    --mkt-accent-soft: rgba(52, 211, 153, 0.12);
    --mkt-accent-glow: rgba(52, 211, 153, 0.35);
}

.mkt-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mkt-motif {
    position: absolute;
    inset: 0;
    opacity: 0.85;
}

.mkt-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--dep-bg) 82%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--dep-border);
}

.mkt-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mkt-nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.depctor-logo--mkt-nav {
    height: 44px;
    width: auto;
    max-width: 160px;
    border-radius: 8px;
}

.depctor-logo--mkt-footer {
    height: 52px;
    width: auto;
    max-width: 140px;
    border-radius: 8px;
}

.mkt-nav-toggle {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--dep-border-strong);
    color: var(--dep-text);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mkt-nav-collapse {
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 992px) {
    .mkt-nav-collapse {
        justify-content: flex-end;
    }
}

.mkt-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (min-width: 992px) {
    .mkt-nav-links {
        flex-direction: row;
        align-items: center;
        gap: 0.15rem;
        margin-right: auto;
        margin-left: 2rem;
    }
}

.mkt-nav-links a {
    display: block;
    padding: 0.55rem 0.9rem;
    color: var(--dep-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.mkt-nav-links a:hover,
.mkt-nav-links a.active {
    color: #fff;
    background: var(--mkt-accent-soft);
}

.mkt-nav-links a.active {
    color: var(--mkt-accent);
}

.mkt-nav-actions {
    padding-top: 0.75rem;
}

@media (min-width: 992px) {
    .mkt-nav-actions {
        padding-top: 0;
    }
}

.btn-mkt-primary {
    background: linear-gradient(135deg, var(--mkt-accent) 0%, color-mix(in srgb, var(--mkt-accent) 75%, #c4b5fd) 100%);
    border: none;
    color: var(--dep-bg);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px var(--mkt-accent-glow);
}

.btn-mkt-primary:hover {
    filter: brightness(1.06);
    color: var(--dep-bg);
}

.btn-mkt-outline {
    background: transparent;
    border: 1px solid var(--dep-border-strong);
    color: var(--dep-text);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
}

.btn-mkt-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: color-mix(in srgb, var(--mkt-accent) 40%, transparent);
}

.mkt-signin-menu {
    background: var(--dep-surface-2);
    border: 1px solid var(--dep-border-strong);
    border-radius: 12px;
    padding: 0.35rem;
    min-width: 220px;
}

.mkt-main {
    position: relative;
    z-index: 1;
}

/* --- Hero --- */
.mkt-hero {
    padding: 4.5rem 1.25rem 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mkt-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--mkt-accent-soft);
    color: var(--mkt-accent);
    border: 1px solid color-mix(in srgb, var(--mkt-accent) 25%, transparent);
    margin-bottom: 1.25rem;
}

.mkt-hero-title {
    font-size: clamp(2rem, 5vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 1.25rem;
    max-width: 18ch;
}

.mkt-hero-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--dep-text-muted);
    max-width: 52ch;
    margin-bottom: 2rem;
}

.mkt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mkt-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--dep-border);
}

.mkt-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.mkt-stat-label {
    font-size: 0.78rem;
    color: var(--dep-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Sections --- */
.mkt-section {
    padding: 3.5rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mkt-section-header {
    margin-bottom: 2.5rem;
    max-width: 640px;
}

.mkt-section-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mkt-accent);
    margin-bottom: 0.5rem;
}

.mkt-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.75rem;
}

.mkt-section-desc {
    color: var(--dep-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* --- Cards --- */
.mkt-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.mkt-card {
    background: var(--dep-surface);
    border: 1px solid var(--dep-border);
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.mkt-card:hover {
    border-color: color-mix(in srgb, var(--dep-accent) 35%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.mkt-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    background: var(--dep-accent-soft);
    color: var(--dep-accent);
}

.mkt-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.65rem;
}

.mkt-card p {
    font-size: 0.92rem;
    color: var(--dep-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.mkt-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dep-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.mkt-card-link:hover {
    color: #fff;
}

/* --- Feature list --- */
.mkt-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mkt-feature-list--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.mkt-feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--dep-surface);
    border: 1px solid var(--dep-border);
    border-radius: 14px;
}

.mkt-feature-item i {
    color: var(--dep-accent);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.mkt-feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.35rem;
}

.mkt-feature-item p {
    font-size: 0.9rem;
    color: var(--dep-text-muted);
    margin: 0;
    line-height: 1.55;
}

/* --- Flow diagram --- */
.mkt-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 2rem;
    background: var(--dep-surface);
    border: 1px solid var(--dep-border);
    border-radius: 16px;
}

@media (min-width: 768px) {
    .mkt-flow {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

.mkt-flow-step {
    text-align: center;
    flex: 1;
    padding: 1rem;
}

.mkt-flow-step i {
    font-size: 2rem;
    color: var(--dep-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.mkt-flow-step strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.mkt-flow-step span {
    font-size: 0.82rem;
    color: var(--dep-text-dim);
}

.mkt-flow-arrow {
    color: var(--dep-text-dim);
    font-size: 1.25rem;
    text-align: center;
    transform: rotate(90deg);
}

@media (min-width: 768px) {
    .mkt-flow-arrow {
        transform: none;
    }
}

/* --- CTA band --- */
.mkt-cta {
    margin: 2rem 1.25rem 4rem;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--dep-accent) 18%, var(--dep-surface)) 0%, var(--dep-surface-2) 100%);
    border: 1px solid color-mix(in srgb, var(--dep-accent) 25%, transparent);
    text-align: center;
}

.mkt-cta h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.mkt-cta p {
    color: var(--dep-text-muted);
    max-width: 48ch;
    margin: 0 auto 1.5rem;
}

/* --- Contact form --- */
.mkt-contact-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.mkt-form-card {
    background: var(--dep-surface);
    border: 1px solid var(--dep-border);
    border-radius: 16px;
    padding: 2rem;
}

.mkt-form-card .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dep-text-muted);
}

.mkt-form-card .form-control,
.mkt-form-card .form-select {
    background: var(--dep-surface-2);
    border: 1px solid var(--dep-border-strong);
    color: var(--dep-text);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
}

.mkt-form-card .form-control:focus,
.mkt-form-card .form-select:focus {
    background: var(--dep-surface-3);
    border-color: color-mix(in srgb, var(--dep-accent) 50%, transparent);
    color: #fff;
    box-shadow: 0 0 0 3px var(--dep-accent-soft);
}

.mkt-alert {
    border-radius: 10px;
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.mkt-alert--success {
    background: var(--dep-success-soft);
    border: 1px solid color-mix(in srgb, var(--dep-success) 30%, transparent);
    color: var(--dep-success);
}

.mkt-alert--danger {
    background: var(--dep-danger-soft);
    border: 1px solid color-mix(in srgb, var(--dep-danger) 30%, transparent);
    color: var(--dep-danger);
}

/* --- Footer --- */
.mkt-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--dep-border);
    background: color-mix(in srgb, var(--dep-bg) 90%, var(--dep-surface));
    padding: 3rem 1.25rem 1.5rem;
    margin-top: 2rem;
}

.mkt-footer-heading {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dep-text-dim);
    margin-bottom: 1rem;
}

.mkt-footer-tagline {
    font-size: 0.88rem;
    color: var(--dep-text-muted);
    line-height: 1.6;
    max-width: 28ch;
}

.mkt-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mkt-footer-links li {
    margin-bottom: 0.5rem;
}

.mkt-footer-links a {
    color: var(--dep-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
}

.mkt-footer-links a:hover {
    color: var(--dep-accent);
}

.mkt-footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dep-border);
    font-size: 0.8rem;
    color: var(--dep-text-dim);
    text-align: center;
}

@media (max-width: 991px) {
    .mkt-nav-collapse {
        padding: 1rem 0 0.5rem;
    }

    .mkt-hero {
        padding-top: 2.5rem;
    }
}

/* --- Steps (How It Works) --- */
.mkt-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mkt-step {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--dep-surface);
    border: 1px solid var(--dep-border);
    border-radius: 16px;
    align-items: flex-start;
}

.mkt-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--dep-accent-soft);
    color: var(--dep-accent);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mkt-step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem;
}

.mkt-step p {
    font-size: 0.92rem;
    color: var(--dep-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* --- FAQ accordion --- */
.mkt-faq-wrap {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mkt-accordion .accordion-item {
    background: var(--dep-surface);
    border: 1px solid var(--dep-border);
    margin-bottom: 0.5rem;
    border-radius: 12px !important;
    overflow: hidden;
}

.mkt-accordion .accordion-button {
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: none;
    padding: 1.1rem 1.25rem;
}

.mkt-accordion .accordion-button:not(.collapsed) {
    background: var(--dep-accent-soft);
    color: var(--dep-accent);
}

.mkt-accordion .accordion-button::after {
    filter: invert(1) opacity(0.6);
}

.mkt-accordion .accordion-body {
    color: var(--dep-text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    padding: 0 1.25rem 1.25rem;
}

.mkt-footer-inline-link {
    color: var(--mkt-accent);
    text-decoration: none;
}

.mkt-footer-inline-link:hover {
    text-decoration: underline;
}

/* --- Split hero + login-style showcase (product pages) --- */
.mkt-hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.5rem 1.25rem 2.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .mkt-hero-split {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding-top: 4rem;
    }
}

.mkt-hero-split-content .mkt-hero-title {
    max-width: none;
}

.mkt-showcase-panel {
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--dep-border-strong);
    background: var(--dep-surface);
    overflow: hidden;
    min-height: 380px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px color-mix(in srgb, var(--auth-accent) 14%, transparent);
}

.mkt-showcase-panel-inner {
    position: relative;
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
}

.mkt-showcase-panel .auth-motif {
    position: absolute;
    inset: 0;
    opacity: 1;
}

.mkt-showcase-panel-content {
    position: relative;
    z-index: 2;
}

.mkt-showcase-tagline {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0.75rem 0 0.5rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.mkt-showcase-desc {
    font-size: 0.88rem;
    color: var(--dep-text-muted);
    margin: 0 0 1rem;
    line-height: 1.55;
    max-width: 36ch;
}

.mkt-showcase-stats {
    gap: 1rem !important;
}

/* Motif variants — object detection (cyan, zones, vehicles) */
.mkt-motif--detection .auth-detection-box--1 {
    width: 24%;
    aspect-ratio: 2.1 / 1;
}

.mkt-zone-polygon {
    position: absolute;
    top: 30%;
    left: 16%;
    width: 48%;
    height: 40%;
    border: 1.5px dashed var(--auth-accent);
    opacity: 0.45;
    clip-path: polygon(6% 12%, 94% 5%, 90% 90%, 10% 88%);
    z-index: 1;
    animation: mktZonePulse 20s ease-in-out infinite;
}

@keyframes mktZonePulse {
    0%, 100% { opacity: 0.32; }
    50% { opacity: 0.58; }
}

/* Motif variants — face recoz (emerald, oval frames) */
.mkt-motif--face .auth-detection-box--2,
.mkt-motif--face .auth-detection-box--3 {
    border-radius: 42%;
}

.mkt-face-scan-ring {
    position: absolute;
    top: 36%;
    left: 40%;
    width: 76px;
    height: 92px;
    border: 2px solid var(--auth-accent);
    border-radius: 45%;
    opacity: 0.5;
    z-index: 1;
    animation: mktFaceScan 3s ease-in-out infinite;
    box-shadow: 0 0 20px var(--auth-accent-glow);
}

@keyframes mktFaceScan {
    0%, 100% { transform: scale(1); opacity: 0.38; }
    50% { transform: scale(1.08); opacity: 0.68; }
}

.mkt-count-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--dep-surface) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--auth-accent) 35%, transparent);
    color: var(--auth-accent);
    backdrop-filter: blur(8px);
}

.mkt-count-chip--1 { top: 16%; right: 10%; }
.mkt-count-chip--2 { bottom: 26%; left: 8%; }

/* Themed product cards on home */
.mkt-card--themed {
    overflow: hidden;
    position: relative;
}

.mkt-card--detection {
    border-color: color-mix(in srgb, #22D3EE 22%, var(--dep-border));
}

.mkt-card--detection:hover {
    border-color: color-mix(in srgb, #22D3EE 45%, var(--dep-border));
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.12);
}

.mkt-card--face {
    border-color: color-mix(in srgb, #34D399 22%, var(--dep-border));
}

.mkt-card--face:hover {
    border-color: color-mix(in srgb, #34D399 45%, var(--dep-border));
    box-shadow: 0 12px 40px rgba(52, 211, 153, 0.12);
}

.mkt-card-preview {
    position: relative;
    height: 120px;
    margin: -1.5rem -1.5rem 1.25rem;
    overflow: hidden;
    border-bottom: 1px solid var(--dep-border);
    background: var(--dep-bg);
}

.mkt-card-preview .auth-motif {
    position: absolute;
    inset: 0;
    transform: scale(1.15);
    opacity: 0.9;
}

.mkt-card--detection .mkt-card-preview {
    --auth-accent: #22D3EE;
    --auth-accent-soft: rgba(34, 211, 238, 0.12);
    --auth-accent-glow: rgba(34, 211, 238, 0.35);
}

.mkt-card--face .mkt-card-preview {
    --auth-accent: #34D399;
    --auth-accent-soft: rgba(52, 211, 153, 0.12);
    --auth-accent-glow: rgba(52, 211, 153, 0.35);
}

.mkt-card--detection .mkt-card-icon {
    color: #22D3EE;
    background: rgba(34, 211, 238, 0.12);
}

.mkt-card--face .mkt-card-icon {
    color: #34D399;
    background: rgba(52, 211, 153, 0.12);
}

@media (max-width: 991px) {
    .mkt-showcase-panel {
        min-height: 320px;
    }

    .mkt-showcase-panel-inner {
        min-height: 320px;
    }
}
