/* ============================================================
   MGTECH — styles.css
   ============================================================ */

/* --- Custom properties ------------------------------------ */
:root {
  --bg-deep:     #0f172a;
  --bg-surface:  #1e293b;
  --bg-elevated: #263548;

  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --accent:       #2563eb;
  --accent-light: #3b82f6;
  --accent-glow:  rgba(59, 130, 246, 0.14);

  --border:       rgba(148, 163, 184, 0.12);
  --border-hover: rgba(59, 130, 246, 0.45);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --transition: 0.22s ease;

  --font-heading: 'Space Grotesk', Verdana, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --header-h: 68px;
}

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

html {
  /* scroll-behavior handled by Lenis — avoid double-smoothing */
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Utility ---------------------------------------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.accent {
  background: linear-gradient(130deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  height: 38px;
  width: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  display: block;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 7px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.65rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition);
}

.btn:active { transform: scale(0.97) !important; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(148, 163, 184, 0.3);
}

.btn-outline:hover {
  border-color: var(--accent-light);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.btn-large {
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
}

/* ============================================================
   HERO — scroll-scrubbed video
============================================================ */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 52%, rgba(18, 52, 100, 0.92) 0%, transparent 52%),
    var(--bg-deep);
}

/* Subtle dot-grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Radial glow — positioned over the video area to unify colours */
.hero-glow {
  position: absolute;
  top: -5%;
  right: 2%;
  width: 62vw;
  height: 85vh;
  max-width: 800px;
  background: radial-gradient(ellipse at 60% 40%, rgba(18, 52, 100, 0.55) 0%, rgba(37, 99, 235, 0.08) 50%, transparent 72%);
  pointer-events: none;
}

/* Video container — right-side hero panel */
.hero-laptop-anim {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  /* No background — hero's own radial gradient provides the colour behind the video */
}

/* Video — fade all four edges so it dissolves into the hero with no hard rectangle */
.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%,   black 22%,  black 88%,  transparent 100%),
    linear-gradient(to bottom, transparent 0%,   black 6%,   black 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%,   black 22%,  black 88%,  transparent 100%),
    linear-gradient(to bottom, transparent 0%,   black 6%,   black 94%, transparent 100%);
  mask-composite: intersect;
}

/* Film grain texture — premium cinematic texture over the full hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: soft-light;
}

/* Left-to-right gradient — solid dark zone for text, fades to let video breathe on right */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    #0f172a 18%,
    rgba(15, 23, 42, 0.92) 34%,
    rgba(15, 23, 42, 0.45) 52%,
    rgba(15, 23, 42, 0.08) 70%,
    transparent 86%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-bg-grid { z-index: 2; }
.hero-glow    { z-index: 2; }

/* Content — two-column flex: copy left, video right */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ── Hero video column ── */
.hero-media {
  flex: 1;
  height: 92vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
}

.hero-media video {
  height: 100%;
  width: auto;
  object-fit: contain;
  /* Fade all four edges so the video dissolves into the hero background */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 18%, black 85%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 5%,  black 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 18%, black 85%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 5%,  black 95%, transparent 100%);
  mask-composite: intersect;
}

/* Sequential cinematic hero entrance */
.js .hero-badge   { animation: heroBadgeIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.30s both; }
.js .hero-title   { animation: heroBlurUp  1.0s cubic-bezier(0.16,1,0.3,1) 0.50s both; }
.js .hero-sub     { animation: heroBlurUp  0.8s cubic-bezier(0.16,1,0.3,1) 0.75s both; }
.js .hero-buttons { animation: heroBlurUp  0.7s cubic-bezier(0.16,1,0.3,1) 0.95s both; }
.js .hero-trust   { animation: heroFadeIn  0.6s ease                        1.15s both; }

@keyframes heroBadgeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes heroBlurUp {
  from { opacity: 0; transform: translateY(32px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0px); }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero copy — left column, constrained width */
.hero-copy {
  flex: 0 0 min(50%, 540px);
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.3rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Trust line below hero CTAs */
.hero-trust {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; padding: 5rem 0 4rem; }
}

/* ============================================================
   SECTIONS — shared
============================================================ */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg-surface);
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.85rem;
}

