/* ============================================================
   EZ DevOps AI — Custom styles on top of Tailwind (CDN)
   Kept intentionally lean; Tailwind handles most layout.
   ============================================================ */

:root {
    --bg: #0b1220;
    --bg-2: #0f172a;
    --panel: #111a2e;
    --border: #1e293b;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --brand: #6366f1;
    --brand-2: #06b6d4;
    --accent: #22d3ee;
    --success: #10b981;
    --danger: #ef4444;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Accessible focus ring */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.75rem 1rem;
    background: var(--brand);
    color: #fff;
    z-index: 100;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Animated gradient hero background */
.hero-gradient {
    background:
        radial-gradient(circle at 20% 10%, rgba(99,102,241,0.25), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(6,182,212,0.22), transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(34,211,238,0.15), transparent 60%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

.grid-bg {
    background-image:
        linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(90deg, #a5b4fc 0%, #67e8f9 60%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Card */
.card {
    background: linear-gradient(180deg, rgba(17,26,46,0.9), rgba(17,26,46,0.6));
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(99,102,241,0.5);
    box-shadow: 0 20px 60px -20px rgba(6,182,212,0.25);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    border: 1px solid transparent;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--brand); color: #fff; }

/* Fade-in reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Forms */
.field-label { font-size: .9rem; color: var(--muted); font-weight: 500; }
.field-input,
.field-textarea,
.field-select {
    width: 100%;
    background: #0b1428;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
    outline: none;
}
.field-error {
    color: var(--danger);
    font-size: .85rem;
    margin-top: .35rem;
    min-height: 1.1em;
}

/* Honeypot — visually hidden but present */
.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px; overflow: hidden;
}

/* Prose overrides for blog */
.prose-invert h2 { color: #fff; font-size: 1.75rem; margin-top: 2.25rem; margin-bottom: .75rem; font-weight: 700; }
.prose-invert h3 { color: #fff; font-size: 1.25rem; margin-top: 1.75rem; margin-bottom: .5rem; font-weight: 600; }
.prose-invert p  { color: #cbd5e1; margin-bottom: 1rem; line-height: 1.75; }
.prose-invert ul { color: #cbd5e1; list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.prose-invert ol { color: #cbd5e1; list-style: decimal; padding-left: 1.25rem; margin-bottom: 1rem; }
.prose-invert li { margin-bottom: .35rem; }
.prose-invert a  { color: #67e8f9; text-decoration: underline; text-underline-offset: 3px; }
.prose-invert code { background: #0b1428; padding: .15rem .4rem; border-radius: 6px; font-size: .9em; }
.prose-invert blockquote {
    border-left: 3px solid var(--brand);
    padding: .25rem 0 .25rem 1rem;
    color: #cbd5e1;
    margin: 1rem 0;
    font-style: italic;
}

/* Mobile nav */
.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
