/* =============================================================
   DeliYar Landing Page — Design System & Utility Styles
   Dark SaaS theme, RTL Farsi
   ============================================================= */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
    --landing-bg: #0C0E14;
    --landing-surface: #141720;
    --landing-surface-2: #1C2030;
    --landing-surface-3: #252A3A;
    --landing-border: rgba(255, 255, 255, 0.07);
    --landing-border-active: rgba(255, 255, 255, 0.15);
    --landing-text-1: #EDF0F7;
    --landing-text-2: #8B92A8;
    --landing-text-3: #5C6278;
    --landing-accent: #C47B5A;
    --landing-accent-light: #E8956E;
    --landing-accent-glow: rgba(196, 123, 90, 0.18);
    --landing-green: #5E9063;
    --landing-green-bright: #7CC482;
    --landing-green-glow: rgba(94, 144, 99, 0.2);
    --landing-amber: #D4780E;
    --landing-amber-bright: #F0A54A;
    --landing-max-w: 1200px;
}

/* ── Keyframe Animations ─────────────────────────────────────── */
@keyframes landing-pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(94, 144, 99, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(94, 144, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 144, 99, 0); }
}

@keyframes landing-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes landing-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes landing-slide-in {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes landing-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ── Base Shell & Container ──────────────────────────────────── */
.landing-shell {
    background: var(--landing-bg);
    color: var(--landing-text-1);
    direction: rtl;
    font-family: 'Vazirmatn', 'Inter', sans-serif;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ── Section Layout ──────────────────────────────────────────── */
.landing-section {
    padding: clamp(5rem, 9vw, 8rem) 0;
}

.landing-section-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--landing-accent-light);
    margin-bottom: 1.25rem;
    border-inline-start: 2px solid var(--landing-accent);
    padding-inline-start: .5rem;
}

.landing-section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--landing-accent);
}

/* ── Divider ─────────────────────────────────────────────────── */
.landing-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--landing-border-active), transparent);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.landing-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: 9999px;
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
}

.landing-btn--primary {
    background: var(--landing-accent);
    color: #fff;
}

.landing-btn--primary:hover {
    background: var(--landing-accent-light);
    box-shadow: 0 0 0 6px var(--landing-accent-glow), 0 4px 20px rgba(196, 123, 90, .3);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

.landing-btn--ghost {
    background: transparent;
    color: var(--landing-text-2);
    border: 1.5px solid var(--landing-border-active);
}

.landing-btn--ghost:hover {
    border-color: var(--landing-text-2);
    color: var(--landing-text-1);
    background: rgba(255, 255, 255, .04);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Scroll Reveal — pure CSS animation, no JS needed in Blazor Server context ── */
.landing-reveal {
    opacity: 0;
    animation: landing-fade-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.landing-reveal.landing-reveal-1 { animation-delay: 0.08s; }
.landing-reveal.landing-reveal-2 { animation-delay: 0.18s; }
.landing-reveal.landing-reveal-3 { animation-delay: 0.28s; }
.landing-reveal.landing-reveal-4 { animation-delay: 0.38s; }
.landing-reveal.landing-reveal-5 { animation-delay: 0.48s; }

@keyframes landing-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Badge ───────────────────────────────────────────────────── */
.landing-badge {
    display: inline-flex;
    align-items: center;
    padding: .375rem .875rem;
    border-radius: 9999px;
    background: rgba(196, 123, 90, 0.1);
    border: 1px solid rgba(196, 123, 90, 0.3);
    color: var(--landing-accent-light);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .05em;
}

/* ── Gradient Text ───────────────────────────────────────────── */
.landing-gradient-text {
    background: linear-gradient(135deg, var(--landing-text-1), var(--landing-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Glow Dot ────────────────────────────────────────────────── */
.landing-glow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--landing-green);
    animation: landing-pulse-ring 2s infinite;
    flex-shrink: 0;
}

/* ── Card ────────────────────────────────────────────────────── */
.landing-card {
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color .2s, box-shadow .2s;
}

.landing-card:hover {
    border-color: var(--landing-border-active);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

/* ── Typography Helpers ──────────────────────────────────────── */
.landing-text-1 { color: var(--landing-text-1); }
.landing-text-2 { color: var(--landing-text-2); }
.landing-text-3 { color: var(--landing-text-3); }
.landing-text-accent { color: var(--landing-accent-light); }
.landing-text-green { color: var(--landing-green-bright); }
.landing-text-amber { color: var(--landing-amber-bright); }

/* ── Surface Variants ────────────────────────────────────────── */
.landing-surface { background: var(--landing-surface); }
.landing-surface-2 { background: var(--landing-surface-2); }
.landing-surface-3 { background: var(--landing-surface-3); }

/* ── Grid Utilities ──────────────────────────────────────────── */
.landing-grid {
    display: grid;
    gap: 1.5rem;
}

.landing-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.landing-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.landing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .landing-grid-3,
    .landing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .landing-grid-2,
    .landing-grid-3,
    .landing-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ── Flex Utilities ──────────────────────────────────────────── */
.landing-flex { display: flex; }
.landing-flex-center { display: flex; align-items: center; justify-content: center; }
.landing-flex-between { display: flex; align-items: center; justify-content: space-between; }
.landing-gap-1 { gap: .5rem; }
.landing-gap-2 { gap: 1rem; }
.landing-gap-3 { gap: 1.5rem; }

/* ── Spacing Utilities ───────────────────────────────────────── */
.landing-mt-1 { margin-top: .5rem; }
.landing-mt-2 { margin-top: 1rem; }
.landing-mt-3 { margin-top: 1.5rem; }
.landing-mt-4 { margin-top: 2rem; }
.landing-mb-1 { margin-bottom: .5rem; }
.landing-mb-2 { margin-bottom: 1rem; }
.landing-mb-3 { margin-bottom: 1.5rem; }
.landing-mb-4 { margin-bottom: 2rem; }

/* ── Background Orb Decorator ────────────────────────────────── */
.landing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.35;
    animation: landing-orb 12s ease-in-out infinite;
}

.landing-orb--accent {
    background: var(--landing-accent);
}

.landing-orb--green {
    background: var(--landing-green);
}

/* ── Icon Wrapper ────────────────────────────────────────────── */
.landing-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--landing-surface-2);
    border: 1px solid var(--landing-border);
    flex-shrink: 0;
}

/* ── Stat Block ──────────────────────────────────────────────── */
.landing-stat {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.landing-stat__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--landing-text-1);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.landing-stat__label {
    font-size: .8125rem;
    color: var(--landing-text-3);
}