.section-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2.75rem;
  line-height: 1.7;
}

/* ============================================================
   LAPTOPS — feature cards
============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.card {
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition), background var(--transition);
}

.card:hover {
  background: rgba(38, 53, 72, 0.85);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15),
              0 14px 44px rgba(37, 99, 235, 0.2);
}

.card-icon {
  width: 46px;
  height: 46px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 1.15rem;
}

.card-icon svg { width: 22px; height: 22px; }

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Note box */
.note-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.note-box svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-light);
  margin-top: 1px;
}

.note-box a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.note-box a:hover { color: var(--text-primary); }

/* ============================================================
   PARTS — component grid
============================================================ */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.part-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.part-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.13);
}

.part-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}

.part-icon svg { width: 24px; height: 24px; }

.part-name {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   WHY MGTECH
============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.why-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.why-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}

.why-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-light);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}

.why-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.why-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   EBAY CTA
============================================================ */
/* gradient-shift animation removed — continuous background-position animation causes paint */
.section-ebay {
  background: linear-gradient(
    145deg,
    var(--bg-surface) 0%,
    rgba(37, 99, 235, 0.12) 40%,
    #0f172a 70%,
    rgba(59, 130, 246, 0.06) 100%
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.ebay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.ebay-badge {
  width: 76px;
  height: 76px;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}

.ebay-badge svg { width: 36px; height: 36px; }

.ebay-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 700;
}

.ebay-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.7;
}

.ebay-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT
============================================================ */
.contact-layout {
  max-width: 700px;
}

/* Form */
.contact-form-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

/* Form feedback */
.form-feedback {
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  min-height: 0;
  transition: all var(--transition);
}

