/* Brand palette: primary dark turquoise; complements charcoal black, grey and white. */
:root {
  --deep: #073b42;
  --deep-2: #052d33;
  --teal: #087c83;
  --teal-hi: #0a9499;
  --aqua-tint: #eef1f2;
  --teal-glow: rgba(8, 124, 131, .4);
  --charcoal: #1f2426;
  --bg: #ffffff;
  --surface: #f1f3f4;
  --surface-2: #e7eaeb;
  --text: #1f2426;
  --muted: #6b7478;
  --line: rgba(31, 36, 38, .14);
  --radius: 8px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #15191b;
  --surface: #1f2426;
  --surface-2: #272d30;
  --text: #eef1f2;
  --muted: #a3acb0;
  --line: rgba(255, 255, 255, .12);
  --aqua-tint: #272d30;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Vazirmatn", "Noto Sans Arabic", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg, img { display: block; max-width: 100%; height: auto; }
.sprite { position: absolute; width: 0; height: 0; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.section { padding-block: 56px; }
.section-tight { padding-block: 28px 8px; }
:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 6px; font-weight: 700; font-size: 1rem;
  border: 1.5px solid transparent; transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: .92rem; }
.btn-pill { border-radius: 999px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-hi); }
.btn-outline { border-color: currentColor; color: var(--deep); }
[data-theme="dark"] .btn-outline { color: #fff; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); color: var(--text); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Top bar + header, like the document header strip */
.topbar { background: var(--deep); color: #c9d1d4; font-size: .8rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: block; color: var(--teal); direction: ltr; }
.logo svg { width: 150px; aspect-ratio: 270 / 96; }
.nav { display: flex; gap: 30px; font-weight: 600; font-size: .95rem; }
.nav a { position: relative; padding-block: 4px; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--teal-hi); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }

/* Hero: deep-teal banner with the real device photo */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 55% 65% at 30% 62%, rgba(8, 124, 131, .45), transparent 70%),
    radial-gradient(ellipse 45% 50% at 85% 15%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(180deg, #0b4d55, var(--deep) 55%, var(--deep-2));
}
.hero-in {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; column-gap: 40px;
  padding-block: 36px 52px; min-height: min(calc(100vh - 108px), 720px);
}
.hero-text { padding-inline-end: 16px; }
.kicker { display: inline-block; color: #c9d1d4; font-weight: 700; letter-spacing: 2px; font-size: .85rem; margin-bottom: 14px; direction: ltr; }
.hero-title { font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 900; line-height: 1.5; }
.hero-lead { font-size: 1.12rem; color: #c9d1d4; max-width: 36ch; margin-block: 18px 30px; }
.actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero .btn-primary { padding: 14px 36px; }
.hero .btn-outline { color: #fff; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-height: 600px; width: 100%; display: grid; place-items: center; }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #fff; stroke-width: 1.5; opacity: .3; }
.circuit path, .circuit rect { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 3s ease forwards; }
.circuit .dots circle { fill: #fff; stroke: none; }
.rings { position: absolute; bottom: 1%; width: 104%; stroke: #fff; stroke-width: 1.5; opacity: .5; }
.ring-glow { stroke-width: 8; filter: blur(4px); opacity: .8; animation: pulse 3s ease-in-out infinite; }
.product {
  position: relative; width: 68%;
  filter: drop-shadow(0 34px 28px rgba(0, 0, 0, .55)) drop-shadow(0 0 50px var(--teal-glow));
  animation: float 6s ease-in-out infinite;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes pulse { 50% { opacity: .25; } }

/* Dark-teal statement block (catalogue "هدف اصلی" box) */
.statement { background: var(--deep); color: #eef1f2; border-radius: var(--radius); padding: 30px 36px; }
.statement h2 { color: #fff; font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.statement p { max-width: 90ch; }
.statement.small { padding: 26px 30px; }
.statement .slogan { font-size: 1.5rem; font-weight: 900; color: #fff; margin-block: 2px 8px; }
.statement .note { color: #c9d1d4; font-size: .9rem; }
.statement.contact { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: 40px; }
.statement.contact p { color: #c9d1d4; max-width: 60ch; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }
.statement .btn-outline { color: #fff; }

/* Numbered section headings, like "۱. جمع‌بندی مدیریتی" */
.h-num { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--teal); line-height: 1.5; }
.h-num b { color: var(--teal-hi); }
.intro { color: var(--text); max-width: 95ch; margin-block: 8px 28px; }

/* Numbered cards (grey panels with big teal number) */
.num-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.num-card { display: flex; gap: 18px; background: var(--surface); border-radius: var(--radius); padding: 22px 24px; }
.num { font-size: 2.2rem; font-weight: 900; color: var(--teal-hi); line-height: 1; min-width: 32px; }
.num-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--deep); margin-bottom: 4px; }
[data-theme="dark"] .num-card h3 { color: #fff; }
.num-card p { color: var(--muted); font-size: .95rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.box-grey, .box-aqua { background: var(--surface); border-radius: var(--radius); padding: 24px 28px; }
.box-aqua h3, .box-grey h3 { font-size: 1.1rem; font-weight: 800; color: var(--teal); margin-bottom: 10px; }
.bullets li { position: relative; padding-inline-start: 18px; margin-block: 6px; font-size: .97rem; }
.bullets li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-hi); }

/* Product sheet */
.product-sheet { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.photo { background: #fff; display: flex; flex-direction: column; }
.photo img { width: 100%; object-fit: contain; aspect-ratio: 3 / 4; }
.photo figcaption { font-size: .8rem; color: var(--muted); text-align: center; padding: 10px; border-top: 1px solid var(--line); background: var(--surface-2); }
.sheet-body { padding: 32px 32px 32px 0; }
.tag { display: inline-block; background: var(--aqua-tint); color: var(--teal); font-weight: 700; font-size: .8rem; padding: 3px 12px; border-radius: 999px; }
.model { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -1px; color: var(--deep); line-height: 1.2; margin-block: 10px 12px; text-align: start; }
[data-theme="dark"] .model { color: #fff; }
.keys { display: inline-grid; grid-template-columns: repeat(3, 56px); gap: 6px; margin-block: 18px; }
.keys li { background: var(--teal); color: #fff; font-family: Arial, sans-serif; font-weight: 700; text-align: center; padding: 6px 0; border-radius: 4px; font-size: .95rem; }
.mini div { display: flex; gap: 14px; padding-block: 10px; border-top: 1px solid var(--line); font-size: .95rem; }
.mini dt { color: var(--muted); min-width: 70px; }
.mini a { color: var(--teal); font-weight: 600; }
.actions-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* Spec table, catalogue style: teal header row, zebra body */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.spec-table th { background: var(--teal); color: #fff; font-weight: 700; text-align: start; padding: 12px 18px; }
.spec-table td { padding: 12px 18px; border-top: 1px solid var(--line); }
.spec-table td[dir="ltr"] { text-align: end; font-family: Arial, sans-serif; }
.spec-table tbody tr:nth-child(even) { background: var(--surface); }
.spec-table td:first-child { color: var(--muted); width: 18%; }
.spec-table td:last-child { font-weight: 700; color: var(--deep); }
[data-theme="dark"] .spec-table td:last-child { color: #fff; }
.footnote { margin-top: 16px; font-size: .85rem; color: var(--muted); border-inline-start: 3px solid var(--teal-hi); padding-inline-start: 12px; }

/* News */
.news li { display: flex; gap: 28px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.news time { display: flex; flex-direction: column; align-items: center; min-width: 52px; color: var(--muted); font-size: .85rem; }
.news time b { font-size: 1.6rem; color: var(--teal); }
.news h3 { font-size: 1.1rem; font-weight: 700; }
.news a { color: var(--muted); font-size: .9rem; }
.news a:hover { color: var(--teal-hi); }

/* Footer */
.footer { background: var(--deep); color: #c9d1d4; margin-top: 40px; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; font-size: .9rem; }
.footer .logo { color: #fff; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-in { column-gap: 20px; }
  .nav {
    position: fixed; inset: 108px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); padding: 8px 20px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav.open { transform: none; }
  .menu-toggle { display: grid; }
  .product-sheet { grid-template-columns: 1fr; }
  .sheet-body { padding: 0 28px 28px; }
}

@media (max-width: 680px) {
  .topbar { display: none; }
  .header-in { height: 68px; }
  .nav { inset-block-start: 68px; }
  .header-actions .btn { display: none; }
  .logo svg { width: 120px; }
  .hero-in { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-block: 24px 40px; row-gap: 8px; }
  .hero-text { padding: 0; order: 1; }
  .hero-visual { order: 0; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .hero-lead { margin-inline: auto; font-size: 1.02rem; }
  .actions { align-items: center; }
  .product { width: 74%; }
  .section { padding-block: 40px; }
  .statement, .statement.contact { padding: 24px 20px; }
  .num-grid, .two-col { grid-template-columns: 1fr; }
  .statement.contact { flex-direction: column; text-align: center; }
  .contact-links { justify-content: center; }
  .news li { gap: 16px; }
  .footer-in { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .circuit path, .circuit rect { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
