:root {
  --bg: #0b0f14;
  --card: #111827;
  --card-soft: #162033;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --accent: #d63a3a;
  --accent-hover: #b83232;
  --accent-soft: #e85a5a;
  --accent-bg: #241013;
  --accent-2: #e85a5a;
  --border: rgba(249, 250, 251, 0.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(214, 58, 58, 0.55) rgba(36, 16, 19, 0.86);
  scrollbar-width: thin;
}

::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(36, 16, 19, 0.86);
}

::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  border: 2px solid rgba(36, 16, 19, 0.86);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-soft);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

button {
  appearance: none;
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.navbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  min-height: 76px;
  padding: 0 24px;
}

.logo {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
}

.logo::after {
  color: var(--accent);
  content: ".";
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  height: 42px;
  width: 42px;
}

.menu-toggle span {
  background: var(--text);
  border-radius: 999px;
  display: block;
  height: 2px;
  margin: 7px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 24px;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.section {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 58px 24px;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: clamp(34px, 4.5vw, 58px);
  grid-template-columns: minmax(0, 0.98fr) minmax(400px, 1.02fr);
  min-height: auto;
  padding-bottom: 62px;
  padding-top: 78px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 600px;
  min-width: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.05rem);
  margin-bottom: 20px;
}

.hero-title {
  font-family: "Rajdhani", Bahnschrift, "Arial Narrow", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: clamp(3rem, 4.6vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.92;
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.hero-text,
.section-heading,
.about p,
.content-card p {
  color: var(--text-muted);
}

.hero-text {
  font-size: 1.08rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
}

.btn,
.small-btn {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn {
  min-height: 50px;
  padding: 0 24px;
}

.btn:hover,
.small-btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border: 1px solid rgba(214, 58, 58, 0.42);
  box-shadow: 0 14px 34px rgba(184, 50, 50, 0.22);
  color: var(--text);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #9f2929);
  border-color: rgba(232, 90, 90, 0.48);
}

.hero-actions .btn-primary {
  font-size: 0.95rem;
  min-height: 46px;
  padding: 0 26px;
}

.btn-secondary {
  background-color: #241013;
  border: 1px solid rgba(214, 58, 58, 0.72);
  box-shadow: 0 0 0 1px rgba(214, 58, 58, 0.14), 0 12px 30px rgba(0, 0, 0, 0.22);
  color: var(--text);
}

.btn-secondary:hover {
  background-color: rgba(214, 58, 58, 0.28);
  border-color: rgba(232, 90, 90, 0.82);
}

.hero-image {
  aspect-ratio: 16 / 9.8;
  background: var(--card);
  border: 1px solid rgba(214, 58, 58, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34), 0 0 42px rgba(214, 58, 58, 0.09);
  overflow: hidden;
  position: relative;
}

.hero-image::after {
  background: linear-gradient(180deg, transparent 55%, rgba(11, 15, 20, 0.42));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-badge {
  align-items: center;
  background: rgba(36, 16, 19, 0.66);
  border: 1px solid rgba(214, 58, 58, 0.24);
  border-radius: 999px;
  color: var(--accent-soft);
  display: inline-flex;
  font-family: "Rajdhani", Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  margin-bottom: 18px;
  padding: 8px 12px;
}

.section-heading {
  margin-bottom: 24px;
  max-width: 720px;
}

#setup .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.content-grid {
  display: grid;
  gap: 20px;
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1240px;
}

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-card {
  padding: 34px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.content-card {
  align-items: stretch;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 230px;
  min-height: 310px;
}

.content-card-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.content-card-copy .small-btn {
  align-self: flex-start;
  margin-top: auto;
}

.content-card:hover {
  border-color: rgba(214, 58, 58, 0.25);
  transform: translateY(-4px);
}

.about {
  max-width: var(--max-width);
}

.about-card {
  background:
    linear-gradient(135deg, rgba(214, 58, 58, 0.07), transparent 34%),
    var(--card);
  border: 1px solid rgba(214, 58, 58, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.about-card h2 {
  margin-bottom: 14px;
}

.about-card p {
  font-size: 1.08rem;
  max-width: 760px;
}

.about-card p + p {
  margin-top: 14px;
}

.content-card-image {
  align-self: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(214, 58, 58, 0.09), rgba(232, 90, 90, 0.11));
  border: 1px solid var(--border);
  border-radius: 14px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.small-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border: 1px solid rgba(214, 58, 58, 0.42);
  box-shadow: 0 14px 34px rgba(184, 50, 50, 0.22);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 22px;
  min-height: 46px;
  padding: 0 26px;
}

.small-btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), #9f2929);
  border-color: rgba(232, 90, 90, 0.48);
}

.modal-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 24px;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background:
    linear-gradient(135deg, rgba(214, 58, 58, 0.06), transparent 32%),
    linear-gradient(225deg, rgba(36, 16, 19, 0.72), transparent 36%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
  display: none;
  max-height: min(82vh, 760px);
  max-width: 920px;
  overflow-y: auto;
  padding: 28px;
  scrollbar-color: rgba(214, 58, 58, 0.55) rgba(36, 16, 19, 0.86);
  scrollbar-width: thin;
  width: 100%;
}

.modal::-webkit-scrollbar {
  width: 10px;
}

.modal::-webkit-scrollbar-track {
  background: rgba(36, 16, 19, 0.86);
  border-radius: 999px;
}

.modal::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  border: 2px solid rgba(36, 16, 19, 0.86);
  border-radius: 999px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: var(--accent-soft);
}

.modal.is-active {
  display: block;
}

.modal-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header h2 {
  margin-bottom: 0;
}

.modal-close {
  align-items: center;
  background: rgba(249, 250, 251, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.55rem;
  height: 42px;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  width: 42px;
}

.modal-close:hover {
  background: rgba(214, 58, 58, 0.11);
  color: var(--accent);
  transform: rotate(6deg);
}

.modal-intro {
  color: var(--text-muted);
  margin-bottom: 22px;
  max-width: 720px;
}

.social-modal {
  max-width: 520px;
}

.social-links {
  display: grid;
  gap: 14px;
}

.social-link {
  align-items: center;
  background: rgba(36, 16, 19, 0.68);
  border: 1px solid rgba(214, 58, 58, 0.25);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  padding: 18px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  background: rgba(214, 58, 58, 0.1);
  border-color: rgba(214, 58, 58, 0.4);
  transform: translateY(-2px);
}

.social-link span {
  color: var(--text);
  font-weight: 900;
}

.social-link strong {
  color: var(--accent);
  font-size: 0.92rem;
}

.parts-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.part-card,
.topic-list span {
  background: rgba(22, 32, 51, 0.82);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.part-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.part-card span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.part-card strong {
  color: var(--text);
  line-height: 1.35;
}

.topic-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.topic-list span {
  color: var(--text);
  font-weight: 800;
  padding: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .hero-content {
    max-width: 680px;
  }

  .hero-title {
    font-size: clamp(3rem, 10vw, 4.8rem);
  }

  .hero-image {
    aspect-ratio: 16 / 10;
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-card {
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 170px;
    min-height: 270px;
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .navbar {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    background: rgba(11, 15, 20, 0.98);
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    gap: 18px;
    left: 0;
    padding: 22px 24px 26px;
    position: absolute;
    top: 68px;
    width: 100%;
  }

  .nav-links.is-open {
    display: flex;
  }

  .section {
    padding: 46px 20px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-title {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 30px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn-primary,
  .small-btn {
    min-height: 48px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    grid-template-columns: minmax(0, 1fr) 150px;
    min-height: 240px;
  }

  .content-card-copy .small-btn {
    margin-top: 28px;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 14px;
  }

  .modal {
    max-height: 86vh;
    padding: 22px;
  }

  .modal-header {
    gap: 12px;
  }

  .parts-grid,
  .topic-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.3rem, 12vw, 3.15rem);
  }

  .hero-title span {
    white-space: normal;
  }

  .content-card {
    grid-template-columns: 1fr;
  }

  .content-card-copy .small-btn {
    margin-top: 30px;
  }

  .content-card-image {
    aspect-ratio: 16 / 10;
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
