:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #edf2f5;
  --text: #11171c;
  --muted: #69747c;
  --line: rgba(17, 23, 28, .10);
  --accent: #0e638b;
  --accent-2: #1a9bd0;
  --hot: #f36b21;
  --shadow: 0 24px 70px rgba(16, 30, 40, .12);
  --radius: 28px;
}

[data-theme="dark"] {
  --bg: #0b0d0f;
  --surface: #111518;
  --surface-2: #171c20;
  --text: #f3f5f5;
  --muted: #99a3a9;
  --line: rgba(255,255,255,.09);
  --accent: #2d98c7;
  --accent-2: #65c8ef;
  --hot: #ff7a2d;
  --shadow: 0 28px 90px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  transition: background .55s ease, color .55s ease;
}
body, a, button, .site-header, .product-card, .contact-card, .identity-box,
.spec-table-wrap { transition: background .55s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: auto; }
.section { position: relative; padding: 120px 0; }
.page-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; width: 280px; height: 280px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(243,107,33,.10), transparent 68%);
  transform: translate(-50%,-50%); z-index: 0; opacity: .55;
}
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .03em; }
.brand img { width: 39px; height: 39px; object-fit: contain; }
.brand span { font-size: 18px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-right: auto; margin-left: auto; }
.desktop-nav a { font-size: 14px; color: var(--muted); position: relative; padding: 27px 0; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; left: 0; bottom: 17px; height: 2px; background: var(--hot); transform: scaleX(0); transition: transform .3s; transform-origin: center; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--text); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.theme-toggle, .menu-toggle {
  width: 42px; height: 42px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .sun, .theme-toggle .moon { position: absolute; transition: .4s; font-size: 17px; }
.theme-toggle .sun { transform: translateY(-30px); }
[data-theme="dark"] .theme-toggle .sun { transform: translateY(0); }
[data-theme="dark"] .theme-toggle .moon { transform: translateY(50px); }
.menu-toggle { display: none; border-radius: 12px; }
.menu-toggle span { width: 17px; height: 1.5px; background: currentColor; display: block; margin: 2px 0; }
.mobile-menu { display: none; padding: 12px 20px 20px; border-top: 1px solid var(--line); }
.mobile-menu a { display: block; padding: 12px 0; color: var(--muted); }

.hero {
  min-height: 100svh; padding-top: 160px; overflow: hidden;
  background:
    radial-gradient(circle at 72% 35%, rgba(14,99,139,.17), transparent 30%),
    radial-gradient(circle at 85% 70%, rgba(243,107,33,.12), transparent 26%),
    var(--bg);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.hero-inner { min-height: calc(100svh - 160px); display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 60px; position: relative; z-index: 2; }
.hero-copy { max-width: 590px; }
.eyebrow, .section-kicker { font-size: 12px; color: var(--hot); letter-spacing: .10em; font-weight: 700; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow span { width: 7px; height: 7px; background: var(--hot); border-radius: 50%; box-shadow: 0 0 18px var(--hot); }
.hero h1 { font-size: clamp(52px, 6vw, 88px); line-height: 1.08; margin: 18px 0 25px; letter-spacing: -.055em; font-weight: 400; }
.hero h1 strong { font-weight: 800; background: linear-gradient(90deg, var(--text), var(--accent)); -webkit-background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 530px; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; margin: 32px 0 40px; flex-wrap: wrap; }
.btn { min-height: 50px; padding: 0 22px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; border: 1px solid var(--line); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--text); }
.hero-meta { display: flex; gap: 34px; }
.hero-meta div { display: grid; gap: 0; }
.hero-meta strong { font-size: 18px; }
.hero-meta span { color: var(--muted); font-size: 11px; }
.hero-visual { position: relative; min-height: 620px; display: grid; place-items: center; }
.hero-image-frame { position: relative; width: min(100%, 610px); height: 600px; display: grid; place-items: center; }
.hero-image-frame::before {
  content: ""; position: absolute; width: 480px; height: 480px; border: 1px solid var(--line); border-radius: 50%;
}
.hero-image-frame::after {
  content: ""; position: absolute; width: 350px; height: 350px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 50%;
}
.hero-image-frame img {
  position: relative; z-index: 2; width: 80%; height: 90%; object-fit: contain;
  filter: drop-shadow(0 35px 35px rgba(0,0,0,.32));
}
.image-glow { position: absolute; width: 52%; height: 45%; background: var(--accent); filter: blur(100px); opacity: .18; border-radius: 50%; }
.hero-badge {
  position: absolute; z-index: 4; left: 4%; bottom: 10%; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(15px);
  border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow);
}
.hero-badge img { width: 42px; height: 42px; object-fit: contain; filter: none; }
.hero-badge span { font-size: 10px; letter-spacing: .12em; color: var(--muted); direction: ltr; }
.floating-chip { position: absolute; z-index: 5; padding: 10px 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(14px); border-radius: 12px; font-size: 9px; color: var(--muted); letter-spacing: .08em; line-height: 1.5; }
.chip-a { right: 0; top: 15%; }
.chip-b { right: 8%; bottom: 23%; }
.chip-dot { display: inline-block; width: 6px; height: 6px; background: var(--hot); border-radius: 50%; margin-left: 6px; box-shadow: 0 0 12px var(--hot); }
.scroll-cue { position: absolute; bottom: 30px; right: 50%; transform: translateX(50%); color: var(--muted); display: grid; justify-items: center; gap: 9px; font-size: 10px; z-index: 3; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--hot), transparent); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.section-heading h2, .section-top h2, .identity-content h2, .contact-copy h2 {
  font-size: clamp(36px, 4vw, 58px); line-height: 1.25; letter-spacing: -.045em; margin: 14px 0 0; font-weight: 400;
}
h2 em { font-style: normal; font-weight: 800; }
.intro-copy { color: var(--muted); max-width: 550px; font-size: 16px; }
.intro-copy p + p { margin-top: 25px; }
.intro-copy strong { color: var(--text); }

