/* Deamon Landing Theme — dark, gradient, animated SaaS landing.
   Brand: electric indigo #4f46e5 -> violet #7c3aed on near-black #0B0A14. */

:root {
    --color-t-primary: #4f46e5;
    --color-t-accent: #7c3aed;
    --bg: #0b0a14;
    --bg-2: #0e0c18;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.06);
    --fg: #f5f5fa;
    --fg-muted: #a9a7b8;
    --fg-dim: #6b7280;
    --indigo-soft: #818cf8;
    --success: #10b981;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --container: 1160px;
    --gradient: linear-gradient(135deg, var(--color-t-primary), var(--color-t-accent));
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.d-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

.d-section {
    position: relative;
    padding: 120px 0;
}

.d-section--tight { padding: 64px 0; }

.d-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--indigo-soft);
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.d-section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 56px;
}

.d-section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.d-section-head p {
    max-width: 540px;
    color: var(--fg-muted);
    font-size: 16px;
}

/* Buttons */
.d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.d-btn--primary {
    color: #fff;
    background: var(--gradient);
    background-size: 160% 160%;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
}

.d-btn--primary:hover {
    transform: translateY(-2px) scale(1.02);
    animation: d-shimmer 1.6s ease infinite;
}

.d-btn--ghost {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

.d-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.d-btn--lg { padding: 15px 28px; font-size: 15px; }

@keyframes d-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Decorative background glow */
.d-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* ===== Navbar ===== */
.d-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
    border-bottom: 1px solid transparent;
}

.d-nav.is-scrolled {
    background: rgba(11, 10, 20, 0.72);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--border-soft);
}

.d-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.d-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.03em;
}

.d-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--gradient);
    display: grid;
    place-items: center;
    box-shadow: 0 0 18px rgba(79, 70, 229, 0.5);
}

.d-brand-mark svg { width: 16px; height: 16px; }
.d-brand img { height: 28px; width: auto; }

.d-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.d-nav-links a {
    font-size: 14px;
    color: var(--fg-muted);
    transition: color 0.15s ease;
}

.d-nav-links a:hover { color: var(--fg); }

.d-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.d-nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--fg);
    cursor: pointer;
}

/* ===== Hero ===== */
.d-hero {
    position: relative;
    padding: 160px 0 110px;
    overflow: hidden;
}

.d-hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    z-index: 0;
}

.d-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.d-hero-copy { max-width: 600px; }

.d-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    margin: 20px 0 18px;
}

.d-hero h1 .d-grad {
    background: linear-gradient(120deg, #a5b4fc, #c4b5fd, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.d-hero-sub {
    font-size: 18px;
    color: var(--fg-muted);
    margin-bottom: 30px;
    max-width: 540px;
}

.d-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.d-hero-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fg-dim);
}

.d-hero-trust svg { width: 15px; height: 15px; color: var(--success); }

/* Floating mockups */
.d-hero-visual {
    position: relative;
    min-height: 420px;
}

.d-mock {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-2);
    box-shadow: 0 0 60px rgba(79, 70, 229, 0.28), 0 24px 60px rgba(0, 0, 0, 0.5);
}

.d-mock--dash {
    position: relative;
    z-index: 2;
    animation: d-float 8s ease-in-out infinite;
}

.d-mock--mini {
    position: absolute;
    right: -8px;
    top: 18px;
    width: 232px;
    z-index: 3;
    animation: d-float 9s ease-in-out infinite;
    animation-delay: -3s;
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.3), 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes d-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.d-mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    background: #0d0b1a;
    border-bottom: 1px solid var(--border-soft);
}

.d-dot { width: 9px; height: 9px; border-radius: 50%; background: #2a2740; }
.d-mock-body { padding: 18px; }

.d-mock-row {
    height: 9px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.07);
    margin-bottom: 10px;
}

.d-mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.d-mock-stat {
    padding: 12px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
}

