/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== VARIABLES ===== */
:root {
  --color-primary: #ffff0d;
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-card: #1a1a1a;
  --color-text: #e0e0e0;
  --color-text-muted: #888888;
  --color-chrome: #c0c0c0;
  --color-hot-pink: #ff1493;
  --color-construction: #ffc107;
  --color-white: #ffffff;
  --font-display: 'Holtwood One SC', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --nav-height: 72px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--color-primary);
  margin-bottom: 3rem;
  border-left: 5px solid var(--color-primary);
  padding-left: 1.25rem;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--color-primary);
  color: #000;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 255, 13, 0.35);
}

.btn--large {
  font-size: 1.1rem;
  padding: 1.2rem 3rem;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--color-primary);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo {
  height: 44px;
  width: 44px;
  background: var(--color-primary);
  -webkit-mask-image: url('../RHINO.svg');
  mask-image: url('../RHINO.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text);
  transition: color 0.2s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}

.nav__links a:hover {
  color: var(--color-primary);
}

.nav__links a:hover::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 13, 0.015) 40px,
      rgba(255, 255, 13, 0.015) 41px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 13, 0.015) 40px,
      rgba(255, 255, 13, 0.015) 41px
    ),
    radial-gradient(ellipse at center, rgba(255, 255, 13, 0.04) 0%, transparent 70%);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__logo {
  width: clamp(200px, 30vw, 340px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 2rem;
  background: var(--color-primary);
  -webkit-mask-image: url('../RHINO.svg');
  mask-image: url('../RHINO.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== ABOUT ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__text p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.75;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.stat {
  background: var(--color-bg-card);
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--color-primary);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

/* ===== SPECS ===== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.spec-card {
  background: var(--color-bg-card);
  padding: 2rem;
  border-left: 3px solid var(--color-primary);
  transition: transform 0.2s, box-shadow 0.2s;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.spec-card__icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.spec-card__title {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.spec-card__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.spec-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ===== COLORS ===== */
.colors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.color-card {
  background: var(--color-bg-card);
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
  font-family: inherit;
  color: inherit;
  overflow: hidden;
}

.color-card:hover {
  transform: translateY(-4px);
}

.color-card.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 25px rgba(255, 255, 13, 0.15);
}

.color-card__swatch {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.color-card__swatch--hotpink {
  background: linear-gradient(135deg, #ff1493 50%, #0a0a0a 50%);
}

.color-card__swatch--construction {
  background: linear-gradient(135deg, #ffc107 50%, #0a0a0a 50%);
}

.color-card__swatch--chrome {
  background: linear-gradient(135deg, #1a1a1a 50%, #c0c0c0 50%);
}

.color-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.color-card:hover .color-card__shine {
  transform: translateX(100%);
}

.color-card__name {
  font-size: 1rem;
  color: var(--color-white);
  padding: 1.25rem 1.5rem 0.5rem;
}

.color-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0 1.5rem 1.5rem;
  line-height: 1.5;
}

/* ===== PRICING ===== */
.pricing {
  display: flex;
  justify-content: center;
}

.pricing__card {
  background: var(--color-bg-card);
  border: 2px solid var(--color-primary);
  padding: 3.5rem 4rem;
  text-align: center;
  max-width: 520px;
  width: 100%;
  position: relative;
}

.pricing__card::before,
.pricing__card::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--color-primary);
  border-style: solid;
}

.pricing__card::before {
  top: -6px;
  left: -6px;
  border-width: 2px 0 0 2px;
}

.pricing__card::after {
  bottom: -6px;
  right: -6px;
  border-width: 0 2px 2px 0;
}

.pricing__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.pricing__price {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.pricing__features {
  text-align: left;
  margin-bottom: 2.5rem;
}

.pricing__features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
}

.pricing__features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.pricing__note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ===== FOOTER ===== */
.footer {
  background: #050505;
  border-top: 2px solid var(--color-primary);
  padding: 3rem 0 2rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo {
  height: 36px;
  width: 36px;
  background: var(--color-white);
  -webkit-mask-image: url('../RHINO.svg');
  mask-image: url('../RHINO.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-white);
}

.footer__nav {
  display: flex;
  gap: 2rem;
}

.footer__nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
}

.footer__location,
.footer__copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 calc(33% - 1rem);
    min-width: 180px;
  }

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

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

  .colors-grid .color-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__links a {
    font-size: 1.1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section__heading {
    margin-bottom: 2rem;
  }

  .about__stats {
    flex-direction: column;
  }

  .stat {
    flex: 1 1 100%;
  }

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

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

  .colors-grid .color-card:last-child {
    max-width: 100%;
  }

  .pricing__card {
    padding: 2.5rem 2rem;
  }

  .footer__top {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
