/* =============================================
   ZeroDevs - Gamer/Tech Theme
   ============================================= */

:root {
    --zd-bg:         #080c14;
    --zd-bg-card:    #0d1220;
    --zd-bg-card2:   #111827;
    --zd-border:     rgba(0, 212, 255, 0.12);
    --zd-border-h:   rgba(0, 212, 255, 0.35);
    --zd-primary:    #00d4ff;
    --zd-primary-d:  #0099bb;
    --zd-secondary:  #7c3aed;
    --zd-accent:     #00ff88;
    --zd-text:       #e2e8f0;
    --zd-text-muted: #64748b;
    --zd-glow:       0 0 20px rgba(0, 212, 255, 0.3);
    --zd-glow-sm:    0 0 10px rgba(0, 212, 255, 0.2);
    --zd-font-head:  'Orbitron', monospace;
    --zd-font-body:  'Rajdhani', sans-serif;
    --zd-font-mono:  'Share Tech Mono', monospace;
    --product-color: #00d4ff;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--zd-bg);
    color: var(--zd-text);
    font-family: var(--zd-font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* ---- Particles BG ---- */
#particles-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--zd-font-head);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--zd-primary) 0%, var(--zd-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted { color: var(--zd-text-muted) !important; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--zd-bg); }
::-webkit-scrollbar-thumb { background: var(--zd-primary); border-radius: 3px; }

/* ---- Navbar ---- */
.zd-navbar {
    background: rgba(8, 12, 20, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--zd-border);
    padding: 0.75rem 0;
    z-index: 1000;
}

.zd-brand {
    font-family: var(--zd-font-head);
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 1px;
}

.brand-zero  { color: var(--zd-primary); }
.brand-devs  { color: #fff; }
.brand-cursor {
    color: var(--zd-accent);
    animation: blink 1.2s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.nav-link {
    color: var(--zd-text-muted) !important;
    font-family: var(--zd-font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.9rem !important;
    border-radius: 6px;
    transition: color .2s, background .2s;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--zd-primary) !important;
    background: rgba(0, 212, 255, 0.08);
}

/* ---- Buttons ---- */
.btn-zd-primary {
    background: linear-gradient(135deg, var(--zd-primary), var(--zd-primary-d));
    color: #000 !important;
    font-family: var(--zd-font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    transition: transform .2s, box-shadow .2s, filter .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-zd-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.4);
    filter: brightness(1.1);
}

.btn-zd-outline {
    background: transparent;
    color: var(--zd-primary) !important;
    border: 1px solid var(--zd-primary);
    font-family: var(--zd-font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    transition: background .2s, box-shadow .2s, transform .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-zd-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--zd-glow-sm);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: transparent;
    color: #25d366 !important;
    border: 1px solid #25d366;
    font-family: var(--zd-font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    transition: background .2s, box-shadow .2s, transform .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
    transform: translateY(-2px);
}

/* Nav social btn (Discord) más compacto */
.btn-nav-social {
    padding: 0.6rem 1rem;
}

.btn-nav-register {
    background: transparent;
    color: var(--zd-accent) !important;
    border: 1px solid var(--zd-accent);
    font-family: var(--zd-font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    transition: background .2s, box-shadow .2s, transform .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.btn-nav-register:hover {
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.25);
    transform: translateY(-2px);
}

.btn-nav-client {
    background: transparent;
    color: #a78bfa !important;
    border: 1px solid var(--zd-secondary);
    font-family: var(--zd-font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    transition: background .2s, box-shadow .2s, transform .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.btn-nav-client:hover {
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
    transform: translateY(-2px);
    color: #a78bfa !important;
}

.btn-product {
    background: rgba(var(--product-color-rgb, 0, 212, 255), 0.08);
    color: var(--product-color) !important;
    border: 1px solid var(--product-color);
    font-family: var(--zd-font-head);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    transition: background .2s, box-shadow .2s, transform .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-product:hover {
    background: color-mix(in srgb, var(--product-color) 15%, transparent);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--product-color) 30%, transparent);
    transform: translateY(-2px);
}

/* ---- Section ---- */
.section-pad { padding: 5rem 0; }

.section-tag {
    display: inline-block;
    font-family: var(--zd-font-mono);
    font-size: 0.75rem;
    color: var(--zd-primary);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 0.25rem 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #fff;
}

.section-subtitle {
    color: var(--zd-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Hero ---- */
.hero-section {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    z-index: 1;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.min-vh-75 { min-height: 75vh; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--zd-font-mono);
    font-size: 0.8rem;
    color: var(--zd-accent);
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--zd-text-muted);
    max-width: 560px;
}

.hero-stats { border-top: 1px solid var(--zd-border); padding-top: 1.5rem; }

.hero-stat .stat-number {
    font-family: var(--zd-font-head);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--zd-primary);
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: var(--zd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 360px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-hexagon {
    position: relative;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.15));
    border: 1px solid var(--zd-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--zd-glow);
    z-index: 2;
}

.hex-inner { font-size: 4rem; color: var(--zd-primary); }

.hero-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed;
    animation: orbit-spin 12s linear infinite;
    pointer-events: none;
}
.orbit-1 { width: 280px; height: 280px; border-color: rgba(0, 212, 255, 0.15); }
.orbit-2 { width: 350px; height: 350px; border-color: rgba(124, 58, 237, 0.1); animation-duration: 20s; animation-direction: reverse; }

@keyframes orbit-spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.floating-badge {
    position: absolute;
    background: var(--zd-bg-card);
    border: 1px solid var(--zd-border);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-family: var(--zd-font-mono);
    color: var(--zd-text);
    white-space: nowrap;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 3;
}
.fb-1 { top: 20px; left: -20px; color: var(--zd-primary); border-color: rgba(0,212,255,0.3); animation-delay: 0s; }
.fb-2 { top: 50%; right: -30px; color: var(--zd-accent); border-color: rgba(0,255,136,0.3); animation-delay: 1s; }
.fb-3 { bottom: 20px; left: 0; color: #ffa502; border-color: rgba(255,165,2,0.3); animation-delay: 2s; }

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--zd-text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--zd-font-mono);
}
.scroll-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--zd-primary), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* ---- Product Cards ---- */
.product-card {
    background: var(--zd-bg-card);
    border: 1px solid var(--zd-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--product-color) 50%, transparent);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--product-color) 15%, transparent);
}

.product-card-glow {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--product-color), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.product-card:hover .product-card-glow { opacity: 1; }

.product-card-header {
    padding: 1.5rem 1.5rem 0;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-family: var(--zd-font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}
.badge-popular  { background: rgba(0,212,255,0.15); color: var(--zd-primary); border: 1px solid rgba(0,212,255,0.3); }
.badge-security { background: rgba(255,71,87,0.15);  color: #ff4757;           border: 1px solid rgba(255,71,87,0.3); }
.badge-new      { background: rgba(255,165,2,0.15);  color: #ffa502;           border: 1px solid rgba(255,165,2,0.3); }
.badge-default  { background: rgba(124,58,237,0.15); color: #a78bfa;           border: 1px solid rgba(124,58,237,0.3); }

.product-icon-wrapper {
    width: 72px;
    height: 72px;
    background: color-mix(in srgb, var(--product-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--product-color) 30%, transparent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-icon-img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.product-icon-placeholder { font-size: 2rem; color: var(--product-color); }

.product-card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
}

.product-name {
    font-family: var(--zd-font-head);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.25rem;
}
.product-tagline {
    font-size: 0.85rem;
    color: var(--product-color);
    font-family: var(--zd-font-mono);
    margin-bottom: 0.75rem;
}
.product-desc {
    color: var(--zd-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-features-preview {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-features-preview li {
    font-size: 0.85rem;
    color: var(--zd-text-muted);
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
}
.product-features-preview li i { color: var(--product-color); }

.product-price-preview {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.price-from  { font-size: 0.75rem; color: var(--zd-text-muted); }
.price-amount { font-family: var(--zd-font-head); font-size: 1.4rem; color: var(--product-color); font-weight: 700; }
.price-period { font-size: 0.75rem; color: var(--zd-text-muted); }

.product-card-footer {
    padding: 0 1.5rem 1.5rem;
}

/* ---- Why Section ---- */
.why-section { background: rgba(13, 18, 32, 0.6); }

.why-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.why-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--zd-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--zd-primary);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.tech-grid-item {
    background: var(--zd-bg-card);
    border: 1px solid var(--zd-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--zd-text);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tech-grid-item:hover {
    border-color: color-mix(in srgb, var(--product-color) 50%, transparent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--product-color) 12%, transparent);
    color: var(--zd-text);
}
.tgi-icon { font-size: 1.4rem; color: var(--product-color); }
.tgi-info { flex: 1; }
.tgi-name { display: block; font-family: var(--zd-font-head); font-size: 0.85rem; color: #fff; }
.tgi-version { font-family: var(--zd-font-mono); font-size: 0.7rem; color: var(--zd-text-muted); }
.tgi-status { display: flex; align-items: center; gap: 4px; font-size: 0.7rem; color: var(--zd-accent); font-family: var(--zd-font-mono); }
.status-dot { width: 7px; height: 7px; background: var(--zd-accent); border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{box-shadow:0 0 0 0 rgba(0,255,136,.4)} 50%{box-shadow:0 0 0 4px rgba(0,255,136,0)} }

.tgi-cta {
    grid-column: span 2;
    color: var(--zd-text-muted);
    border-style: dashed;
    justify-content: center;
    cursor: default;
}

/* ---- CTA ---- */
.cta-section {}
.cta-box {
    position: relative;
    background: var(--zd-bg-card);
    border: 1px solid var(--zd-border);
    border-radius: 24px;
    padding: 4rem 2rem;
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    top: -80px; left: 50%; transform: translateX(-50%);
    width: 400px; height: 200px;
    background: radial-gradient(ellipse, rgba(0,212,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.cta-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #fff;
}
.cta-subtitle { font-size: 1.1rem; }

/* ---- Product Hero ---- */
.product-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 2rem;
    z-index: 1;
}
.product-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.product-hero-banner {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.08;
}
.product-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8,12,20,0.6) 0%, rgba(8,12,20,0.95) 100%);
}
.product-hero .container { z-index: 2; }

.zd-breadcrumb {
    --bs-breadcrumb-divider-color: var(--zd-text-muted);
    --bs-breadcrumb-item-active-color: var(--zd-primary);
}
.zd-breadcrumb a { color: var(--zd-text-muted); text-decoration: none; font-size: 0.85rem; }
.zd-breadcrumb a:hover { color: var(--zd-primary); }
.zd-breadcrumb .breadcrumb-item.active { font-size: 0.85rem; }

.product-hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.badge-tag { font-size: 0.7rem; font-family: var(--zd-font-mono); padding: 0.25rem 0.7rem; border-radius: 12px; }
.badge-version {
    font-family: var(--zd-font-mono);
    font-size: 0.7rem;
    color: var(--zd-text-muted);
    background: rgba(255,255,255,0.06);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.product-hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.product-hero-tagline {
    font-family: var(--zd-font-mono);
    font-size: 1rem;
    color: var(--product-color);
    margin-bottom: 1rem;
}
.product-hero-desc {
    font-size: 1.05rem;
    max-width: 540px;
}

.product-hero-meta {
    border-top: 1px solid var(--zd-border);
    padding-top: 1rem;
}
.meta-item {
    font-family: var(--zd-font-mono);
    font-size: 0.78rem;
    color: var(--zd-text-muted);
    background: rgba(255,255,255,0.04);
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--zd-border);
}

/* Product Icon Hero */
.product-icon-hero-wrapper, .product-placeholder-icon {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-icon-hero {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px color-mix(in srgb, var(--product-color) 40%, transparent));
    position: relative;
    z-index: 2;
}
.product-placeholder-icon {
    background: color-mix(in srgb, var(--product-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--product-color) 25%, transparent);
    border-radius: 32px;
    font-size: 6rem;
    color: var(--product-color);
}
.product-icon-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--product-color) 20%, transparent) 0%, transparent 70%);
    pointer-events: none;
    animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse { 0%,100%{opacity:.6} 50%{opacity:1} }

/* ---- Screenshots ---- */
.screenshots-section { background: rgba(13, 18, 32, 0.5); }

.screenshot-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--zd-border);
    transition: border-color .2s, transform .2s;
}
.screenshot-card:hover { transform: scale(1.02); border-color: var(--zd-primary); }
.screenshot-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    opacity: 0;
    transition: opacity .2s;
}
.screenshot-card:hover .screenshot-overlay { opacity: 1; }
.screenshot-caption {
    padding: 0.5rem 0.75rem;
    background: var(--zd-bg-card);
    font-size: 0.8rem;
    color: var(--zd-text-muted);
    font-family: var(--zd-font-mono);
}

/* Screenshot Modal */
.zd-modal {
    background: var(--zd-bg-card2);
    border: 1px solid var(--zd-border);
    border-radius: 16px;
}
.zd-modal .modal-header { background: var(--zd-bg-card2); }

/* ---- Features ---- */
.features-section {
    background: linear-gradient(
        to bottom,
        transparent,
        color-mix(in srgb, var(--product-color) 4%, transparent),
        transparent
    );
}
.feature-card {
    background: var(--zd-bg-card);
    border: 1px solid var(--zd-border);
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
    transition: border-color .2s, transform .2s;
}
.feature-card:hover {
    border-color: color-mix(in srgb, var(--product-color) 35%, transparent);
    transform: translateY(-4px);
}
.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    background: color-mix(in srgb, var(--product-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--product-color) 25%, transparent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--product-color);
    margin-bottom: 1rem;
}
.feature-title {
    font-family: var(--zd-font-head);
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.feature-desc { font-size: 0.9rem; line-height: 1.5; }

/* ---- Changelog Button ---- */
.cl-btn-wrap {
    position: relative;
}

/* Ambient glow under the button */
.cl-btn-wrap::before {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 30px;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--product-color) 35%, transparent) 0%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
    animation: cl-glow-pulse 2.5s ease-in-out infinite;
}
@keyframes cl-glow-pulse { 0%,100%{opacity:.5} 50%{opacity:1} }

