/* RIGX MOD - Tesla/SpaceX Inspired Design */

:root {
  --rm-black: #050505;
  --rm-dark: #0a0a0a;
  --rm-gray: #141414;
  --rm-light: #e4e4e7;
  --rm-white: #ffffff;
  --rm-blue: #2563eb;
  --rm-blue-hover: #3b82f6;
  --rm-blue-dim: rgba(37, 99, 235, 0.15);
  --rm-border: rgba(255, 255, 255, 0.06);
  --rm-text-muted: #71717a;
  --rm-text-secondary: #a1a1aa;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--rm-black);
  color: var(--rm-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color 0.25s, opacity 0.25s; }
a:hover { color: var(--rm-white); }

::selection {
  background: var(--rm-blue);
  color: var(--rm-white);
}

/* ========== NAVIGATION ========== */
.nav-fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rm-border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 32px;
  width: auto;
  opacity: 0.95;
  transition: opacity 0.25s;
}

.nav-logo:hover { opacity: 1; }

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s;
}

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

.nav-links a.nav-active,
.nav-links a.active {
  color: var(--rm-white);
}

.nav-links a.nav-cta {
  color: var(--rm-blue);
  font-weight: 600;
}

.nav-links a.nav-cta:hover {
  color: var(--rm-blue-hover);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rm-white);
  transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--rm-black);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/hero-tank-front.jpg') center center / cover no-repeat;
  opacity: 0.6;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.3) 0%,
    rgba(5, 5, 5, 0.1) 40%,
    rgba(5, 5, 5, 0.4) 70%,
    rgba(5, 5, 5, 0.95) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 48px;
}

.hero-content h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--rm-white);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-content .hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 48px;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--rm-blue);
  color: var(--rm-white);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary:hover {
  background: var(--rm-blue-hover);
  color: var(--rm-white);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  color: var(--rm-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--rm-white);
  transform: translateY(-1px);
}

/* Legacy button classes */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--rm-blue);
  color: var(--rm-white);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.hero-btn:hover {
  background: var(--rm-blue-hover);
  color: var(--rm-white);
  transform: translateY(-1px);
}

.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  color: var(--rm-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s;
  margin-left: 0;
}

.hero-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--rm-white);
  transform: translateY(-1px);
}

/* ========== SECTIONS ========== */
.section-header {
  text-align: center;
  padding: 120px 48px 48px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--rm-white);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--rm-text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.product-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 1px solid var(--rm-border);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-image {
  width: 100%;
  height: 280px;
  background: var(--rm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image-placeholder {
  font-size: 56px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
  letter-spacing: 4px;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--rm-blue);
  color: var(--rm-white);
}

.product-info {
  padding: 24px;
}

.product-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rm-blue);
  margin-bottom: 10px;
}

.product-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--rm-white);
  line-height: 1.4;
  margin-bottom: 16px;
  min-height: 42px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--rm-white);
}

.product-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--rm-text-muted);
}

.product-stock {
  font-size: 11px;
  font-weight: 500;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== WHY RIGX MOD - FEATURES ========== */
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.feature-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--rm-blue-dim);
  color: var(--rm-blue);
  font-size: 32px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--rm-white);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 15px;
  color: var(--rm-text-secondary);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: var(--rm-dark);
  border-top: 1px solid var(--rm-border);
  border-bottom: 1px solid var(--rm-border);
  padding: 120px 48px;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--rm-white);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 16px;
  color: var(--rm-text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--rm-black);
  border-top: 1px solid var(--rm-border);
  padding: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 0;
}

/* --- Top: Brand + Social Icons --- */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rm-border);
}

.footer-brand {
  flex: 1;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 16px;
  opacity: 0.75;
}

.footer-brand p {
  font-size: 13px;
  color: var(--rm-text-muted);
  line-height: 1.7;
  max-width: 420px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--rm-text-muted);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(37, 99, 235, 0.15);
  color: var(--rm-blue);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

/* --- Navigation --- */
.footer-nav {
  padding: 32px 0;
  border-bottom: 1px solid var(--rm-border);
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--rm-text-secondary);
  padding: 4px 0;
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--rm-white);
}

.footer-nav .nav-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--rm-border);
  margin: 0 20px;
  flex-shrink: 0;
}

/* --- Payment Methods --- */
.footer-payments {
  padding: 32px 0;
  border-bottom: 1px solid var(--rm-border);
}

.footer-payments-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rm-text-muted);
  margin-bottom: 20px;
}

.footer-payments-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-payment-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-payment-item svg {
  width: 32px;
  height: auto;
  flex-shrink: 0;
}

