/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #00f2fe;
    --dark: #0f172a;
    --dark-glass: rgba(15, 23, 42, 0.8);
    --light: #f8fafc;
    --text-main: #334155;
    --text-light: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-animated: linear-gradient(-45deg, #6a11cb, #2575fc, #00f2fe, #6a11cb);
}

/* SCOPING TO PROTECT WORDPRESS THEME */
#prodoc-wrapper {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

#prodoc-wrapper * { box-sizing: border-box; }
#prodoc-wrapper h1, #prodoc-wrapper h2, #prodoc-wrapper h3, #prodoc-wrapper h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: -0.5px; margin-top: 0;}
#prodoc-wrapper a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
#prodoc-wrapper ul { list-style: none; padding: 0; margin: 0; }
#prodoc-wrapper img { max-width: 100%; height: auto; }

/* --- BACKGROUND SHAPES & ANIMATIONS --- */
.bg-shape { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; opacity: 0.6; animation: float-shape 10s infinite alternate; }
@keyframes float-shape { 0% { transform: translate(0, 0); } 100% { transform: translate(30px, 50px); } }
.shape-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: rgba(106, 17, 203, 0.3); }
.shape-2 { bottom: 10%; right: -5%; width: 400px; height: 400px; background: rgba(0, 242, 254, 0.2); animation-delay: -5s; }

/* --- UTILITIES --- */
.prodoc-container { width: 90%; max-width: 1280px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
#prodoc-wrapper .btn { position: relative; display: inline-block; padding: 14px 35px; border-radius: 50px; font-family: 'Montserrat', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; cursor: pointer; border: none; transition: all 0.4s; overflow: hidden; z-index: 1; }
.btn-primary { background: var(--gradient-main); color: white !important; box-shadow: 0 10px 20px rgba(37, 117, 252, 0.3); }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(37, 117, 252, 0.5); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.8); color: white !important; backdrop-filter: blur(5px); }
.btn-outline:hover { background: white; color: var(--primary) !important; border-color: white; box-shadow: 0 0 20px rgba(255,255,255,0.4); }
.section-padding { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 70px; position: relative; z-index: 2; }
.section-header h2 { font-size: 3rem; color: var(--dark); margin-bottom: 15px; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.section-header p { color: #64748b; font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

/* --- HEADER --- */
#prodoc-header { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(16px); position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
#prodoc-header nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.8rem; font-weight: 800; font-family: 'Montserrat', sans-serif; color: var(--dark); display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo i { font-size: 2rem; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links li a { font-weight: 600; font-size: 1rem; color: var(--text-main); position: relative; }
.nav-links li a:hover { color: var(--primary); }
.hamburger { display: none; cursor: pointer; font-size: 1.8rem; color: var(--dark); }

/* --- HERO --- */
.hero { min-height: 100vh; background: var(--gradient-animated); background-size: 400% 400%; animation: gradientBG 15s ease infinite; position: relative; display: flex; align-items: center; color: white; overflow: hidden; padding-top: 80px; }
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; font-weight: 800; text-shadow: 0 10px 30px rgba(0,0,0,0.1); color: white; }
.hero-text p { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.9; font-weight: 300; max-width: 600px; color: white; }
.glass-panel { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.3); padding: 40px; border-radius: 30px; box-shadow: 0 25px 50px rgba(0,0,0,0.2); text-align: center; transform: rotateY(-10deg) rotateX(5deg); transition: transform 0.5s ease; animation: float 6s ease-in-out infinite; }
.hero-image:hover .glass-panel { transform: rotateY(0) rotateX(0); }
@keyframes float { 0% { transform: rotateY(-10deg) rotateX(5deg) translateY(0px); } 50% { transform: rotateY(-10deg) rotateX(5deg) translateY(-20px); } 100% { transform: rotateY(-10deg) rotateX(5deg) translateY(0px); } }
.hero-stats { display: flex; justify-content: space-between; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; }
.stat-item h4 { font-size: 1.5rem; margin-bottom: 5px; color: white;}
.stat-item span { font-size: 0.8rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; color: white; }
.wave-bottom {position: absolute; bottom: 0; width: 100%;}

