/* IBMi Knowledge System — Marketing Site */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cyan: #38bdf8;
    --indigo: #818cf8;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
}

html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }
a:visited .text-cyan-400 { color: #38bdf8; }
a:visited .text-cyan-400, a:active .text-cyan-400 { color: #38bdf8; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--slate-950);
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Navigation */
#navbar {
    background: transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.nav-link {
    color: var(--slate-400);
    transition: color 0.2s;
    text-decoration: none;
}
.nav-link:hover { color: white; }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, var(--cyan), var(--indigo));
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    background: transparent;
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    border: 1px solid var(--slate-700);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}
.btn-secondary:hover {
    border-color: var(--cyan);
    background: rgba(56, 189, 248, 0.05);
}

/* Glass Cards */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Background */
.hero-grid {
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}

.hero-glow {
    background: radial-gradient(ellipse 40% 30% at 50% 40%, rgba(56, 189, 248, 0.08), transparent),
                radial-gradient(ellipse 30% 20% at 60% 50%, rgba(129, 140, 248, 0.06), transparent);
}

/* Fade-up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Utility from Tailwind-like */
.scroll-smooth { scroll-behavior: smooth; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-mono { font-family: 'SF Mono', 'Fira Code', monospace; }

/* Grid system */
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.grid { display: grid; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-4xl { line-height: 1.1; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: 0.5rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.border-t { border-top: 1px solid var(--slate-800); }
.border { border: 1px solid; }
.ring-2 { box-shadow: 0 0 0 2px; }

.shrink-0 { flex-shrink: 0; }
.uppercase { text-transform: uppercase; }
.leading-relaxed { line-height: 1.625; }
.drop-shadow-2xl { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); }
.transition { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.outline-none { outline: none; }
.resize-none { resize: none; }
.cursor-pointer { cursor: pointer; }
.animate-bounce { animation: bounce 2s infinite; }
.h-16 { height: 4rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }

.text-white { color: white; }
.text-slate-300 { color: var(--slate-300); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }
.text-cyan-400 { color: var(--cyan); }
.text-indigo-400 { color: var(--indigo); }
.text-emerald-400 { color: #34d399; }
.text-amber-400 { color: #fbbf24; }
.text-red-400 { color: #f87171; }

.bg-slate-950 { background-color: var(--slate-950); }
.bg-cyan-500\/10 { background: rgba(56, 189, 248, 0.1); }
.bg-indigo-500\/10 { background: rgba(129, 140, 248, 0.1); }
.bg-emerald-500\/10 { background: rgba(16, 185, 129, 0.1); }
.bg-amber-500\/10 { background: rgba(245, 158, 11, 0.1); }
.bg-red-500\/10 { background: rgba(239, 68, 68, 0.1); }

.border-cyan-500\/20 { border-color: rgba(56, 189, 248, 0.2); }
.border-indigo-500\/20 { border-color: rgba(129, 140, 248, 0.2); }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2); }
.border-amber-500\/20 { border-color: rgba(245, 158, 11, 0.2); }
.border-red-500\/20 { border-color: rgba(239, 68, 68, 0.2); }
.border-slate-700 { border-color: var(--slate-700); }
.border-slate-800 { border-color: var(--slate-800); }

@keyframes bounce {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-10px) translateX(-50%); }
}

/* Responsive */
@media (min-width: 640px) {
    .sm\:text-xl { font-size: 1.25rem; }
    .sm\:text-4xl { font-size: 2.25rem; }
    .sm\:text-5xl { font-size: 3rem; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:block { display: block; }
    .sm\:inline-flex { display: inline-flex; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:w-5\/12 { width: 41.666%; }
    .md\:ml-auto { margin-left: auto; }
    .md\:mr-auto { margin-right: auto; }
    .md\:pl-8 { padding-left: 2rem; }
    .md\:pr-8 { padding-right: 2rem; }
    .md\:p-12 { padding: 3rem; }
    .-translate-x-1\/2 { transform: translateX(-50%); }
    .-translate-y-1\/2 { transform: translateY(-50%); }
    .translate-x-1\/2 { transform: translateX(50%); }
    .translate-y-1\/2 { transform: translateY(50%); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Form inputs */
input[type="text"],
input[type="email"],
textarea {
    background: #ffffff !important;
    border: 1px solid var(--slate-700) !important;
    border-radius: 0.5rem;
    color: #111827 !important;
    padding: 0.75rem 1rem;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px var(--cyan);
}
/* Override browser autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    -webkit-text-fill-color: #111827;
    -webkit-box-shadow: 0 0 0 1000px rgba(30, 41, 59, 0.9) inset;
    border-color: var(--slate-700);
    transition: background-color 5000s ease-in-out 0s;
}

/* Carousel tab active states */
.bg-cyan-500\/20 { background: rgba(56, 189, 248, 0.2); }
.border-cyan-500\/40 { border-color: rgba(56, 189, 248, 0.4); }
.bg-amber-500\/20 { background: rgba(245, 158, 11, 0.2); }
.border-amber-500\/40 { border-color: rgba(245, 158, 11, 0.4); }
.bg-indigo-500\/20 { background: rgba(129, 140, 248, 0.2); }
.border-indigo-500\/40 { border-color: rgba(129, 140, 248, 0.4); }
.bg-red-500\/20 { background: rgba(239, 68, 68, 0.2); }
.border-red-500\/40 { border-color: rgba(239, 68, 68, 0.4); }
.bg-purple-500\/20 { background: rgba(168, 85, 247, 0.2); }
.border-purple-500\/40 { border-color: rgba(168, 85, 247, 0.4); }
.text-purple-400 { color: #c084fc; }
.bg-slate-800\/60 { background: rgba(30, 41, 59, 0.6); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--slate-950); }
::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-600); }

/* Print */
@media print {
    .hero-grid, .hero-glow, #navbar { display: none; }
    body { background: white; color: black; }
}
