/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overscroll-behavior-y: contain; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Palette (from brand logo) ---------- */
:root {
  --bg: #000000;
  --surface: #0c0c12;
  --surface-2: #14141d;
  --border: #232331;

  --grad-start: #b026e6;  /* magenta-purple */
  --grad-mid: #7c2af4;    /* purple */
  --grad-end: #3e17fd;    /* blue */
  --accent: #ffab1d;      /* headlight orange */
  --accent-2: #ffc861;

  --text: #ffffff;
  --text-muted: #b7b7c6;
  --text-faint: #7c7c8c;

  --brand-gradient: linear-gradient(90deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --shadow: 0 20px 60px -20px rgba(124, 42, 244, 0.35);
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #1a1200;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 171, 29, 0.18);
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #1a1200;
  box-shadow: 0 12px 30px -10px rgba(255, 171, 29, 0.55);
}
.btn--primary:hover { box-shadow: 0 16px 36px -10px rgba(255, 171, 29, 0.7); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); }

.btn--block { width: 100%; }

/* ---------- Pull up to refresh (anchored at bottom of page) ---------- */
.pull-refresh {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(64px);
  z-index: 200;
  pointer-events: none;
}
.pull-refresh.is-active { transition: transform 0.2s ease; }
.pull-refresh__spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  transform: rotate(0deg);
}
.pull-refresh.is-ready .pull-refresh__spinner { border-top-color: var(--grad-mid); }
.pull-refresh.is-refreshing .pull-refresh__spinner {
  animation: pull-refresh-spin 0.7s linear infinite;
}
@keyframes pull-refresh-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}
/* backdrop-filter lives on a pseudo-element, not .site-header itself,
   because filter/backdrop-filter on an ancestor becomes the containing
   block for position:fixed descendants (breaks the full-viewport mobile nav) */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  min-width: 0;
  flex-shrink: 1;
}
.brand__logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin-left: auto;
  z-index: 90;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.primary-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
  padding-block: 0.25rem;
}
.primary-nav a:hover,
.primary-nav a.is-active { color: var(--text); }
.primary-nav a.is-active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(60% 100% at 30% 0%, rgba(176, 38, 230, 0.25), transparent 70%),
              radial-gradient(50% 100% at 80% 10%, rgba(62, 23, 253, 0.28), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero__content h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-block: 1rem 1.1rem;
}
.hero__content p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero__stats {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero__stat strong {
  display: block;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
}
.hero__stat span {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__visual-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--bg) 75%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.hero__visual-card img {
  width: 78%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--border);
}
.section__head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-top: 0.75rem;
}
.section__head p {
  color: var(--text-muted);
  margin-top: 0.85rem;
}
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--last { border-bottom: none; }

/* Why choose us */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--grad-mid); transform: translateY(-4px); }
.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  display: flex;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.service-card__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.service-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Inventory placeholder */
.notice-card {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}
.notice-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.notice-card p { color: var(--text-muted); max-width: 52ch; margin-inline: auto 2rem auto; margin-bottom: 1.5rem; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-card__stars { color: var(--accent); letter-spacing: 0.15em; font-size: 0.95rem; }
.testimonial-card__quote { color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; }
.testimonial-card__author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: 0.9rem; }
.testimonial-card__author span { color: var(--text-faint); font-size: 0.8rem; }

/* CTA band */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-gradient);
  opacity: 0.12;
  pointer-events: none;
}
.cta-band__text { position: relative; max-width: 42ch; }
.cta-band__text h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.5rem; }
.cta-band__text p { color: var(--text-muted); }
.cta-band__actions { position: relative; display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
main {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.site-footer { padding-block: 2.5rem; }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.site-footer__nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer__nav a { color: var(--text-muted); font-size: 0.9rem; }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__note { color: var(--text-faint); font-size: 0.82rem; width: 100%; text-align: center; margin-top: 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__visual-card { max-width: 320px; margin-inline: auto; }
  .feature-grid, .service-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: var(--header-h, 64px);
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
    gap: 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow-y: auto;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .primary-nav a { font-size: 1.05rem; }
  .nav-cta { width: 100%; }

  .feature-grid, .service-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 480px) {
  .hero__stats { gap: 1.25rem; }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; flex: 1 1 auto; }
}

@media (min-width: 1400px) {
  .wrap { max-width: 1320px; }
}
