/* ========================================
   webuydata.io — Global Styles
   ======================================== */

/* --- Design Tokens --- */
:root {
  --green: #1DB954;
  --green-hover: #1ED760;
  --bg: #191414;
  --bg-edge: #121212;
  --surface: #282828;
  --border: #333;
  --text: #E0E0E0;
  --text-heading: #FFFFFF;
  --text-secondary: #B3B3B3;
  --warm: #E8D5B7;
  --radius: 12px;
  --radius-pill: 500px;
  --max-w: 720px;
  --section-gap: 100px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background: radial-gradient(ellipse at 50% 30%, var(--bg) 0%, var(--bg-edge) 70%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page load fade-in */
body {
  animation: fadeIn 0.3s ease-out;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-heading);
  line-height: 1.2;
}

h1 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-weight: 600;
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--warm);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  color: var(--text-heading);
  text-decoration-color: var(--text-heading);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
}

/* --- Header --- */
.site-header {
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark .domain {
  color: var(--text-secondary);
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

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

nav a:hover {
  color: var(--text-heading);
}

nav a.active {
  color: var(--text-heading);
}

/* --- Hero --- */
.hero {
  padding: 60px 0 48px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero .subheadline {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* --- Email Form --- */
.email-form-wrap {
  max-width: 500px;
  margin: 0 auto;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-input {
  flex: 1;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-input::placeholder {
  color: var(--text-secondary);
}

.form-input:focus {
  border-color: var(--green);
  border-width: 2px;
  padding: 13px 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--green);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--green-hover);
  transform: scale(1.02);
  text-decoration: none;
  color: #fff;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Form states */
.form-success,
.form-duplicate,
.form-error {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius);
}

.form-success {
  color: var(--green);
  background: rgba(29, 185, 84, 0.08);
  border: 1px solid rgba(29, 185, 84, 0.2);
}

.form-duplicate {
  color: var(--warm);
  background: rgba(232, 213, 183, 0.08);
  border: 1px solid rgba(232, 213, 183, 0.2);
}

.form-error {
  color: #E57373;
  background: rgba(229, 115, 115, 0.08);
  border: 1px solid rgba(229, 115, 115, 0.2);
  font-size: 0.875rem;
  margin-top: 8px;
}

.form-hidden {
  display: none;
}

/* --- How It Works --- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  margin-top: 48px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  max-width: 200px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--warm);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--warm);
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
  background: var(--bg);
}

/* Connector line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% - 200px + 32px);
  width: 400px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* --- Why Sell Section --- */
.why-sell .content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.why-sell h3 {
  margin-bottom: 12px;
  margin-top: 20px;
}

.why-sell h3:first-child {
  margin-top: 0;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--green);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  margin-top: 12px;
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-heading);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--green);
}

.faq-toggle {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-left: 16px;
  transition: transform var(--transition);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer-inner a {
  color: var(--green);
}

/* --- Coming Soon (Upload page) --- */
.coming-soon {
  text-align: center;
  padding: 80px 0;
}

.coming-soon .badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.2);
  border-radius: var(--radius-pill);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coming-soon h1 {
  margin-bottom: 16px;
}

.coming-soon .description {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto 48px;
}

.coming-soon .preview-steps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto 48px;
  text-align: left;
}

.coming-soon .preview-steps h3 {
  margin-bottom: 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coming-soon .preview-steps ol {
  list-style: none;
  counter-reset: preview;
}

.coming-soon .preview-steps li {
  counter-increment: preview;
  padding: 8px 0;
  padding-left: 32px;
  position: relative;
  color: var(--text);
  font-size: 0.9375rem;
}

.coming-soon .preview-steps li::before {
  content: counter(preview);
  position: absolute;
  left: 0;
  color: var(--warm);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

/* --- Privacy Policy --- */
.policy {
  padding-bottom: var(--section-gap);
}

.policy h1 {
  margin-bottom: 8px;
}

.policy .last-updated {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 48px;
}

.policy h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.policy p,
.policy ul {
  color: var(--text-secondary);
  line-height: 1.7;
}

.policy ul {
  margin: 12px 0;
  padding-left: 20px;
}

.policy li {
  margin-bottom: 6px;
}

.policy a {
  color: var(--green);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-disclaimer {
  color: #666;
  font-size: 0.75rem;
  line-height: 1.5;
}

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

.footer-bottom a {
  color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  :root {
    --section-gap: 64px;
  }

  .site-header .container {
    flex-direction: column;
    gap: 16px;
  }

  nav {
    gap: 16px;
  }

  .hero {
    padding-top: 40px;
  }

  .email-form-wrap {
    max-width: 100%;
  }

  .form-row {
    flex-direction: column;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .steps::before {
    display: none;
  }

  .step {
    max-width: 280px;
  }

  .why-sell .content {
    padding: 24px;
  }

  .faq-question {
    padding: 16px 20px;
    font-size: 0.9375rem;
  }

  .faq-answer-inner {
    padding: 0 20px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