.form-feedback.success {
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.form-feedback.error {
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-logo { height: 30px; width: auto; }

.footer-tagline {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet / mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .main-nav {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease,
                padding 0.35s ease, box-shadow 0.25s ease;
  }

  .main-nav.open {
    max-height: 400px;
    padding: 0.75rem 1rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.15rem;
  }

  .nav-link {
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }

  .hero { height: 100svh; }

  .hero-inner { flex-direction: column; justify-content: center; gap: 0; }

  .hero-copy {
    flex: none;
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
  }

  /* Video sits as ghost behind text on mobile */
  .hero-media {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: 0;
    opacity: 0.18;
  }
  .hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-overlay {
    background: linear-gradient(
      to right,
      #0f172a 5%,
      rgba(15, 23, 42, 0.9) 55%,
      rgba(15, 23, 42, 0.75) 100%
    );
  }

  .hero-title { font-size: 2.1rem; letter-spacing: -0.5px; }

  @media (prefers-reduced-motion: reduce) {
    .hero-track { height: auto; }
    .hero { height: auto; padding: 3.5rem 0 2.5rem; }
    .hero-inner { padding: 0; }
    .hero-laptop-anim { display: none; }
  }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ANIMATIONS
============================================================ */

/* --- Scroll progress bar ---------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 200;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* --- Scroll-reveal entries -------------------------------- */
/* No blur — filter:blur on many elements tanks scroll performance */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: opacity 0.6s ease,
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Staggered children */
.stagger .card:nth-child(2)      { transition-delay: 80ms; }
.stagger .card:nth-child(3)      { transition-delay: 160ms; }
.stagger .card:nth-child(4)      { transition-delay: 240ms; }

.stagger .why-item:nth-child(2)  { transition-delay: 80ms; }
.stagger .why-item:nth-child(3)  { transition-delay: 160ms; }
.stagger .why-item:nth-child(4)  { transition-delay: 240ms; }

.stagger .part-card:nth-child(2) { transition-delay: 60ms; }
.stagger .part-card:nth-child(3) { transition-delay: 120ms; }
.stagger .part-card:nth-child(4) { transition-delay: 180ms; }
.stagger .part-card:nth-child(5) { transition-delay: 240ms; }
.stagger .part-card:nth-child(6) { transition-delay: 300ms; }
.stagger .part-card:nth-child(7) { transition-delay: 360ms; }

/* --- Nav underline hover ---------------------------------- */
.nav-link { position: relative; }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-link.active { color: var(--text-primary); }

/* --- Hero glow drift -------------------------------------- */
@keyframes glow-drift {
  0%,  100% { transform: translate(0,    0)   scale(1);    opacity: 1; }
  33%        { transform: translate(-3%, 4%)  scale(1.05); opacity: 0.85; }
  66%        { transform: translate(2%,  -3%) scale(0.95); opacity: 0.92; }
}

.hero-glow { animation: glow-drift 12s ease-in-out infinite; }

/* Pulse-glow removed — continuous box-shadow animations cause paint each frame */

/* --- Part icon spring hover ------------------------------- */
.part-icon { transition: transform 0.3s ease; }

.part-card:hover .part-icon {
  transform: scale(1.18) rotate(-5deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Section separators (gradient top rule) --------------- */
.section-alt,
.section-ebay { position: relative; }

.section-alt::before,
.section-ebay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.35),
    transparent
  );
}

/* --- Reduced-motion overrides ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal               { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-glow                { animation: none; }
  .section-ebay             { animation: none; }
  .hero-buttons .btn-primary,
  .section-ebay .btn-primary { animation: none; }
  .js .hero-badge,
  .js .hero-title,
  .js .hero-sub,
  .js .hero-buttons,
  .js .hero-trust           { animation: none; opacity: 1; filter: none; transform: none; }
}

/* Small phones */
@media (max-width: 480px) {
  .cards-grid  { grid-template-columns: 1fr; }
  .why-grid    { grid-template-columns: 1fr; }
  .parts-grid  { grid-template-columns: repeat(2, 1fr); }

  .hero-inner  { gap: 1.25rem; }
  .hero-title  { font-size: 1.7rem; }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; text-align: center; }

  .contact-form-wrap { padding: 1.25rem; }
}

/* ============================================================
   PREMIUM UI/UX ENHANCEMENTS
============================================================ */

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 3px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Selection color */
::selection {
  background: rgba(37, 99, 235, 0.38);
  color: #fff;
}

/* ── Custom cursor ── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-light);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.3s ease;
  opacity: 0;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 130, 246, 0.55);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.2s ease, opacity 0.3s ease;
  opacity: 0;
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }

body:hover .cursor-dot { opacity: 1; }

/* Expand ring on hoverable elements */
a:hover ~ .cursor-ring,
button:hover ~ .cursor-ring,
.btn:hover ~ .cursor-ring { width: 52px; height: 52px; border-color: rgba(59, 130, 246, 0.85); }

/* ── Button shimmer sweep ── */
.btn-primary {
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 30%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: none;
}

.btn-primary:hover::before {
  transform: translateX(120%);
  transition: transform 0.55s ease;
}

/* ── Gradient border on card hover ── */
.card {
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.6) 0%,
    transparent 55%,
    rgba(167, 139, 250, 0.4) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

/* ── 3D tilt card base ── */
.card {
  transition: transform 0.12s ease-out, box-shadow 0.3s ease;
}
.card.tilt-reset {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

/* ── Hero SVG scan-line sweep ── */
@keyframes svg-scan {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(600%); opacity: 0; }
}

.hero-laptop-anim::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(59, 130, 246, 0.06) 45%,
    rgba(99, 102, 241, 0.12) 50%,
    rgba(59, 130, 246, 0.06) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  animation: svg-scan 5s ease-in-out infinite;
  animation-delay: 2s;
}

