/* PREMIUM CONTENTLOBBY STYLES */

:root {
  --primary: #6366f1; /* Indigo 500 */
  --primary-hover: #4f46e5;
  --accent: #ec4899; /* Pink 500 */
  --bg-color: #f8fafc; /* Slate 50 */
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);

  --gradient-text: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  
  --mesh-opacity: 0.15;
  --card-bg: #fff;
  --card-border: #e2e8f0;
  --input-bg: #fff;
  --input-border: #e2e8f0;
  --section-overlay: rgba(255,255,255,0.4);
  --overlay-bg: rgba(255,255,255,0.98);
}

[data-theme="dark"] {
  --bg-color: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  
  --mesh-opacity: 0.08;
  --card-bg: #1e293b;
  --card-border: #334155;
  --input-bg: #1e293b;
  --input-border: #334155;
  --section-overlay: rgba(15,23,42,0.4);
  --overlay-bg: rgba(15,23,42,0.98);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Base Gradient Mesh Background */
.bg-mesh {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200vw;
  height: 200vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, var(--mesh-opacity)), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(236, 72, 153, var(--mesh-opacity)), transparent 25%);
  animation: mesh 20s ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
}
@keyframes mesh {
  0% { transform: rotate(0deg) translateZ(0); }
  100% { transform: rotate(10deg) scale(1.1) translateZ(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem; font-weight: 800; color: var(--text-main);
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
}
.logo svg { width: 28px; height: 28px; }
.logo span { background: var(--gradient-text); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links {
  display: flex; align-items: center; justify-content: center; flex-grow: 1;
}
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; margin: 0 1.25rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* Desktop Utilities */
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text-main); }
.desktop-nav { display: flex; align-items: center; flex-grow: 1; justify-content: space-between; margin-left: 2rem; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.auth-link { background: none; border: none; padding: 0 0.5rem; font-family: 'Inter', sans-serif; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--text-main); cursor: pointer; transition: color 0.2s; }
.auth-link:hover { color: var(--primary); }
.btn-register { display: inline-block; background: var(--gradient-text); color: white; padding: 0.5rem 1.2rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.95rem; text-align: center; transition: opacity 0.2s, transform 0.2s; }
.btn-register:hover { opacity: 0.9; transform: translateY(-1px); }
.lang-form { margin: 0; }

.theme-toggle-btn {
  background: transparent; border: 1px solid var(--card-border); border-radius: 50%;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  color: var(--text-main); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.theme-toggle-btn:hover { background: var(--primary); color: #fff; }
.theme-toggle-btn .theme-text { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem; }

.theme-toggle-btn.mobile-toggle {
    border-radius: 8px; width: 100%; height: auto; padding: 0.8rem;
}

[data-theme="dark"] .sun-icon { display: none !important; }
[data-theme="dark"] .moon-icon { display: block !important; }
[data-theme="light"] .sun-icon { display: block !important; }
[data-theme="light"] .moon-icon { display: none !important; }

select.lang-switch {
  appearance: none; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 8px;
  padding: 0.5rem 2rem 0.5rem 1rem; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--text-main); cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  background-image: url('data:image/svg+xml;utf8,<svg fill="%2364748b" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat; background-position-x: calc(100% - 0.5rem); background-position-y: center;
}

/* Mobile Overlay Menu */
.mobile-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--overlay-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
}
body.mobile-menu-active { overflow: hidden; }
body.mobile-menu-active .mobile-overlay { transform: translateX(0); }

.mobile-menu-header {
  height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; border-bottom: 1px solid var(--glass-border);
}
.close-menu-btn { background: none; border: none; cursor: pointer; color: var(--text-main); padding: 0; }
.mobile-menu-body { padding: 2rem; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.mobile-nav-links a { text-decoration: none; font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.mobile-actions { display: flex; flex-direction: column; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.8rem 2rem; font-weight: 600; border-radius: 50px;
  text-decoration: none; text-align: center; cursor: pointer; border: none; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--gradient-text); color: #fff !important; box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(99, 102, 241, 0.05); transform: translateY(-2px); }

/* Typography */
h1, h2, h3 { color: var(--text-main); margin-top: 0; overflow-wrap: break-word; word-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; text-align: center; margin-bottom: 3rem; }
.section-subtitle { text-align: center; color: var(--primary-hover); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; font-size: 0.875rem;}
p { font-size: 1.125rem; color: var(--text-muted); overflow-wrap: break-word; }

/* Sections */
section { padding: 6rem 0; }

.hero { padding-top: 180px; text-align: center; position: relative; }
.hero p { max-width: 650px; margin: 1.5rem auto 2.5rem; font-size: 1.25rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

.trust { padding: 3rem 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: var(--section-overlay); }
.trust p { text-align: center; font-size: 0.875rem; font-weight: 700; margin-bottom: 2rem; color: var(--text-muted); letter-spacing: 0.05em; }
.trust-logos { display: flex; justify-content: center; gap: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; opacity: 0.6; filter: grayscale(1); }
.trust-logos svg { height: 32px; }

/* Grid blocks for Features & Process */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card, .process-card {
  background: var(--glass-bg); padding: 2.5rem; border-radius: 24px; border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow); transition: transform 0.3s;
}
.feature-card:hover, .process-card:hover { transform: translateY(-5px); }
.feature-icon { width: 56px; height: 56px; background: rgba(99, 102, 241, 0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 1.5rem; }

.process-step { font-size: 3.5rem; font-weight: 800; color: rgba(99, 102, 241, 0.15); position: absolute; top: 1rem; right: 1.5rem; }
.process-card { position: relative; }

/* Pricing */
.pricing-toggle { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: 3.5rem; font-weight: 600; color: var(--text-muted); }
.pricing-toggle span.active { color: var(--text-main); }
.pricing-toggle .badge { background: rgba(236, 72, 153, 0.1); color: #be185d; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; margin-left: 0.5rem; text-transform: uppercase; }
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
input:checked + .slider { background: var(--gradient-text); }
input:checked + .slider:before { transform: translateX(22px); }

.pricing-card {
  background: var(--card-bg); padding: 3rem 2.5rem; border-radius: 24px; border: 1px solid var(--card-border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.04); display: flex; flex-direction: column; position: relative; transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(99, 102, 241, 0.1); }
.pricing-card.featured { border: 2px solid var(--primary); transform: scale(1.05); box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15); z-index: 10; }
.pricing-card.featured:hover { transform: scale(1.05) translateY(-5px); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient-text); color: #fff; padding: 0.3rem 1.2rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.price { font-size: 3.5rem; font-weight: 800; color: var(--text-main); margin: 1.5rem 0; letter-spacing: -0.05em;}
.price span { font-size: 1.125rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0; }
.features-list { list-style: none; padding: 0; margin: 0 0 2.5rem 0; flex-grow: 1; }
.features-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; color: var(--text-main); font-weight: 500; }
.features-list svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* FAQ Accordion */
.faq-list.accordion-container { max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item.accordion { 
    background: var(--card-bg); 
    border: 1px solid var(--card-border); 
    border-radius: 8px; 
    overflow: hidden; 
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}
.faq-item.accordion:hover { border-color: var(--primary); }
.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    font-family: inherit;
    transition: color 0.2s;
}
.accordion-header svg.chevron {
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
    color: var(--text-muted);
}
.faq-item.accordion:hover .accordion-header { color: var(--primary); }
.faq-item.accordion.active { border-color: var(--card-border); } /* Opt: Keep border normal when active if desired, or set to primary */

.faq-item.accordion.active .accordion-header svg.chevron { transform: rotate(180deg); color: var(--text-main); }
.faq-item.accordion.active .accordion-header { color: var(--text-main); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 1.5rem;
}
.accordion-content p {
    margin: 0;
    padding-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.faq-item.accordion.active .accordion-content {
    max-height: 500px;
}

/* Footer */
footer { background: #0f172a; color: #cbd5e1; padding: 5rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 4rem; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; margin-bottom: 1rem; display: block; }
.footer-links h4 { color: #fff; margin-top: 0; font-weight: 600; font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; font-size: 0.875rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Responsive */
@media (max-width: 992px) {
  .desktop-nav { display: none; }
  .hamburger-btn { display: block; }
  .header-inner { justify-content: space-between; }
  .hero { padding-top: 140px; }
  h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: scale(1); border: 2px solid var(--primary); }
  .pricing-card.featured:hover { transform: translateY(-5px); }
  .hero-buttons { flex-direction: column; gap: 1rem; }
  .footer-bottom { flex-direction: column; justify-content: center; }
  .trust-logos { gap: 2rem; }
}

/* Utils */
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
/* Premium Glassmorphism Cookie Banner */
.cookie-banner-glass {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 450px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 99999;
    
    /* Animation initial state */
    transform: translateY(150%) scale(0.95);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

[data-theme="dark"] .cookie-banner-glass {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner-glass.cookie-banner-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cookie-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-icon {
    font-size: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .cookie-banner-glass {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