.btn-changelog {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--product-color) 10%, var(--zd-bg-card)) 0%,
        var(--zd-bg-card) 60%
    );
    border: 1px solid color-mix(in srgb, var(--product-color) 40%, transparent);
    border-radius: 18px;
    padding: 1.4rem 1.75rem;
    cursor: pointer;
    text-align: left;
    transition: border-color .25s, box-shadow .25s, transform .25s;
    max-width: 560px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 24px color-mix(in srgb, var(--product-color) 12%, transparent),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Top edge highlight */
.btn-changelog::after {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--product-color) 60%, transparent), transparent);
}

/* Scan-line sweep animation */
.btn-changelog::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transition: left .5s ease;
    pointer-events: none;
}
.btn-changelog:hover::before { left: 160%; }

.btn-changelog:hover {
    border-color: color-mix(in srgb, var(--product-color) 70%, transparent);
    box-shadow:
        0 8px 40px color-mix(in srgb, var(--product-color) 28%, transparent),
        inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

.btn-changelog-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    background: color-mix(in srgb, var(--product-color) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--product-color) 35%, transparent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--product-color);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 0 16px color-mix(in srgb, var(--product-color) 20%, transparent);
}

.btn-changelog-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}
.btn-changelog-title {
    font-family: var(--zd-font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.btn-changelog-sub {
    font-family: var(--zd-font-mono);
    font-size: 0.76rem;
    color: color-mix(in srgb, var(--product-color) 70%, var(--zd-text-muted));
}

.btn-changelog-arrow {
    font-size: 1.8rem;
    color: var(--product-color);
    opacity: 0.6;
    transition: opacity .25s, transform .25s;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.btn-changelog:hover .btn-changelog-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* ---- Changelog Modal ---- */
.changelog-modal {
    border-color: color-mix(in srgb, var(--product-color) 25%, transparent) !important;
}

.changelog-modal-header {
    background: color-mix(in srgb, var(--product-color) 6%, var(--zd-bg-card2));
    border-bottom: 1px solid color-mix(in srgb, var(--product-color) 15%, transparent) !important;
    padding: 1.25rem 1.5rem;
}

.changelog-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.changelog-modal-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: color-mix(in srgb, var(--product-color) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--product-color) 30%, transparent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--product-color);
}
.changelog-modal .modal-title {
    font-family: var(--zd-font-head);
    font-size: 1rem;
    color: #fff;
    margin: 0;
}
.changelog-modal-subtitle {
    font-family: var(--zd-font-mono);
    font-size: 0.7rem;
    color: var(--zd-text-muted);
}

.changelog-body {
    background: var(--zd-bg-card2);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Version block */
.cl-version-block {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 2.25rem;
    border-left: 2px solid var(--zd-border);
    margin-left: 0.5rem;
}
.cl-version-block:not(:last-child) { padding-bottom: 2rem; }

.cl-version-block::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 1.65rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--zd-border);
    border: 2px solid var(--zd-bg-card2);
}
.cl-latest { border-left-color: var(--product-color); }
.cl-latest::before {
    background: var(--product-color);
    box-shadow: 0 0 8px color-mix(in srgb, var(--product-color) 60%, transparent);
}

