:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-btn: #f8b719;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'YekanBakh-med', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--light);
    color: var(--dark);
    line-height: 1.9;
}

.container {
    width: 60%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}
.hero .container{
    width: 80%;
}
/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn.primary {
    background: var(--primary-btn);
    /*background: linear-gradient(135deg, var(--primary), var(--primary-dark));*/
    color: white;
}

.btn.secondary {
    border: 2px solid rgba(255,255,255,0.65);
    background: transparent;
    color: white;
}

/* Micro interaction */
@keyframes softPulse {
    0%,100% { box-shadow: 0 0 0 rgba(255,255,255,0); }
    50% { box-shadow: 0 0 28px rgba(255,255,255,0.35); }
}

.hero .btn.primary {
    animation: softPulse 4s infinite;
}

/* Animations */
.animate {
    opacity: 0;
    transform: translateY(60px);
    transition: 0.9s cubic-bezier(.2,.8,.2,1);
}
.animate.show {
    opacity: 1;
    transform: translateY(0);
}
[data-animate="zoom-in"] { transform: scale(0.92); }
[data-animate="zoom-in"].show { transform: scale(1); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    background:
            radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 40%),
            linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.parallax { background-attachment: fixed; }

.hero-glass {
    position: relative;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 64px;
    box-shadow:
            0 40px 80px rgba(0,0,0,0.25),
            inset 0 1px 0 rgba(255,255,255,0.25);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 140px;
    max-width: 40vw;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.25));
}

.hero-left h1 {
    font-size: 28px;
    margin-top: 24px;
    text-align: center;
}
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-right p {
    font-size: 1.2rem;
    max-width: 520px;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    flex-direction: column;
}
.hero .btn.primary {
    background: var(--primary-btn);
    /*color: var(--primary-dark);*/
    color: white;
    text-align: center;
}
.hero .btn.secondary {
    text-align: center;
}

/* Hero divider */
.hero-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: white;
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

/* Sections */
.about, .contact { background: white; }
.product {
    background: #f1f5f9;
    position: relative;
}

.about, .contact {
    padding: 40px 0;
    text-align: center;
}
.product {
    padding: 100px 0;
    text-align: center;
}
.about, .hero-divider {
    background: #f8b719;
}
.about p {
    text-align: justify;
    width: 90%;
}
h2 { font-size: 2.2rem; }

/* Product cards */
.product-card {
    width: 100%;
    padding: 48px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: 0.4s;
}

.product-card:hover {
    transform: translateY(-12px);
}

.product-card p {
    text-align: justify;
    color: var(--gray);
}

.fanrad_btn {
    /*background: #E65409 !important;*/
    width: 300px;
    margin: 0 auto;
}

/* Wave */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
}

/* Form */
form {
    width: 60%;
    background: #f8fafc;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input, textarea {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
}

.captcha-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 24px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .container { width: 92%; }
    .hero { padding: 80px 0; }
    .parallax { background-attachment: scroll; }
    .hero-glass { padding: 40px 20px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-left, .hero-right { align-items: center; }
    .hero-left h1 { font-size: 22px; }
    .hero-right p { font-size: 16px; }
    .logo { width: 110px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    form { width: 100%; padding: 32px; }
    .hero-divider { height: 60px; }
    .fanrad_btn { width: 100%; }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .hero .container{
        width: 80%;
    }
    .hero-left h1{
        font-size: 20px;
    }
}
