/* Zabery Pro — Premium Design System */

/* ═══════════════════════════════════════
   BASE & RESETS
   ═══════════════════════════════════════ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Satoshi', sans-serif;
    background: #07070a;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════
   NOISE TEXTURE OVERLAY
   ═══════════════════════════════════════ */

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ═══════════════════════════════════════
   GLASSMORPHIC NAV
   ═══════════════════════════════════════ */

.nav-glass {
    background: rgba(7, 7, 10, 0.6);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ═══════════════════════════════════════
   FLOATING LOGO
   ═══════════════════════════════════════ */

.logo-cube {
    transition: transform 0.12s ease-out, filter 0.3s ease, brightness 0.3s ease;
    will-change: transform, filter;
    filter: brightness(0.7) drop-shadow(0 0 0px transparent);
    transform-style: preserve-3d;
}

#logo-float {
    perspective: 600px;
}

#logo-float:hover .logo-cube {
    filter: brightness(1.6) saturate(1.3)
            drop-shadow(0 0 10px rgba(212, 168, 83, 0.7))
            drop-shadow(0 0 25px rgba(212, 168, 83, 0.3));
}

/* Idle floating animation */
@keyframes logo-idle-float {
    0%, 100% { transform: translateY(0px) rotateY(0deg) rotateX(0deg); }
    25%      { transform: translateY(-3px) rotateY(3deg) rotateX(1.5deg); }
    50%      { transform: translateY(-4px) rotateY(0deg) rotateX(-1.5deg); }
    75%      { transform: translateY(-2px) rotateY(-3deg) rotateX(1deg); }
}

.logo-cube.idle {
    animation: logo-idle-float 4s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */

.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Animated gradient mesh blobs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.hero-glow-1 {
    width: 700px;
    height: 700px;
    top: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(196, 154, 56, 0.12) 0%, transparent 70%);
    animation: glow-float-1 25s ease-in-out infinite;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    top: 20%;
    right: -5%;
    background: radial-gradient(circle, rgba(168, 120, 40, 0.08) 0%, transparent 70%);
    animation: glow-float-2 20s ease-in-out infinite;
}

.hero-glow-3 {
    width: 400px;
    height: 400px;
    bottom: -10%;
    left: 30%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
    animation: glow-float-3 30s ease-in-out infinite;
}

/* Subtle grid lines in hero */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

@keyframes glow-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 40px) scale(1.1); }
    66% { transform: translate(-30px, -20px) scale(0.95); }
}

@keyframes glow-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 30px) scale(0.9); }
    66% { transform: translate(40px, -40px) scale(1.1); }
}

@keyframes glow-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