.d-mock-stat b { display: block; font-size: 18px; }
.d-mock-stat span { font-size: 10px; color: var(--fg-dim); }
.d-mock-up { color: var(--success); font-size: 10px; }

/* ===== Trusted-by marquee ===== */
.d-trusted {
    padding: 48px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
}

.d-trusted-label {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--fg-dim);
    margin-bottom: 28px;
}

.d-marquee {
    display: flex;
    width: max-content;
    gap: 64px;
    animation: d-marquee 32s linear infinite;
}

.d-marquee:hover { animation-play-state: paused; }

@keyframes d-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.d-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.28);
    transition: color 0.2s ease;
}

.d-marquee:hover .d-logo { color: rgba(255, 255, 255, 0.5); }

.d-logo i {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    font-style: normal;
}

/* ===== Feature grid ===== */
.d-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
    z-index: 2;
}

.d-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.d-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 18px 50px rgba(79, 70, 229, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.d-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: rgba(79, 70, 229, 0.14);
    border: 1px solid rgba(79, 70, 229, 0.25);
    color: var(--indigo-soft);
}

.d-feature-icon svg { width: 22px; height: 22px; }
.d-feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.d-feature p { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* ===== Steps ===== */
.d-steps {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.d-steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.5), transparent);
    z-index: 0;
}

.d-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.d-step-circle {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.5), 0 0 60px rgba(79, 70, 229, 0.2);
    z-index: 1;
}

.d-step-circle svg { width: 24px; height: 24px; }

.d-step-num {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid rgba(79, 70, 229, 0.5);
    color: var(--indigo-soft);
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.d-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.d-step p { font-size: 14px; color: var(--fg-muted); max-width: 240px; }

/* ===== Theme showcase ===== */
.d-showcase-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 14px 40px 28px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.d-showcase-track::-webkit-scrollbar { display: none; }

.d-theme-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.d-theme-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.d-theme-frame {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.d-theme-frame .d-fakebar {
    height: 28px;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
}

.d-theme-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
}

.d-theme-meta b { font-size: 15px; font-weight: 700; }
.d-theme-meta span { font-size: 12px; color: var(--fg-dim); }

/* ===== Admin preview ===== */
.d-admin {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.d-admin-shot {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-2);
    box-shadow: 0 0 60px rgba(79, 70, 229, 0.2), 0 30px 70px rgba(0, 0, 0, 0.5);
}

.d-admin-shot .d-mock-bar { padding: 12px 16px; }
.d-admin-shot-body { display: flex; min-height: 300px; }

.d-admin-rail {
    width: 56px;
    background: #131022;
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
}

.d-admin-rail span {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--fg-dim);
}

.d-admin-rail span.is-active {
    background: rgba(79, 70, 229, 0.2);
    color: var(--indigo-soft);
}

.d-admin-main { flex: 1; padding: 20px; }

.d-admin-callouts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.d-callout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border-soft);
}

.d-callout-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(79, 70, 229, 0.14);
    color: var(--indigo-soft);
    display: grid;
    place-items: center;
}

.d-callout-icon svg { width: 18px; height: 18px; }
.d-callout b { font-size: 15px; }
.d-callout p { font-size: 13px; color: var(--fg-muted); }

/* ===== Stats ===== */
.d-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(79, 70, 229, 0.2);
    position: relative;
    z-index: 2;
}

.d-stat { text-align: center; }

.d-stat b {
    display: block;
    font-size: clamp(30px, 4.4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.d-stat span { font-size: 14px; color: var(--fg-muted); }

/* ===== Pricing ===== */
.d-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 14px;
    color: var(--fg-muted);
}

.d-toggle-switch {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.d-toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient);
    transition: transform 0.22s ease;
}

.d-toggle-switch.is-yearly::after { transform: translateX(20px); }

.d-toggle-save {
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
    padding: 3px 9px;
    border-radius: 999px;
}

