/* =========================================================
   DEVENTRIC — Shared base styles
   Loaded on every page by header.php
   Page-specific styles go in their own inline <style> blocks
   ========================================================= */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #050b1f;
    color: #ffffff;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

:root {
    --bg-deep: #050b1f;
    --bg-mid: #0a1230;
    --bg-blue: #0e1a47;
    --accent: #4a7bff;
    --accent-light: #6e96ff;
    --text: #ffffff;
    --text-muted: #a8b4d4;
    --text-subtle: #7a86a8;
    --card-bg: rgba(20, 32, 70, 0.55);
    --card-border: rgba(120, 150, 220, 0.18);
    --container: 1200px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Floating Orbs Background ===== */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; animation: floatOrb 18s ease-in-out infinite; will-change: transform, opacity; transform: translate3d(0,0,0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
    .bg-orb { animation: none; filter: blur(30px); opacity: 0.35; }
}
.bg-orb-1 { top: 8%; left: -6%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(74, 123, 255, 0.55), transparent 70%); }
.bg-orb-2 { top: 38%; right: -8%; width: 460px; height: 460px; background: radial-gradient(circle, rgba(100, 160, 255, 0.4), transparent 70%); animation-delay: -4s; }
.bg-orb-3 { top: 65%; left: 8%; width: 340px; height: 340px; background: radial-gradient(circle, rgba(80, 130, 220, 0.45), transparent 70%); animation-delay: -8s; }
.bg-orb-4 { top: 85%; right: 15%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(110, 150, 255, 0.35), transparent 70%); animation-delay: -12s; }
.bg-orb-5 { top: 22%; left: 45%; width: 280px; height: 280px; background: radial-gradient(circle, rgba(90, 140, 255, 0.3), transparent 70%); animation-delay: -6s; }
.bg-orb-6 { top: 55%; right: 38%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(70, 120, 230, 0.35), transparent 70%); animation-delay: -10s; }
@keyframes floatOrb {
    0%, 100% { transform: translate(0,0) scale(1); opacity: 0.55; }
    33%      { transform: translate(40px,-30px) scale(1.08); opacity: 0.7; }
    66%      { transform: translate(-30px,40px) scale(0.95); opacity: 0.45; }
}

nav.nav, .hero, section, .footer { position: relative; z-index: 1; }

