/* Public landing page — «گروه پرتو»
   Light, corporate theme in the style of established plasma-technology and
   industrial-equipment sites: white canvas, deep-navy type, a confident
   engineering blue, thin rules, generous whitespace and quiet cyan/violet
   "plasma" accents.

   Self-contained: the portal's app.css is not loaded here, so this file owns
   the entire look of the outward-facing site. RTL, Persian first. */

/* ---------- fonts ---------- */
@font-face {
    font-family: "Vazirmatn-VF";
    src: url("../vendor/fonts/Vazirmatn-VF.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Estedad-VF";
    src: url("../vendor/fonts/Estedad-VF.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-display: swap;
}

/* ---------- design tokens ---------- */
:root {
    --bg: #ffffff;
    --bg-soft: #f5f8fc;
    --bg-tint: #eef4fb;
    --surface: #ffffff;

    --border: #e2e8f0;
    --border-strong: #cdd8e6;

    --text: #0b1729;          /* deep navy, not pure black */
    --text-muted: #5b6b81;
    --text-faint: #8695a8;

    --primary: #1160d6;       /* engineering blue */
    --primary-strong: #0d4bab;
    --primary-soft: #e8f1fd;

    --cyan: #06b6d4;          /* plasma accents */
    --violet: #7c5cf0;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(11, 23, 41, .05);
    --shadow: 0 4px 18px rgba(11, 23, 41, .07);
    --shadow-lg: 0 18px 48px rgba(11, 23, 41, .12);

    --max: 1180px;
    --font: "Vazirmatn-VF", "Estedad-VF", -apple-system, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.35; letter-spacing: -.01em; margin: 0; font-weight: 700; }
p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.lp-container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

.skip-link {
    position: absolute; inset-inline-start: -9999px;
    background: var(--primary); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { inset-inline-start: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.lp-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.lp-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; min-height: 74px;
}
.lp-brand { display: flex; align-items: center; gap: 13px; color: var(--text); }
.lp-brand:hover { text-decoration: none; }
.lp-brand strong { display: block; font-size: 1.06rem; font-weight: 700; }
.lp-brand small { display: block; color: var(--text-muted); font-size: .76rem; line-height: 1.5; }
.lp-logo {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--violet) 60%, var(--cyan));
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(17, 96, 214, .28);
}
.lp-nav { display: flex; align-items: center; gap: 26px; }
.lp-nav a { color: var(--text-muted); font-size: .94rem; font-weight: 500; }
.lp-nav a:hover { color: var(--primary); text-decoration: none; }

/* ---------- buttons ---------- */
.lp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px; border-radius: 11px;
    font-weight: 600; font-size: .96rem; font-family: inherit;
    border: 1px solid transparent; cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.lp-btn:hover { text-decoration: none; }
.lp-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(17, 96, 214, .24); }
.lp-btn-primary:hover { background: var(--primary-strong); box-shadow: 0 8px 22px rgba(17, 96, 214, .3); }
.lp-btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.lp-btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.lp-btn-sm { padding: 9px 17px; font-size: .88rem; border-radius: 9px; }
.lp-btn-white { background: #fff; color: var(--primary); }
.lp-btn-white:hover { background: #f2f7ff; }

/* ---------- hero ---------- */
.lp-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(760px 380px at 88% -8%, rgba(6, 182, 212, .10), transparent 62%),
        radial-gradient(680px 380px at 8% 4%, rgba(124, 92, 240, .10), transparent 62%),
        linear-gradient(180deg, #fbfdff, #ffffff);
    border-bottom: 1px solid var(--border);
}
.lp-hero-inner {
    display: grid; grid-template-columns: 1.35fr .95fr;
    gap: 56px; align-items: center;
    padding-block: 88px 96px;
}
.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: .82rem; font-weight: 600; color: var(--primary);
    background: var(--primary-soft); border-radius: 999px;
    padding: 7px 15px; margin-bottom: 24px;
}
.lp-eyebrow::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 0 3px rgba(6, 182, 212, .2);
}
.lp-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.45rem); margin-bottom: 20px; font-weight: 800; }
.lp-lead { color: var(--text-muted); font-size: 1.09rem; max-width: 58ch; margin-bottom: 34px; }
.lp-hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }

.lp-hero-visual { display: grid; place-items: center; }

/* plasma jet — inline SVG, no asset needed.
   Tall and narrow, so it is height-constrained rather than width-constrained
   to keep the hero from growing very tall on wide screens. */
.lp-jet {
    width: auto;
    height: clamp(300px, 42vh, 460px);
    max-width: 100%;
    filter: drop-shadow(0 26px 46px rgba(17, 96, 214, .16));
}

/* Flicker: each layer of the plume pulses on its own timing so the flame
   reads as unstable rather than breathing in unison. */