.d-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.d-plan {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

.d-plan--hot {
    border-color: rgba(79, 70, 229, 0.5);
    background: rgba(79, 70, 229, 0.07);
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.18);
    transform: translateY(-8px);
}

.d-plan-tag {
    align-self: flex-start;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--gradient);
    padding: 4px 12px;
    border-radius: 999px;
}

.d-plan h3 { font-size: 17px; font-weight: 700; }
.d-plan .d-plan-desc { font-size: 13px; color: var(--fg-muted); margin-bottom: 18px; }

.d-plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.d-plan-price b { font-size: 38px; font-weight: 800; }
.d-plan-price span { font-size: 14px; color: var(--fg-dim); }
.d-plan-amount[data-yearly] { display: none; }
.d-pricing.is-yearly .d-plan-amount[data-monthly] { display: none; }
.d-pricing.is-yearly .d-plan-amount[data-yearly] { display: inline; }

.d-plan-feats {
    list-style: none;
    margin: 20px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.d-plan-feats li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: #c4c2d0;
}

.d-plan-feats svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--indigo-soft);
    margin-top: 1px;
}

/* ===== Testimonials ===== */
.d-tg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
    z-index: 2;
}

.d-quote p { font-size: 15px; color: #d6d4e2; line-height: 1.7; margin-bottom: 20px; }

.d-stars { display: flex; gap: 3px; margin-bottom: 14px; color: #fbbf24; }
.d-stars svg { width: 15px; height: 15px; }

.d-quote-by { display: flex; align-items: center; gap: 12px; }

.d-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}

.d-quote-by b { font-size: 14px; display: block; }
.d-quote-by span { font-size: 12px; color: var(--fg-dim); }

/* ===== FAQ ===== */
.d-faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.d-faq-item {
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

.d-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: 0;
    color: var(--fg);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.d-faq-q svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--indigo-soft);
    transition: transform 0.25s ease;
}

.d-faq-item.is-open .d-faq-q svg { transform: rotate(45deg); }

.d-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.d-faq-a p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--fg-muted);
    line-height: 1.7;
}

/* ===== Final CTA ===== */
.d-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 72px 40px;
    text-align: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 30px 80px rgba(79, 70, 229, 0.35);
}

.d-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
}

.d-cta-inner { position: relative; z-index: 1; }
.d-cta h2 { font-size: clamp(28px, 4vw, 44px); color: #fff; margin-bottom: 14px; }
.d-cta p { color: rgba(255, 255, 255, 0.85); font-size: 17px; margin-bottom: 28px; }

.d-cta .d-btn--primary {
    background: #fff;
    color: #4f46e5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Footer ===== */
.d-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border-soft);
    padding: 72px 0 0;
}

.d-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 48px;
}

.d-footer-brand p {
    font-size: 14px;
    color: var(--fg-dim);
    margin: 16px 0 20px;
    max-width: 280px;
}

.d-footer-social { display: flex; gap: 10px; }

.d-footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--fg-muted);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.d-footer-social a:hover { color: var(--indigo-soft); border-color: rgba(79, 70, 229, 0.4); }

.d-footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg);
    margin-bottom: 14px;
}

.d-footer-col a {
    display: block;
    font-size: 13px;
    color: var(--fg-dim);
    line-height: 2.05;
    transition: color 0.15s ease;
}

.d-footer-col a:hover { color: var(--fg-muted); }

.d-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--border-soft);
    font-size: 12px;
    color: #4a4760;
}

/* ===== Scroll reveal ===== */
.d-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.d-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .d-reveal { opacity: 1; transform: none; transition: none; }
    .d-mock--dash, .d-mock--mini, .d-marquee, .d-btn--primary:hover { animation: none; }
    html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
    .d-hero-inner { grid-template-columns: 1fr; }
    .d-hero-visual { min-height: 360px; max-width: 460px; }
    .d-admin { grid-template-columns: 1fr; }
    .d-features-grid { grid-template-columns: repeat(2, 1fr); }
    .d-footer-grid { grid-template-columns: 1fr 1fr; }
    .d-nav-links { display: none; }
    .d-nav-toggle { display: inline-flex; }
}

