/* ---------- Why Teconize (چرا تکونایز) ---------- */

.why {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-y);
}

.why__head {
  text-align: start;
  margin-bottom: 40px;
  max-width: 640px;
}

.why__title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 12px;
}

.why__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.9;
  margin: 0;
}

.why__panel {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 20px;
  align-items: stretch;
}

/* ----- Brand card ----- */

.brand-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  overflow: hidden;
}

.brand-card__visual {
  position: relative;
  /* At least the board's own height; grows to match the values column. */
  flex: 1 0 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: #0e1414;
  background-image:
    linear-gradient(rgba(51, 195, 236, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 195, 236, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center;
}

/* Fixed height + "slice" keeps the board at 1:1 scale, so the logo never
   grows with the card; extra height just shows more of the grid. */
.brand-card__circuit {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 220px;
  transform: translateY(-50%);
  color: var(--accent);
}

.brand-card__traces path {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.28;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* pathLength="100" on each pulse path lets one dash pattern travel every
   trace in the same time, whatever its real length. */
.brand-card__pulses path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 110;
  stroke-dashoffset: 10;
  animation: brand-pulse 4.2s linear infinite;
}
.brand-card__pulses path:nth-child(2) { animation-delay: -2.8s; }
.brand-card__pulses path:nth-child(3) { animation-delay: -1.4s; }
.brand-card__pulses path:nth-child(4) { animation-delay: -0.7s; }
.brand-card__pulses path:nth-child(5) { animation-delay: -3.5s; }
.brand-card__pulses path:nth-child(6) { animation-delay: -2.1s; }

.brand-card__vias circle {
  fill: currentColor;
  fill-opacity: 0.55;
}

.brand-card__pads circle {
  fill: #0e1414;
  stroke: currentColor;
  stroke-width: 1.5;
}

@keyframes brand-pulse {
  to { stroke-dashoffset: -100; }
}

.brand-card__body {
  padding: 24px;
  text-align: center;
}

.brand-card__wordmark {
  display: block;
  font-family: var(--font-en);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  /* Balances the tracking after the last letter so the word sits centred.
     The element is always dir="ltr", so "start" is the left in both
     languages. */
  text-indent: 0.32em;
  color: var(--text);
  margin-bottom: 12px;
}

.brand-card__statement {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.9;
  max-width: 44ch;
  margin: 0 auto 20px;
}

.brand-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ----- Values ----- */

/* One panel with hairlines between the four values (the 1px gap over a
   hairline-coloured ground), not four separate cards. Nothing here is
   clickable, so nothing lifts on hover. */
.why__values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  overflow: hidden;
}

.value-card {
  background: var(--bg-soft);
  padding: 28px;
}

/* Icons sit in grey like the rest of the chrome; cyan stays for actions. */
.value-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-thumb);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.value-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.value-card__desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.9;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .brand-card__pulses { display: none; }
}

@media (max-width: 960px) {
  .why__panel { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .why__values { grid-template-columns: 1fr; }
  .brand-card__body,
  .value-card { padding: 20px; }
}