.cl-version-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.cl-version-tag {
    font-family: var(--zd-font-head);
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
}
.cl-latest .cl-version-tag { color: var(--product-color); }

.cl-version-label {
    font-family: var(--zd-font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: color-mix(in srgb, var(--product-color) 18%, transparent);
    color: var(--product-color);
    border: 1px solid color-mix(in srgb, var(--product-color) 35%, transparent);
    padding: 0.15rem 0.55rem;
    border-radius: 8px;
}
.cl-version-date {
    font-family: var(--zd-font-mono);
    font-size: 0.72rem;
    color: var(--zd-text-muted);
    margin-left: auto;
}

/* Changes list */
.cl-changes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.cl-change-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--zd-text-muted);
    line-height: 1.45;
}

/* Type badges */
.cl-type-badge {
    flex-shrink: 0;
    font-family: var(--zd-font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    margin-top: 1px;
    min-width: 62px;
    text-align: center;
}
.cl-new         { background: rgba(0,255,136,0.12); color: #00ff88; border: 1px solid rgba(0,255,136,0.25); }
.cl-fix         { background: rgba(0,212,255,0.12); color: #00d4ff; border: 1px solid rgba(0,212,255,0.25); }
.cl-improvement { background: rgba(255,165,2,0.12);  color: #ffa502; border: 1px solid rgba(255,165,2,0.25); }
.cl-security    { background: rgba(168,85,247,0.14); color: #c084fc; border: 1px solid rgba(168,85,247,0.28); }
.cl-removed     { background: rgba(255,71,87,0.12);  color: #ff6b6b; border: 1px solid rgba(255,71,87,0.25); }
.cl-default     { background: rgba(100,116,139,0.15);color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }

.changelog-modal-footer {
    background: var(--zd-bg-card2);
    border-top: 1px solid var(--zd-border) !important;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.changelog-total { font-family: var(--zd-font-mono); }

/* ---- Pricing ---- */
.pricing-card {
    background: var(--zd-bg-card);
    border: 1px solid var(--zd-border);
    border-radius: 18px;
    padding: 2rem;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pricing-card:hover {
    transform: translateY(-6px);
}
.pricing-highlighted {
    border-color: var(--product-color);
    background: color-mix(in srgb, var(--product-color) 5%, var(--zd-bg-card));
    box-shadow: 0 0 30px color-mix(in srgb, var(--product-color) 20%, transparent);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--product-color);
    color: #000;
    font-family: var(--zd-font-head);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.85rem;
    border-radius: 10px;
    white-space: nowrap;
}

.pricing-header { text-align: center; margin-bottom: 1.75rem; }
.pricing-name {
    font-family: var(--zd-font-head);
    font-size: 1rem;
    color: var(--zd-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}
.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    line-height: 1;
}
.pricing-price .price-currency { font-family: var(--zd-font-head); font-size: 1.2rem; color: var(--zd-text-muted); padding-top: 6px; }
.pricing-price .price-amount { font-family: var(--zd-font-head); font-size: 3rem; font-weight: 900; color: #fff; }
.pricing-price .price-period { font-size: 0.8rem; color: var(--zd-text-muted); padding-top: 24px; align-self: flex-end; }

.pricing-features {
    flex: 1;
    margin-bottom: 1.75rem;
}
.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--zd-text-muted);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li i { color: var(--product-color); font-size: 0.9rem; }

/* Requirements */
.requirements-box {
    background: var(--zd-bg-card);
    border: 1px solid var(--zd-border);
    border-radius: 14px;
    padding: 1.5rem;
}
.req-title { font-family: var(--zd-font-head); font-size: 0.9rem; color: var(--zd-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.req-badge {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--zd-border);
    border-radius: 8px;
    padding: 0.25rem 0.75rem;
    font-size: 0.82rem;
    font-family: var(--zd-font-mono);
    color: var(--zd-text-muted);
}

/* ---- Other Products (mini card) ---- */
.product-card.mini {
    border-radius: 14px;
}
.product-card.mini .product-card-body { padding: 1.25rem 1.5rem 0.5rem; }

/* ---- 404 ---- */
.error-section { min-height: 60vh; }
.error-code {
    font-family: var(--zd-font-head);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    opacity: 0.8;
}

/* ---- Footer ---- */
.zd-footer {
    background: var(--zd-bg-card);
    border-top: 1px solid var(--zd-border);
    padding: 3rem 0 1.5rem;
    position: relative;
}

.footer-brand {
    font-family: var(--zd-font-head);
    font-size: 1.4rem;
    font-weight: 900;
}

.footer-title {
    font-family: var(--zd-font-head);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--zd-primary);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.footer-links a {
    color: var(--zd-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--zd-primary); }

.footer-divider { border-color: var(--zd-border); }

.social-link {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--zd-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zd-text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.social-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--zd-primary);
    color: var(--zd-primary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .section-pad { padding: 3rem 0; }
    .hero-section { padding: 3rem 0 2rem; }
    .hero-title { font-size: 1.8rem; }
    .tech-grid { grid-template-columns: 1fr; }
    .tgi-cta { grid-column: span 1; }
    .cta-box { padding: 2.5rem 1.25rem; }
}

/* ---- Animations (AOS fallback) ---- */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
[data-aos].aos-animate {
    opacity: 1;
    transform: none;
}
[data-aos][data-aos-delay="100"] { transition-delay: .1s; }
[data-aos][data-aos-delay="200"] { transition-delay: .2s; }
[data-aos][data-aos-delay="300"] { transition-delay: .3s; }
[data-aos="fade-right"] { transform: translateX(-20px); }
[data-aos="fade-left"]  { transform: translateX(20px); }
[data-aos="fade-right"].aos-animate,
[data-aos="fade-left"].aos-animate  { transform: none; }
