* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
}

a {
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
}

/* TOP BAR */
.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 0;
  font-size: 14px;
  position: relative;
  z-index: 20;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart {
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 6px 10px;
  border-radius: 999px;
}

/* NAVBAR */
.navbar {
  height: 60px; /* fixed height */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.logo-icon {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
}

.nav-links a {
  margin-left: 30px;
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
    linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.18));
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 260px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 25%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.9) 82%,
    #000 100%
  );
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 950px;
  padding: 70px 0 150px;
}

.subtext {
  font-size: 28px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.92);
}

h1 {
  font-size: 72px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -2px;
}

.shop-btn {
  display: inline-block;
  margin-top: 40px;
  background: #ff4b2b;
  color: #fff;
  text-decoration: none;
  padding: 18px 36px;
  font-size: 20px;
  border-radius: 40px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.shop-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* PLATFORM SECTION */
.category-section {
  position: relative;
  z-index: 5;
  background: #000;
  padding: 20px 0 110px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.category-header h2 {
  font-size: 56px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -1px;
  max-width: 900px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  color: #fff;
  cursor: default;
  min-height: 560px;
}

.category-card img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.38) 35%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
}

.category-card:hover img {
  transform: scale(1.04);
  opacity: 0.96;
}

.category-card h3 {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.5px;
}

.coming-soon-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* INFO SECTIONS */
.info-section {
  padding: 110px 0;
  background: #000;
}

.dark-section {
  background: #050505;
}

.section-heading {
  max-width: 950px;
  margin-bottom: 50px;
}

.section-tag {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.info-grid.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-grid.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-card,
.about-box,
.community-card {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
}

.info-card h3,
.about-box h3 {
  font-size: 28px;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.info-card p,
.about-box p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.large-card {
  min-height: 260px;
}

/* ABOUT */
.about-heading {
  max-width: 1100px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.about-layout-expanded {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 10px;
}

.about-box {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
}

.about-box-large {
  min-height: 100%;
}

.about-box h3 {
  font-size: 28px;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.about-box p {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}

.about-box p:last-child {
  margin-bottom: 0;
}

.about-social-row {
  margin-top: 24px;
}

.social-box {
  padding: 30px 32px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.social-links-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.social-links-icons a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.social-links-icons a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  opacity: 1;
}

.social-links-icons img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.social-links-icons span {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

/* COMMUNITY */
.community-section {
  padding: 110px 0;
  background: #000;
  color: #fff;
}

.community-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b8c4d6;
  margin-bottom: 14px;
}

.community-section h2 {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 950px;
}

.community-description {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 950px;
  margin-bottom: 50px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.community-card {
  background: linear-gradient(180deg, #0c0c0f 0%, #060606 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.community-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.community-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.community-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.community-image:hover {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.community-card h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
  margin: 0;
  letter-spacing: -0.3px;
}

/* MODAL */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.image-modal.active {
  display: flex;
}

.modal-image {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-weight: 300;
  transition: opacity 0.2s ease;
}

.close-modal:hover {
  opacity: 0.7;
}

/* EDUCATION SELECTOR SECTION */
.education-selector-section .section-heading {
  max-width: 1180px;
}

.platform-selector-wrap {
  margin-top: 20px;
}

.selector-divider {
  position: relative;
  text-align: center;
  margin: 32px 0 26px;
}

.selector-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%);
}

.selector-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 18px;
  background: #050505;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.selector-divider-small {
  margin-top: 36px;
  margin-bottom: 32px;
}

.model-selector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 10px;
}

.model-tab {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.model-tab:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.model-tab.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.chassis-panel {
  display: none;
  animation: fadeSlide 0.25s ease;
}

.chassis-panel.active {
  display: block;
}

.chassis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}

.chassis-card {
  display: block;
  text-decoration: none;
  color: #fff;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.chassis-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.chassis-image-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chassis-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.rear-img {
  opacity: 1;
}

.front-img {
  opacity: 0;
}

.chassis-card:hover .rear-img {
  opacity: 0;
  transform: scale(1.03);
}

.chassis-card:hover .front-img {
  opacity: 1;
  transform: scale(1.03);
}

.chassis-card-content {
  padding: 26px 26px 28px;
}

.chassis-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.chassis-card p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ABOUT RESPONSIVE */
@media (max-width: 1200px) {
  .about-layout,
  .about-layout-expanded {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE */
@media (max-width: 1400px) {
  h1 {
    font-size: 64px;
  }

  .category-card,
  .category-card img {
    min-height: 500px;
    height: 500px;
  }
}

@media (max-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid.three-col {
    grid-template-columns: 1fr;
  }

  .info-grid.two-col,
  .about-layout,
  .community-grid,
  .chassis-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 58px;
  }

  .category-header h2,
  .section-heading h2,
  .community-section h2 {
    font-size: 44px;
  }

  .community-description {
    font-size: 20px;
  }

  .community-image-box {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .navbar,
  .category-header,
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .nav-links a {
    margin-left: 0;
    margin-right: 0;
    display: inline-block;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-content {
    padding: 40px 0 120px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -1.2px;
  }

  .subtext {
    font-size: 22px;
  }

  .shop-btn {
    font-size: 18px;
    padding: 16px 28px;
  }

  .category-header h2,
  .section-heading h2,
  .community-section h2 {
    font-size: 36px;
  }

  .section-desc,
  .info-card p,
  .about-box p,
  .community-description,
  .chassis-card p {
    font-size: 17px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-card img {
    min-height: 420px;
    height: 420px;
  }

  .info-section,
  .community-section {
    padding: 80px 0;
  }

  .community-card {
    padding: 22px;
  }

  .community-image-box {
    height: 280px;
  }

  .community-card h3 {
    font-size: 22px;
  }

  .about-box h3 {
    font-size: 24px;
  }

  .about-box p {
    font-size: 17px;
    line-height: 1.7;
  }

  .social-box {
    padding: 24px;
  }

  .social-links-icons {
    gap: 12px;
  }

  .social-links-icons a {
    width: 100%;
    justify-content: flex-start;
  }

  .social-links-icons span {
    font-size: 16px;
  }

  .social-links-icons img {
    width: 18px;
    height: 18px;
  }

  .model-selector-row {
    justify-content: flex-start;
  }

  .model-tab {
    font-size: 16px;
    padding: 12px 20px;
  }

  .chassis-image-wrap {
    height: 220px;
  }

  .chassis-card h3 {
    font-size: 24px;
  }

  .coming-soon-badge {
    top: 16px;
    right: 16px;
    font-size: 12px;
    padding: 9px 14px;
  }
}

.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  transition: all 0.25s ease;
  filter: brightness(1.1);
}

.logo img:hover {
  transform: scale(1.08);
  filter: brightness(1.4);
}