/* ============================================================
   Guitar Exchange — styles.css
   Dark vintage rock aesthetic
   ============================================================ */

/* ── Custom Properties ────────────────────────────────────── */
:root {
  --gold:        #c9a84c;
  --gold-light:  #e8c96e;
  --gold-dim:    #7a6330;
  --cream:       #f2ead8;
  --orange:      #d4621a;
  --bg:          #0f0d0b;
  --bg-mid:      #181410;
  --bg-card:     #1c1812;
  --bg-card2:    #221e18;
  --border:      rgba(201,168,76,0.18);
  --border-mid:  rgba(201,168,76,0.30);
  --text:        #e8dfc8;
  --text-dim:    #9e9278;
  --text-muted:  #635c4e;
  --radius:      4px;
  --radius-lg:   8px;
  --shadow:      0 4px 32px rgba(0,0,0,0.6);
  --transition:  0.2s ease;
  --font-sans:   'Helvetica Neue', Arial, sans-serif;
  --font-serif:  Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

ul { list-style: none; }

/* ── Utility ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-sans);
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: #0f0d0b;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 0 20px rgba(201,168,76,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-secondary:hover {
  background: rgba(201,168,76,0.1);
  box-shadow: 0 0 20px rgba(201,168,76,0.2);
}

.btn-full { width: 100%; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,13,11,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
}

.header-logo img {
  height: 36px;
  width: auto;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav ul {
  display: flex;
  gap: 24px;
}

.site-nav ul a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--transition);
}
.site-nav ul a:hover { color: var(--gold); }

/* Nav Social */
.nav-social {
  display: flex;
  gap: 16px;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

.nav-social a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-social a:hover { color: var(--gold); }
.nav-social svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-social span { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.07) 0%, transparent 70%),
    linear-gradient(180deg, #0f0d0b 0%, #181410 100%);
}

/* Grain texture overlay */
.hero-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Decorative rule lines */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
}

.hero-logo {
  margin: 0 auto 48px;
  max-width: 280px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

/* Gold accent on first word of each line */
.hero h1::first-line { color: var(--gold); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Features ─────────────────────────────────────────────── */
.features {
  padding: 100px 0;
  background: var(--bg-mid);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--gold);
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-card h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Early Access ─────────────────────────────────────────── */
.early-access {
  padding: 120px 0;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.early-access::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.early-access-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.early-access-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.early-access h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.early-access p {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.7;
}

.early-access-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}

.footer-domain {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.83rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--gold); }
.footer-social svg { width: 18px; height: 18px; flex-shrink: 0; }

.footer-copy {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Modals ───────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-box--wide { max-width: 680px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--gold); }

.modal-box h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 8px;
}

.modal-box > p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

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

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

label span { color: var(--gold); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  padding: 11px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

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

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239e9278' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}

select option { background: var(--bg-mid); }

textarea { resize: vertical; min-height: 100px; }

fieldset { border: none; padding: 0; }
fieldset legend {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-success {
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.form-success p {
  font-size: 0.88rem;
  color: var(--gold-light);
  line-height: 1.5;
}

.form-error {
  background: rgba(180,40,40,0.12);
  border: 1px solid rgba(180,40,40,0.45);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.form-error p {
  font-size: 0.88rem;
  color: #e07070;
  line-height: 1.5;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Image upload ─────────────────────────────────────────── */
.upload-hint {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 8px;
  transition: border-color var(--transition), background var(--transition);
}
.upload-btn:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

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

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(15,13,11,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 24px;
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .site-nav ul li { border-bottom: 1px solid var(--border); }
  .site-nav ul li:last-child { border-bottom: none; }

  .site-nav ul a {
    display: block;
    padding: 14px 0;
  }

  .nav-social {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 16px;
    margin-top: 8px;
    gap: 12px;
    width: 100%;
  }

  .nav-social a { gap: 10px; }
  .nav-social span { display: inline; }

  .hero { min-height: 80vh; padding: 60px 20px; }
  .hero-logo { max-width: 200px; margin-bottom: 36px; }

  .features { padding: 64px 0; }
  .feature-card { padding: 28px 24px; }

  .early-access { padding: 80px 0; }

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

  .modal-box { padding: 36px 24px; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-social { flex-direction: row; flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .early-access-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
