@import url('https://api.fontshare.com/v2/css?f[]=gambarino@400&f[]=general-sans@400,500,600,700&display=swap');

:root {
  --font-display: 'Gambarino', Georgia, serif;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-deep: #0c0d0e;
  --bg-surface: #18191c;
  --bg-elevated: #23252b;
  --bg-highlight: #2e313a;
  --text-main: #fafaf9;
  --text-muted: #a8a29e;
  --accent-pink: #e11d48;
  --accent-pink-hover: #be123c;
  --accent-lime: #a3e635;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --container-max: 1160px;
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-deep);
  overflow-x: hidden;
  width: 100%;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

p {
  max-width: 58ch;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-deep);
  border-bottom: 2px solid var(--bg-elevated);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent-pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-lime);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 0.5rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--accent-pink);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-pink-hover);
}

.btn-lime {
  background-color: var(--accent-lime);
  color: #0c0d0e;
}

.btn-secondary {
  background-color: var(--bg-elevated);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-highlight);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   HERO: FLUSH-LEFT SHOUT & SEAM PHOTOGRAPH
   ========================================================================== */
@keyframes shutterIn {
  0% {
    clip-path: inset(0 100% 0 0);
    transform: scale(1.08);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-drop {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background-color: var(--bg-deep);
  animation: fadeRise 0.6s ease-out both;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-shout {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.seam-photo-frame {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: var(--bg-surface);
  height: 480px;
}

.hero-seam-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: shutterIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ==========================================================================
   SECTIONS & BOARDS
   ========================================================================== */
.section-drop {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  animation: fadeRise 0.6s ease-out both;
}

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

.section-head {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.section-note {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Board Rows */
.board-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.board-card {
  background-color: var(--bg-elevated);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
  animation: fadeRise 0.6s ease-out both;
}

.board-card:nth-child(1) { animation-delay: 0.05s; }
.board-card:nth-child(2) { animation-delay: 0.1s; }
.board-card:nth-child(3) { animation-delay: 0.15s; }

.board-card:hover {
  transform: translateY(-3px);
  background-color: var(--bg-highlight);
}

.board-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
}

.board-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.board-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.board-meta-strip {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-lime);
}

/* ==========================================================================
   INTERACTIVE TOOL: LOOT DROP SIMULATOR
   ========================================================================== */
.simulator-box {
  background-color: var(--bg-elevated);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  width: 100%;
  animation: fadeRise 0.6s ease-out 0.1s both;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-select, .form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 2px solid var(--bg-highlight);
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-select:focus, .form-input:focus {
  border-color: var(--accent-pink);
}

.simulator-result-panel {
  background-color: var(--bg-surface);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sim-rate-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--accent-lime);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.sim-rate-caption {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.sim-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sim-stat-box {
  background-color: var(--bg-elevated);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
}

.sim-stat-title {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.sim-stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   FORMS (Register & Login)
   ========================================================================== */
.auth-panel {
  max-width: 540px;
  margin: 2rem auto;
  background-color: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  width: 100%;
}

.auth-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.auth-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.status-msg {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.status-msg.error {
  background-color: #450a0a;
  color: #fca5a5;
  border-left: 4px solid var(--accent-pink);
}

.status-msg.success {
  background-color: #052e16;
  color: #86efac;
  border-left: 4px solid var(--accent-lime);
}

.auth-footer {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--accent-pink);
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   STEPS
   ========================================================================== */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.flow-card {
  background-color: var(--bg-elevated);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  animation: fadeRise 0.6s ease-out both;
}

.flow-verb {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.flow-body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  width: 100%;
}

.faq-block {
  background-color: var(--bg-surface);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  animation: fadeRise 0.6s ease-out both;
}

.faq-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.75rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.35rem;
  color: var(--accent-pink);
  transition: transform 0.2s ease;
}

.faq-body {
  display: none;
  padding: 0 1.75rem 1.75rem 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-block.active .faq-body {
  display: block;
}

.faq-block.active .faq-icon {
  transform: rotate(45deg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #070808;
  border-top: 2px solid var(--bg-elevated);
  padding-top: 4rem;
  padding-bottom: 3rem;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 360px;
  line-height: 1.55;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--accent-lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 2px solid var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.875rem;
  width: 100%;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .seam-photo-frame {
    height: 360px;
  }
  .board-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .board-thumb {
    width: 100%;
    height: 220px;
  }
  .simulator-box {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 1.25rem;
  }
  .brand-logo {
    font-size: 1.15rem;
  }
  .nav-actions {
    display: none;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    padding: 1.5rem;
    border-bottom: 2px solid var(--bg-elevated);
  }
  .nav-menu.nav-active {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .nav-toggle {
    display: block;
  }
  .hero-drop {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .hero-shout {
    margin-bottom: 1rem;
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    word-break: break-word;
    max-width: 320px;
  }
  .hero-lead, .hero-desc {
    max-width: 320px;
  }
  .hero-cta-group {
    flex-direction: column;
    margin-bottom: 1rem;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .board-meta-strip {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
