
/*
  Page: StartupMan Templates
  Notes:
  - This file is page-specific.
  - Main site styles are loaded before this file:
    https://startupman.ir/uiistart/style_root.css
    https://startupman.ir/uiistart/styles.css
*/

:root {
  --sm-primary: var(--primary, #2563eb);
  --sm-primary-dark: var(--primary-dark, #1d4ed8);
  --sm-secondary: var(--secondary, #7c3aed);
  --sm-text: var(--text-color, #0f172a);
  --sm-muted: var(--muted-color, #64748b);
  --sm-border: var(--border-color, #e2e8f0);
  --sm-bg: var(--background-color, #ffffff);
  --sm-soft: var(--soft-background, #f8fafc);
  --sm-card: var(--card-background, #ffffff);
  --sm-success: var(--success-color, #16a34a);
  --sm-radius-xl: 32px;
  --sm-radius-lg: 24px;
  --sm-radius-md: 18px;
  --sm-radius-pill: 999px;
  --sm-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --sm-shadow-md: 0 22px 60px rgba(15, 23, 42, 0.12);
  --sm-container: 1180px;
}

.sm-template-page,
.sm-template-page * {
  box-sizing: border-box;
}

.sm-template-page {
  margin: 0;
  direction: rtl;
  text-align: right;
  background: var(--sm-bg);
  color: var(--sm-text);
  line-height: 1.9;
}

.sm-template-page a {
  color: inherit;
  text-decoration: none;
}

.sm-template-page input,
.sm-template-page select,
.sm-template-page textarea,
.sm-template-page button {
  font: inherit;
}

.sm-container {
  width: min(var(--sm-container), calc(100% - 32px));
  margin-inline: auto;
}

.sm-page-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.sm-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.sm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.sm-logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sm-primary), var(--sm-secondary));
  box-shadow: var(--sm-shadow-sm);
}

.sm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--sm-muted);
  font-weight: 700;
}

.sm-nav a {
  transition: color 0.2s ease;
}

.sm-nav a:hover,
.sm-nav .is-active {
  color: var(--sm-primary);
}

.sm-header-btn,
.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--sm-radius-pill);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sm-header-btn,
.sm-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sm-primary), var(--sm-secondary));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
  font-family: IRANSans;
}

.sm-header-btn:hover,
.sm-btn:hover {
  transform: translateY(-2px);
}

.sm-btn-outline {
  color: var(--sm-primary);
  background: #fff;
  border-color: var(--sm-border);
  box-shadow: var(--sm-shadow-sm);
}

.sm-btn-soft {
  color: var(--sm-primary);
  background: color-mix(in srgb, var(--sm-primary) 10%, #fff);
  border-color: color-mix(in srgb, var(--sm-primary) 18%, #fff);
}

.sm-btn-text {
  min-height: auto;
  padding-inline: 6px;
  color: var(--sm-primary);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.sm-btn-full {
  width: 100%;
}

.sm-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: var(--sm-radius-pill);
  color: var(--sm-primary);
  background: color-mix(in srgb, var(--sm-primary) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--sm-primary) 18%, #fff);
  font-size: 0.88rem;
  font-weight: 900;
}

.sm-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 14% 20%, rgba(124, 58, 237, 0.14), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(37, 99, 235, 0.14), transparent 25%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.sm-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 58px;
}

.sm-hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--sm-muted);
  font-size: 1.12rem;
}

.sm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.sm-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sm-hero-trust span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-pill);
  background: #fff;
  color: var(--sm-muted);
  font-weight: 800;
  box-shadow: var(--sm-shadow-sm);
}

.sm-hero-visual {
  display: grid;
  place-items: center;
}

.sm-browser-card {
  width: min(100%, 520px);
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--sm-radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--sm-shadow-md);
}

.sm-browser-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.sm-browser-dots i {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 50%;
  background: #cbd5e1;
}

.sm-browser-hero {
  height: 158px;
  margin-bottom: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.18)),
    repeating-linear-gradient(-45deg, #f8fafc 0 10px, #eef2ff 10px 20px);
}