/* --- CARDS (Templates) --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; position: relative; z-index: 2; }
.feature-card { background: var(--glass-bg); backdrop-filter: blur(10px); padding: 50px 30px; border-radius: 24px; border: var(--glass-border); box-shadow: var(--glass-shadow); text-align: center; transition: all 0.4s ease; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(106, 17, 203, 0.15); }
.icon-box { width: 80px; height: 80px; background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1)); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; font-size: 2rem; color: var(--primary); transition: 0.4s; }
.feature-card:hover .icon-box { background: var(--gradient-main); color: white; transform: rotate(10deg); border-radius: 50%; }

/* --- PRICING --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; justify-items: center; }
.pricing-card { background: white; border-radius: 50px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.05); transition: 0.4s; border: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column; height: 100%; position: relative; width: 100%; max-width: 360px; }
.pricing-card:hover { transform: translateY(-10px); }
.pricing-card.featured { transform: scale(1.05); border: 2px solid var(--secondary); box-shadow: 0 20px 60px rgba(37, 117, 252, 0.15); z-index: 2; }
.pricing-card.featured:hover { transform: translateY(-10px) scale(1.07); }
.price-header { padding: 40px 30px 20px; text-align: center; }
.price { font-size: 3rem; font-weight: 800; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.price-features { padding: 0 30px 30px; flex-grow: 1; }
.price-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.95rem; }
.price-features i { color: var(--secondary); }
.price-footer { padding: 0 30px 40px; }
.btn-price { width: 100%; padding: 12px; border: 2px solid var(--secondary); color: var(--secondary); background: transparent; border-radius: 25px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-price:hover { background: var(--gradient-main); color: white; border-color: transparent; }
.popular-tag { background: var(--gradient-main); color: white; text-align: center; padding: 8px 0; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* --- EDITOR & DASHBOARD --- */
.spa-view { display: none; padding-top: 100px; min-height: 100vh; animation: fadeIn 0.5s ease-out; }
.spa-view.active { display: block; }
.editor-container { display: flex; flex-wrap: wrap; gap: 40px; }
.editor-form { flex: 1; min-width: 300px; background: white; padding: 40px; border-radius: 24px; box-shadow: var(--glass-shadow); height: fit-content; }
.editor-preview { flex: 1.5; min-width: 300px; display: flex; justify-content: center; background: #e2e8f0; padding: 40px; border-radius: 24px; position: relative; }
.legal-paper { background: white; width: 100%; max-width: 210mm; min-height: 297mm; padding: 25mm; box-shadow: 0 10px 30px rgba(0,0,0,0.1); font-family: 'Times New Roman', Times, serif; font-size: 12pt; line-height: 1.6; color: black; position: relative; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); font-size: 0.9rem; }
.form-group input, .form-group select { width: 100%; padding: 12px 20px; border: 2px solid #e2e8f0; border-radius: 12px; font-family: 'Outfit', sans-serif; font-size: 1rem; transition: 0.3s; outline: none; }
.form-group input:focus { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(37, 117, 252, 0.1); }
.watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-45deg); font-size: 4rem; font-weight: 900; color: rgba(0,0,0,0.05); white-space: nowrap; pointer-events: none; user-select: none; }

/* Dashboard Table */
.dashboard-card { background: white; border-radius: 24px; overflow: hidden; box-shadow: var(--glass-shadow); }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th { background: #f8fafc; text-align: left; padding: 20px; color: #64748b; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
.dash-table td { padding: 20px; border-bottom: 1px solid #f1f5f9; }
.dash-table tr:hover { background: #f8fafc; }
.status-badge { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; background: #dcfce7; color: #166534; }

/* --- MODAL --- */
.prodoc-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(15, 23, 42, 0.85); backdrop-filter: blur(5px); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.prodoc-modal.show { opacity: 1; }
.modal-content { background: white; padding: 40px; border-radius: 30px; width: 90%; max-width: 450px; position: relative; transform: scale(0.9); transition: transform 0.3s ease; text-align: center; }
.prodoc-modal.show .modal-content { transform: scale(1); }
.close-modal { position: absolute; top: 20px; right: 25px; font-size: 24px; cursor: pointer; color: #94a3b8; }
.close-modal:hover { color: var(--dark); }

/* --- FOOTER --- */
#prodoc-footer { background: #020617; color: #94a3b8; padding: 80px 0 30px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 50px; margin-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 60px; }
.social-icons a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; margin-right: 10px; transition: 0.3s; }
.social-icons a:hover { background: var(--gradient-main); transform: translateY(-3px); }

/* Animation Keyframes */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
    .hero-text h1 { font-size: 3rem; }
    .hero-btns { justify-content: center; }
    .nav-links { position: absolute; right: 0; top: 80px; background: white; flex-direction: column; width: 100%; text-align: center; padding: 40px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: none; }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .glass-panel { transform: none; animation: none; margin: 0 auto; max-width: 350px; }
    .editor-container { flex-direction: column; }
}