/* ── AuctionData Website — Shared Styles ────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg:           #ffffff;
  --surface:      #f8fafc;
  --surface-2:    #f1f5f9;
  --border:       #e2e8f0;
  --accent:       #1a73e8;
  --accent-dark:  #1558b0;
  --accent-glow:  rgba(26, 115, 232, 0.10);
  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-faint:   #94a3b8;
  --success:      #10b981;
  --error:        #ef4444;
  --radius:       12px;
  --radius-sm:    8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.nav-logo {
  display: block; /* block (not flex) so margin-top on child is the sole positioning control */
  text-decoration: none;
  height: 36px;
  overflow: hidden;
}

.nav-logo img,
.nav-logo-img {
  height: 120px;
  width: auto;
  display: block;
  margin-top: -40px; /* pull image up so the text band sits inside the 36px clip window */
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }

.btn-full { width: 100%; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-glow);
  border: 1px solid rgba(26,115,232,0.3);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ── Features ────────────────────────────────────────────────────────────── */
.features {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: rgba(26,115,232,0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.feature-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing {
  padding: 5rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.price-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.price-popular {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.price-amount sup { font-size: 1.5rem; vertical-align: super; font-weight: 600; }
.price-period { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.price-trial  { color: var(--success); font-size: 0.85rem; font-weight: 600; margin-bottom: 2rem; }

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: none; }
.price-features .check { color: var(--success); font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }

/* ── Auth form (subscribe page) ──────────────────────────────────────────── */
.auth-section {
  margin-top: 2rem;
  text-align: left;
}

.auth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.auth-input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 0.75rem;
}
.auth-input:focus { border-color: var(--accent); }
.auth-input::placeholder { color: var(--text-faint); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-faint);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-logged-in {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--success);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-msg {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--error);
  margin-bottom: 1rem;
}

.auth-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ── Magic link sent / Success screens ───────────────────────────────────── */
.info-screen {
  text-align: center;
  padding: 3rem 1.5rem;
}

.info-icon {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.info-screen h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.info-screen p { color: var(--text-muted); font-size: 0.95rem; max-width: 400px; margin: 0 auto 1.5rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
  background: var(--surface);
}

.footer a { color: var(--text-faint); }
.footer a:hover { color: var(--text-muted); text-decoration: underline; }

/* ── Screenshot / demo mockup ────────────────────────────────────────────── */
.demo-wrap {
  max-width: 900px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  position: relative;
}

.demo-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(26,115,232,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.demo-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.10);
}

.demo-bar {
  background: var(--surface-2);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot:nth-child(1) { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }

.demo-url {
  flex: 1;
  background: var(--bg);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: 0 0.5rem;
  border: 1px solid var(--border);
}

.demo-content {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: var(--surface);
}

.demo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.demo-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.demo-img {
  background: var(--surface-2);
  border-radius: 6px;
  height: 90px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.demo-card h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text); }
.demo-card p  { font-size: 0.75rem; color: var(--text-muted); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 4rem 1rem 3rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .price-card { padding: 1.75rem 1.25rem; }
}