/* Hero title shimmer */
.text-shimmer {
    background: linear-gradient(
        120deg,
        #c49a38 0%,
        #e8c97a 25%,
        #f5e3b5 50%,
        #e8c97a 75%,
        #c49a38 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ═══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 500ms; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════
   GLASS CARDS
   ═══════════════════════════════════════ */

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(196, 154, 56, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(196, 154, 56, 0.04);
}

/* ═══════════════════════════════════════
   PRICING CARDS
   ═══════════════════════════════════════ */

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.pricing-card-popular {
    border-color: rgba(196, 154, 56, 0.3);
    background: linear-gradient(165deg, rgba(196, 154, 56, 0.06) 0%, rgba(7, 7, 10, 0.8) 50%);
}

.pricing-card-popular::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(165deg, rgba(196, 154, 56, 0.4), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-card-popular:hover {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 80px rgba(196, 154, 56, 0.08);
}

/* ═══════════════════════════════════════
   PREMIUM BUTTONS
   ═══════════════════════════════════════ */

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #c49a38, #a67c2e);
    color: #07070a;
    font-weight: 600;
    font-family: 'Clash Display', sans-serif;
    border-radius: 12px;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d4a853, #c49a38);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(196, 154, 56, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    font-weight: 500;
    font-family: 'Clash Display', sans-serif;
    border-radius: 12px;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   STATS COUNTER
   ═══════════════════════════════════════ */

.stat-number {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1;
    color: #f5f5f5;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* ═══════════════════════════════════════
   SECTION DIVIDERS
   ═══════════════════════════════════════ */

.section-line {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #c49a38, #d4a853);
    border-radius: 1px;
}

/* ═══════════════════════════════════════
   HOW IT WORKS — STEP CONNECTOR
   ═══════════════════════════════════════ */

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #c49a38;
    background: rgba(196, 154, 56, 0.08);
    border: 1px solid rgba(196, 154, 56, 0.15);
    flex-shrink: 0;
}

.step-connector {
    position: absolute;
    top: 28px;
    left: calc(50% + 36px);
    width: calc(100% - 72px);
    height: 1px;
    background: linear-gradient(90deg, rgba(196, 154, 56, 0.2), rgba(196, 154, 56, 0.05));
}

/* ═══════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════ */

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details[open] > div {
    animation: accordionIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes accordionIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.faq-item[open] {
    border-color: rgba(196, 154, 56, 0.15);
    background: rgba(196, 154, 56, 0.02);
}

/* ═══════════════════════════════════════
   CUSTOM SCROLLBAR
   ═══════════════════════════════════════ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════
   TABLE ROWS
   ═══════════════════════════════════════ */

tbody tr {
    transition: background-color 0.15s;
}

/* ═══════════════════════════════════════
   HTMX INDICATOR
   ═══════════════════════════════════════ */

.htmx-request .htmx-indicator {
    display: inline-block;
}

/* ═══════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════ */

.form-input {
    width: 100%;
    background: rgba(7, 7, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #f5f5f5;
    transition: border-color 0.2s;
    font-family: 'Satoshi', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: rgba(196, 154, 56, 0.4);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.25rem;
    font-family: 'Clash Display', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════
   SMALL BUTTONS (tables, actions)
   ═══════════════════════════════════════ */

.btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    font-family: 'Clash Display', sans-serif;
}

/* ═══════════════════════════════════════
   DASHBOARD STAT CARDS
   ═══════════════════════════════════════ */

.dash-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    transition: border-color 0.3s;
}

.dash-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════
   TABLE STYLES
   ═══════════════════════════════════════ */

.table-head th {
    padding-bottom: 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Clash Display', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-body tr {
    transition: background-color 0.15s;
}

.table-body tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-body td {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

/* ═══════════════════════════════════════
   LEGAL PROSE
   ═══════════════════════════════════════ */

.prose-legal { color: #d1d5db; line-height: 1.7; font-family: 'Satoshi', sans-serif; }
.prose-legal h1 { font-size: 1.75rem; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(196, 154, 56, 0.3); padding-bottom: 12px; margin-bottom: 24px; font-family: 'Clash Display', sans-serif; }
.prose-legal h2 { font-size: 1.15rem; font-weight: 600; color: #d4a853; margin-top: 28px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; font-family: 'Clash Display', sans-serif; }
.prose-legal h3 { font-size: 1rem; font-weight: 600; color: #e5e7eb; margin-top: 20px; margin-bottom: 8px; font-family: 'Clash Display', sans-serif; }
.prose-legal p { margin-bottom: 12px; text-align: justify; }
.prose-legal ul, .prose-legal ol { margin-bottom: 12px; padding-left: 20px; }
.prose-legal li { margin-bottom: 6px; }
.prose-legal a { color: #d4a853; text-decoration: none; }
.prose-legal a:hover { text-decoration: underline; }
.prose-legal strong { color: #f3f4f6; }
.prose-legal .details-box { background: rgba(196, 154, 56, 0.06); padding: 16px 20px; border-radius: 8px; border-left: 3px solid #c49a38; margin: 16px 0; }
.prose-legal .details-box p { margin-bottom: 4px; }
.prose-legal .warning { background: rgba(234, 179, 8, 0.08); padding: 12px 16px; border-left: 3px solid #eab308; border-radius: 6px; margin: 16px 0; font-size: 0.95em; }
.prose-legal .footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.05); color: #9ca3af; font-size: 0.9em; }

/* ═══════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════ */

.skel {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.skel-block {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* ═══════════════════════════════════════
   FOOTER GRADIENT
   ═══════════════════════════════════════ */

.footer-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(196, 154, 56, 0.04) 0%, transparent 60%);
}

/* ═══════════════════════════════════════
   PULSE SKELETON
   ═══════════════════════════════════════ */

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ═══════════════════════════════════════
   FEATURE ICON GLOW
   ═══════════════════════════════════════ */

.feature-icon {
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    background: radial-gradient(circle, rgba(196, 154, 56, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.glass-card:hover .feature-icon::after {
    opacity: 1;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-divider {
        display: none;
    }

    .step-connector {
        display: none;
    }
}
