/* style.css */

/* -------------------------
   Theme / Variables
-------------------------- */
:root {
  --bg0: #07080a;
  --bg1: #0b0c0f;

  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .68);
  --muted2: rgba(255, 255, 255, .54);

  --border: rgba(255, 255, 255, .10);
  --panel: rgba(255, 255, 255, .06);

  --accent: #7CFFB2;
  --accent2: #62B2FF;

  --shadow: 0 12px 35px rgba(0, 0, 0, .45);
  --radius: 18px;

  --max: 1120px;
}

/* -------------------------
   Base
-------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

.impact-num {
  font-size: clamp(22px, 4vw, 52px);
  letter-spacing: -1px;
  overflow: hidden;
  white-space: nowrap;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  letter-spacing: 0.2px;

  background:
    radial-gradient(1200px 800px at 20% -20%, rgba(98, 178, 255, .15), transparent 70%),
    radial-gradient(1200px 900px at 80% -10%, rgba(124, 255, 178, .12), transparent 75%),
    linear-gradient(180deg, #0b0c0f 0%, #07080a 100%);

  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* -------------------------
   Header
-------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 14, .62);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-mark {
  height: 36px;
  width: auto;
  display: block;
}

/* Desktop nav */
.nav {
  display: flex;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  transition: background .15s, color .15s;
}

.nav a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
@media (max-width: 759px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 16px;
    background: rgba(10, 11, 14, .96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 12px;
  }
}

/* -------------------------
   Buttons
-------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  user-select: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, rgba(124, 255, 178, .95), rgba(124, 255, 178, .75));
  border-color: rgba(124, 255, 178, .45);
  color: rgba(0, 0, 0, .86);
}

.btn-primary:hover {
  border-color: rgba(124, 255, 178, .7);
  background: linear-gradient(180deg, rgba(124, 255, 178, 1), rgba(124, 255, 178, .85));
}

.btn-secondary {
  background: rgba(255, 255, 255, .06);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .16);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* -------------------------
   Hero
-------------------------- */
.hero {
  padding: 56px 0 32px;
}

.hero-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.2fr .9fr;
  }
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 14px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.6px;
}

.lead {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-pill {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  padding: 7px 11px;
  border-radius: 999px;
}

/* -------------------------
   Impact counter
-------------------------- */
.impact-section {
  padding: 64px 0;
  background:
    radial-gradient(ellipse 80% 300px at 50% 50%, rgba(124, 255, 178, .055), transparent),
    rgba(255, 255, 255, .018);
  border-top: 1px solid rgba(124, 255, 178, .14);
  border-bottom: 1px solid rgba(124, 255, 178, .14);
}

.impact-heading {
  margin: 0 0 40px;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--muted);
  text-align: center;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 680px) {
  .impact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.impact-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px 28px;
  gap: 6px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(124, 255, 178, .15);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.impact-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .45), 0 0 24px rgba(124, 255, 178, .1);
  border-color: rgba(124, 255, 178, .30);
}

.impact-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
}

.impact-num {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(124, 255, 178, .55);
  font-variant-numeric: tabular-nums;
  min-height: 1em;
}

.impact-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

.impact-label {
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.45;
}

.impact-disclaimer {
  margin: 28px auto 0;
  font-size: 11.5px;
  color: var(--muted2);
  line-height: 1.65;
  text-align: center;
  max-width: 68ch;
  padding: 0 8px;
}

/* -------------------------
   Section chrome
-------------------------- */
.how-it-works-section,
.inventory-section,
.quality-section,
.contact-section {
  padding: 52px 0;
}

.section-head {
  margin-bottom: 24px;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -0.3px;
}

.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Section divider line */
.divider-line {
  height: 1px;
  background: rgba(255, 255, 255, .08);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* -------------------------
   Cards + grids
-------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.big-card {
  box-shadow: var(--shadow);
}

.card-divider {
  height: 1px;
  background: rgba(255, 255, 255, .10);
  margin: 16px 0;
}

/* -------------------------
   Inventory / For Sale
-------------------------- */
.inventory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 540px) {
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .inventory-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.item-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s;
}

.item-card:hover {
  border-color: rgba(255, 255, 255, .18);
}

.item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.grade {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.grade-a {
  background: rgba(124, 255, 178, .15);
  border: 1px solid rgba(124, 255, 178, .30);
  color: var(--accent);
}

.grade-b {
  background: rgba(98, 178, 255, .12);
  border: 1px solid rgba(98, 178, 255, .28);
  color: var(--accent2);
}

.grade-c {
  background: rgba(255, 200, 80, .10);
  border: 1px solid rgba(255, 200, 80, .25);
  color: #ffc850;
}

.item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.item-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.item-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.item-specs li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}

.item-specs li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--muted2);
}

.item-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-tag {
  font-size: 12px;
  color: var(--muted2);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}

/* Sold state */
.item-sold {
  opacity: .55;
  pointer-events: none;
}

.sold-price {
  text-decoration: line-through;
  color: var(--muted2) !important;
}

.sold-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.inventory-note {
  margin-top: 20px;
  font-size: 14px;
}

.inventory-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -------------------------
   Quality section
-------------------------- */
.quality-layout {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .quality-layout {
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
  }
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.check span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(124, 255, 178, .16);
  border: 1px solid rgba(124, 255, 178, .28);
  color: var(--accent);
  font-weight: 900;
  flex: 0 0 auto;
  margin-top: 1px;
}

.note {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(98, 178, 255, .22);
  background: rgba(98, 178, 255, .10);
  color: rgba(255, 255, 255, .80);
  font-size: 14px;
  line-height: 1.5;
}

.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

/* -------------------------
   Contact
-------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 680px) {
  .contact-grid {
    grid-template-columns: 1.1fr .9fr;
  }
}

.form {
  display: grid;
  gap: 12px;
}

label span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .22);
  color: var(--text);
  font-size: 16px; /* prevents iOS auto-zoom */
  font-family: inherit;
  outline: none;
}

input:focus, textarea:focus {
  border-color: rgba(124, 255, 178, .38);
  box-shadow: 0 0 0 4px rgba(124, 255, 178, .10);
}

.small-muted {
  color: var(--muted2);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}

.details {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.details .k {
  display: inline-block;
  width: 92px;
  color: var(--muted);
  font-size: 13px;
}

.details .v {
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
}

/* -------------------------
   Footer
-------------------------- */
.footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  background: rgba(10, 11, 14, .62);
  backdrop-filter: blur(14px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

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