@font-face {
  font-family: 'Estedad';
  src: url('../fonts/Estedad-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Same palette as login.css (navy + teal) */
  --navy: #003c60;
  --navy-mid: #0c3c60;
  --navy-dark: #0a1628;
  --navy-light: #186078;
  --accent: #248484;
  --accent-deep: #1a6c6c;
  --accent-soft-color: #3cb4b8;
  --accent-hot: #3cb4b8;
  --accent-soft: rgba(36, 132, 132, 0.14);
  --accent-glow: rgba(36, 132, 132, 0.35);
  --sky: #3cb4b8;
  --bg: #f3f7f9;
  --input-bg: #f0f5f7;
  --card: #ffffff;
  --text: #1a2f3d;
  --muted: #5c7380;
  --border: #d5e0e6;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 60, 96, 0.14);
  --font: 'Estedad', 'Vazirmatn', Tahoma, sans-serif;
  --font-display: 'Estedad', 'Vazirmatn', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

html[dir="ltr"] body,
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3 {
  font-family: var(--font);
  letter-spacing: -0.015em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

@keyframes siteRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes siteGlow {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 0.9; transform: scale(1.06); }
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(213, 224, 230, 0.9);
  box-shadow: 0 4px 18px rgba(0, 60, 96, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(180px, 42vw);
  height: auto;
  object-fit: contain;
}

.footer-logo {
  display: block;
  width: min(150px, 40vw);
  height: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover { color: var(--accent); }

.btn-nav-pill,
.btn-nav-contact {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(36, 132, 132, 0.35);
  background: linear-gradient(135deg, rgba(36, 132, 132, 0.12), rgba(60, 180, 184, 0.18));
  color: var(--accent-deep) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(36, 132, 132, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-nav-pill .bi,
.btn-nav-contact .bi {
  font-size: 1rem;
  color: var(--accent);
}

.btn-nav-pill:hover,
.btn-nav-contact:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(36, 132, 132, 0.2), rgba(60, 180, 184, 0.28));
  color: var(--navy) !important;
  box-shadow: 0 8px 20px rgba(36, 132, 132, 0.2);
}

.products-popup[hidden] { display: none !important; }

.products-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.products-popup:not([hidden]) {
  pointer-events: auto;
}

.products-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.28);
  backdrop-filter: blur(2px);
}

.products-fan-orbit {
  position: fixed;
  width: 0;
  height: 0;
  z-index: 1004;
  pointer-events: none;
}

.products-fan-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  color: var(--navy) !important;
  text-decoration: none;
  pointer-events: auto;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1.2, 0.36, 1);
  transition-delay: var(--delay, 0ms);
  overflow: visible;
  z-index: 1;
}

.products-popup:not([hidden]) .products-fan-item {
  opacity: 1;
  transform: translate(-50%, -50%) translate(var(--tx, 0), var(--ty, 0)) scale(1);
}

.products-fan-icon {
  width: 2.85rem;
  height: 2.85rem;
  min-width: 2.85rem;
  min-height: 2.85rem;
  flex-shrink: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffffff 0%, #e8f6f6 100%);
  border: 1px solid rgba(36, 132, 132, 0.35);
  box-shadow: 0 10px 24px rgba(0, 50, 80, 0.18);
  color: var(--accent);
  font-size: 1.15rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  overflow: visible;
}

.products-fan-label {
  max-width: 6.8rem;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(36, 132, 132, 0.2);
  box-shadow: 0 4px 12px rgba(0, 40, 70, 0.12);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.products-fan-item:hover .products-fan-icon {
  transform: scale(1.08);
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  border-color: transparent;
}

.products-fan-item:hover .products-fan-label {
  border-color: var(--accent);
  color: var(--accent-deep);
}

body.products-popup-open {
  /* avoid overflow:hidden — it clips end fan icons near viewport edges */
  overscroll-behavior: none;
}

body.products-popup-open .site-header {
  z-index: 1002;
}

body.products-popup-open #productsMenuBtn {
  position: relative;
  z-index: 1003;
  box-shadow: 0 0 0 4px rgba(36, 132, 132, 0.18), 0 8px 20px rgba(36, 132, 132, 0.25);
}

@media (max-width: 640px) {
  .products-fan-item {
    width: 4.1rem;
  }
  .products-fan-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  .products-fan-label {
    max-width: 5.6rem;
    font-size: 0.6rem;
  }
}

.header-actions .btn-demo,
.header-actions > a.btn-primary {
  white-space: nowrap;
  flex-shrink: 0;
  padding-inline: 1rem;
}

/* محصولات: مثل لینک دمو؛ با هاور لیست عمودی زیرش باز می‌شود */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--accent);
}

.nav-dropdown-toggle .bi {
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle .bi,
.nav-dropdown.open .nav-dropdown-toggle .bi {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 14rem;
  margin: 0;
  padding: 0.4rem 0;
  flex-direction: column;
  align-items: stretch;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 40, 70, 0.18);
  z-index: 300;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.65rem;
  height: 0.65rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 1rem;
  border-radius: 0;
  color: var(--text) !important;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  text-align: inherit;
  line-height: 1.4;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent) !important;
}

