/*
Theme Name: استودیو خبر (NewsStudio Landing)
Author: تیم توسعه
Version: 1.0.0
Description: صفحه فرود تخصصی برای معرفی استودیوی طراحی وایرفریم و قالب خبرگزاری در سطح BBC، CNN، تسنیم و مهرنیوز و دعوت کاربران به ورود و ساخت قالب.
*/

@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  --ns-bg: #ffffff;
  --ns-soft: #f8fafc;
  --ns-card: #ffffff;
  --ns-dark: #0f172a;
  --ns-dark-2: #1e293b;
  --ns-text: #0f172a;
  --ns-muted: #475569;
  --ns-light: #94a3b8;
  --ns-border: #e2e8f0;
  --ns-accent: #bb1919;
  --ns-accent-hover: #991b1b;
  --ns-accent-soft: #fef2f2;
  --ns-emerald: #059669;
  --ns-radius: 14px;
  --ns-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --ns-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, Tahoma, sans-serif;
  background-color: var(--ns-bg);
  color: var(--ns-text);
  direction: rtl;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.ns-drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--ns-transition);
}

button, input, textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.ns-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ==========================================================================
   HEADER & MOBILE DRAWER
   ========================================================================== */
.ns-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ns-border);
  height: 76px;
  display: flex;
  align-items: center;
}

.ns-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.ns-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ns-brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ns-accent);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ns-brand-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.ns-brand-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
}

.ns-brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--ns-muted);
}

.ns-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.ns-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ns-muted);
}

.ns-nav a:hover {
  color: var(--ns-accent);
}

.ns-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ns-transition);
}

.ns-btn-lg {
  padding: 13px 26px;
  font-size: 0.95rem;
  border-radius: 12px;
}

.ns-btn-primary {
  background: var(--ns-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(187, 25, 25, 0.24);
}

.ns-btn-primary:hover {
  background: var(--ns-accent-hover);
  transform: translateY(-2px);
}

.ns-btn-dark {
  background: var(--ns-dark);
  color: #fff;
}

.ns-btn-dark:hover {
  background: var(--ns-dark-2);
  transform: translateY(-2px);
}

.ns-btn-outline {
  background: #fff;
  color: var(--ns-text);
  border-color: var(--ns-border);
}

.ns-btn-outline:hover {
  border-color: var(--ns-text);
  background: var(--ns-soft);
}

.ns-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--ns-border);
  background: var(--ns-soft);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.ns-hamburger span {
  width: 19px;
  height: 2px;
  background: var(--ns-dark);
  border-radius: 2px;
}

.ns-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ns-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.ns-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: #fff;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
}

.ns-drawer.is-open {
  transform: translateX(0);
}

.ns-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ns-border);
}

.ns-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: var(--ns-soft);
  font-size: 1.35rem;
  cursor: pointer;
}

.ns-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ns-drawer-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
}

.ns-drawer-links a:hover {
  background: var(--ns-soft);
  color: var(--ns-accent);
}

/* ==========================================================================
   HERO SECTION & LIVE WIREFRAME MOCKUP
   ========================================================================== */
.ns-hero {
  padding: 58px 0 74px;
  background:
    radial-gradient(circle at 18% 18%, rgba(187, 25, 25, 0.06), transparent 45%),
    linear-gradient(#ffffff, #f8fafc);
  border-bottom: 1px solid var(--ns-border);
}

.ns-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.ns-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ns-accent-soft);
  color: var(--ns-accent);
  border: 1px solid rgba(187, 25, 25, 0.2);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.ns-hero-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}

.ns-hero-title span {
  color: var(--ns-accent);
  display: block;
}

.ns-hero-desc {
  font-size: 1rem;
  color: var(--ns-muted);
  line-height: 1.9;
  margin-bottom: 26px;
  max-width: 540px;
}

.ns-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.ns-hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ns-muted);
}

.ns-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ns-hero-trust svg {
  color: var(--ns-emerald);
}

/* Interactive News Studio Preview Box in Hero */
.ns-studio-mockup {
  background: #0f172a;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
  border: 1px solid #1e293b;
}

.ns-mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #1e293b;
  flex-wrap: wrap;
}

.ns-mockup-dots {
  display: flex;
  gap: 6px;
}