.footer-payment-item .payment-label {
  font-size: 13px;
  color: var(--rm-text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.footer-payment-item .payment-visa {
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  color: #1a1f71;
  letter-spacing: 0.5px;
}

.footer-payment-item .payment-mastercard {
  font-size: 13px;
  font-weight: 600;
  color: var(--rm-text-secondary);
  letter-spacing: 0.2px;
}

.footer-payment-item .payment-wire {
  font-size: 13px;
  font-weight: 500;
  color: var(--rm-text-secondary);
}

.footer-payment-item .payment-lianlian {
  font-size: 13px;
  font-weight: 500;
  color: var(--rm-text-secondary);
}

.footer-payments-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--rm-text-muted);
  opacity: 0.7;
  line-height: 1.6;
}

/* --- Legal Links --- */
.footer-legal {
  padding: 24px 0;
  border-bottom: 1px solid var(--rm-border);
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 12px;
  color: var(--rm-text-muted);
  transition: color 0.25s;
}

.footer-legal a:hover {
  color: var(--rm-text-secondary);
}

.footer-legal .legal-sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--rm-border);
  margin: 0 16px;
  flex-shrink: 0;
}

/* --- Bottom --- */
.footer-bottom {
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-bottom span {
  font-size: 12px;
  color: var(--rm-text-muted);
  opacity: 0.6;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
  transition: transform 0.25s, box-shadow 0.25s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.4);
}

/* ========== PAGE HEADER (inner pages) ========== */
.page-header {
  padding: 160px 48px 80px;
  text-align: center;
  background: var(--rm-dark);
  border-bottom: 1px solid var(--rm-border);
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--rm-white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.page-header p {
  font-size: 16px;
  color: var(--rm-text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== CONTENT PAGES ========== */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 48px 120px;
}

.content-page h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--rm-white);
  margin: 56px 0 20px;
  letter-spacing: -0.3px;
}

.content-page h2:first-child {
  margin-top: 0;
}

.content-page h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--rm-white);
  margin: 36px 0 14px;
}

.content-page p {
  font-size: 16px;
  color: var(--rm-text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.content-page ul {
  margin: 20px 0;
  padding-left: 28px;
}

.content-page li {
  font-size: 16px;
  color: var(--rm-text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}

.content-page strong {
  color: var(--rm-white);
}

/* ========== PRODUCT DETAIL ========== */
.product-detail-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 140px 48px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.product-detail-image {
  background: var(--rm-gray);
  border: 1px solid var(--rm-border);
  border-radius: 0;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image .placeholder {
  font-size: 80px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  letter-spacing: 6px;
}

.product-detail-info h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--rm-white);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.product-detail-info .sku {
  font-size: 13px;
  color: var(--rm-text-muted);
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.product-detail-info .price {
  font-size: 40px;
  font-weight: 700;
  color: var(--rm-blue);
  margin-bottom: 40px;
}

.product-detail-info .spec-row {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid var(--rm-border);
}

.product-detail-info .spec-label {
  width: 160px;
  font-size: 13px;
  color: var(--rm-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-detail-info .spec-value {
  font-size: 14px;
  color: var(--rm-light);
}

/* ========== QUOTE FORM ========== */
.quote-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 48px 120px;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--rm-text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--rm-dark);
  border: 1px solid var(--rm-border);
  border-radius: 2px;
  color: var(--rm-light);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rm-blue);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--rm-blue);
  color: var(--rm-white);
  border: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
}

.submit-btn:hover {
  background: var(--rm-blue-hover);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 32px; }
  .nav-links { gap: 28px; }

  .hero-content { padding: 0 32px; }
  .hero-content h1 { letter-spacing: -1px; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 32px 100px;
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 32px 100px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    padding: 120px 32px 80px;
    gap: 48px;
  }

  .section-header { padding: 100px 32px 40px; }
  .cta-section { padding: 100px 32px; }
  .footer-container { padding: 64px 32px 0; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 0; }
  .footer-nav .nav-sep { margin: 0 14px; }
  .page-header { padding: 140px 32px 64px; }
  .content-page { padding: 48px 32px 100px; }
  .quote-form { padding: 48px 32px 100px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px;
    gap: 24px;
    border-bottom: 1px solid var(--rm-border);
  }
  .nav-links.open { display: flex; }

  .hero { min-height: 600px; }
  .hero-content { padding: 0 24px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a { width: 100%; justify-content: center; }

  .products-grid {
    grid-template-columns: 1fr;
    padding: 0 24px 80px;
  }

  .footer-container { padding: 48px 24px 0; }
  .footer-top { flex-direction: column; gap: 24px; padding-bottom: 32px; }
  .footer-nav { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-nav .nav-sep { display: none; }
  .footer-payments-row { gap: 20px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-legal .legal-sep { display: none; }
  .footer-bottom { text-align: center; }

  .page-header { padding: 120px 24px 48px; }
  .content-page { padding: 32px 24px 80px; }
  .quote-form { padding: 32px 24px 80px; }
}

@media (max-width: 480px) {
  .hero-content h1 { letter-spacing: -0.5px; }
  .btn-primary, .btn-outline, .hero-btn, .hero-btn-outline {
    padding: 14px 28px;
    font-size: 13px;
  }
  .product-image { height: 220px; }
}