.jet-flicker-outer { animation: lp-flicker-outer 3.4s ease-in-out infinite; }
.jet-flicker-mid   { animation: lp-flicker-mid   2.1s ease-in-out infinite; }
.jet-flicker-core  { animation: lp-flicker-core  1.35s ease-in-out infinite; }

@keyframes lp-flicker-outer {
    0%, 100% { opacity: .82; }
    35%      { opacity: 1; }
    68%      { opacity: .72; }
}
@keyframes lp-flicker-mid {
    0%, 100% { opacity: .90; transform: translateY(0)     scaleY(1); }
    28%      { opacity: 1;   transform: translateY(-2px)  scaleY(1.035); }
    61%      { opacity: .80; transform: translateY(2px)   scaleY(.972); }
}
@keyframes lp-flicker-core {
    0%, 100% { opacity: 1;    transform: scaleX(1)     scaleY(1); }
    22%      { opacity: .86;  transform: scaleX(.955)  scaleY(1.05); }
    47%      { opacity: 1;    transform: scaleX(1.045) scaleY(.975); }
    74%      { opacity: .90;  transform: scaleX(.98)   scaleY(1.02); }
}

/* transform-origin at the nozzle exit, so the plume stretches away from the
   tip instead of scaling about its own middle. */
.jet-flicker-mid,
.jet-flicker-core { transform-box: fill-box; transform-origin: 50% 0%; }

/* ---------- section shell ---------- */
.lp-section { padding-block: 88px; }
.lp-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.lp-section-head { max-width: 640px; margin-bottom: 44px; }
.lp-kicker {
    display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
    color: var(--primary); text-transform: uppercase; margin-bottom: 10px;
}
.lp-section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-bottom: 10px; }
.lp-section-head p { color: var(--text-muted); font-size: 1.02rem; }

/* ---------- about + stats ---------- */
.lp-about { display: grid; grid-template-columns: 1.25fr .95fr; gap: 56px; align-items: start; }
.lp-about p { color: var(--text-muted); font-size: 1.04rem; }
.lp-about p + p { margin-top: 16px; }

.lp-stats { display: grid; gap: 14px; }
.lp-stat {
    display: flex; align-items: center; gap: 18px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 22px;
    box-shadow: var(--shadow-sm);
}
.lp-stat b { font-size: 1.85rem; font-weight: 800; color: var(--primary); min-width: 2.6ch; }
.lp-stat span { color: var(--text-muted); font-size: .94rem; }

/* ---------- cards (purpose) ---------- */
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 22px; }
.lp-card {
    position: relative; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px 28px 30px; box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.lp-card::before {
    content: ""; position: absolute; inset-inline: 28px; top: 0;
    height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    opacity: 0; transition: opacity .2s ease;
}
.lp-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--border-strong); }
.lp-card:hover::before { opacity: 1; }
.lp-card-idx {
    display: inline-grid; place-items: center; width: 38px; height: 38px;
    border-radius: 11px; background: var(--primary-soft); color: var(--primary);
    font-weight: 700; font-size: .95rem; margin-bottom: 18px;
}
.lp-card h3 { font-size: 1.1rem; margin-bottom: 9px; }
.lp-card p { color: var(--text-muted); font-size: .95rem; }

/* ---------- capabilities grid ---------- */
.lp-caps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0; background: var(--border); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.lp-cap { background: var(--surface); padding: 26px 24px; transition: background .18s ease; }
.lp-cap:hover { background: var(--bg-soft); }
.lp-cap h3 { font-size: 1rem; margin-bottom: 7px; display: flex; align-items: center; gap: 9px; }
.lp-cap h3::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px;
    background: var(--primary);
}
.lp-cap p { color: var(--text-muted); font-size: .9rem; }

/* ============================================================
   Products showcase — a different slider from the usual
   dots-and-arrows carousel: one large panel that cross-fades,
   with a counted index and a timed progress rail.
   ============================================================ */
.lp-showcase {
    position: relative; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
}
.lp-showcase-track { display: grid; }

.lp-panel {
    grid-area: 1 / 1;                 /* stack so panels cross-fade */
    display: grid; grid-template-columns: 1.05fr 1fr;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease, visibility .5s;
}
.lp-panel.is-active { opacity: 1; visibility: visible; transform: none; }

/* With JS unavailable every panel is simply listed one after another. */
.lp-nojs .lp-panel {
    opacity: 1; visibility: visible; transform: none; grid-area: auto;
    border-bottom: 1px solid var(--border);
}
.lp-nojs .lp-showcase-track { display: block; }