/* ── Animated gradient border on hero badge ── */
@keyframes badge-border {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.hero-badge {
  background-size: 200% 200%;
  animation: heroBadgeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both,
             badge-border 4s ease infinite 1.2s;
}

/* ── Section label animated reveal ── */
.section-label {
  position: relative;
  display: inline-block;
}

.section-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible .section-label::after,
.section-label.line-visible::after { width: 100%; }

/* ── Why-item number shine ── */
.why-number {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #60a5fa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: badge-border 3s linear infinite;
}

/* ── eBay section shimmer text ── */
@keyframes text-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.section-ebay .section-title {
  background: linear-gradient(
    90deg,
    #e2e8f0 20%,
    #93c5fd 40%,
    #c4b5fd 50%,
    #93c5fd 60%,
    #e2e8f0 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 4s linear infinite;
}

/* ── Premium card inner glow on hover ── */
.card:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Why-item hover glow ── */
.why-item {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
}

.why-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(59, 130, 246, 0.2);
}

/* ── Animated counter for stats/trust elements ── */
.count-up {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* ── Section title underline glow ── */
.section-title {
  position: relative;
}

/* ── Form input focus glow ── */
.form-input:focus,
.form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 0 16px rgba(37, 99, 235, 0.08);
}

/* ── Floating action indicator (scroll cue) ── */
@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 4;
  animation: scroll-cue-bounce 2s ease-in-out infinite;
  pointer-events: none;
}

.hero-scroll-cue span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll-cue svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue { animation: none; }
  .hero-laptop-anim::before { animation: none; }
  .hero-badge { animation: none; opacity: 1; }
  .why-number { animation: none; }
  .section-ebay .section-title { animation: none; }
  .btn-primary::before { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
  .hero-scroll-cue { display: none; }
}

/* ============================================================
   TEXT LOGO
============================================================ */
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.logo-mg { color: var(--accent-light); }

/* ============================================================
   BUTTON SHIMMER FIX — needs position:relative as containing block
============================================================ */
.btn { position: relative; }

/* ============================================================
   CONTACT DETAILS (below form)
============================================================ */
.contact-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-detail-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact-detail-item a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.contact-detail-item a:hover { color: var(--text-primary); }

/* ============================================================
   STATS BAND — social proof numbers between hero and laptops
============================================================ */
.stats-band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.75rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(130deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}

/* ============================================================
   BRANDS MARQUEE
============================================================ */
.brands-band {
  overflow: hidden;
  background: rgba(30, 41, 59, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.brands-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: brands-scroll 28s linear infinite;
  will-change: transform;
}

.brands-band:hover .brands-list { animation-play-state: paused; }

.brands-list span {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brands-list span:not(.brands-sep):hover { color: var(--text-secondary); }

.brands-sep {
  color: rgba(148, 163, 184, 0.2) !important;
  font-size: 1rem !important;
  letter-spacing: 0 !important;
  font-weight: 300 !important;
}

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .brands-list { animation: none; }
}

/* ============================================================
   HERO SCROLL STORY FEATURES
============================================================ */
.hero-features {
  list-style: none;
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.87rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.4s ease;
}

.hero-feature.visible {
  opacity: 1;
  transform: translateX(0);
  color: var(--text-secondary);
}

.feature-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.75;
}

/* ============================================================
   REVIEWS / TESTIMONIALS
============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius);
  padding: 1.65rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.review-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.review-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.72;
  flex: 1;
  font-style: italic;
}

.review-text strong {
  color: var(--text-primary);
  font-style: normal;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.review-buyer {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.review-badge {
  font-size: 0.7rem;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.22);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 500;
  white-space: nowrap;
}

.reviews-total {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reviews-total strong { color: var(--text-secondary); }
.reviews-positive { color: #22c55e; font-weight: 600; }

/* ============================================================
   WE BUY LAPTOPS — index.html CTA section
   ============================================================ */

.section-buy-cta {
  background: linear-gradient(
    145deg,
    rgba(124, 58, 237, 0.06) 0%,
    var(--bg-surface) 45%,
    rgba(37, 99, 235, 0.05) 100%
  );
  border-top: 1px solid rgba(167, 139, 250, 0.12);
  border-bottom: 1px solid var(--border);
}

.buy-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem 3.5rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.buy-cta-content { flex: 1; }

.buy-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  margin: 0.4rem 0 0.8rem;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.buy-cta-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.6rem;
  max-width: 460px;
}

