@font-face {
    font-family: "Yekan Bakh";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("fonts/YekanBakhFaEnRegular.woff2") format("woff2");
}

@font-face {
    font-family: "Yekan Bakh";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("fonts/YekanBakhFaEnRegular.woff2") format("woff2");
}

:root {
    --ig-primary: #30a46c;
    --ig-primary-bright: #3ecf7a;
    --ig-primary-deep: #1d7a4d;
    --ig-glow: rgba(62, 207, 122, 0.55);
    --ig-glow-soft: rgba(48, 164, 108, 0.22);
    --ig-bg: #050a08;
    --ig-bg-mid: #0a1410;
    --ig-card: rgba(14, 28, 22, 0.72);
    --ig-card-border: rgba(62, 207, 122, 0.28);
    --ig-text: #f2fbf6;
    --ig-muted: #9bb5a6;
    --ig-amber: #f5a524;
    --ig-cyan: #2dd4bf;
    --ig-width: 920px;
    --ig-radius: 22px;
    --ig-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Yekan Bakh", Tahoma, sans-serif;
    background: #020605;
    color: var(--ig-text);
    line-height: 1.75;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ─── canvas ─── */
.ig-canvas {
    width: min(100%, var(--ig-width));
    margin: 0 auto;
    position: relative;
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(48, 164, 108, 0.28), transparent 55%),
        radial-gradient(ellipse 60% 30% at 80% 40%, rgba(45, 212, 191, 0.08), transparent 50%),
        radial-gradient(ellipse 50% 25% at 15% 70%, rgba(48, 164, 108, 0.12), transparent 55%),
        linear-gradient(180deg, #060f0c 0%, #050a08 40%, #071410 100%);
    overflow: hidden;
}

.ig-stars,
.ig-waves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ig-stars {
    background-image:
        radial-gradient(1.5px 1.5px at 8% 12%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 22% 38%, rgba(62, 207, 122, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 48% 8%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 72% 22%, rgba(45, 212, 191, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 88% 55%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 15% 68%, rgba(62, 207, 122, 0.5), transparent),
        radial-gradient(1px 1px at 60% 78%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 35% 92%, rgba(62, 207, 122, 0.45), transparent);
    opacity: 0.85;
}

.ig-waves {
    background:
        repeating-linear-gradient(
            115deg,
            transparent 0,
            transparent 38px,
            rgba(48, 164, 108, 0.03) 38px,
            rgba(48, 164, 108, 0.03) 40px
        );
    mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
    opacity: 0.5;
}

.ig-section {
    position: relative;
    z-index: 1;
    padding: 56px 36px;
}

.ig-section + .ig-section {
    padding-top: 24px;
}

/* ─── glass card ─── */
.glass {
    background: var(--ig-card);
    border: 1px solid var(--ig-card-border);
    border-radius: var(--ig-radius);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 40px var(--ig-glow-soft);
}

/* ─── hero ─── */
.ig-hero {
    text-align: center;
    padding-top: 72px;
    padding-bottom: 40px;
}

.ig-emblem {
    width: 168px;
    height: 168px;
    margin: 0 auto 28px;
    filter: drop-shadow(0 0 28px var(--ig-glow)) drop-shadow(0 12px 40px rgba(0, 0, 0, 0.55));
    animation: floatY 5s var(--ig-ease) infinite;
}

.ig-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-shadow: 0 0 40px var(--ig-glow-soft);
}

.ig-hero h1 em {
    font-style: normal;
    color: var(--ig-primary-bright);
    text-shadow: 0 0 24px var(--ig-glow);
}

.ig-hero-lead {
    margin: 0 auto 28px;
    max-width: 34rem;
    color: var(--ig-muted);
    font-size: 1.05rem;
}

.ig-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ig-primary-bright), var(--ig-primary-deep));
    color: #04140c;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 0 32px var(--ig-glow), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.ig-pill-ghost {
    background: transparent;
    color: var(--ig-primary-bright);
    border: 1px solid rgba(62, 207, 122, 0.45);
    box-shadow: 0 0 20px var(--ig-glow-soft);
    margin-inline-start: 10px;
}

.ig-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
}

.ig-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0.9;
}

.ig-brand-row img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 0 12px var(--ig-glow-soft));
}

.ig-brand-row span {
    font-size: 0.85rem;
    color: var(--ig-muted);
}

/* ─── section head ─── */
.ig-head {
    text-align: center;
    margin-bottom: 32px;
}