.sm-browser-lines {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.sm-browser-lines span {
  height: 13px;
  border-radius: var(--sm-radius-pill);
  background: #e2e8f0;
}

.sm-browser-lines span:nth-child(1) {
  width: 72%;
}

.sm-browser-lines span:nth-child(2) {
  width: 92%;
}

.sm-browser-lines span:nth-child(3) {
  width: 55%;
}

.sm-browser-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sm-browser-cards span {
  height: 92px;
  border-radius: 20px;
  background: #f1f5f9;
}

.sm-filter-section,
.sm-trust-section,
.sm-lead-section {
  padding: 72px 0;
}

.sm-section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.sm-section-heading h2 {
  margin: 0 0 12px;
  color: var(--sm-text);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.sm-section-heading p {
  margin: 0;
  color: var(--sm-muted);
}

.sm-filter-wrap > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sm-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.sm-filter-tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-pill);
  background: #fff;
  color: var(--sm-muted);
  cursor: pointer;
  font-weight: 900;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sm-filter-tabs label:hover {
  transform: translateY(-2px);
  color: var(--sm-primary);
  border-color: color-mix(in srgb, var(--sm-primary) 24%, #fff);
}

#filter-all:checked ~ .sm-filter-tabs label[for="filter-all"],
#filter-store:checked ~ .sm-filter-tabs label[for="filter-store"],
#filter-medical:checked ~ .sm-filter-tabs label[for="filter-medical"],
#filter-education:checked ~ .sm-filter-tabs label[for="filter-education"],
#filter-landing:checked ~ .sm-filter-tabs label[for="filter-landing"],
#filter-service:checked ~ .sm-filter-tabs label[for="filter-service"],
#filter-beauty:checked ~ .sm-filter-tabs label[for="filter-beauty"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--sm-primary), var(--sm-secondary));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
}

.sm-template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

#filter-store:checked ~ .sm-template-grid .sm-template-card:not(.is-store),
#filter-medical:checked ~ .sm-template-grid .sm-template-card:not(.is-medical),
#filter-education:checked ~ .sm-template-grid .sm-template-card:not(.is-education),
#filter-landing:checked ~ .sm-template-grid .sm-template-card:not(.is-landing),
#filter-service:checked ~ .sm-template-grid .sm-template-card:not(.is-service),
#filter-beauty:checked ~ .sm-template-grid .sm-template-card:not(.is-beauty) {
  display: none;
}

.sm-template-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-xl);
  background: var(--sm-card);
  box-shadow: var(--sm-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sm-template-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sm-shadow-md);
}

.sm-template-preview {
  position: relative;
  min-height: 214px;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  text-align: center;
  font-weight: 900;
}

.sm-template-preview::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
}

.sm-template-preview::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  left: -48px;
  bottom: -48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.sm-template-preview span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  padding: 10px 16px;
  border-radius: var(--sm-radius-pill);
  background: rgba(255, 255, 255, 0.76);
  color: var(--sm-text);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.sm-preview-store {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.sm-preview-medical {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.sm-preview-education {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.sm-preview-landing {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
}

.sm-preview-service {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.sm-preview-beauty {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.sm-template-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.sm-card-badge {
  width: fit-content;
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: var(--sm-radius-pill);
  color: var(--sm-primary);
  background: color-mix(in srgb, var(--sm-primary) 10%, #fff);
  font-size: 0.84rem;
  font-weight: 900;
}

.sm-template-body h3 {
  margin: 0 0 12px;
  color: var(--sm-text);
  font-size: 1.26rem;
  line-height: 1.5;
}

.sm-template-body p {
  margin: 0 0 18px;
  color: var(--sm-muted);
}

.sm-fit-box {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-md);
  background: var(--sm-soft);
  color: var(--sm-muted);
  font-size: 0.94rem;
}

.sm-fit-box strong {
  color: var(--sm-text);
}

.sm-feature-list,
.sm-lead-points {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.sm-feature-list li,
.sm-lead-points li {
  position: relative;
  padding-right: 26px;
  color: var(--sm-muted);
}

.sm-feature-list li::before,
.sm-lead-points li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--sm-success);
  font-weight: 900;
}

.sm-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.sm-card-actions .sm-btn {
  min-height: 42px;
  padding: 8px 14px;
  font-size: 0.92rem;
}

.sm-trust-section {
  background:
    radial-gradient(circle at 82% 16%, rgba(37, 99, 235, 0.08), transparent 25%),
    var(--sm-soft);
}

.sm-trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.sm-trust-item {
  padding: 24px;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  background: #fff;
  box-shadow: var(--sm-shadow-sm);
}

.sm-trust-item span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--sm-primary), var(--sm-secondary));
  font-weight: 900;
}

.sm-trust-item h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  color: var(--sm-text);
}