/* Purple-accent sell button (used in nav + CTA) */
.btn-sell {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  background: rgba(167, 139, 250, 0.14);
  color: #c4b5fd;
  border: 1.5px solid rgba(167, 139, 250, 0.32);
  box-shadow: 0 2px 14px rgba(124, 58, 237, 0.12);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-sell:hover {
  background: rgba(167, 139, 250, 0.24);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 6px 26px rgba(124, 58, 237, 0.28);
  transform: translateY(-2px);
  color: #ddd6fe;
}

/* Shimmer sweep on hover */
.btn-sell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.btn-sell:hover::before { transform: translateX(100%); }

/* Sell nav pill */
.btn-sell-nav {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.26);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
  white-space: nowrap;
}

.btn-sell-nav:hover {
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.5);
}

/* 3-step mini-list on the right of the CTA */
.buy-cta-steps {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex-shrink: 0;
}

.buy-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.87rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
}

.buy-step-num {
  width: 26px;
  height: 26px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a78bfa;
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .buy-cta-card {
    flex-direction: column;
    padding: 2rem 1.75rem;
    gap: 1.75rem;
    align-items: flex-start;
  }
  .buy-cta-steps {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }
}

/* ============================================================
   SELL PAGE — sell.html specific styles
   ============================================================ */

/* ── Hero ── */
.sell-hero {
  position: relative;
  padding: 6rem 0 4.5rem;
  overflow: hidden;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}

.sell-hero-glow {
  position: absolute;
  top: -30%;
  right: -5%;
  width: 65vw;
  height: 80vh;
  background: radial-gradient(
    ellipse at 60% 40%,
    rgba(124, 58, 237, 0.13) 0%,
    rgba(37, 99, 235, 0.06) 40%,
    transparent 72%
  );
  pointer-events: none;
}

.sell-hero-content { max-width: 700px; }

.sell-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -1.5px;
  margin: 1rem 0 1.25rem;
}

.sell-hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.72;
  max-width: 560px;
}

/* ── How it works band ── */
.sell-steps-band {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1.85rem 0;
}

.sell-steps {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sell-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 170px;
}

.sell-step-num {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  line-height: 1;
}

.sell-step-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.sell-step-text strong {
  font-family: var(--font-heading);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sell-step-text span {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.sell-step-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  opacity: 0.6;
}

@media (max-width: 600px) {
  .sell-step-arrow { display: none; }
}

/* ── Form section ── */
.sell-form-section { padding-top: 3.5rem; }

.sell-form-container { max-width: 680px; }

.sell-group-title {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.sell-group-title:first-of-type { margin-top: 0; }

.label-opt {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.3rem;
}

.label-req {
  color: var(--accent-light);
  margin-left: 0.15rem;
}

/* Select dropdown */
.form-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 2.5rem 0.65rem 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-select:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.form-select option { background: var(--bg-elevated); }

/* ── Condition picker ── */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.condition-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.1rem 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  user-select: none;
  transition: border-color var(--transition), background var(--transition),
              box-shadow var(--transition), transform var(--transition);
}

.condition-card input[type="radio"] { display: none; }

.condition-card:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(124, 58, 237, 0.05);
  transform: translateY(-2px);
}

.condition-card:has(input:checked) {
  border-color: #a78bfa;
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2);
}

.condition-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition);
}

.condition-card:has(input:checked) .condition-icon { color: #a78bfa; }

.condition-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.condition-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.condition-sub {
  font-size: 0.71rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ── Photo upload area ── */
.photo-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 2.75rem 1rem 2.25rem;
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.photo-upload-area:hover,
.photo-upload-area.has-files {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(124, 58, 237, 0.04);
}

.photo-upload-area svg {
  width: 34px;
  height: 34px;
  color: #a78bfa;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.photo-upload-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.photo-upload-sub {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.photo-upload-count {
  font-size: 0.8rem;
  color: #a78bfa;
  font-family: var(--font-heading);
  font-weight: 500;
  min-height: 1em;
}

.photo-input { display: none; }

.photo-note {
  font-size: 0.79rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.photo-note a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Sell submit button ── */
.btn-sell-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(124, 58, 237, 0.35);
  transition: opacity var(--transition), transform var(--transition),
              box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-sell-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.btn-sell-submit:hover::before { transform: translateX(100%); }

.btn-sell-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
}

.btn-sell-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sell-disclaimer {
  font-size: 0.79rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.85rem;
}
