:root {
  color-scheme: dark;
  --bg: #080b0f;
  --panel: #111820;
  --panel-strong: #17212b;
  --text: #eef4f7;
  --muted: #a7b2bc;
  --line: rgba(255, 255, 255, 0.13);
  --teal: #2ee8c8;
  --red: #ff4f63;
  --amber: #f7bc57;
  --steel: #80a8ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Kufi Arabic", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 15, 0.84);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.lang-toggle {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(46, 232, 200, 0.45);
  background: linear-gradient(135deg, rgba(46, 232, 200, 0.22), rgba(255, 79, 99, 0.18));
}

.nav-links {
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.lang-toggle,
.small-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  padding: 0 14px;
}

.small-button {
  min-height: 42px;
  color: #03110f;
  background: var(--teal);
  border-color: transparent;
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(270deg, rgba(8, 11, 15, 0.97) 0%, rgba(8, 11, 15, 0.82) 34%, rgba(8, 11, 15, 0.18) 78%),
    linear-gradient(180deg, rgba(8, 11, 15, 0.05) 0%, #080b0f 100%);
}

html[dir="ltr"] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.97) 0%, rgba(8, 11, 15, 0.82) 34%, rgba(8, 11, 15, 0.18) 78%),
    linear-gradient(180deg, rgba(8, 11, 15, 0.05) 0%, #080b0f 100%);
}

.hero-content {
  position: relative;
  width: min(780px, 92vw);
  padding: 96px clamp(18px, 4vw, 56px) 126px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.55rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 12ch;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: #d4dde3;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  background: var(--teal);
  color: #03110f;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.07);
}

.ticker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.ticker div {
  padding: 18px clamp(18px, 4vw, 42px);
  background: #0c1117;
}

.ticker strong,
.ticker span {
  display: block;
}

.ticker span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 74px clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.split-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.news-grid,
.build-grid,
.parts-grid {
  display: grid;
  gap: 16px;
}

.news-grid {
  grid-template-columns: repeat(4, 1fr);
}

.news-card,
.build-card,
.part-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.news-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.news-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(46, 232, 200, 0.14), rgba(255, 79, 99, 0.11)), var(--panel);
}

.card-meta {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
}

.news-card h3,
.build-card h3,
.part-card h3 {
  margin: 12px 0 10px;
  line-height: 1.12;
}

.news-card p,
.build-card p,
.part-card p,
.part-card li,
.build-card li {
  color: var(--muted);
}

.news-card a {
  margin-top: auto;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.status-line {
  min-height: 24px;
  margin: -12px 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-grid.compact .news-card {
  min-height: 230px;
}

.hardware-section {
  background: #0b1116;
}

.builder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: 18px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.segment {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.segment.active {
  border-color: rgba(46, 232, 200, 0.7);
  background: rgba(46, 232, 200, 0.16);
  color: #dffdf8;
}

.parts-grid {
  grid-template-columns: repeat(5, 1fr);
}

.part-card {
  padding: 18px;
}

.part-label {
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.part-card ul {
  margin: 12px 0 0;
  padding-inline-start: 18px;
}

.build-grid {
  grid-template-columns: repeat(3, 1fr);
}

.build-card {
  padding: 24px;
}

.build-card.strong {
  border-color: rgba(46, 232, 200, 0.45);
  background: linear-gradient(180deg, rgba(46, 232, 200, 0.12), rgba(255, 255, 255, 0.02)), var(--panel);
}

.build-card ul {
  margin: 16px 0 0;
  padding-inline-start: 18px;
}

.compatibility {
  background: #0d141b;
}

.checklist {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.checklist label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: #dce5ea;
}

.checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  flex: 0 0 auto;
  margin-top: 2px;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.source-list a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

html[dir="ltr"] body {
  font-family: Inter, "Noto Kufi Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 1050px) {
  .news-grid,
  .parts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-card.featured {
    grid-column: span 2;
  }

  .build-grid,
  .source-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .lang-toggle {
    width: 100%;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 11, 15, 0.8) 0%, rgba(8, 11, 15, 0.96) 58%, #080b0f 100%),
      linear-gradient(90deg, rgba(8, 11, 15, 0.82), rgba(8, 11, 15, 0.2));
  }

  .hero-content {
    align-self: end;
    padding-bottom: 86px;
  }

  h1 {
    max-width: 11ch;
  }

  .ticker,
  .news-grid,
  .parts-grid,
  .controls,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .split-heading {
    display: grid;
    align-items: start;
  }

  .small-button {
    width: 100%;
  }

  .news-card.featured {
    grid-column: span 1;
  }

  .site-footer {
    flex-direction: column;
  }
}
