:root {
    --accent: #ffb400;
    --accent-soft: rgba(255, 180, 0, 0.12);
    --text: #f5f5f5;
    --muted: #a0a4b8;
    --border: #2a3145;
    --error: #ff4757;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
    background: radial-gradient(circle at top, #151a2b 0, #050811 55%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

/* زبان */
.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.lang-btn {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(8, 12, 24, 0.8);
    padding: 0.25rem 0.85rem;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s,
    transform 0.1s;
}

.lang-btn:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.lang-btn.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}

/* هدر + تصویر */
.hero {
    background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.85),
    rgba(15, 20, 42, 0.95)
    );
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.1) contrast(1.05);
    transform: scale(1.03);
    transition: transform 0.5s ease-out;
}

.hero:hover .hero-image-wrapper img {
    transform: scale(1.06);
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top,
        rgba(0, 0, 0, 0.15),
        transparent 60%
    ),
    linear-gradient(
        to bottom,
        rgba(5, 8, 17, 0) 0%,
        rgba(5, 8, 17, 0.85) 85%
    );
}

.hero-content {
    padding: 1.4rem 1.6rem 1.8rem;
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-main {
    max-width: 70%;
}

.hero-title {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
    justify-content: center;
    min-width: 180px;
}

.hero-cta-btn {
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    border: none;
    background: linear-gradient(135deg, #ffb400, #ff6a00);
    color: #170f05;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.hero-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

/* سوشال مدیا */
.section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-card {
    background: linear-gradient(
    135deg,
    rgba(10, 12, 24, 0.98),
    rgba(9, 10, 20, 0.98)
    );
    border-radius: var(--radius-lg);
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out,
    border-color 0.15s;
}

.social-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 180, 0, 0.7);
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0.9);
}

.social-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.social-handle {
    font-size: 0.8rem;
    color: var(--muted);
}

/* فرم تماس */
.contact-card {
    background: radial-gradient(
        circle at top left,
        rgba(255, 180, 0, 0.06),
        transparent 55%
    ),
    linear-gradient(145deg, #070913, #050811);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.4rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
}

.contact-header {
    margin-bottom: 1rem;
}

.contact-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-text {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

form {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

label {
    font-size: 0.8rem;
    color: var(--muted);
}

input,
textarea {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.55);
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    resize: vertical;
    min-height: 40px;
}

textarea {
    min-height: 110px;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 180, 0, 0.5);
    background: rgba(0, 0, 0, 0.7);
}

.form-row-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.contact-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.btn-submit {
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    border: none;
    background: linear-gradient(135deg, #ffb400, #ff6a00);
    color: #170f05;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65);
    transition: transform 0.12s ease, box-shadow 0.12s ease,
    opacity 0.1s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.status {
    font-size: 0.78rem;
    margin-top: 0.3rem;
    min-height: 1em;
}

.status.error {
    color: var(--error);
}

.status.success {
    color: var(--accent);
}

footer {
    margin-top: 1.6rem;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    opacity: 0.7;
}

/* حالت انگلیسی (LTR) */
body.ltr {
    direction: ltr;
}

/* صفحه دانلود */
.hero-download {
  margin-bottom: 2rem;
}

.hero-content-download {
  padding: 1.3rem 1.6rem;
  text-align: center;
}

.download-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.download-btn {
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #ffb400, #ff6a00);
  color: #170f05;
  text-align: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: 0.15s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

.download-btn.secondary {
  background: rgba(255,255,255,0.08);
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.15);
}

.download-btn.secondary:hover {
  border-color: var(--accent);
}

.page-logo {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08); /* مثل دکمه secondary */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  object-fit: contain;
}



/* ریسپانسیو */
@media (max-width: 600px) {
    .social-grid {
    grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hero-content {
    flex-direction: column;
    align-items: flex-start;
    }
    .hero-main {
    max-width: 100%;
    }
    .hero-cta {
    align-items: flex-start;
    width: 100%;
    }
    .hero-image-wrapper {
    height: 250px;
    }
}

@media (max-width: 425px) {
    .hero-image-wrapper {
    height: 150px;
    }
}
