/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1c1c1c;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --text2: #999;
  --accent: #e63946;
  --accent2: #ff6b6b;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(230,57,70,.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(230,57,70,.08) 0%, transparent 50%);
}
.hero-content { position: relative; max-width: 640px; }
.hero-tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.15rem; color: var(--text2); max-width: 480px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  font-size: 0.95rem; font-weight: 600;
  border-radius: 50px;
  border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 24px rgba(230,57,70,.35);
}
.btn-primary:hover { background: var(--accent2); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--text2); }

/* ── Sections ── */
.section { padding: 100px 0; }
.section-dark { background: var(--surface); }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem; font-weight: 700; letter-spacing: -1px;
  text-align: center;
  margin-bottom: 8px;
}
.section-sub { text-align: center; color: var(--text2); margin-bottom: 56px; font-size: 1.05rem; }

/* ── Grid ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Category Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform .25s, border-color .25s, opacity .5s, transform .5s;
  opacity: 0; transform: translateY(24px);
}
.card.visible { opacity: 1; transform: translateY(0); }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--text2); margin-bottom: 16px; }
.card-link { font-size: 0.85rem; font-weight: 600; color: var(--accent); transition: color .2s; }
.card-link:hover { color: var(--accent2); }

/* ── Products ── */
.product {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s, opacity .5s, transform .5s;
  opacity: 0; transform: translateY(24px);
}
.product.visible { opacity: 1; transform: translateY(0); }
.product:hover { transform: translateY(-4px); border-color: var(--accent); }
.product-img {
  height: 200px;
  background: linear-gradient(135deg,
    hsl(var(--hue), 40%, 18%) 0%,
    hsl(var(--hue), 30%, 10%) 100%
  );
  display: flex; align-items: center; justify-content: center;
}
.product-info { padding: 20px; }
.product-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(230,57,70,.15); color: var(--accent);
  margin-bottom: 8px;
}
.product-badge.new { background: rgba(0,180,120,.15); color: #00b478; }
.product h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.product-desc { font-size: 0.82rem; color: var(--text2); margin-bottom: 12px; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); }

/* ── Values ── */
.value {
  text-align: center; padding: 24px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .5s;
}
.value.visible { opacity: 1; transform: translateY(0); }
.value-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 700; color: var(--accent);
  opacity: .3; margin-bottom: 8px;
}
.value h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.value p { font-size: 0.9rem; color: var(--text2); }

/* ── Staff ── */
.staff-grid { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.staff-card {
  text-align: center;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .5s;
}
.staff-card.visible { opacity: 1; transform: translateY(0); }
.staff-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #b71c1c);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem; font-weight: 700; color: #fff;
  margin: 0 auto 12px;
  box-shadow: 0 4px 20px rgba(230,57,70,.3);
}
.staff-card h4 { font-size: 1rem; font-weight: 600; }

/* ── R3 Detailers ── */
.r3-header { text-align: center; margin-bottom: 16px; }
.r3-tagline {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 4px;
}
.r3-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.r3-location p { color: var(--text2); font-size: 0.95rem; }
.r3-location a { color: var(--accent); }
.r3-location strong { color: var(--text); }

/* ── CTA ── */
.section-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #b71c1c 100%);
  text-align: center;
}
.cta-inner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem; font-weight: 700; letter-spacing: -1px;
  margin-bottom: 12px;
}
.cta-inner p { color: rgba(255,255,255,.8); margin-bottom: 32px; font-size: 1.05rem; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-form input {
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  font-size: 0.95rem;
  width: 300px;
  background: rgba(255,255,255,.15);
  color: #fff;
  outline: none;
}
.cta-form input::placeholder { color: rgba(255,255,255,.5); }
.cta-form input:focus { background: rgba(255,255,255,.25); }
.cta-form .btn-primary {
  background: #fff; color: var(--accent);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.cta-form .btn-primary:hover { background: #f0f0f0; }
.cta-success { width: 100%; margin-top: 12px; font-size: 0.9rem; color: rgba(255,255,255,.9); }

/* ── Contact ── */
.contact-grid { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.contact-item {
  text-align: center;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .5s;
}
.contact-item.visible { opacity: 1; transform: translateY(0); }
.contact-item h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 8px; }
.contact-item p { color: var(--text2); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-inner p { font-size: 0.85rem; color: var(--text2); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text2); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10,10,10,.95); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .hero h1 { font-size: 2.8rem; }
  .section-title { font-size: 2rem; }
  .contact-grid { gap: 32px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