@media (max-width: 767px) {
    .d-container { padding: 0 20px; }
    .d-section { padding: 80px 0; }
    .d-hero { padding: 130px 0 70px; }
    .d-features-grid,
    .d-pricing-grid,
    .d-tg,
    .d-stats { grid-template-columns: 1fr; }
    .d-steps { flex-direction: column; }
    .d-steps::before { display: none; }
    .d-plan--hot { transform: none; }
    .d-footer-grid { grid-template-columns: 1fr; }
    .d-hero-actions .d-btn { flex: 1; }
}

/* Mobile drawer */
.d-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(11, 10, 20, 0.96);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.d-drawer.is-open { transform: none; }
.d-drawer-top { display: flex; align-items: center; justify-content: space-between; }

.d-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
}

.d-drawer-links a {
    font-size: 20px;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}

.d-drawer button { background: none; border: 0; color: var(--fg); cursor: pointer; }

/* ===== Admin preview — browser mockup ===== */
.d-admin-wrap {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    z-index: 2;
}

.d-browser {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0d0b1a;
    box-shadow: 0 0 70px rgba(79, 70, 229, 0.22), 0 40px 90px rgba(0, 0, 0, 0.55);
    animation: d-float 10s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) { .d-browser { animation: none; } }

.d-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #131022;
    border-bottom: 1px solid var(--border-soft);
}

.d-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    font-size: 11px;
    color: var(--fg-muted);
}

.d-browser-body { display: flex; min-height: 360px; }

.d-side {
    width: 188px;
    flex-shrink: 0;
    background: #100d1f;
    border-right: 1px solid var(--border-soft);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.d-side-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; padding: 0 6px 4px; }

.d-side-site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    font-size: 12px;
    color: var(--fg-muted);
    margin-bottom: 6px;
}

.d-side-nav { display: flex; flex-direction: column; gap: 2px; }

.d-side-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--fg-muted);
}

.d-side-item.is-active { background: rgba(79, 70, 229, 0.18); color: #fff; }

.d-admin-panel { flex: 1; padding: 18px 20px; min-width: 0; }

.d-admin-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.d-admin-panel-head b { font-size: 17px; font-weight: 700; display: block; }
.d-admin-panel-head span { font-size: 12px; color: var(--fg-dim); }

.d-newpage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: var(--gradient);
}

.d-pages-table { border-radius: 12px; border: 1px solid var(--border-soft); overflow: hidden; }

