@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap");

:root {
  --paper: #f1eee7;
  --paper-deep: #e6e1d6;
  --ink: #1b1916;
  --ink-soft: #3c3832;
  --muted: #6d675e;
  --line: rgba(27, 25, 22, 0.12);
  --line-strong: rgba(27, 25, 22, 0.22);
  --copper: #b77a4c;
  --copper-deep: #8d5730;
  --olive: #6d7a4f;
  --live: #c24a2a;
  --shadow: 0 28px 70px rgba(27, 25, 22, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Vazirmatn", "Iran Sans", "Helvetica Neue", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
em { font-style: normal; color: var(--copper-deep); }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.scroll-line {
  position: fixed;
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--copper), transparent);
  z-index: 50;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 36px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-name {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.brand-name small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.main-nav a { position: relative; }
.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.45s var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.header-contact {
  justify-self: end;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.header-contact span { transition: transform 0.4s var(--ease); }
.header-contact:hover span { transform: translate(-3px, 3px); }
.menu-toggle { display: none; width: 36px; height: 36px; position: relative; }
.menu-toggle i {
  position: absolute;
  right: 6px;
  width: 22px;
  height: 1px;
  background: var(--ink);
}
.menu-toggle i:first-child { top: 14px; }
.menu-toggle i:last-child { top: 21px; }

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  min-height: calc(100vh - var(--header));
  position: relative;
}
.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 13, 11, 0.08), rgba(15, 13, 11, 0.28) 70%, rgba(15, 13, 11, 0.55)),
    linear-gradient(90deg, transparent 60%, rgba(15, 13, 11, 0.18));
}
.hero-coordinate,
.survey-tag,
.image-note,
.hero-caption {
  position: absolute;
  color: #f6f1e8;
  z-index: 2;
}
.hero-coordinate {
  top: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.coord-rule { width: 48px; height: 1px; background: rgba(246, 241, 232, 0.5); }
.survey-tag {
  top: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(246, 241, 232, 0.25);
  background: rgba(17, 15, 13, 0.28);
  backdrop-filter: blur(10px);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef6a3f;
  box-shadow: 0 0 0 0 rgba(239, 106, 63, 0.7);
  animation: pulse 1.8s infinite;
}
.hero-drawing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(246, 241, 232, 0.78);
  stroke-width: 1.1;
  pointer-events: none;
}
.hero-drawing path,
.hero-drawing circle {
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw 2.4s var(--ease) 0.4s forwards;
}
.hero-drawing .callout { stroke: rgba(183, 122, 76, 0.9); }
.image-note {
  width: 168px;
  padding: 12px 14px;
  border: 1px solid rgba(246, 241, 232, 0.22);
  background: rgba(18, 16, 14, 0.38);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.9s var(--ease) 1.1s forwards;
}
.image-note small { color: rgba(246, 241, 232, 0.62); font-size: 11px; }
.image-note strong { font-size: 18px; font-weight: 500; }
.note-one { top: 26%; left: 8%; }
.note-two { bottom: 18%; left: 22%; }
.hero-caption {
  bottom: 22px;
  right: 28px;
  display: flex;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 232, 0.72);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px 64px 40px;
  background:
    radial-gradient(circle at 90% 0%, rgba(183, 122, 76, 0.08), transparent 38%),
    linear-gradient(180deg, #f4f1ea, #ece7dc);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.eyebrow-line { width: 36px; height: 1px; background: var(--copper); }
.hero-copy h1 {
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.12;
  font-weight: 500;
  margin: 0 0 22px;
  letter-spacing: -0.035em;
}
.hero-copy p {
  max-width: 36ch;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease);
}
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.text-link, .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.text-link span, .arrow-link span { transition: transform 0.4s var(--ease); }
.text-link:hover span, .arrow-link:hover span { transform: translate(-4px, 4px); }
.hero-index {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.index-rule { width: 56px; height: 1px; background: var(--line-strong); }
.hero-side-note {
  position: absolute;
  left: 18px;
  bottom: 28px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(246, 241, 232, 0.7);
  z-index: 3;
}

.section-pad { padding: 96px 56px; }
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}
.kicker-line { width: 42px; height: 1px; background: var(--copper); }

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
}
.manifesto h2, .products-heading h2, .dashboard-copy h2, .closing-copy h2, .contact-heading h2 {
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
}
.large-copy { font-size: 22px; line-height: 1.7; margin-top: 0; }
.manifesto-copy p { color: var(--ink-soft); }
.manifesto-foot, .product-bottom, .contact-bottom {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.field-study {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  min-height: 72vh;
  background: #161412;
  color: #efe8dc;
}
.field-art { position: relative; padding: 28px 32px 36px; overflow: hidden; }
.field-topline {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(239, 232, 220, 0.62);
}
.contour-map { width: 100%; height: auto; margin-top: 18px; }
.contours { color: rgba(239, 232, 220, 0.28); }
.map-grid { stroke: rgba(239, 232, 220, 0.08); stroke-width: 1; fill: none; }
.excavation { fill: rgba(183, 122, 76, 0.18); stroke: #c48a58; stroke-width: 1.2; }
.excavation-inner { fill: none; stroke: rgba(239, 232, 220, 0.55); stroke-dasharray: 4 5; }
.map-point { fill: #ef6a3f; }
.map-ring {
  fill: none;
  stroke: #ef6a3f;
  animation: ring 2.8s ease-out infinite;
}
.map-path { fill: none; stroke: #c48a58; }
.map-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(239, 232, 220, 0.16);
  background: rgba(16, 14, 12, 0.55);
}
.label-a { top: 22%; left: 10%; }
.label-b { top: 36%; right: 16%; }
.map-scale {
  position: absolute;
  bottom: 28px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.map-scale i { width: 72px; height: 1px; background: #efe8dc; }
.field-legend {
  position: absolute;
  bottom: 28px;
  left: 32px;
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: rgba(239, 232, 220, 0.7);
}
.legend-dot, .legend-line {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  vertical-align: middle;
}
.dot-copper { background: #c48a58; }
.dot-olive { background: #ef6a3f; }
.legend-line { height: 1px; width: 16px; background: rgba(239, 232, 220, 0.5); }
.field-aside {
  padding: 72px 40px;
  border-right: 1px solid rgba(239, 232, 220, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.field-aside p {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.25;
  margin: 0;
}
.aside-caption, .aside-coordinate { color: rgba(239, 232, 220, 0.58); font-size: 13px; }

.products-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}
.products-heading p { color: var(--ink-soft); max-width: 36ch; }
.product-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-tab {
  text-align: right;
  padding: 22px 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}
.product-tab span { font-size: 12px; letter-spacing: 0.1em; }
.product-tab i { margin-right: auto; opacity: 0; transform: translate(6px, -6px); transition: 0.4s var(--ease); }
.product-tab.is-active, .product-tab:hover { color: var(--ink); }
.product-tab.is-active i, .product-tab:hover i { opacity: 1; transform: none; }
.product-panel { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 48px; padding-top: 48px; }
.product-panel.is-hidden { display: none; }
.panel-number { color: var(--muted); font-size: 12px; letter-spacing: 0.14em; }
.panel-intro h3 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
}
.panel-intro p { color: var(--ink-soft); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-card {
  background: var(--paper);
  padding: 26px 24px 22px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
}
.feature-card:hover { background: #f7f4ed; transform: translateY(-3px); }
.feature-index { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.feature-icon { width: 42px; height: 42px; margin: 18px 0 16px; }
.feature-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.feature-card h4 { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.feature-arrow {
  margin-top: auto;
  align-self: flex-start;
  opacity: 0;
  transform: translate(6px, -6px);
  transition: 0.4s var(--ease);
}
.feature-card:hover .feature-arrow { opacity: 1; transform: none; }

.dashboard-story {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  background: #1c1915;
  color: #efe8dc;
}
.dashboard-image {
  margin: 36px;
  border: 1px solid rgba(239, 232, 220, 0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 20%),
    #12100e;
  box-shadow: var(--shadow);
}
.dash-top, .dash-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(239, 232, 220, 0.55);
  border-bottom: 1px solid rgba(239, 232, 220, 0.08);
}
.dash-foot { border-bottom: 0; border-top: 1px solid rgba(239, 232, 220, 0.08); }
.dash-brand, .dash-status { display: inline-flex; align-items: center; gap: 8px; }
.dash-brand i, .dash-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef6a3f;
}
.dash-content { padding: 28px 28px 20px; }
.dash-title small { color: rgba(239, 232, 220, 0.5); font-size: 12px; }
.dash-title strong { display: block; font-size: 28px; font-weight: 500; }
.dash-title span { color: rgba(239, 232, 220, 0.58); font-size: 13px; }
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 24px;
}
.dash-metrics small { color: rgba(239, 232, 220, 0.5); font-size: 12px; }
.dash-metrics b { display: block; font-size: 28px; font-weight: 500; }
.dash-metrics i { font-style: normal; font-size: 13px; color: rgba(239, 232, 220, 0.5); }
.metric-up { color: #c9a27a; }
.chart-box { border: 1px solid rgba(239, 232, 220, 0.1); padding: 16px 16px 8px; }
.chart-head { display: flex; justify-content: space-between; font-size: 12px; color: rgba(239, 232, 220, 0.55); }
.chart-box svg { width: 100%; height: 140px; margin-top: 8px; }
.chart-gridline { stroke: rgba(239, 232, 220, 0.08); stroke-width: 1; }
.chart-area { fill: url(#chartFill); }
.chart-stroke {
  fill: none;
  stroke: #c48a58;
  stroke-width: 1.8;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2s var(--ease) 0.2s forwards;
}
.chart-points { fill: #efe8dc; }
.chart-days { display: flex; justify-content: space-between; font-size: 11px; color: rgba(239, 232, 220, 0.45); }
.dash-alert {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(239, 106, 63, 0.28);
  background: rgba(239, 106, 63, 0.08);
}
.alert-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #ef6a3f;
  color: #ef6a3f;
}
.dash-alert small { display: block; color: rgba(239, 232, 220, 0.55); }
.dash-alert time { margin-right: auto; color: rgba(239, 232, 220, 0.5); }
.dashboard-copy { padding: 96px 56px 96px 40px; }
.dashboard-copy p { color: rgba(239, 232, 220, 0.7); max-width: 36ch; }
.integration-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}
.integration-list span {
  padding: 8px 12px;
  border: 1px solid rgba(239, 232, 220, 0.16);
  font-size: 13px;
}

.closing {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.5fr;
  align-items: center;
  gap: 32px;
  background: linear-gradient(180deg, #efeae1, #e8e2d6);
}
.closing-art { position: relative; height: 320px; }
.closing-ring {
  position: absolute;
  border: 1px solid rgba(27, 25, 22, 0.16);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.ring-one { width: 110px; height: 110px; }
.ring-two { width: 190px; height: 190px; animation: spin 28s linear infinite; }
.ring-three { width: 270px; height: 270px; border-style: dashed; animation: spin 48s linear infinite reverse; }
.closing-point {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--copper);
  transform: translate(-50%, -50%);
}
.closing-cross { position: absolute; color: var(--muted); font-size: 18px; }
.cross-a { top: 18%; right: 22%; }
.cross-b { bottom: 16%; left: 20%; }
.closing-label {
  position: absolute;
  bottom: 12px;
  right: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.closing-copy p { color: var(--ink-soft); max-width: 34ch; }
.closing-index {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.contact { background: #141210; color: #efe8dc; }
.contact-heading, .contact-meta { max-width: 720px; }
.contact-meta p { color: rgba(239, 232, 220, 0.68); font-size: 18px; }
.contact-link {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  font-size: 22px;
}
.contact-link small { font-size: 14px; color: rgba(239, 232, 220, 0.5); }
.contact-bottom { color: rgba(239, 232, 220, 0.5); border-color: rgba(239, 232, 220, 0.12); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 106, 63, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(239, 106, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 106, 63, 0); }
}
@keyframes ring {
  from { r: 12; opacity: 0.8; }
  to { r: 42; opacity: 0; }
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

@media (max-width: 1100px) {
  .hero, .manifesto-grid, .field-study, .product-panel, .dashboard-story, .closing, .products-heading {
    grid-template-columns: 1fr;
  }
  .hero-side-note { display: none; }
  .section-pad, .dashboard-copy, .hero-copy { padding: 56px 24px; }
  .site-header { padding: 0 20px; grid-template-columns: 1fr auto; }
  .main-nav, .header-contact { display: none; }
  .site-header.is-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header);
    right: 0;
    left: 0;
    background: var(--paper);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
  }
  .menu-toggle { display: block; justify-self: end; }
  .dash-metrics, .feature-grid { grid-template-columns: 1fr; }
  .field-aside { min-height: auto; padding: 36px 24px 48px; }
}
