/* ============================================================
   BioStack Auction — Styles
   Matches intactis.bio dark theme with #8075FF accent
   ============================================================ */

:root {
  --bg-body: #0d0d0d;
  --bg-section: #1a1a1a;
  --bg-card: #1c2128;
  --bg-input: #0d1117;
  --accent: #8075FF;
  --accent-hover: #9589FF;
  --accent-glow: rgba(128, 117, 255, 0.3);
  --accent-bg: rgba(128, 117, 255, 0.12);
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --border: #30363d;
  --border-light: #21262d;
  --success: #3fb950;
  --danger: #f85149;
  --warning: #d29922;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --transition: 0.25s ease;
  --nav-h: 64px;
  --container-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

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

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-bg);
  color: var(--accent-hover);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}

.nav-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 32px; }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.7) 0%,
    rgba(13, 13, 13, 0.5) 40%,
    rgba(13, 13, 13, 0.85) 80%,
    #0d0d0d 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(128, 117, 255, 0.15);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 32px;
}

.hero-cta {
  margin-bottom: 60px;
}

.hero-screenshots {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  perspective: 800px;
}

.screenshot-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  flex: 0 1 280px;
  transform: rotateY(-3deg);
}
.screenshot-card.featured {
  flex: 0 1 340px;
  transform: rotateY(0deg) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}
.screenshot-card:last-child {
  transform: rotateY(3deg);
}
.screenshot-card:hover {
  transform: scale(1.03);
  border-color: var(--accent);
}
.screenshot-card img {
  display: block;
  width: 100%;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 100px 0;
}

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

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 0.03em;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

/* ============================================================
   AUCTION WIDGET
   ============================================================ */

.auction-widget {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

.auction-empty {
  text-align: center;
}
.auction-empty-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.auction-schedule {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.auction-date {
  font-size: 1.1rem;
  font-weight: 600;
}

.auction-badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auction-badge.open {
  background: rgba(63, 185, 80, 0.15);
  color: var(--success);
  border: 1px solid rgba(63, 185, 80, 0.3);
}
.auction-badge.closed {
  background: rgba(248, 81, 73, 0.15);
  color: var(--danger);
  border: 1px solid rgba(248, 81, 73, 0.3);
}
.auction-badge.scheduled {
  background: rgba(210, 153, 34, 0.15);
  color: var(--warning);
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.auction-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.auction-stat {
  text-align: center;
  padding: 16px;
  background: var(--bg-input);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.auction-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.auction-stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.auction-stat-value.accent {
  color: var(--accent);
}

/* Bid Form */

.bid-form {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.bid-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bid-currency {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.bid-input {
  width: 160px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-align: center;
  outline: none;
  transition: border-color var(--transition);
}
.bid-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.bid-input::-webkit-inner-spin-button,
.bid-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bid-input { -moz-appearance: textfield; }

.bid-min-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.bid-submit {
  margin-bottom: 12px;
}

.bid-message {
  font-size: 0.9rem;
  min-height: 1.4em;
}
.bid-message.success { color: var(--success); }
.bid-message.error { color: var(--danger); }

.bid-signin,
.bid-payment,
.auction-closed-msg {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.bid-signin p,
.bid-payment p,
.auction-closed-msg p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ============================================================
   GAME FEATURES
   ============================================================ */

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}

.features-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.level-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.level-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.level-row:hover {
  background: var(--accent-bg);
}

.level-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  min-width: 24px;
}

.level-name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.features-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.features-image img {
  display: block;
  width: 100%;
}
.features-image-caption {
  padding: 12px 16px;
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-accent, var(--accent));
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--card-accent, var(--accent));
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.about-logo {
  width: 200px;
  opacity: 0.8;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-body);
}

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

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-secondary); }

.footer-info {
  text-align: right;
}
.footer-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-info a {
  color: var(--text-secondary);
}

/* ============================================================
   MODALS
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

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

.modal-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.modal-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.modal-tab:hover { color: var(--text-primary); }

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-form input[type="email"],
.modal-form input[type="password"],
.modal-form input[type="text"] {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.modal-form input:focus {
  border-color: var(--accent);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
}

.modal-error {
  font-size: 0.85rem;
  color: var(--danger);
  min-height: 1.2em;
  text-align: center;
}

.stripe-card-element {
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* ============================================================
   USER MENU
   ============================================================ */

.user-menu {
  position: fixed;
  top: 14px;
  right: 24px;
  z-index: 1001;
}

.user-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.user-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.user-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.user-dropdown button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font);
}
.user-dropdown button:hover {
  background: var(--bg-input);
}

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

@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
}

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

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .hero-title { font-size: 3.5rem; }

  .hero-screenshots {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .screenshot-card,
  .screenshot-card.featured {
    flex: 0 1 auto;
    max-width: 320px;
    transform: none;
  }

  .steps-grid { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }

  .features-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .features-image { position: static; }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-text .section-title { text-align: center; }
  .about-logo { margin: 0 auto; }

  .auction-stats { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-info { text-align: center; }

  .user-menu { right: 68px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; }
  .section { padding: 60px 0; }
  .auction-widget { padding: 24px 16px; }
  .modal { padding: 24px; }
}
