/* ============================================
   PrismGen AI — Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary: #7C3AED;
  --primary-light: #9D5FFF;
  --secondary: #EC4899;
  --accent: #F97316;
  --teal: #06B6D4;
  --green: #10B981;
  --dark: #080818;
  --dark-2: #0F0F2A;
  --dark-3: #15153A;
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --gradient: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F97316 100%);
  --gradient-2: linear-gradient(135deg, #06B6D4 0%, #7C3AED 100%);
  --gradient-3: linear-gradient(135deg, #EC4899 0%, #F97316 100%);
  --gradient-4: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  --shadow: 0 20px 60px rgba(124,58,237,0.3);
  --shadow-sm: 0 8px 30px rgba(0,0,0,0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Outfit', sans-serif; background: var(--dark); color: var(--text); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::selection { background: rgba(124,58,237,0.4); color: white; }

h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; }

.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-text-2 { background: var(--gradient-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-text-3 { background: var(--gradient-3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; background: rgba(8,8,24,0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); transition: var(--transition); }
.navbar.scrolled { padding: 0.7rem 2rem; background: rgba(8,8,24,0.95); }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo-icon { width: 38px; height: 38px; background: var(--gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 900; color: white; flex-shrink: 0; }
.nav-logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.3rem; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; padding: 0.45rem 0.75rem; border-radius: var(--radius-sm); transition: var(--transition); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--glass); }
.nav-links a.active { background: rgba(124,58,237,0.2); color: var(--primary-light); }
.nav-cta-btn { background: var(--gradient) !important; color: white !important; padding: 0.5rem 1.2rem !important; border-radius: 50px !important; font-weight: 600 !important; }
.nav-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(124,58,237,0.4); opacity: 0.9; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%); background: var(--dark-2); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 0.5rem; min-width: 200px; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 100; backdrop-filter: blur(20px); }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-menu a { display: flex !important; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem !important; border-radius: var(--radius-sm); width: 100%; }
.dd-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: rgba(8,8,24,0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); padding: 1.5rem 2rem; z-index: 999; flex-direction: column; gap: 0.5rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-muted); text-decoration: none; font-weight: 500; padding: 0.8rem 1rem; border-radius: var(--radius-sm); transition: var(--transition); }
.mobile-menu a:hover { color: var(--text); background: var(--glass); }
.mobile-menu .mob-cta { background: var(--gradient); color: white !important; text-align: center; margin-top: 0.5rem; border-radius: 50px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.8rem; border-radius: 50px; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--gradient); color: white; box-shadow: 0 8px 30px rgba(124,58,237,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(124,58,237,0.5); }
.btn-secondary { background: var(--glass); color: var(--text); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary-light); border: 1px solid var(--primary); }
.btn-outline:hover { background: rgba(124,58,237,0.15); transform: translateY(-2px); }
.btn-teal { background: linear-gradient(135deg, #06B6D4, #7C3AED); color: white; box-shadow: 0 8px 30px rgba(6,182,212,0.3); }
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(6,182,212,0.5); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.875rem; }

/* CONTAINER & GRID */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* SECTION */
section { position: relative; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3); border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--primary-light); margin-bottom: 1.2rem; }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* CARD */
.card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 2rem; transition: var(--transition); position: relative; overflow: hidden; }
.card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-4px); box-shadow: var(--shadow); }
.card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(124,58,237,0.05), transparent); opacity: 0; transition: var(--transition); }
.card:hover::before { opacity: 1; }

/* BG BLOBS */
.bg-blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.bg-blob-1 { background: rgba(124,58,237,0.25); width: 600px; height: 600px; }
.bg-blob-2 { background: rgba(236,72,153,0.2); width: 500px; height: 500px; }
.bg-blob-3 { background: rgba(249,115,22,0.15); width: 400px; height: 400px; }
.bg-blob-4 { background: rgba(6,182,212,0.15); width: 450px; height: 450px; }

/* TAGS */
.tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }
.tag-purple { background: rgba(124,58,237,0.2); color: var(--primary-light); border: 1px solid rgba(124,58,237,0.3); }
.tag-pink { background: rgba(236,72,153,0.2); color: #F472B6; border: 1px solid rgba(236,72,153,0.3); }
.tag-orange { background: rgba(249,115,22,0.2); color: #FB923C; border: 1px solid rgba(249,115,22,0.3); }
.tag-teal { background: rgba(6,182,212,0.2); color: #22D3EE; border: 1px solid rgba(6,182,212,0.3); }
.tag-green { background: rgba(16,185,129,0.2); color: #34D399; border: 1px solid rgba(16,185,129,0.3); }

/* STATS */
.stat-item { text-align: center; }
.stat-number { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* PAGE HERO */
.page-hero { padding: 9rem 0 5rem; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; }
.page-hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 2.5rem; }

/* FORM */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.5rem; }
.form-control { width: 100%; padding: 0.8rem 1.2rem; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--text); font-family: 'Outfit', sans-serif; font-size: 1rem; transition: var(--transition); outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

/* IMG */
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-rounded { border-radius: var(--radius); }
.img-glow { box-shadow: 0 20px 60px rgba(124,58,237,0.3); }

/* POPUP NOTIFICATION */
.popup-notification { position: fixed; bottom: 2rem; right: 2rem; background: var(--dark-2); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1rem 1.5rem; display: flex; align-items: center; gap: 0.8rem; z-index: 9999; box-shadow: var(--shadow); transform: translateX(200%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); max-width: 350px; }
.popup-notification.show { transform: translateX(0); }
.popup-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.popup-icon.success { background: rgba(16,185,129,0.2); color: var(--green); }
.popup-icon.error { background: rgba(239,68,68,0.2); color: #EF4444; }
.popup-icon.info { background: rgba(124,58,237,0.2); color: var(--primary-light); }
.popup-text strong { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.popup-text span { font-size: 0.85rem; color: var(--text-muted); }
.popup-close { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 1rem; padding: 0.2rem; margin-left: auto; flex-shrink: 0; transition: var(--transition); }
.popup-close:hover { color: var(--text); }

/* FOOTER */
footer { background: var(--dark-2); border-top: 1px solid var(--glass-border); padding: 5rem 0 2rem; position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; margin: 1rem 0 1.5rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.8rem; }
.social-btn { width: 38px; height: 38px; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.social-btn:hover { background: var(--gradient); border-color: transparent; color: white; transform: translateY(-2px); }
.footer-col h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1.2rem; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--primary-light); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--text-dim); font-size: 0.875rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-dim); text-decoration: none; font-size: 0.875rem; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--text-muted); }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

.animate-fadeInUp { animation: fadeInUp 0.7s ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 1.2rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn-lg { padding: 0.9rem 1.8rem; font-size: 1rem; }
}