.ns-mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.ns-mockup-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ns-mock-tab {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.ns-mock-tab.is-active {
  background: var(--ns-accent);
  border-color: var(--ns-accent);
  color: #fff;
}

.ns-mockup-canvas {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  color: #0f172a;
}

.ns-mc-head {
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--ns-accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.ns-mc-ticker {
  background: #cc0000;
  color: #fff;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ns-mc-body {
  padding: 14px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

.ns-mc-lead {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}

.ns-mc-img {
  height: 105px;
  border-radius: 6px;
  border: 1.5px dashed #94a3b8;
  background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 8px, #ffffff 8px, #ffffff 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 8px;
}

.ns-mc-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ns-mc-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.45;
  background: #f8fafc;
}

/* ==========================================================================
   SECTIONS: TEMPLATES, BLOCKS, WORKFLOW, CTA
   ========================================================================== */
.ns-section {
  padding: 74px 0;
}

.ns-section-soft {
  background: var(--ns-soft);
  border-top: 1px solid var(--ns-border);
  border-bottom: 1px solid var(--ns-border);
}

.ns-sec-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 46px;
}

.ns-sec-header h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 10px;
}

.ns-sec-header p {
  color: var(--ns-muted);
  font-size: 0.96rem;
}

/* 4 News Standards Grid */
.ns-templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ns-tpl-card {
  background: var(--ns-card);
  border: 1px solid var(--ns-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
  transition: var(--ns-transition);
}

.ns-tpl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ns-shadow);
  border-color: var(--ns-accent);
}

.ns-tpl-wire {
  height: 112px;
  border-radius: 10px;
  background: var(--ns-soft);
  border: 1px solid var(--ns-border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ns-tpl-wire-bar {
  height: 15px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ns-tpl-wire-cols {
  flex: 1;
  display: grid;
  gap: 5px;
}

.ns-tpl-wire-box {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 5px;
}

.ns-tpl-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ns-soft);
  border: 1px solid var(--ns-border);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ns-muted);
}

.ns-tpl-card h3 {
  font-size: 1.02rem;
  font-weight: 900;
}

.ns-tpl-card p {
  font-size: 0.83rem;
  color: var(--ns-muted);
  line-height: 1.7;
  flex: 1;
}

/* Capabilities Grid */
.ns-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ns-feat-card {
  background: #fff;
  border: 1px solid var(--ns-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ns-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--ns-accent-soft);
  color: var(--ns-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ns-feat-card h3 {
  font-size: 1rem;
  font-weight: 900;
}

.ns-feat-card p {
  font-size: 0.86rem;
  color: var(--ns-muted);
  line-height: 1.75;
}

/* Steps Workflow */
.ns-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ns-step-card {
  background: var(--ns-soft);
  border: 1px solid var(--ns-border);
  border-radius: 16px;
  padding: 26px;
  position: relative;
}

.ns-step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ns-dark);
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ns-step-card h3 {
  font-size: 1.02rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.ns-step-card p {
  font-size: 0.86rem;
  color: var(--ns-muted);
}

/* CTA Banner */
.ns-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #3f1215 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: 46px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.ns-cta-banner h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.ns-cta-banner p {
  color: #cbd5e1;
  max-width: 600px;
  font-size: 0.94rem;
}

/* Blog / Archive / Single Compatibility */
.ns-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ns-post-card {
  background: #fff;
  border: 1px solid var(--ns-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--ns-transition);
}

.ns-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ns-shadow);
}

.ns-post-thumb {
  height: 185px;
  background: var(--ns-soft);
  overflow: hidden;
  position: relative;
}

.ns-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-post-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ns-post-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
}

.ns-post-excerpt {
  font-size: 0.84rem;
  color: var(--ns-muted);
}

.ns-single-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 38px 22px 76px;
}

.ns-single-card {
  background: #fff;
  border: 1px solid var(--ns-border);
  border-radius: 18px;
  padding: 36px;
  margin-bottom: 28px;
}

.ns-single-content {
  font-size: 1.03rem;
  line-height: 2.05;
  color: #334155;
}

.ns-single-content p { margin-bottom: 18px; }
.ns-single-content h2, .ns-single-content h3 { margin: 28px 0 12px; color: var(--ns-dark); font-weight: 900; }

.ns-form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--ns-border);
  border-radius: 10px;
  background: var(--ns-soft);
  font-size: 0.9rem;
}

.ns-form-input:focus {
  outline: none;
  border-color: var(--ns-accent);
  background: #fff;
}

/* Footer */
.ns-footer {
  background: var(--ns-dark);
  color: #e2e8f0;
  padding: 54px 0 26px;
}

.ns-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1e293b;
}

.ns-footer h4 {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.ns-footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.ns-footer-list a:hover {
  color: #fff;
}

.ns-footer-copy {
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .ns-hero-grid { grid-template-columns: 1fr; }
  .ns-templates-grid { grid-template-columns: repeat(2, 1fr); }
  .ns-features-grid, .ns-steps-grid, .ns-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ns-nav { display: none; }
  .ns-hamburger { display: flex; }
  .ns-templates-grid, .ns-features-grid, .ns-steps-grid, .ns-posts-grid, .ns-footer-grid, .ns-mc-body {
    grid-template-columns: 1fr;
  }
  .ns-cta-banner { padding: 30px 22px; }
  .ns-single-card { padding: 22px; }
}