.sm-trust-item p {
  margin: 0;
  color: var(--sm-muted);
  font-size: 0.94rem;
}

.sm-lead-section {
  background:
    radial-gradient(circle at 15% 25%, rgba(124, 58, 237, 0.13), transparent 25%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.sm-lead-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 40px;
  padding: 40px;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-xl);
  background: #fff;
  box-shadow: var(--sm-shadow-md);
}

.sm-lead-content h2 {
  margin: 0 0 14px;
  color: var(--sm-text);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.38;
}

.sm-lead-content p {
  margin: 0 0 20px;
  color: var(--sm-muted);
}

.sm-lead-form {
  display: grid;
  gap: 16px;
}

.sm-lead-form label {
  display: grid;
  gap: 7px;
  color: var(--sm-text);
  font-weight: 900;
}

.sm-lead-form input,
.sm-lead-form select,
.sm-lead-form textarea {
  width: 100%;
  border: 1px solid var(--sm-border);
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--sm-soft);
  color: var(--sm-text);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: IRANSans;
}

.sm-lead-form input:focus,
.sm-lead-form select:focus,
.sm-lead-form textarea:focus {
  border-color: var(--sm-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.sm-page-footer {
  padding: 36px 0;
  background: #0f172a;
  color: #cbd5e1;
}

.sm-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.sm-page-footer strong {
  color: #fff;
  font-size: 1.08rem;
}

.sm-page-footer p {
  max-width: 560px;
  margin: 8px 0 0;
  color: #94a3b8;
}

.sm-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #cbd5e1;
}

.sm-footer-links a:hover {
  color: #fff;
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --sm-container: 920px;
  }

  .sm-header-inner {
    gap: 18px;
  }

  .sm-nav {
    gap: 14px;
    font-size: 0.94rem;
  }

  .sm-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .sm-hero-content {
    max-width: 820px;
  }

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

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

  .sm-lead-card {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .sm-container {
    width: min(100% - 24px, var(--sm-container));
  }

  .sm-header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .sm-logo {
    width: 100%;
    justify-content: center;
  }

  .sm-nav {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .sm-nav::-webkit-scrollbar {
    display: none;
  }

  .sm-nav a {
    white-space: nowrap;
  }

  .sm-header-btn {
    width: 100%;
  }

  .sm-hero {
    padding: 54px 0 46px;
  }

  .sm-hero-content,
  .sm-section-heading {
    text-align: center;
  }

  .sm-kicker {
    margin-inline: auto;
  }

  .sm-hero p {
    font-size: 1rem;
  }

  .sm-hero-actions,
  .sm-hero-trust {
    justify-content: center;
  }

  .sm-hero-actions .sm-btn {
    width: 100%;
  }

  .sm-browser-card {
    border-radius: 24px;
  }

  .sm-browser-cards {
    grid-template-columns: 1fr;
  }

  .sm-filter-section,
  .sm-trust-section,
  .sm-lead-section {
    padding: 50px 0;
  }

  .sm-filter-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .sm-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .sm-filter-tabs label {
    white-space: nowrap;
  }

  .sm-template-grid,
  .sm-trust-grid {
    grid-template-columns: 1fr;
  }

  .sm-template-preview {
    min-height: 184px;
  }

  .sm-card-actions .sm-btn {
    width: 100%;
  }

  .sm-lead-card {
    padding: 24px;
    border-radius: 24px;
  }

  .sm-footer-inner {
    flex-direction: column;
  }

  .sm-footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Small Mobile */
@media (max-width: 420px) {
  .sm-hero h1 {
    font-size: 1.78rem;
  }

  .sm-section-heading h2,
  .sm-lead-content h2 {
    font-size: 1.45rem;
  }

  .sm-template-body,
  .sm-trust-item {
    padding: 20px;
  }

  .sm-btn {
    padding-inline: 16px;
  }
}
.sm-template-page a,
.sm-template-page a:hover,
.sm-template-page a:focus,
.sm-template-page a:visited,
.sm-template-page .sm-btn,
.sm-template-page .sm-header-btn,
.sm-template-page .sm-nav a,
.sm-template-page .sm-footer-links a {
  text-decoration: none !important;
}