.nav-dropdown-menu .nav-dropdown-divider {
  flex: none;
  height: 1px;
  width: auto;
  margin: 0.35rem 0.85rem;
  background: var(--border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-actions .btn-demo,
.header-actions > a.btn-primary {
  white-space: nowrap;
  flex-shrink: 0;
  padding-inline: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--navy-mid);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-mid);
  border-color: transparent;
}

.btn-hero-ghost {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-hero-ghost:hover {
  background: rgba(36, 132, 132, 0.35);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
}

.products-section {
  padding-top: 2.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 55%, var(--bg) 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem;
  box-shadow: 0 8px 28px rgba(0, 60, 96, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 60, 96, 0.12);
  border-color: rgba(36, 132, 132, 0.35);
}

.product-card-erp { border-top: 4px solid var(--accent); }
.product-card-crm { border-top: 4px solid var(--accent-soft-color); }
.product-card-payroll { border-top: 4px solid var(--navy-light); }
.product-card-acc { border-top: 4px solid #1e7088; }
.product-card-pos { border-top: 4px solid var(--accent-deep); }
.product-card-report { border-top: 4px solid #2a9aaa; }
.product-card-clinic { border-top: 4px solid #1a7a7e; }
.product-card-store { border-top: 4px solid #c2410c; }
.product-card-home { border-top: 4px solid #4338ca; }

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.product-card-erp .product-icon,
.product-card-crm .product-icon,
.product-card-payroll .product-icon,
.product-card-acc .product-icon,
.product-card-pos .product-icon,
.product-card-report .product-icon,
.product-card-clinic .product-icon,
.product-card-store .product-icon,
.product-card-home .product-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.product-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.product-points {
  margin: 0.25rem 0 0.75rem;
  padding-inline-start: 1.1rem;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.8;
}

.product-card .btn {
  margin-top: 0;
  width: 100%;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  flex: 1;
}

.product-card-link:hover h3 {
  color: var(--accent);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  align-items: stretch;
  margin-top: auto;
  padding-top: 0.55rem;
  width: 100%;
}

.product-actions .btn {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.5rem 0.45rem;
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  justify-content: center;
}

.product-actions .btn:last-child {
  grid-column: 1 / -1;
}

.contact-teaser {
  padding: 2.5rem 0 3rem;
}

.contact-teaser-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(36, 132, 132, 0.12), transparent 55%),
    #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 28px rgba(0, 60, 96, 0.06);
}

.contact-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Product / demo detail pages */
.page-hero {
  padding: 2.5rem 0 2rem;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(36, 132, 132, 0.22), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #16324f 100%);
  color: #fff;
}

.page-hero-erp,
.page-hero-crm,
.page-hero-payroll,
.page-hero-acc,
.page-hero-pos,
.page-hero-report,
.page-hero-clinic,
.page-hero-store,
.page-hero-home,
.page-hero-demo {
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(36, 132, 132, 0.22), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #16324f 100%);
}

.page-hero-inner {
  max-width: 720px;
}

.page-hero .eyebrow {
  color: rgba(255,255,255,.75);
}

.page-hero h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}

.page-hero .lead {
  color: rgba(255,255,255,.88);
  margin-bottom: 1.25rem;
}

.page-hero .btn-outline {
  border-color: rgba(255,255,255,.55);
  color: #fff;
  background: transparent;
}

.page-hero .btn-outline:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: rgba(255,255,255,.8);
  font-size: 0.9rem;
}

.back-link:hover { color: #fff; }

.page-cta-band {
  padding: 2.5rem 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 100%, rgba(36, 132, 132, 0.25), transparent 55%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 48%, #16324f 100%);
  color: #fff;
  text-align: center;
}

.page-cta-crm,
.page-cta-payroll,
.page-cta-acc,
.page-cta-pos,
.page-cta-report,
.page-cta-clinic,
.page-cta-store,
.page-cta-home {
  background:
    radial-gradient(ellipse 70% 50% at 85% 100%, rgba(36, 132, 132, 0.25), transparent 55%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 48%, #16324f 100%);
}

.page-cta-inner h2 {
  margin: 0 0 0.5rem;
  color: #fff;
}

.page-cta-inner p {
  margin: 0 0 1.25rem;
  color: rgba(255,255,255,.85);
}

.page-cta-band .btn-outline {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

.demo-page-section {
  padding: 2rem 0 3rem;
}

.demo-bullets {
  margin: 1rem 0 1.25rem;
  padding-inline-start: 1.2rem;
  line-height: 2;
  color: var(--text);
}

.demo-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem;
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.06);
}

.settings-meta {
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}


.lang-toggle {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem;
  display: inline-flex;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--muted);
}

.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 1.1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 0 3.5rem;
  background: var(--navy-dark);
  color: #f5f8fc;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 18, 34, 0.58) 0%, rgba(8, 18, 34, 0.38) 42%, rgba(8, 18, 34, 0.82) 100%),
    radial-gradient(ellipse 70% 55% at 70% 40%, rgba(14, 116, 180, 0.18), transparent 65%);
}

.hero-glow {
  position: absolute;
  inset: auto -15% -25% auto;
  width: 50%;
  height: 50%;
  z-index: 1;
  background: radial-gradient(circle, rgba(36, 132, 132, 0.28), transparent 70%);
  pointer-events: none;
  animation: siteGlow 8s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  animation: siteRise 0.7s ease-out both;
}

.hero-brand {
  width: clamp(210px, 27vw, 285px);
  height: auto;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 1.35rem;
  transform: translateY(-16px);
}

.eyebrow {
  display: inline-block;
  background: rgba(36, 132, 132, 0.2);
  color: var(--accent-soft-color);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.9rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  white-space: normal;
  max-width: 18ch;
}

.hero-products {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.hero-products li {
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.hero p.lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(226, 232, 240, 0.92);
  margin: 0 0 1.6rem;
  max-width: 38ch;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.badge {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(6px);
}

/* Legacy split-hero helpers (product pages / backups) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-height: 340px;
  background: #0a1628;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center 32%;
}

.hero-photo-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(15, 39, 68, 0.15), transparent 55%);
}

.mock-app {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.mock-topbar {
  background: var(--navy);
  color: #fff;
  padding: 0.65rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.mock-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.mock-brand-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  background: #fff;
}

.mock-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 320px;
}

.mock-sidebar {
  background: #f8fafc;
  border-inline-end: 1px solid var(--border);
  padding: 1rem 0.75rem;
}

.mock-sidebar div {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.mock-sidebar div.active {
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy);
  font-weight: 700;
}

.mock-main { padding: 1rem; }

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.mock-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
}

.mock-card strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
}

.mock-card span {
  font-size: 0.72rem;
  color: var(--muted);
}

.mock-chart {
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(14,165,233,.15), rgba(14,165,233,.02));
  border: 1px dashed #cbd5e1;
  position: relative;
}

.mock-chart::after {
  content: '';
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--accent));
  border-radius: 999px;
}

section { padding: 3.5rem 0; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p { margin: 0; color: var(--muted); }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.module {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.module h4 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.module ul {
  margin: 0;
  padding-inline-start: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  align-items: stretch;
}

.flow-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  position: relative;
}

.flow-step strong {
  display: block;
  color: var(--navy);
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.flow-step span { font-size: 0.78rem; color: var(--muted); }

.flow-step:not(:last-child)::after {
  content: '←';
  position: absolute;
  inset-inline-start: -0.55rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
}

html[dir="ltr"] .flow-step:not(:last-child)::after { content: '→'; inset-inline-start: auto; inset-inline-end: -0.55rem; }

.demo-panel {
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(36, 132, 132, 0.22), transparent 55%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 48%, #16324f 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.demo-panel p { color: rgba(255,255,255,.85); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  margin-bottom: 0.85rem;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea { min-height: 110px; resize: vertical; }

.site-footer {
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(36, 132, 132, 0.18), transparent 55%),
    linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-dark) 100%);
  color: rgba(255,255,255,.85);
  padding: 2.25rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a { color: var(--accent-soft-color); }
.site-footer a:hover { color: #fff; }
.site-footer small { color: rgba(255,255,255,.6); }

.contact-address,
.footer-address {
  margin-top: 0.75rem;
  line-height: 1.7;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-address {
  color: rgba(255, 255, 255, 0.72);
  margin: 0.65rem 0 0;
}

.whatsapp-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1rem 0 0.25rem;
}

.whatsapp-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-whatsapp:hover {
  color: #fff !important;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-whatsapp .bi {
  font-size: 1.15rem;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.android-section {
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(36, 132, 132, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.android-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.android-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.android-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 132, 132, 0.12);
  color: var(--accent);
  font-size: 1.35rem;
}

.android-card h3 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.android-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; flex: 1; }
.android-ver {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: #eef2f7;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.android-note {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.android-card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.apk-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.apk-qr {
  width: 112px;
  height: 112px;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.apk-qr img,
.apk-qr canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 4px;
}

.apk-qr-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
  max-width: 7.5rem;
}

.apk-qr-inline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.15rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 28rem;
}

.apk-qr-inline .apk-qr {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.apk-qr-inline .apk-qr-label {
  max-width: none;
  font-size: 0.84rem;
  text-align: start;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 0.75rem 1rem 1rem;
}

.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.5rem 0; color: var(--text); }
.mobile-nav .btn-nav-pill,
.mobile-nav .btn-nav-contact {
  display: inline-flex !important;
  width: fit-content;
  margin: 0.35rem 0;
  padding: 0.55rem 1rem;
}
.mobile-nav .mobile-nav-label {
  display: block;
  margin-top: 0.35rem;
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mobile-nav .mobile-nav-sub {
  padding-inline-start: 0.75rem;
}

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero { min-height: auto; padding: 3.5rem 0 3rem; }
  .hero h1 { max-width: none; }
  .hero-grid, .demo-panel, .contact-grid, .footer-grid, .products-grid, .android-grid { grid-template-columns: 1fr; }
  .cards-3, .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .cards-3, .modules-grid, .mock-cards { grid-template-columns: 1fr; }
}