/* ===== Navbar ===== */
.nav { position: sticky; top: 0; z-index: 100; padding: 22px 0; background: rgba(5, 11, 31, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (max-width: 900px) { .nav { background: #050b1f; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 20px; font-family: 'Plus Jakarta Sans', sans-serif; }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; display: block; }
.logo-text { letter-spacing: 0.02em; }
.logo-dev { background: linear-gradient(90deg, #5a8bff 0%, #8ab4ff 50%, #a8c4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 36px; list-style: none; font-size: 14.5px; color: var(--text-muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary { background: linear-gradient(135deg, #ffffff 0%, #d6e4ff 50%, #a8c4ff 100%); color: #1a3a8c; box-shadow: 0 4px 15px rgba(74, 123, 255, 0.3); border: none; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(120, 170, 255, 0.45); }
.btn-outline { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ===== Common Hero Typography ===== */
.hero { position: relative; padding: 60px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.hero-left { position: relative; z-index: 2; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-subtle); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-subtle); transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current { color: var(--accent-light); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; background: rgba(74, 123, 255, 0.18); border: 1px solid rgba(120, 160, 255, 0.35); font-size: 12.5px; color: #cdd9ff; margin-bottom: 24px; backdrop-filter: blur(8px); font-weight: 500; letter-spacing: 0.04em; }
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #a8c4ff; box-shadow: 0 0 8px #a8c4ff; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.hero h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 60px; font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 22px; background: linear-gradient(135deg, #ffffff 0%, #a8c4ff 60%, #6e96ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .highlight { background: linear-gradient(135deg, #6e96ff 0%, #a8c4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text-muted); font-size: 17px; max-width: 540px; margin-bottom: 32px; line-height: 1.7; }
.hero-stats { display: flex; gap: 36px; margin: 32px 0; padding: 24px 0; border-top: 1px solid rgba(120, 170, 255, 0.15); border-bottom: 1px solid rgba(120, 170, 255, 0.15); }
.hero-stat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 32px; font-weight: 700; background: linear-gradient(135deg, #ffffff, #a8c4ff); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 6px; }
.hero-stat-label { font-size: 12px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Section Headers ===== */
section.padded { padding: 90px 0; position: relative; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent-light); margin-bottom: 14px; font-weight: 500; }
.section-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--accent-light); border-radius: 50%; }
.section-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 44px; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 18px; }
.section-subtitle { color: var(--text-muted); font-size: 16px; line-height: 1.7; max-width: 640px; }
.section-header-centered { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-header-centered .section-eyebrow { justify-content: center; }
.section-header-centered .section-subtitle { margin: 0 auto; }

/* Section glow */
.section-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 1100px; height: 600px; background: radial-gradient(ellipse at center, rgba(74, 123, 255, 0.18), transparent 70%); filter: blur(50px); pointer-events: none; z-index: 0; }

/* ===== Generic Feature Cards ===== */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-card { position: relative; background: linear-gradient(180deg, rgba(30, 50, 110, 0.5) 0%, rgba(15, 25, 60, 0.4) 100%); border: 1px solid var(--card-border); border-radius: 22px; padding: 36px 34px; overflow: hidden; transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), border-color 0.35s, box-shadow 0.4s; }
.feature-card::before { content: ''; position: absolute; inset: 0; border-radius: 22px; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(120, 170, 255, 0.22), transparent 40%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(120, 170, 255, 0.45); box-shadow: 0 24px 60px rgba(70, 110, 220, 0.32); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(200, 220, 255, 0.85) 50%, rgba(140, 180, 255, 0.7) 100%); box-shadow: 0 8px 24px rgba(120, 170, 255, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6); display: flex; align-items: center; justify-content: center; color: #2c5cff; margin-bottom: 22px; position: relative; z-index: 1; transition: transform 0.4s; }
.feature-card:hover .feature-icon { transform: rotate(-6deg) scale(1.08); }
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; position: relative; z-index: 1; }
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; position: relative; z-index: 1; margin-bottom: 16px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.feature-tag { font-size: 12px; padding: 5px 12px; background: rgba(120, 170, 255, 0.12); border: 1px solid rgba(120, 170, 255, 0.25); color: #cdd9ff; border-radius: 999px; }

/* ===== CTA Section ===== */
.cta-section { padding: 80px 0 100px; }
.cta-box { position: relative; background: linear-gradient(135deg, rgba(40, 60, 130, 0.5) 0%, rgba(15, 25, 60, 0.6) 100%); border: 1px solid rgba(120, 170, 255, 0.3); border-radius: 28px; padding: 70px 50px; text-align: center; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: radial-gradient(ellipse at center, rgba(120, 170, 255, 0.25), transparent 70%); filter: blur(40px); pointer-events: none; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; background: linear-gradient(135deg, #ffffff 0%, #a8c4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-box p { color: var(--text-muted); font-size: 16.5px; max-width: 560px; margin: 0 auto 32px; line-height: 1.65; }
.cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer { position: relative; border-top: 1px solid rgba(120, 160, 255, 0.15); padding: 70px 0 30px; margin-top: 40px; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, rgba(120, 170, 255, 0.8), transparent); box-shadow: 0 0 20px rgba(120, 170, 255, 0.5); }
.footer::after { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 200px; background: radial-gradient(ellipse at center top, rgba(74, 123, 255, 0.18), transparent 70%); filter: blur(40px); pointer-events: none; z-index: 0; }
.footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr; gap: 50px; margin-bottom: 50px; }
.footer-brand .logo { font-size: 22px; }
.footer-brand p { color: var(--text-muted); font-size: 13.5px; line-height: 1.7; margin-top: 18px; margin-bottom: 24px; max-width: 300px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(120, 160, 255, 0.08); border: 1px solid rgba(120, 160, 255, 0.18); color: var(--text-muted); transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1); }
.footer-socials a:hover { background: linear-gradient(135deg, rgba(120, 170, 255, 0.3), rgba(74, 123, 255, 0.2)); border-color: rgba(120, 170, 255, 0.5); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(74, 123, 255, 0.3); }
.footer-socials svg { width: 16px; height: 16px; }
.footer-col h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 22px; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: 13.5px; transition: color 0.2s, padding 0.2s; position: relative; display: inline-block; }
.footer-col a::before { content: '→'; position: absolute; left: -16px; opacity: 0; transition: opacity 0.2s, left 0.2s; color: var(--accent-light); }
.footer-col a:hover { color: #fff; padding-left: 16px; }
.footer-col a:hover::before { opacity: 1; left: 0; }
.footer-newsletter h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-newsletter p { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.newsletter-form { display: flex; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(120, 160, 255, 0.2); border-radius: 12px; padding: 5px; transition: border-color 0.3s, box-shadow 0.3s; }
.newsletter-form:focus-within { border-color: rgba(120, 170, 255, 0.6); box-shadow: 0 0 0 3px rgba(74, 123, 255, 0.12); }
.newsletter-form input { flex: 1; background: transparent; border: none; padding: 10px 14px; color: #fff; font-family: inherit; font-size: 13px; outline: none; min-width: 0; }
.newsletter-form input::placeholder { color: var(--text-subtle); }
.newsletter-form button { background: linear-gradient(135deg, #ffffff 0%, #d6e4ff 50%, #a8c4ff 100%); color: #1a3a8c; border: none; padding: 8px 16px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: transform 0.2s, box-shadow 0.2s; }
.newsletter-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(120, 170, 255, 0.4); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.06); color: var(--text-subtle); font-size: 12.5px; flex-wrap: wrap; gap: 14px; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text-subtle); transition: color 0.2s; }
.footer-bottom-links a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .hero-left { text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-right { order: -1; }
    .hero h1 { font-size: 48px; }
    .section-title { font-size: 36px; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-newsletter { grid-column: 1 / -1; max-width: 480px; }
}
@media (max-width: 860px) {
    .nav-links { display: none; }
    .hero { padding: 30px 0 60px; }
    .hero h1 { font-size: 38px; }
    .section-title { font-size: 30px; }
    .cta-box { padding: 50px 30px; }
    .cta-box h2 { font-size: 34px; }
}
@media (max-width: 560px) {
    .hero h1 { font-size: 30px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; }
    .hero-stats { gap: 18px; flex-wrap: wrap; }
    .hero-stat-num { font-size: 24px; }
    .cta-box h2 { font-size: 26px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
}