.products { background: var(--surface-2); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 55px; }
.section-top > p { max-width: 300px; color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 15px 50px rgba(0,0,0,.04); }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-card.featured { border-color: color-mix(in srgb, var(--hot) 45%, var(--line)); }
.featured-label { position: absolute; top: 16px; right: 16px; z-index: 4; padding: 6px 10px; background: var(--hot); color: white; border-radius: 9px; font-size: 9px; }
.product-image { height: 410px; position: relative; overflow: hidden; background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface)); }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 30px 35px; position: relative; z-index: 2; transition: transform .65s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 25px 25px rgba(0,0,0,.22)); }
.product-card:hover .product-image img { transform: scale(1.05) translateY(-5px); }
.product-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.06)); }
.capacity-tag { position: absolute; left: 18px; top: 18px; z-index: 4; direction: ltr; font-size: 11px; color: var(--accent-2); font-weight: 700; }
.product-body { padding: 22px; }
.product-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.product-title span { color: var(--muted); font-size: 12px; }
.product-title strong { font-size: 25px; direction: ltr; }
.spec-row { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 0; font-size: 12px; }
.spec-row span { color: var(--muted); }
.spec-row b { direction: ltr; font-weight: 600; }

.identity { background: var(--bg); }
.identity-box {
  min-height: 610px; border: 1px solid var(--line); border-radius: 36px; background: var(--surface);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; box-shadow: var(--shadow);
}
.identity-content { padding: 80px; display: flex; flex-direction: column; justify-content: center; }
.identity-content p { color: var(--muted); max-width: 480px; margin-top: 30px; }
.identity-product { position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); min-height: 610px; }
.identity-product > img:not(.top-logo):not(.bottom-logo) { height: 82%; width: 88%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.28)); }
.identity-product .top-logo, .identity-product .bottom-logo { position: absolute; width: 62px; height: 62px; object-fit: contain; z-index: 3; }
.identity-product .top-logo { top: 10%; }
.identity-product .bottom-logo { bottom: 10%; width: 48px; height: 48px; }

.spec-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 20px; text-align: center; border-bottom: 1px solid var(--line); font-size: 13px; }
th { background: var(--surface-2); font-weight: 700; }
td:first-child, th:first-child { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:not(:first-child) { direction: ltr; }

.contact { padding-bottom: 100px; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 65px; border-radius: 34px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.contact-copy p { color: var(--muted); }
.contact-info { display: grid; align-content: center; gap: 15px; }
.contact-item { display: flex; align-items: center; gap: 17px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 75%, transparent); }
.contact-item:hover { transform: translateX(-5px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.contact-item .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-2); font-size: 22px; }
.contact-item small { display: block; color: var(--muted); font-size: 10px; }
.contact-item strong { display: block; font-size: 14px; margin-top: 2px; }

.site-footer { border-top: 1px solid var(--line); padding: 30px 0 22px; background: var(--surface); }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-top { padding-bottom: 22px; }
.footer-top p { margin: 0; color: var(--muted); font-size: 11px; }
.footer-top strong, .footer-bottom strong { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 10px; }
.back-top { color: var(--accent-2); font-size: 11px; }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .mobile-menu.open { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; padding-bottom: 60px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 500px; }
  .hero-image-frame { height: 520px; }
  .two-col, .identity-box, .contact-card { grid-template-columns: 1fr; }
  .two-col { gap: 45px; }
  .identity-content { padding: 55px 40px; }
  .identity-product { min-height: 520px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
  .contact-card { padding: 45px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 82px 0; }
  .nav-wrap { height: 68px; }
  .hero { padding-top: 110px; }
  .hero-inner { min-height: auto; }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 14px; }
  .hero-meta { gap: 18px; }
  .hero-meta strong { font-size: 15px; }
  .hero-visual { min-height: 390px; }
  .hero-image-frame { height: 400px; }
  .hero-image-frame::before { width: 310px; height: 310px; }
  .hero-image-frame::after { width: 235px; height: 235px; }
  .hero-badge { left: 0; bottom: 3%; }
  .floating-chip { display: none; }
  .section-top { display: block; }
  .section-top > p { margin-top: 18px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card:last-child { grid-column: auto; max-width: none; }
  .product-image { height: 390px; }
  .identity-content { padding: 45px 28px; }
  .identity-product { min-height: 420px; }
  .contact-card { padding: 32px 24px; }
  th, td { padding: 14px 8px; font-size: 10px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
