@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --saas-bg: #0f172a;
    --saas-surface: #1e293b;
    --saas-primary: #3b82f6;
    --saas-primary-hover: #2563eb;
    --saas-text: #f8fafc;
    --saas-muted: #94a3b8;
    --saas-border: #334155;
    --transition: all 0.3s ease;
}

body { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: var(--saas-bg); color: var(--saas-text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* Vissza sáv */
.demo-bar { background: var(--saas-primary); color: white; text-align: center; padding: 10px; font-weight: 600; font-size: 13px; position: fixed; top: 0; width: 100%; z-index: 3000; }
.demo-bar a { background: white; color: var(--saas-primary); padding: 4px 12px; border-radius: 4px; font-weight: 700; margin-left: 15px; font-size: 12px; transition: var(--transition); }
.demo-bar a:hover { opacity: 0.9; }

/* Okos Navigáció (Üveghatású) */
nav { position: fixed; top: 38px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 20px 5%; align-items: center; z-index: 1000; transition: var(--transition); }
nav.scrolled { background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 15px 5%; }
.nav-container { max-width: 1400px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

/* A Fix Logód */
.logo { font-size: 26px; font-weight: 900; color: white; letter-spacing: -1px; }
.logo span { color: var(--saas-primary); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a.menu-link { color: var(--saas-muted); font-weight: 500; font-size: 15px; transition: var(--transition); }
.nav-links a.menu-link:hover { color: white; }

.login-btn { background: none; border: none; color: white; font-weight: 500; cursor: pointer; font-size: 15px; margin-right: 15px; transition: var(--transition); font-family: 'Inter'; }
.login-btn:hover { color: var(--saas-primary); }

/* Gombok */
.btn-primary { background: var(--saas-primary); color: white; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: var(--transition); display: inline-block; font-family: 'Inter'; }
.btn-primary:hover { background: var(--saas-primary-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(59,130,246,0.3); }
.btn-outline { background: transparent; color: white; border: 1px solid var(--saas-border); padding: 14px 28px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 15px; transition: var(--transition); font-family: 'Inter'; }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: var(--saas-muted); }

/* Hero Szekció Ragyogással */
.hero-wrapper { position: relative; padding-top: 150px; overflow: hidden; }
/* Kék ragyogás a háttérben */
.hero-glow { position: absolute; top: 10%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(15,23,42,0) 70%); z-index: -1; pointer-events: none; }

.hero { display: flex; align-items: center; justify-content: space-between; padding: 40px 5% 80px; max-width: 1400px; margin: 0 auto; gap: 60px; min-height: 70vh; }
.hero-text { flex: 1; max-width: 600px; animation: fadeInUp 1s ease-out; }
.badge { background: rgba(59, 130, 246, 0.1); color: #60a5fa; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; border: 1px solid rgba(59,130,246,0.2); }
.hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.1; margin-bottom: 25px; font-weight: 800; letter-spacing: -1.5px; }
.hero p { color: var(--saas-muted); font-size: 18px; margin-bottom: 40px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.hero-img-container { flex: 1; position: relative; animation: floatAnim 6s ease-in-out infinite; }
.hero-img { width: 100%; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border: 1px solid var(--saas-border); object-fit: cover; }

/* =========================================
   PRÉMIUM MODÁLIS ABLAK (UI Frissítés)
   ========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); z-index: 4000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--saas-surface); padding: 40px; border-radius: 20px; width: 100%; max-width: 420px; border: 1px solid var(--saas-border); position: relative; transform: translateY(30px); transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 25px 50px rgba(0,0,0,0.3); }
.modal-overlay.active .modal { transform: translateY(0); }
.close-btn { position: absolute; top: 20px; right: 25px; cursor: pointer; color: var(--saas-muted); font-size: 24px; background: none; border: none; transition: var(--transition); }
.close-btn:hover { color: white; transform: rotate(90deg); }

.modal-header { text-align: center; margin-bottom: 30px; }
.modal-header h2 { margin: 0 0 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.modal-header p { color: var(--saas-muted); font-size: 14px; margin: 0; }

.form-group { position: relative; margin-bottom: 20px; }
.form-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--saas-muted); font-size: 14px; }
.modal input { width: 100%; padding: 14px 14px 14px 45px; border-radius: 10px; border: 1px solid var(--saas-border); background: var(--saas-bg); color: white; box-sizing: border-box; font-family: 'Inter'; font-size: 14px; transition: var(--transition); }
.modal input:focus { outline: none; border-color: var(--saas-primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }

/* Google / Social Gomb */
.btn-google { background: transparent; color: white; border: 1px solid var(--saas-border); padding: 12px; border-radius: 10px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; transition: var(--transition); font-family: 'Inter'; margin-bottom: 20px; }
.btn-google:hover { background: rgba(255,255,255,0.05); }
.btn-google img { width: 18px; }

.divider { display: flex; align-items: center; text-align: center; margin-bottom: 20px; color: var(--saas-muted); font-size: 12px; font-weight: 500; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--saas-border); }
.divider:not(:empty)::before { margin-right: 15px; }
.divider:not(:empty)::after { margin-left: 15px; }

.modal-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--saas-muted); }
.modal-footer a { color: var(--saas-primary); font-weight: 600; cursor: pointer; }

/* Animációk */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatAnim { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

@media (max-width: 992px) { 
    .hero { flex-direction: column; text-align: center; padding-top: 20px; } 
    .hero-text { margin: 0 auto; } 
    .hero-buttons { justify-content: center; } 
    .nav-links .menu-link { display: none; }
}

/* SaaS Aktív Menüpont Dizájn */
.nav-links a.menu-link.active { color: var(--saas-primary); font-weight: 700; position: relative; }
.nav-links a.menu-link.active::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px; background: var(--saas-primary); border-radius: 2px; }

/* =========================================
   ÚJ ALOLDALAK STÍLUSAI
   ========================================= */
.page-header { text-align: center; padding: 150px 5% 50px; max-width: 800px; margin: 0 auto; position: relative; }
.page-header h1 { font-size: 48px; margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
.page-header p { color: var(--saas-muted); font-size: 18px; line-height: 1.7; }

/* Funkciók Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; padding: 0 5% 100px; max-width: 1400px; margin: 0 auto; }
.feature-card { background: var(--saas-surface); border: 1px solid var(--saas-border); padding: 40px; border-radius: 16px; transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); border-color: var(--saas-primary); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.feature-icon { width: 50px; height: 50px; background: rgba(59,130,246,0.1); color: var(--saas-primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; margin-bottom: 15px; }
.feature-card p { color: var(--saas-muted); font-size: 15px; line-height: 1.6; }

/* Árak Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 0 5% 100px; max-width: 1200px; margin: 0 auto; align-items: center; }
.pricing-card { background: var(--saas-surface); border: 1px solid var(--saas-border); padding: 40px; border-radius: 20px; transition: var(--transition); position: relative; }
.pricing-card.popular { border-color: var(--saas-primary); transform: scale(1.05); background: linear-gradient(180deg, var(--saas-surface) 0%, #0f172a 100%); box-shadow: 0 20px 40px rgba(59,130,246,0.1); z-index: 10; }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--saas-primary); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.price { font-size: 48px; font-weight: 800; margin: 20px 0; }
.price span { font-size: 16px; color: var(--saas-muted); font-weight: 500; }
.pricing-list { list-style: none; padding: 0; margin: 30px 0; }
.pricing-list li { margin-bottom: 15px; color: var(--saas-muted); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.pricing-list li i { color: var(--saas-primary); }

/* Rólunk (Csapat) */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; padding: 0 5% 100px; max-width: 1000px; margin: 0 auto; text-align: center; }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--saas-border); margin-bottom: 20px; }
.team-card h3 { margin-bottom: 5px; }
.team-card p { color: var(--saas-primary); font-size: 14px; font-weight: 600; margin-bottom: 15px; }

@media (max-width: 992px) { .pricing-card.popular { transform: scale(1); } }

/* Árkártyák Zoom effektje rámutatáskor */
.pricing-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--saas-primary);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    z-index: 11;
}

/* A már alapból nagy 'Popular' kártya még nagyobbat ugrik */
.pricing-card.popular:hover {
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.25);
    z-index: 12;
}

/* =========================================
   TOAST ÉRTESÍTÉS (SaaS)
   ========================================= */
#saas-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--saas-primary);
    color: white;
    text-align: center;
    border-radius: 10px;
    padding: 16px 24px;
    position: fixed;
    z-index: 9999;
    right: 30px;
    bottom: 30px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#saas-toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
#saas-toast.success { background-color: #10b981; } /* Zöld */
#saas-toast.info { background-color: var(--saas-primary); } /* Kék */
#saas-toast.error { background-color: #ef4444; } /* ÚJ: Piros hiba */