@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #060a14;
  --bg-surface: #0d1424;
  --bg-elevated: #131c31;
  --bg-glass: rgba(13, 20, 36, 0.78);
  --border: #1e2b45;
  --border-hover: #334973;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-indigo: #6366f1;
  --emerald: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.09), transparent 35%),
    radial-gradient(circle at 85% 5%, rgba(99, 102, 241, 0.09), transparent 35%);
  color: var(--text-main);
  font-family: 'Inter', 'Heebo', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: 'Heebo', 'Inter', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 0.95rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px); background: rgba(6, 10, 20, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-indigo));
  display: grid; place-items: center; color: #060a14; font-weight: 900;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 1.8rem; color: var(--text-muted); font-weight: 500; font-size: 0.94rem; }
.nav-links a:hover { color: var(--text-main); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.62rem 1.25rem; border-radius: 10px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-indigo));
  color: #fff; box-shadow: 0 8px 24px rgba(56, 189, 248, 0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(56, 189, 248, 0.34); }
.btn-outline { background: rgba(255,255,255,0.03); border-color: var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--accent); background: rgba(56, 189, 248, 0.08); }
.btn-danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.22); }
.btn-sm { padding: 0.42rem 0.85rem; font-size: 0.85rem; border-radius: 8px; }
.lang-pill {
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-main);
  padding: 0.42rem 0.75rem; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.84rem;
}
.lang-pill:hover { border-color: var(--accent); }

/* Hero */
.hero { padding: 5rem 0 4rem; display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 3rem; align-items: center; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.9rem;
  border-radius: 99px; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399; font-size: 0.82rem; font-weight: 600; margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.2rem; }
