/* /opt/infra/iporsesh/frontend/assets/css/landing.css */

/* ۱. تعریف فونت‌های محلی از مسیر /assets/fonts/ با اولویت قطعی فونت صمیم */
@font-face {
    font-family: 'Samim';
    src: url('/assets/fonts/Samim.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Samim';
    src: url('/assets/fonts/Samim-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IRANSans';
    src: url('/assets/fonts/iransans.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'VazirmatnLocal';
    src: url('/assets/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'VazirmatnLocal';
    src: url('/assets/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-soft: #F1F5F9;
    --ink-main: #0F172A;
    --ink-sub: #475569;
    --ink-mute: #94A3B8;
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-soft: rgba(13, 148, 136, 0.08);
    --accent: #4F46E5;
    --border: #E2E8F0;
    --shadow-card: 0 12px 32px -8px rgba(15, 23, 42, 0.06);
    --shadow-float: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
}

*, body, input, select, textarea, button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Samim', 'VazirmatnLocal', 'IRANSans', Tahoma, sans-serif;
}

.fa, .fas, .far, .fal, .fad, .fab, [class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
}

body {
    background-color: var(--bg-page);
    background-image:
        radial-gradient(at 15% 5%, rgba(13, 148, 136, 0.07) 0px, transparent 48%),
        radial-gradient(at 88% 12%, rgba(79, 70, 229, 0.06) 0px, transparent 45%);
    color: var(--ink-main);
    line-height: 1.75;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Floating Glass Capsule Header */
.nav-shell { position: sticky; top: 16px; z-index: 100; padding: 0 20px; }
.navbar {
    max-width: 1140px; margin: 0 auto; height: 66px;
    background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 28px -6px rgba(15, 23, 42, 0.07);
    border-radius: 999px; padding: 0 22px;
    display: flex; align-items: center; justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }
.brand-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    color: #fff; display: grid; place-items: center;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.menu { display: flex; gap: 32px; font-size: 0.92rem; font-weight: 700; color: var(--ink-sub); }
.menu a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; border-radius: 999px; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; border: 1px solid transparent; transition: all 0.2s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -4px rgba(13, 148, 136, 0.45); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { color: var(--ink-sub); background: transparent; }
.btn-ghost:hover { color: var(--ink-main); background: var(--bg-soft); }
.btn-soft { background: var(--bg-card); border-color: var(--border); color: var(--ink-main); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); }
.btn-soft:hover { border-color: var(--primary); color: var(--primary); }
.mt-btn { margin-top: 28px; }

/* Hero Section */
.hero { padding: 64px 0 80px; }
.hero-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.pill-tag {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
    border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark);
    font-size: 0.82rem; font-weight: 700; margin-bottom: 20px;
}
.hero h1 { font-size: 2.55rem; line-height: 1.38; font-weight: 700; margin-bottom: 18px; }
.hero h1 span { color: var(--primary); }
.hero-lead { font-size: 1.02rem; color: var(--ink-sub); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Interactive Visual App Mockup */
.app-mockup { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-float); overflow: hidden; }
.mockup-topbar { background: var(--bg-soft); padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; background: #CBD5E1; }
.dots i:first-child { background: #FCA5A5; }
.dots i:nth-child(2) { background: #FCD34D; }
.dots i:last-child { background: #6EE7B7; }
.mockup-url { font-size: 0.78rem; color: var(--ink-sub); font-weight: 700; }
.mockup-live { font-size: 0.75rem; color: var(--primary); font-weight: 700; }
.mockup-body { padding: 24px; }
.live-poll-q { font-weight: 700; font-size: 0.96rem; margin-bottom: 14px; }
.poll-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.poll-opt {
    padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--bg-page); font-size: 0.83rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: all 0.15s;
}
.poll-opt:hover, .poll-opt.picked { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }

.viz-panel { background: var(--bg-page); border-radius: 16px; padding: 18px; border: 1px solid var(--border); }
.viz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 0.82rem; color: var(--ink-sub); }
.seg-control { display: inline-flex; background: var(--bg-card); padding: 3px; border-radius: 10px; border: 1px solid var(--border); }
.seg-btn { border: none; background: transparent; padding: 4px 10px; border-radius: 7px; font-size: 0.78rem; font-weight: 700; color: var(--ink-sub); cursor: pointer; }
.seg-btn.active { background: var(--primary); color: #fff; }
.chart-bars { display: flex; flex-direction: column; gap: 10px; }
.c-row { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; }
.c-lbl { width: 88px; color: var(--ink-sub); font-weight: 700; }
.c-track { flex: 1; height: 9px; background: #E2E8F0; border-radius: 99px; overflow: hidden; }
.c-fill { height: 100%; border-radius: 99px; transition: width 0.35s ease; }
.c-num { width: 36px; text-align: left; font-weight: 700; color: var(--ink-main); }
.donut-wrap { display: none; align-items: center; justify-content: center; gap: 24px; padding: 8px 0; }
.donut-legend { font-size: 0.82rem; color: var(--ink-sub); line-height: 1.9; }

/* Sections & Audience Switcher */
.sec { padding: 76px 0; }
.sec-title { text-align: center; max-width: 580px; margin: 0 auto 44px; }
.sec-title h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 10px; }
.sec-title p { color: var(--ink-sub); font-size: 0.96rem; }

.audience-pills {
    display: flex; justify-content: center; gap: 8px; background: var(--bg-card);
    border: 1px solid var(--border); padding: 6px; border-radius: 999px;
    width: fit-content; margin: 0 auto 40px; box-shadow: var(--shadow-card);
}
.aud-pill { padding: 10px 24px; border-radius: 999px; border: none; background: transparent; font-size: 0.9rem; font-weight: 700; color: var(--ink-sub); cursor: pointer; transition: all 0.2s; }
.aud-pill.active { background: var(--ink-main); color: #fff; }

.showcase-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px;
    padding: 40px; box-shadow: var(--shadow-card); display: grid;
    grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.showcase-copy h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.showcase-copy p { color: var(--ink-sub); margin-bottom: 24px; }
.clean-bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.clean-bullets li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 700; }
.bullet-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }

.ui-illustration {
    background: linear-gradient(145deg, #F8FAFC 0%, #EEF2FF 100%);
    border: 1px solid var(--border); border-radius: 20px; padding: 26px;
    min-height: 270px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.ui-widget { background: #fff; border-radius: 14px; padding: 16px; border: 1px solid var(--border); box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.06); }

/* Bento Features */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bento-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-card); transition: transform 0.2s ease; }
.bento-item:hover { transform: translateY(-3px); }
.bento-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.bento-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.bento-item p { font-size: 0.9rem; color: var(--ink-sub); }

/* Cochran & Morgan Strip */
.cochran-strip {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px;
    padding: 32px 36px; box-shadow: var(--shadow-card); display: grid;
    grid-template-columns: 1.25fr 0.75fr; gap: 32px; align-items: center;
}
.cochran-strip h3 { font-size: 1.32rem; font-weight: 700; }
.cochran-sub { font-size: 0.9rem; color: var(--ink-sub); margin-top: 4px; }
.inputs-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.inp-grp label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink-sub); margin-bottom: 6px; }
.inp-grp input, .inp-grp select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-page); font-size: 0.92rem; font-weight: 700; color: var(--ink-main); outline: none; }
.inp-grp input:focus, .inp-grp select:focus { border-color: var(--primary); }

.cochran-badge { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); color: #fff; border-radius: 20px; padding: 24px; text-align: center; }
.cochran-badge-lbl { font-size: 0.82rem; color: #CBD5E1; }
.sample-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.sample-box { background: rgba(255,255,255,0.06); border-radius: 14px; padding: 14px 10px; }
.sample-box span { font-size: 0.74rem; color: #CBD5E1; display: block; }
.sample-box strong { display: block; font-size: 2.1rem; font-weight: 700; color: #2DD4BF; line-height: 1.25; margin: 4px 0; }
.sample-box.morgan strong { color: #818CF8; }

/* Pricing */
.plans-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-card); }
.plan-box.popular { border: 2px solid var(--primary); position: relative; }
.pop-tag { position: absolute; top: -13px; left: 24px; background: var(--primary); color: #fff; font-size: 0.76rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan-tier { font-size: 0.82rem; font-weight: 700; color: var(--ink-sub); }
.plan-tier.teal { color: var(--primary); }
.plan-tier.indigo { color: var(--accent); }
.plan-box h3 { font-size: 1.25rem; margin-top: 4px; }
.plan-price { font-size: 1.8rem; font-weight: 700; margin: 14px 0 20px; }
.plan-price small { font-size: 0.85rem; font-weight: 400; color: var(--ink-sub); }

/* Footer & Modal */
footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 52px 0 26px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.9fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.foot-desc { font-size: 0.88rem; color: var(--ink-sub); max-width: 300px; margin-top: 10px; }
.foot-col h4 { font-size: 0.95rem; font-weight: 700; }
.foot-links { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; color: var(--ink-sub); margin-top: 12px; }
.foot-links button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; text-align: right; }
.foot-links button:hover, .foot-links a:hover { color: var(--primary); }
.enamad-box { width: 108px; height: 118px; border-radius: 16px; border: 1px dashed #CBD5E1; display: grid; place-items: center; text-align: center; font-size: 0.76rem; color: var(--ink-mute); padding: 8px; }
.foot-bottom { padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.83rem; color: var(--ink-mute); }

.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 999; }
.modal-bg.show { display: flex; }
.modal-card { background: #fff; border-radius: 22px; max-width: 620px; width: 100%; padding: 28px; box-shadow: var(--shadow-float); }
.modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.modal-top h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.modal-content { font-size: 0.92rem; color: var(--ink-sub); white-space: pre-line; line-height: 1.85; }

@media (max-width: 960px) {
    .hero-layout, .showcase-card, .bento-grid, .cochran-strip, .plans-row, .foot-grid { grid-template-columns: 1fr; }
    .menu { display: none; }
    .hero h1 { font-size: 2rem; }
    .inputs-row { grid-template-columns: 1fr; }
}