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

:root {
  --bg:         #080808;
  --bg2:        #0f0f0f;
  --bg3:        #161616;
  --bg4:        #1e1e1e;
  --border:     #1f1f1f;
  --border2:    #2a2a2a;
  --text:       #ffffff;
  --text2:      #888888;
  --text3:      #444444;
  --accent:     #00b8e8;
  --accent2:    #0090c0;
  --radius:     10px;
  --radius-lg:  16px;
  --nav-h:      96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 72px;
  width: auto;
  max-width: 260px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text2);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--accent);
  color: #000;
  padding: 0.45rem 1.1rem;
  border-radius: 7px;
  transition: background 0.15s, transform 0.1s;
}

.nav-cta:hover { background: var(--accent2); color: #000; transform: translateY(-1px); }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Mobile Nav Drawer ───────────────────────────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 199;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-drawer.open { display: flex; }
.nav-drawer a { font-size: 1.1rem; color: var(--text2); padding: 0.25rem 0; }
.nav-drawer a:hover { color: var(--text); }
.nav-drawer .btn-primary { width: 100%; text-align: center; margin-top: 0.5rem; }

/* ── Layout Helpers ─────────────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.pt-nav    { padding-top: var(--nav-h); }
section    { padding: 6rem 2rem; }

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
}

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

.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}

.btn-secondary:hover { background: var(--bg3); border-color: #333; }

.btn-ghost {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--bg4); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; border-radius: 6px; }

/* Loading state */
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #000;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 184, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 184, 232, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0, 184, 232, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 184, 232, 0.08);
  border: 1px solid rgba(0, 184, 232, 0.22);
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.8rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text2);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stat .lbl {
  font-size: 0.75rem;
  color: var(--text2);
  margin-top: 0.15rem;
}

/* ── Product Cards ───────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border2);
  background: var(--bg4);
  transform: translateY(-3px);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg4);
}

.product-card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.card-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin-top: auto;
}

.card-price {
  font-size: 1.2rem;
  font-weight: 700;
}

.card-price sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text2);
  vertical-align: middle;
  margin-left: 0.2rem;
}

/* ── Feature / Why Cards ────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover { border-color: var(--border2); background: var(--bg4); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 184, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.feature-desc  { font-size: 0.82rem; color: var(--text2); line-height: 1.65; }

/* ── Dividers ────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── CTA Banner ──────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-section p { color: var(--text2); margin-bottom: 2rem; font-size: 1.05rem; }

/* ── Product Detail Page ─────────────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.product-gallery { position: relative; }

.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--bg3);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.gallery-main.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
}

.gallery-thumb {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s, border-color 0.15s;
}

.gallery-thumb:hover  { opacity: 0.8; }
.gallery-thumb.active { opacity: 1; border-color: var(--accent); }
.gallery-thumb.placeholder-thumb {
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Sidebar */
.product-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.product-sidebar .price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.product-sidebar .price-note {
  font-size: 0.78rem;
  color: var(--text2);
  margin-bottom: 1.25rem;
}

.sidebar-btn-wrap { margin-bottom: 1.25rem; }
.sidebar-btn-wrap .btn { width: 100%; }

.sidebar-meta { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.meta-row .key { color: var(--text2); }
.meta-row .val { font-weight: 500; }

.sidebar-guarantee {
  background: rgba(0, 184, 232, 0.07);
  border: 1px solid rgba(0, 184, 232, 0.15);
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.55;
}

/* Product content sections */
.product-content { margin-top: 3rem; }

.content-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tab-btn {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  color: var(--text2);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-btn:hover:not(.active) { color: var(--text); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Included checklist */
.included-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }

.included-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.check-icon.yes { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.check-icon.no  { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

/* Parts list */
.parts-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }

.part-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.part-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.2rem; }
.part-desc { font-size: 0.8rem; color: var(--text2); }

/* Materials list */
.materials-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.materials-list li { font-size: 0.88rem; color: var(--text2); padding-left: 1rem; position: relative; }
.materials-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

/* Fabrication note */
.fab-note {
  background: var(--bg3);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem;
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
  margin-top: 1rem;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 2rem;
}

.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--text3); }
.breadcrumb .current { color: var(--text); }

/* ── Category Filter ─────────────────────────────────────────────────────── */
.cat-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cat-btn {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.cat-btn:hover { border-color: #333; color: var(--text); }
.cat-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }

/* ── About Page ──────────────────────────────────────────────────────────── */
.about-hero {
  max-width: 780px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.value-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.value-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.value-desc  { font-size: 0.82rem; color: var(--text2); line-height: 1.65; }

/* ── FAQ Page ────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; max-width: 760px; margin-top: 2rem; }

.faq-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.faq-question:hover { background: var(--bg4); }

.faq-chevron {
  font-size: 0.7rem;
  color: var(--text2);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 0.875rem;
  color: var(--text2);
  line-height: 1.7;
}

.faq-answer-inner { padding: 0 1.25rem 1.25rem; }

/* ── Success / Cancel Pages ──────────────────────────────────────────────── */
.result-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
}

.result-card {
  max-width: 520px;
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
}

.result-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }

.result-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.result-card p { font-size: 0.95rem; color: var(--text2); margin-bottom: 1.5rem; line-height: 1.7; }

.result-divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

.result-note {
  font-size: 0.8rem;
  color: var(--text3);
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.footer-brand-name img { display: block; }
.footer-brand-tagline { font-size: 0.82rem; color: var(--text2); line-height: 1.6; max-width: 240px; }

.footer-links-grid {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text2);
  margin-bottom: 0.9rem;
}

.footer-col li + li { margin-top: 0.5rem; }

.footer-col a {
  font-size: 0.85rem;
  color: var(--text2);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text3);
}

.footer-bottom a { color: var(--text3); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--text2); }

/* ── 404 Page ────────────────────────────────────────────────────────────── */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.not-found h1 { font-size: 6rem; font-weight: 700; color: var(--accent); opacity: 0.3; line-height: 1; }
.not-found h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.not-found p  { font-size: 0.95rem; color: var(--text2); margin-bottom: 2rem; }

/* ── Toast Notification ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-color: #ef4444; color: #ef4444; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    position: static;
    order: -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  section { padding: 4rem 1.25rem; }
  .container { padding: 0 1.25rem; }

  .footer-links-grid {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .hero-stats { gap: 2rem; }
}
