/* /LicenseManager/static/landing.css */
@font-face {
  font-family: 'BNazanin';
  src: url('BNazanin.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

:root {
  --font-primary: 'Vazirmatn', 'BNazanin', sans-serif;
  --bg-main: #f8fafc;
  --bg-soft: #eff6ff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --accent: #10b981;
  --surface: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --radius: 1rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

/* --- Header & Navigation --- */
.sticky-header {
  position: sticky; top: 0; width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000; transition: box-shadow 0.2s;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1280px; margin: 0 auto; padding: 1rem 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: bold; font-size: 1.1rem; }
.logo img { height: 32px; width: 32px; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--brand); }
.cta-button { display: inline-block; background: var(--brand); color: white; padding: 0.6rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: bold; transition: background-color 0.2s, transform 0.2s; }
.cta-button:hover { background-color: var(--brand-hover); transform: translateY(-2px); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 3px; background-color: var(--ink); margin: 5px 0; transition: all 0.3s; }

/* --- Hero Section --- */
#hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; max-width: 1280px; margin: 4rem auto; padding: 0 1.5rem; }
.hero-content { padding: 1rem; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; margin: 0 0 1rem 0; }
.hero-content .tagline { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 2rem; }
.cta-button.large { padding: 0.9rem 2rem; font-size: 1.1rem; border-radius: 0.75rem; }
.hero-image { background-color: var(--surface); padding: 0.75rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-image video, .hero-image img { width: 100%; height: auto; display: block; border-radius: calc(var(--radius) - 0.5rem); }

/* --- Features Section --- */
#features {
  padding: 4rem 1.5rem;
  background-color: var(--bg-soft);
  overflow: hidden;
}
.feature-card {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 3rem; max-width: 1100px; margin: 0 auto 5rem; padding: 2.5rem;
  background-color: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.feature-card.from-left { transform: translateX(-100px); }
.feature-card.from-right { transform: translateX(100px); }
.feature-card.visible { opacity: 1; transform: translate(0, 0); }
.feature-card:nth-child(even) .feature-text { order: 2; }
.feature-card:nth-child(even) .feature-image-wrapper { order: 1; }
.feature-text h2 { font-size: 2rem; margin: 0 0 0.5rem 0; }
.feature-text p { font-size: 1.1rem; line-height: 1.8; color: var(--ink-soft); }

/* --- Image & Lightbox Styles --- */
.feature-image-wrapper { position: relative; }
.feature-image { width: 100%; border-radius: calc(var(--radius) - 0.5rem); border: 1px solid var(--border); display: block; }
.magnify-btn {
    position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
    background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 50%;
    cursor: pointer; display: flex; justify-content: center; align-items: center;
    color: var(--ink); opacity: 0; transform: scale(0.8);
    transition: opacity 0.25s, transform 0.25s;
}
.feature-image-wrapper:hover .magnify-btn { opacity: 1; transform: scale(1); }
.magnify-btn svg { width: 22px; height: 22px; }
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.85); display: none;
    align-items: center; justify-content: center; z-index: 2000;
    padding: 1rem; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content {
    max-width: 90%; max-height: 90%; object-fit: contain;
    border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn { from { transform: scale(0.9); } to { transform: scale(1); } }
.close-lightbox {
    position: absolute; top: 20px; right: 35px; color: #fff;
    font-size: 40px; font-weight: bold; cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.close-lightbox:hover { color: #ccc; transform: scale(1.1); }

/* --- Pricing Calculator Section Styles --- */
.pricing-section { padding: 5rem 1.5rem; background-color: var(--surface); }
.pricing-container { max-width: 800px; margin: 0 auto; text-align: center; }
.pricing-container h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.pricing-subtitle {
    font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 3rem;
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.sliders-area {
    background-color: var(--bg-main); padding: 2rem 2.5rem;
    border-radius: var(--radius); border: 1px solid var(--border);
    margin-bottom: 2rem;
}
.slider-group { margin-bottom: 2.5rem; }
.slider-group label { font-size: 1.1rem; font-weight: bold; margin-bottom: 1rem; display: block; }
input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
    background: var(--border); border-radius: 5px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 24px; height: 24px;
    background: var(--brand); border-radius: 50%; border: 4px solid var(--surface);
    box-shadow: 0 0 5px rgba(0,0,0,0.2); transition: transform 0.2s ease;
}
input[type="range"]::-moz-range-thumb {
    width: 24px; height: 24px; background: var(--brand); border-radius: 50%;
    border: 4px solid var(--surface); box-shadow: 0 0 5px rgba(0,0,0,0.2); transition: transform 0.2s ease;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.slider-labels { display: flex; justify-content: space-between; margin-top: 0.75rem; padding: 0 10px; }
.slider-labels span { font-size: 0.9rem; color: var(--ink-soft); position: relative; transition: color 0.2s, font-weight 0.2s; }
.slider-labels span.active { color: var(--brand); font-weight: bold; }
.slider-value { font-size: 1.5rem; font-weight: bold; color: var(--brand); margin-top: 0.5rem; }
.price-display {
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--bg-soft); padding: 1.5rem 2rem;
    border-radius: var(--radius); border: 1px solid var(--border);
}
.price-breakdown { text-align: right; font-size: 1rem; color: var(--ink-soft); }
.price-breakdown p { margin: 0.5rem 0; }
.price-breakdown .discount { color: var(--accent); }
.final-price { text-align: left; }
.final-price p { margin: 0 0 0.25rem 0; color: var(--ink-soft); }
.final-price h3 { margin: 0; font-size: 2.8rem; color: var(--brand); line-height: 1; }
.final-price h3 small { font-size: 1rem; font-weight: normal; }
#purchase-link { margin-top: 2rem; }

/* --- Final CTA --- */
.final-cta { text-align: center; padding: 5rem 1.5rem; }
.final-cta h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.final-cta p { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 2rem; }

/* --- Footer --- */
footer { padding: 3rem 1.5rem; background-color: var(--surface); border-top: 1px solid var(--border); }
.footer-content {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; max-width: 1100px; margin: 0 auto 2rem; text-align: right;
}
.footer-about h4, .footer-links h4, .footer-contact h4 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--ink); }
.footer-about p { color: var(--ink-soft); line-height: 1.8; margin: 0; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-contact p { margin: 0.5rem 0; color: var(--ink-soft); }
footer a { color: var(--brand); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.copyright { text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--ink-soft); }

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  #hero, .feature-card { grid-template-columns: 1fr; }
  .feature-card:nth-child(even) .feature-text, .feature-card:nth-child(even) .feature-image-wrapper { order: initial; }
  .hero-image { order: -1; margin-bottom: 2rem; }
  #features, .pricing-section, .final-cta { padding: 3rem 1rem; }
  .feature-card { padding: 1.5rem; margin-bottom: 3rem; }
  .nav-links { position: absolute; top: 100%; right: 0; width: 100%; background-color: var(--surface); flex-direction: column; padding: 1rem 0; display: none; border-bottom: 1px solid var(--border); }
  .nav-links.active { display: flex; }
  .nav-links li { text-align: center; padding: 0.5rem 0; }
  .menu-toggle { display: block; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
  .price-display { flex-direction: column; gap: 1rem; text-align: center; }
  .price-breakdown, .final-price { text-align: center; }
}

@media (max-width: 600px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}