.ig-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(48, 164, 108, 0.14);
    border: 1px solid rgba(62, 207, 122, 0.35);
    color: var(--ig-primary-bright);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.ig-head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 3.5vw, 2rem);
    line-height: 1.35;
}

.ig-head p {
    margin: 0 auto;
    max-width: 32rem;
    color: var(--ig-muted);
    font-size: 0.98rem;
}

.ig-divider {
    width: min(280px, 60%);
    height: 1px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, transparent, var(--ig-primary-bright), transparent);
    box-shadow: 0 0 12px var(--ig-glow);
    opacity: 0.7;
}

/* ─── feature grid ─── */
.ig-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ig-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ig-card {
    padding: 22px 20px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ig-ease), box-shadow 0.35s var(--ig-ease);
}

.ig-card::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -20%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--ig-glow-soft), transparent 70%);
    pointer-events: none;
}

.ig-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 56px rgba(0, 0, 0, 0.5),
        0 0 48px var(--ig-glow-soft);
}

.ig-card-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 16px var(--ig-glow));
    position: relative;
    z-index: 1;
}

.ig-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    position: relative;
    z-index: 1;
}

.ig-card p {
    margin: 0;
    color: var(--ig-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.ig-card-accent-amber .ig-card-icon { filter: drop-shadow(0 0 16px rgba(245, 165, 36, 0.55)); }
.ig-card-accent-cyan .ig-card-icon { filter: drop-shadow(0 0 16px rgba(45, 212, 191, 0.55)); }

/* ─── showcase stack ─── */
.ig-showcase {
    position: relative;
    min-height: 520px;
    margin: 20px 0 10px;
    perspective: 1400px;
}

.ig-shot-frame {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(62, 207, 122, 0.35);
    background: #0b1511;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.55),
        0 0 50px var(--ig-glow-soft);
}

.ig-shot-frame .browser-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(8, 18, 14, 0.95);
    border-bottom: 1px solid rgba(62, 207, 122, 0.18);
}

.ig-shot-frame .browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(155, 181, 166, 0.35);
}

.ig-shot-frame .browser-dot:nth-child(1) { background: #ff5f57; }
.ig-shot-frame .browser-dot:nth-child(2) { background: #febc2e; }
.ig-shot-frame .browser-dot:nth-child(3) { background: #28c840; }

.ig-shot-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.ig-shot-main {
    width: 78%;
    right: 8%;
    top: 40px;
    z-index: 3;
    transform: rotateY(-6deg) rotateX(4deg) rotateZ(-1deg);
}

.ig-shot-back {
    width: 62%;
    left: 4%;
    top: 0;
    z-index: 1;
    opacity: 0.72;
    transform: rotateY(8deg) rotateZ(3deg) scale(0.94);
    filter: brightness(0.85);
}

.ig-shot-side {
    width: 48%;
    left: 6%;
    bottom: 10px;
    z-index: 4;
    transform: rotateY(10deg) rotateZ(-2deg);
}

.ig-float-icon {
    position: absolute;
    width: 88px;
    height: 88px;
    z-index: 5;
    filter: drop-shadow(0 0 20px var(--ig-glow));
    animation: floatY 4.5s var(--ig-ease) infinite;
}

.ig-float-icon--1 { top: 20px; left: 42%; animation-delay: 0.4s; }
.ig-float-icon--2 { bottom: 60px; right: 2%; width: 76px; height: 76px; animation-delay: 1.2s; }
.ig-float-icon--3 { top: 180px; left: -8px; width: 70px; height: 70px; animation-delay: 0.8s; }

.ig-callout {
    position: absolute;
    z-index: 6;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(62, 207, 122, 0.95), rgba(29, 122, 77, 0.95));
    color: #04140c;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 0 24px var(--ig-glow), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.ig-callout::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: inherit;
    transform: rotate(45deg);
    bottom: -4px;
    right: 22px;
}

.ig-callout--1 { top: 70px; right: 4%; }
.ig-callout--2 { bottom: 120px; left: 28%; }
.ig-callout--3 { top: 260px; left: 2%; }

/* ─── tilted feature cards ─── */
.ig-tilt-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 10px;
    perspective: 1000px;
}

.ig-tilt-card {
    padding: 0;
    overflow: hidden;
    transform-origin: center bottom;
}

.ig-tilt-card:nth-child(1) { transform: rotateZ(-3deg) translateY(12px); }
.ig-tilt-card:nth-child(2) { transform: rotateZ(1deg) translateY(-6px); z-index: 2; }
.ig-tilt-card:nth-child(3) { transform: rotateZ(3.5deg) translateY(10px); }

.ig-tilt-card .shot {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
}

.ig-tilt-card .cap {
    padding: 14px 16px 16px;
}

.ig-tilt-card .cap h3 {
    margin: 0 0 4px;
    font-size: 0.98rem;
}

.ig-tilt-card .cap p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--ig-muted);
}

