:root {
  --bg: #eef9ff;
  --bg-soft: #f9fdff;
  --panel: rgba(255, 255, 255, 0.92);
  --line: rgba(22, 126, 196, 0.16);
  --ink: #0f3557;
  --muted: #5c7a95;
  --deep: #135fa9;
  --accent: #73ddf4;
  --accent-deep: #1b81c9;
  --public: #1a8dd8;
  --private: #4c90c2;
  --shadow: 0 24px 60px rgba(19, 95, 169, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(127, 208, 255, 0.35), transparent 26%),
    radial-gradient(circle at left bottom, rgba(10, 134, 217, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}

body[dir="rtl"] {
  font-family: "Tahoma", "Trebuchet MS", Arial, sans-serif;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.site-header {
  position: relative;
  z-index: 10;
  margin-bottom: 18px;
}

.hero,
.section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero::before,
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), transparent 48%),
    linear-gradient(180deg, transparent 72%, rgba(22, 126, 196, 0.05));
  pointer-events: none;
}

.hero,
.section {
  padding: 28px;
}

.section {
  margin-top: 26px;
}

.topbar,
.hero-grid,
.section-heading,
.project-grid,
.note-grid,
.contact-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(19, 95, 169, 0.08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(19, 95, 169, 0.08);
}

.topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(239, 249, 255, 0.92);
  border: 1px solid rgba(22, 126, 196, 0.08);
}

.topbar-links a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease;
}

.topbar-links a:hover,
.footer-links a:hover {
  background: rgba(115, 221, 244, 0.16);
  color: var(--deep);
}

.hero-kicker,
.section-kicker,
.project-type,
.metric-label,
.preview-tab {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lang-switch {
  display: inline-flex;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.lang-btn.is-active {
  background: var(--deep);
  color: white;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 24px;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-headline,
.section-title {
  margin: 0;
  line-height: 1.08;
}

.hero-headline {
  max-width: 11ch;
  font-size: clamp(2rem, 5vw, 4.4rem);
}

.hero-body,
.section-body,
.project-summary,
.note-card p,
.project-points {
  color: var(--muted);
}

.hero-body,
.section-body {
  max-width: 52ch;
  line-height: 1.55;
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.ghost-action,
.project-link {
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.primary-action,
.ghost-action {
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
}

.primary-action {
  background: var(--deep);
  color: white;
  box-shadow: 0 12px 26px rgba(10, 134, 217, 0.2);
}

.ghost-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.primary-action:hover,
.ghost-action:hover,
.project-link:hover {
  transform: translateY(-1px);
}

.hero-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.metric-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.94));
  padding: 18px;
  border-radius: 22px;
}

.metric-value {
  display: block;
  color: var(--deep);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.project-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 255, 0.92));
}

.project-card {
  padding: 18px;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.project-type {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.access-badge {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.72rem;
  font-weight: 800;
}

.access-badge.public {
  background: rgba(29, 133, 93, 0.12);
  color: var(--public);
}

.access-badge.private {
  background: rgba(139, 84, 29, 0.12);
  color: var(--private);
}

.project-title {
  margin: 0;
  font-size: 1.45rem;
}

.project-meta {
  margin: 8px 0 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-summary {
  margin: 14px 0 16px;
  line-height: 1.55;
}

.project-points {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.preview-window {
  overflow: hidden;
  border: 1px solid rgba(22, 126, 196, 0.14);
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.preview-window + .project-summary {
  margin-top: 18px;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(22, 126, 196, 0.08);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(236, 247, 255, 0.98));
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d5e7f3;
}

.preview-dots span:nth-child(1) { background: #9bdcff; }
.preview-dots span:nth-child(2) { background: #61c7ff; }
.preview-dots span:nth-child(3) { background: #1493e8; }

.preview-tab {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.preview-frame {
  height: 240px;
  background: linear-gradient(180deg, #f8fcff, #eaf6ff);
}

.preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.preview-locked {
  display: grid;
  place-items: center;
  height: 240px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(127, 208, 255, 0.24), transparent 28%),
    linear-gradient(180deg, #0f74bc, #0b4b7b);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.preview-locked strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

.preview-locked p {
  margin: 0;
  max-width: 24ch;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--deep);
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(10, 134, 217, 0.18);
}

.project-link::after {
  content: "↗";
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-link.is-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border: 1px solid var(--line);
}

.project-link.is-secondary::after {
  content: "";
}

.project-access-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.note-card {
  padding: 20px;
}

.note-card h4 {
  margin: 0 0 10px;
  font-size: 1.06rem;
}

.note-card p {
  margin: 0;
  line-height: 1.55;
}

.feature-list {
  margin: 24px 0 0;
  padding-inline-start: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.feature-list li {
  line-height: 1.55;
}

.section-actions,
.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.product-detail-card h2 {
  margin: 0 0 10px;
  font-size: 1.06rem;
}

.product-detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.contact-intro,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 255, 0.92));
}

.contact-intro {
  padding: 24px;
  min-height: 100%;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(115, 221, 244, 0.18);
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-intro h4 {
  margin: 18px 0 12px;
  font-size: 1.5rem;
  line-height: 1.15;
}

.contact-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-secure-copy {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 126, 196, 0.12);
}

.contact-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  padding: 24px;
}

.contact-button {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 18px 22px;
  font-size: 1rem;
}

.contact-direct {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(19, 95, 169, 0.06);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(19, 95, 169, 0.08);
}

.footer-brand strong {
  display: block;
  font-size: 1rem;
}

.footer-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  max-width: 34ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 980px) {
  .hero-grid,
  .project-grid,
  .product-grid,
  .note-grid,
  .contact-shell,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 12px;
  }

  .hero,
  .section {
    padding: 20px;
    border-radius: 24px;
  }

  .topbar,
  .project-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-center {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-links,
  .footer-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .hero-headline {
    max-width: none;
  }

  .preview-frame,
  .preview-locked {
    height: 210px;
  }
}