.d-prow {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 70px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.d-prow:last-child { border-bottom: 0; }
.d-prow.is-active { background: rgba(79, 70, 229, 0.08); }

.d-prow--head span {
    font-size: 11px;
    color: var(--fg-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.d-prow-name { font-size: 13px; color: #e2e0f0; font-weight: 500; }
.d-prow-slug { font-size: 11px; color: var(--fg-dim); margin-top: 1px; }
.d-prow-lang { font-size: 12px; color: var(--fg-muted); }

.d-pill-status { padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.d-pill-status.is-live { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.d-pill-status.is-draft { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.d-prow-actions { display: flex; gap: 6px; }
.d-prow-actions span {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--fg-dim);
}
.d-prow-actions span:first-child { color: var(--indigo-soft); }

/* Floating callout pills */
.d-callout-pill {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fg);
    background: rgba(20, 17, 36, 0.9);
    border: 1px solid rgba(79, 70, 229, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    animation: d-float 7s ease-in-out infinite;
}

.d-callout-pill iconify-icon { color: var(--indigo-soft); }
.d-callout-pill--left-top { top: 64px; left: -26px; }
.d-callout-pill--left-bottom { bottom: 70px; left: -10px; animation-delay: -2s; }
.d-callout-pill--right-top { top: 110px; right: -26px; animation-delay: -1s; }
.d-callout-pill--right-bottom { bottom: 110px; right: -16px; animation-delay: -3s; }

@media (prefers-reduced-motion: reduce) { .d-callout-pill { animation: none; } }

@media (max-width: 900px) {
    .d-callout-pill { display: none; }
    .d-side { width: 64px; }
    .d-side-brand b, .d-side-site, .d-side-item { font-size: 0; }
    .d-side-item { justify-content: center; }
    .d-side-item iconify-icon { font-size: 15px; }
    .d-prow { grid-template-columns: 2fr 1fr 64px; }
    .d-prow-lang { display: none; }
    .d-prow--head span:nth-child(3) { display: none; }
}

/* ===== Offices (tabs) ===== */
.d-office-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}

.d-office-tab {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--fg-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.d-office-tab:hover { color: var(--fg); }
.d-office-tab.is-active { color: #fff; background: rgba(79, 70, 229, 0.18); border-color: rgba(79, 70, 229, 0.5); }

.d-office-panel { display: none; }
.d-office-panel.is-active { display: block; }

.d-office-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 36px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.d-office-card .d-feature-icon { margin: 0 auto 18px; }
.d-office-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.d-office-desc { font-size: 14px; color: var(--fg-muted); margin-bottom: 14px; }
.d-office-address { font-size: 15px; color: #d6d4e2; margin-bottom: 20px; line-height: 1.6; }
.d-office-card .d-btn { margin: 0 auto; }

/* ===== Migrate (free migration) ===== */
.d-migrate {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.6), rgba(124, 58, 237, 0.25), rgba(79, 70, 229, 0.05));
    overflow: hidden;
}

.d-migrate-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: #7c3aed;
    filter: blur(120px);
    opacity: 0.28;
    top: -160px;
    right: -80px;
    pointer-events: none;
}

.d-migrate-inner {
    position: relative;
    z-index: 1;
    border-radius: calc(var(--radius-lg) - 2px);
    background: linear-gradient(180deg, rgba(18, 16, 34, 0.92), rgba(11, 10, 20, 0.96));
    padding: 56px 40px;
    text-align: center;
}

.d-migrate-inner h2 { font-size: clamp(26px, 3.6vw, 40px); margin: 16px 0 14px; }
.d-migrate-desc { max-width: 560px; margin: 0 auto 36px; color: var(--fg-muted); font-size: 16px; }

.d-migrate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.d-migrate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-soft);
}

.d-migrate-item .d-feature-icon { margin-bottom: 10px; }
.d-migrate-item b { font-size: 17px; font-weight: 700; }
.d-migrate-note { font-size: 12px; color: var(--fg-dim); }
.d-migrate-foot { margin-top: 18px; font-size: 12.5px; color: var(--fg-dim); max-width: 520px; margin-left: auto; margin-right: auto; }

@media (max-width: 767px) {
    .d-migrate-grid { grid-template-columns: 1fr; }
    .d-migrate-inner { padding: 40px 22px; }
}

/* ===== Theme showcase (product-backed) ===== */
.d-theme-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.d-theme-fbtn {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--fg-muted);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.d-theme-fbtn:hover { color: var(--fg); }
.d-theme-fbtn.is-active {
    color: #fff;
    background: var(--gradient);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.35);
}

.d-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

/* override the old horizontal-scroll card sizing for grid layout */
.d-showcase-grid .d-theme-card {
    flex: initial;
    display: block;
}

.d-theme-card.is-hidden { display: none; }

.d-theme-frame { position: relative; }

.d-theme-hover {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(0deg, rgba(11, 10, 20, 0.85), transparent);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.d-theme-card:hover .d-theme-hover { opacity: 1; transform: none; }

@media (max-width: 1023px) { .d-showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .d-showcase-grid { grid-template-columns: 1fr; } }
