/*
 * DataVaults design layer.
 *
 * Tailwind (CDN) supplies the utility classes used throughout the Blade views;
 * this file adds the things utilities cannot express cleanly: typography
 * loading, gradients, the grid backdrop, focus rings and small entrance
 * animations. Keep it small and dependency-free.
 */

@import url('https://fonts.bunny.net/css?family=figtree:400,500,600,700,800&display=swap');

:root {
    --dv-accent: #34d399;
    --dv-accent-soft: rgba(52, 211, 153, 0.12);
    --dv-ink: #09090b;
    --dv-surface: #101014;
    --dv-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    text-rendering: optimizeLegibility;
}

/* Ambient page background: a soft emerald glow behind the hero plus a fine
   grid that fades out. Purely decorative. */
.dv-aurora {
    position: relative;
    isolation: isolate;
}
.dv-aurora::before {
    content: '';
    position: absolute;
    inset: -20% 0 auto 0;
    height: 720px;
    z-index: -1;
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(52, 211, 153, 0.16) 0%, rgba(52, 211, 153, 0) 70%),
        radial-gradient(40% 50% at 85% 10%, rgba(56, 189, 248, 0.10) 0%, rgba(56, 189, 248, 0) 70%);
    pointer-events: none;
}

.dv-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    pointer-events: none;
}

/* Cards ------------------------------------------------------------------ */
.dv-card {
    border: 1px solid var(--dv-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    border-radius: 1rem;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.dv-card-hover:hover {
    border-color: rgba(52, 211, 153, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 24px 60px -32px rgba(16, 185, 129, 0.45);
}

.dv-glass {
    border: 1px solid var(--dv-border);
    background: rgba(9, 9, 11, 0.65);
    backdrop-filter: blur(14px) saturate(140%);
}

/* Buttons ---------------------------------------------------------------- */
.dv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.6rem;
    font-weight: 600;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.dv-btn:active { transform: translateY(1px); }

.dv-btn-primary {
    background: linear-gradient(180deg, #4ade80, #22c55e);
    color: #052e16;
    box-shadow: 0 10px 30px -12px rgba(34, 197, 94, 0.65);
}
.dv-btn-primary:hover { background: linear-gradient(180deg, #6ee7a0, #34d399); }

.dv-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e4e4e7;
}
.dv-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.04); }

/* Focus ------------------------------------------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(52, 211, 153, 0.7);
    outline-offset: 2px;
    border-radius: 0.35rem;
}

/* Nav -------------------------------------------------------------------- */
.dv-nav-link {
    position: relative;
    color: #a1a1aa;
    transition: color 160ms ease;
}
.dv-nav-link:hover { color: #fff; }
.dv-nav-link[aria-current='page'] { color: #fff; }
.dv-nav-link[aria-current='page']::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.35rem;
    height: 2px;
    background: var(--dv-accent);
    border-radius: 2px;
}

/* Comparison table -------------------------------------------------------- */
.dv-compare th,
.dv-compare td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
}
.dv-compare thead th {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a1a1aa;
    font-weight: 600;
}
.dv-compare tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.dv-compare .dv-col-us { background: rgba(52, 211, 153, 0.06); }

/* Entrances --------------------------------------------------------------- */
@keyframes dv-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.dv-rise { animation: dv-rise 600ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.dv-rise-1 { animation-delay: 60ms; }
.dv-rise-2 { animation-delay: 130ms; }
.dv-rise-3 { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .dv-rise { animation: none; }
    .dv-card-hover:hover { transform: none; }
}

/* Prose for legal / support copy ----------------------------------------- */
.dv-prose { color: #d4d4d8; line-height: 1.75; }
.dv-prose h2 { color: #fff; font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; }
.dv-prose h3 { color: #fff; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.dv-prose p { margin-bottom: 1rem; }
.dv-prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.dv-prose a { color: var(--dv-accent); text-decoration: underline; text-underline-offset: 2px; }