.lp-panel-media {
    position: relative; background: var(--bg-tint);
    aspect-ratio: 16 / 11; overflow: hidden;
}
.lp-panel-media img { width: 100%; height: 100%; object-fit: cover; }
.lp-panel-ph {
    width: 100%; height: 100%; display: grid; place-items: center;
    background:
        radial-gradient(420px 240px at 70% 20%, rgba(6, 182, 212, .22), transparent 60%),
        linear-gradient(135deg, #eaf2fd, #e6f7fb 55%, #f0ecfe);
}
.lp-panel-ph span {
    font-size: 4.4rem; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--violet) 55%, var(--cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    opacity: .85;
}

.lp-panel-body { padding: 40px 40px 36px; display: flex; flex-direction: column; }
.lp-panel-kicker {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    font-size: .75rem; font-weight: 700; letter-spacing: .06em;
    color: var(--primary); background: var(--primary-soft);
    padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.lp-panel-body h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 12px; }
.lp-panel-body > p { color: var(--text-muted); font-size: 1rem; margin-bottom: 20px; }
.lp-panel-features { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 9px; }
.lp-panel-features li {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted); font-size: .94rem;
}
.lp-panel-features li::before {
    content: ""; flex: 0 0 17px; width: 17px; height: 17px; border-radius: 50%;
    background: var(--primary-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231160d6' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/11px no-repeat;
}
.lp-panel-cta { margin-top: auto; }

/* --- control rail ------------------------------------------------ */
.lp-rail {
    display: flex; align-items: center; gap: 18px;
    padding: 18px 24px; border-top: 1px solid var(--border);
    background: #fcfdff;
}
.lp-arrow {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
    background: #fff; border: 1px solid var(--border-strong);
    color: var(--text); font-size: 1.15rem; line-height: 1; cursor: pointer;
    display: grid; place-items: center; transition: border-color .16s, color .16s, background .16s;
}
.lp-arrow:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.lp-rail-progress {
    flex: 1 1 auto; height: 3px; border-radius: 999px;
    background: var(--border); overflow: hidden; position: relative;
}
.lp-rail-fill {
    position: absolute; inset-block: 0; inset-inline-start: 0;
    width: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
}
.lp-rail-fill.is-running { animation: lp-progress linear forwards; }
@keyframes lp-progress { from { width: 0; } to { width: 100%; } }

.lp-counter {
    font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--text-faint);
    white-space: nowrap;
}
.lp-counter b { color: var(--text); font-weight: 700; }

.lp-thumbs { display: flex; gap: 8px; }
.lp-thumbs button {
    min-width: 38px; height: 30px; padding: 0 10px; cursor: pointer;
    background: #fff; border: 1px solid var(--border-strong); border-radius: 8px;
    font-family: inherit; font-size: .82rem; font-weight: 600; color: var(--text-muted);
    transition: all .16s ease;
}
.lp-thumbs button:hover { border-color: var(--primary); color: var(--primary); }
.lp-thumbs button[aria-current="true"] {
    background: var(--primary); border-color: var(--primary); color: #fff;
}

.lp-portal-note {
    text-align: center; color: var(--text-muted);
    margin-top: 28px; font-size: .95rem;
}

/* ---------- contact ---------- */
.lp-contact {
    position: relative; overflow: hidden; text-align: center;
    background: linear-gradient(135deg, var(--primary), #0e3f8f 55%, var(--violet));
    border-radius: var(--radius-lg); padding: 62px 34px; color: #fff;
    box-shadow: var(--shadow-lg);
}
.lp-contact h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); margin-bottom: 12px; color: #fff; }
.lp-contact p { color: rgba(255, 255, 255, .88); margin-bottom: 8px; }
.lp-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lp-contact .lp-btn { margin-top: 22px; }

/* ---------- footer ---------- */
.lp-footer { border-top: 1px solid var(--border); padding-block: 30px; background: var(--bg-soft); }
.lp-footer .lp-container {
    display: flex; justify-content: space-between; align-items: center;
    gap: 18px; flex-wrap: wrap; color: var(--text-muted); font-size: .9rem;
}
.lp-footer-links { display: flex; gap: 20px; }
.lp-footer-links a { color: var(--text-muted); }
.lp-footer-links a:hover { color: var(--primary); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .lp-hero-inner { grid-template-columns: 1fr; padding-block: 62px 70px; gap: 40px; }
    .lp-hero-visual { order: -1; }
    .lp-jet { height: clamp(220px, 32vh, 300px); }
    .lp-about { grid-template-columns: 1fr; gap: 34px; }
    .lp-panel { grid-template-columns: 1fr; }
    .lp-panel-media { aspect-ratio: 16 / 9; }
    .lp-panel-body { padding: 28px 26px; }
    .lp-section { padding-block: 62px; }
}

@media (max-width: 720px) {
    .lp-nav { gap: 14px; }
    .lp-nav a:not(.lp-btn) { display: none; }
    .lp-rail { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
    .lp-rail-progress { order: 3; flex-basis: 100%; }
    .lp-thumbs { margin-inline-start: auto; }
    .lp-facts, .lp-stats { gap: 10px; }
    .lp-contact { padding: 46px 22px; }
    .lp-footer .lp-container { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-panel { transition: none; }
    .jet-flicker-outer, .jet-flicker-mid, .jet-flicker-core { animation: none; }
    .lp-rail-fill.is-running { animation: none; width: 100%; }
}