.gradient-text { background: linear-gradient(135deg, #38bdf8, #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.trust-item { display: flex; align-items: center; gap: 0.4rem; }

/* Mockup Preview Card */
.vault-mockup {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem;
  box-shadow: var(--shadow); position: relative;
}
.mockup-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.dots span:nth-child(1){ background:#ef4444; } .dots span:nth-child(2){ background:#f59e0b; } .dots span:nth-child(3){ background:#10b981; }
.mock-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem; border-radius: 11px; background: rgba(6, 10, 20, 0.65);
  border: 1px solid var(--border); margin-bottom: 0.7rem;
}
.enc-tag { font-size: 0.72rem; padding: 2px 8px; border-radius: 6px; background: rgba(56,189,248,0.14); color: var(--accent); font-weight: 600; }

/* Sections & Cards */
.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 0.75rem; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.icon-box {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1.1rem;
  background: rgba(56, 189, 248, 0.12); color: var(--accent);
  display: grid; place-items: center;
}
.card h3 { font-size: 1.18rem; margin-bottom: 0.55rem; }
.card p { color: var(--text-muted); font-size: 0.93rem; }

/* Pricing */
.billing-switch {
  display: inline-flex; align-items: center; gap: 0.6rem; background: var(--bg-surface);
  border: 1px solid var(--border); padding: 0.35rem; border-radius: 12px; margin-top: 1.2rem;
}
.billing-switch button {
  background: transparent; border: none; color: var(--text-muted); padding: 0.5rem 1.1rem;
  border-radius: 9px; font-weight: 600; cursor: pointer;
}
.billing-switch button.active { background: var(--bg-elevated); color: var(--text-main); border: 1px solid var(--border-hover); }
.save-tag { background: rgba(16,185,129,0.16); color: #34d399; font-size: 0.75rem; padding: 2px 8px; border-radius: 99px; margin-inline-start: 4px; }

.price-card { display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 35px rgba(56, 189, 248, 0.12); background: linear-gradient(180deg, #101b33, var(--bg-surface)); }
.popular-ribbon {
  position: absolute; top: -12px; inset-inline-end: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-indigo));
  color: #fff; font-size: 0.74rem; font-weight: 700; padding: 3px 12px; border-radius: 99px;
}
.price-num { font-size: 2.5rem; font-weight: 800; margin: 0.8rem 0 0.25rem; }
.price-num span { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.feat-list { list-style: none; margin: 1.4rem 0 1.8rem; display: grid; gap: 0.65rem; font-size: 0.92rem; color: #cbd5e1; }
.feat-list li { display: flex; align-items: center; gap: 0.55rem; }
.feat-list li::before { content: "✓"; color: var(--emerald); font-weight: 800; }

/* FAQ */
.faq-wrap { max-width: 820px; margin: 0 auto; display: grid; gap: 0.85rem; }
.faq-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: start; background: none; border: none; color: var(--text-main);
  padding: 1.15rem 1.4rem; font-weight: 600; font-size: 1rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-a { display: none; padding: 0 1.4rem 1.2rem; color: var(--text-muted); font-size: 0.94rem; }
.faq-item.open .faq-a { display: block; }

/* Forms & Inputs */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 600; color: #cbd5e1; margin-bottom: 0.4rem; }
.input {
  width: 100%; padding: 0.72rem 0.95rem; border-radius: 10px;
  background: #080d1a; border: 1px solid var(--border); color: var(--text-main);
  outline: none; transition: border-color 0.2s;
}
.input:focus { border-color: var(--accent); }
textarea.input { min-height: 110px; resize: vertical; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: #04070f; padding: 4rem 0 2.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer h4 { font-size: 0.95rem; margin-bottom: 1rem; color: #e2e8f0; }
.footer ul { list-style: none; display: grid; gap: 0.55rem; color: var(--text-muted); font-size: 0.9rem; }
.footer ul a:hover { color: var(--accent); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.pay-badge { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-surface); font-size: 0.76rem; font-weight: 700; color: #cbd5e1; }
.footer-bottom { padding-top: 1.8rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--text-muted); font-size: 0.84rem; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(3, 6, 14, 0.82); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem;
}
.modal-backdrop.active { display: flex; }
.modal {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 460px; padding: 2rem; box-shadow: var(--shadow); position: relative;
  max-height: 92vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 1rem; inset-inline-end: 1rem; background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; }

/* Dashboard Layout (/app) */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: #080d1a; border-inline-end: 1px solid var(--border);
  padding: 1.5rem 1rem; display: flex; flex-direction: column; justify-content: space-between;
}
.side-nav { display: grid; gap: 0.35rem; margin-top: 1.8rem; }
.side-btn {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: start;
  padding: 0.72rem 0.95rem; border-radius: 10px; background: transparent; border: none;
  color: var(--text-muted); font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.side-btn:hover { background: rgba(255,255,255,0.04); color: var(--text-main); }
.side-btn.active { background: rgba(56, 189, 248, 0.13); color: var(--accent); }
.app-main { padding: 1.8rem 2.2rem; max-width: 1180px; width: 100%; margin: 0 auto; }
.app-topbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.8rem;
}
.vault-key-bar {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.9rem;
  border-radius: 10px; background: var(--bg-surface); border: 1px solid var(--border); font-size: 0.85rem;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 1.8rem; }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 13px; padding: 1.25rem; }
.stat-label { color: var(--text-muted); font-size: 0.82rem; font-weight: 600; }
.stat-val { font-size: 1.65rem; font-weight: 800; margin-top: 0.3rem; }
.progress-track { height: 8px; background: #1e293b; border-radius: 99px; overflow: hidden; margin-top: 0.6rem; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-indigo)); border-radius: 99px; }

.dropzone {
  border: 2px dashed var(--border-hover); border-radius: 14px; padding: 2.2rem;
  text-align: center; background: rgba(13, 20, 36, 0.5); cursor: pointer; transition: all 0.2s; margin-bottom: 1.5rem;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: rgba(56, 189, 248, 0.06); }

.table-wrap { overflow-x: auto; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.9rem 1.1rem; text-align: start; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; background: rgba(0,0,0,0.2); }
tr:last-child td { border-bottom: none; }

/* Toast & Cookie */
#toast-container { position: fixed; bottom: 1.5rem; inset-inline-end: 1.5rem; z-index: 300; display: grid; gap: 0.6rem; }
.toast {
  padding: 0.85rem 1.2rem; border-radius: 10px; background: #0f172a; border: 1px solid var(--border-hover);
  color: #fff; font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow);
}
.toast.ok { border-inline-start: 4px solid var(--emerald); }
.toast.err { border-inline-start: 4px solid var(--danger); }

.cookie-bar {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  width: calc(100% - 2rem); max-width: 780px; background: #0f172a; border: 1px solid var(--border-hover);
  border-radius: 14px; padding: 1rem 1.4rem; display: none; align-items: center; justify-content: space-between;
  gap: 1rem; z-index: 150; box-shadow: var(--shadow); font-size: 0.88rem; color: #cbd5e1;
}

@media (max-width: 960px) {
  .hero, .grid-3, .footer-grid, .stat-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-inline-end: none; border-bottom: 1px solid var(--border); padding: 1rem; }
  .side-nav { display: flex; overflow-x: auto; margin-top: 0.8rem; }
  .side-btn { width: auto; white-space: nowrap; }
  .app-main { padding: 1.2rem; }
}
