@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700;900&display=swap');

:root {
    --primary-red: #E63946;
    --primary-red-hover: #c42b37;
    --dark-bg: #0b0c10;
    --dark-surface: #1f2833;
    --text-main: #ffffff;
    --text-muted: #c5c6c7;
    --glass-bg: rgba(31, 40, 51, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 900;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #ff7b84);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(230, 57, 70, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--dark-bg);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

/* subtle gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, rgba(11,12,16,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
}

.mockup-mobile {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 10px #1f2833;
    overflow: hidden;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.mockup-mobile img {
    width: 100%;
    display: block;
}

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

/* Problem Section */
.problems {
    padding: 8rem 0;
    position: relative;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.problem-card {
    text-align: center;
    border: 1px dashed rgba(255,255,255,0.1);
    background: transparent;
    filter: grayscale(100%);
}

.problem-card i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Solution Section */
.solution {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #151821 100%);
}

.solution-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.solution h2 span {
    color: var(--primary-red);
}

/* Features Section */
.features {
    padding: 8rem 0;
}

.feature-category {
    margin-bottom: 6rem;
}

.feature-category:last-child {
    margin-bottom: 0;
}

.feature-category h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.feature-category h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50%;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Demo Section */
.demo {
    padding: 8rem 0;
    text-align: center;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
}

.demo-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Trust Section */
.trust {
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
    margin-top: 3rem;
}

.trust-logos img {
    height: 40px;
    filter: brightness(0) invert(1);
}

/* CTA Section */
.cta {
    padding: 8rem 0;
    position: relative;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-red) 0%, #8a1f28 100%);
    border-radius: 30px;
    padding: 5rem 3rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.2);
}

.cta-box h2 {
    margin-bottom: 1.5rem;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.cta-box .btn-outline {
    border-color: #fff;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .feature-category h3 {
        left: auto;
        transform: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    .hero {
        padding-top: 120px;
    }
    .cta-box {
        padding: 3rem 1.5rem;
    }
}