/* ─── feature row with shot ─── */
.ig-feature-row {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
    align-items: center;
    margin: 36px 0;
}

.ig-feature-row--rev {
    grid-template-columns: 1.15fr 1fr;
}

.ig-feature-row--rev .ig-feature-copy { order: 2; }
.ig-feature-row--rev .ig-feature-visual { order: 1; }

.ig-feature-copy h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.ig-feature-copy p {
    margin: 0 0 16px;
    color: var(--ig-muted);
    font-size: 0.95rem;
}

.ig-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.ig-bullets li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--ig-text);
}

.ig-bullets li::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--ig-primary-bright);
    box-shadow: 0 0 10px var(--ig-glow);
}

.ig-feature-visual {
    position: relative;
}

.ig-feature-visual .ig-shot-frame {
    position: relative;
    width: 100%;
    transform: rotateY(-4deg) rotateZ(-1deg);
}

.ig-feature-visual .ig-float-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    top: -28px;
    left: -16px;
    z-index: 4;
}

.ig-feature-visual .ig-float-icon--br {
    top: auto;
    left: auto;
    bottom: -20px;
    right: -12px;
    width: 72px;
    height: 72px;
}

/* ─── stats ─── */
.ig-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 8px 0 20px;
}

.ig-stat {
    text-align: center;
    padding: 18px 12px;
}

.ig-stat strong {
    display: block;
    font-size: 1.65rem;
    color: var(--ig-primary-bright);
    text-shadow: 0 0 18px var(--ig-glow);
    line-height: 1.2;
    margin-bottom: 4px;
}

.ig-stat span {
    font-size: 0.8rem;
    color: var(--ig-muted);
}

/* ─── stack strip ─── */
.ig-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.ig-stack-item {
    width: 76px;
    padding: 14px 8px 12px;
    text-align: center;
    border-radius: 16px;
    background: rgba(14, 28, 22, 0.65);
    border: 1px solid rgba(62, 207, 122, 0.2);
}

.ig-stack-item img {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--ig-glow-soft));
}

.ig-stack-item span {
    font-size: 0.7rem;
    color: var(--ig-muted);
}

/* ─── footer ─── */
.ig-footer {
    text-align: center;
    padding: 48px 36px 64px;
}

.ig-footer .ig-pill {
    margin-bottom: 22px;
}

.ig-footer-logo {
    height: 40px;
    margin: 0 auto 12px;
    filter: drop-shadow(0 0 16px var(--ig-glow));
}

.ig-footer p {
    margin: 0;
    color: var(--ig-muted);
    font-size: 0.88rem;
}

.ig-toolbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(5, 10, 8, 0.88);
    border-bottom: 1px solid rgba(62, 207, 122, 0.2);
    backdrop-filter: blur(12px);
}

.ig-toolbar a,
.ig-toolbar button {
    font-family: inherit;
    font-size: 0.82rem;
    border: 1px solid rgba(62, 207, 122, 0.35);
    background: rgba(48, 164, 108, 0.12);
    color: var(--ig-primary-bright);
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
}

.ig-toolbar button:hover,
.ig-toolbar a:hover {
    background: rgba(48, 164, 108, 0.28);
}

.ig-toolbar-note {
    font-size: 0.75rem;
    color: var(--ig-muted);
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 760px) {
    .ig-section { padding: 40px 18px; }
    .ig-grid-2,
    .ig-grid-3,
    .ig-tilt-row,
    .ig-stats,
    .ig-feature-row,
    .ig-feature-row--rev {
        grid-template-columns: 1fr;
    }
    .ig-feature-row--rev .ig-feature-copy,
    .ig-feature-row--rev .ig-feature-visual { order: unset; }
    .ig-showcase {
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .ig-shot-frame {
        position: relative !important;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
    .ig-shot-back { display: none; }
    .ig-float-icon,
    .ig-callout { display: none; }
    .ig-tilt-card { transform: none !important; }
    .ig-emblem { width: 120px; height: 120px; }
}

@media print {
    .ig-toolbar { display: none; }
    body { background: #050a08; }
    .ig-canvas { width: 920px; }
}
