:root {
  --cream: #fff8ec;
  --cream-dark: #f7ead2;
  --brown: #5b3a1e;
  --brown-dark: #3d2512;
  --caramel: #c47a2d;
  --caramel-light: #e8a14b;
  --choc: #2f1d10;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(61, 37, 18, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--brown-dark);
  background: var(--cream);
  line-height: 1.6;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.container-narrow {
  width: min(760px, 92%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(47, 29, 16, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--caramel-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--caramel);
  color: var(--white);
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--caramel-light);
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

.btn-big {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
  margin-top: 1.4rem;
}

.btn-copy {
  padding: 0.6rem 1.2rem;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 6rem 0 5.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(232, 161, 75, 0.3), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(196, 122, 45, 0.25), transparent 45%),
    linear-gradient(160deg, var(--choc) 0%, var(--brown-dark) 55%, #4a2c14 100%);
}

.hero-badge {
  display: inline-block;
  background: rgba(232, 161, 75, 0.18);
  border: 1px solid rgba(232, 161, 75, 0.4);
  color: var(--caramel-light);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.copy-row {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.copy-row-inline {
  justify-content: flex-start;
}

.ip-input {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  min-width: 260px;
  text-align: center;
}

.hero-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
}

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

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.8rem;
  color: var(--brown);
}

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: #7a5a38;
  font-size: 0.98rem;
}

.section-note {
  text-align: left;
  color: #7a5a38;
  font-size: 0.92rem;
  margin-top: 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(91, 58, 30, 0.1);
  box-shadow: var(--shadow);
}

.section-note.center {
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(91, 58, 30, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(61, 37, 18, 0.14);
}

.card h3 {
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 0.35rem;
}

.card p {
  color: #7a5a38;
  font-size: 0.94rem;
}

/* ---------- Rules ---------- */
.rules {
  list-style: none;
  counter-reset: rule;
  display: grid;
  gap: 0.8rem;
}

.rules li {
  counter-increment: rule;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.2rem 1rem 3.4rem;
  position: relative;
  color: #7a5a38;
  font-size: 0.95rem;
  border: 1px solid rgba(91, 58, 30, 0.08);
  box-shadow: var(--shadow);
}

.rules li::before {
  content: counter(rule);
  position: absolute;
  left: 1.2rem;
  top: 1.05rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--caramel);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.rules strong {
  color: var(--brown);
}

/* ---------- Join ---------- */
.join-steps {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.join-step {
  display: flex;
  gap: 1.1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(91, 58, 30, 0.08);
  box-shadow: var(--shadow);
}

.join-num {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--caramel);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.join-step h3 {
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: 0.2rem;
}

.join-step p {
  color: #7a5a38;
  font-size: 0.95rem;
}

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

.copy-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(91, 58, 30, 0.08);
  box-shadow: var(--shadow);
}

.copy-label {
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.copy-row-inline .ip-input {
  color: var(--brown-dark);
  background: var(--cream);
  border-color: rgba(91, 58, 30, 0.25);
  text-align: left;
  flex: 1;
  min-width: 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(91, 58, 30, 0.1);
  box-shadow: var(--shadow);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-weight: 700;
  color: var(--brown);
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--caramel);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 1.3rem 1.1rem;
  color: #7a5a38;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--choc);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 2.5rem 0;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-ip {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.dot {
  color: var(--caramel);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--brown-dark);
  color: var(--white);
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 100;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 4rem 0 4rem;
  }

  .copy-row {
    flex-direction: column;
    align-items: center;
  }

  .copy-row .ip-input {
    width: 100%;
  }
}
