:root {
  --mint: #92c9b1;
  --mint-bright: #30b37a;
  --mint-dark: #2f6b54;
  --mint-soft: #e7f6ef;
  --ink: #161b19;
  --muted: #5c6a64;
  --card: #ffffff;
  --line: #e4ebe7;
  --bg: #f4f7f5;
  --shadow: 0 20px 50px rgba(22, 27, 25, 0.08);
  --font: "DM Sans", "Outfit", "Segoe UI", sans-serif;
  --display: "Outfit", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(146, 201, 177, 0.35), transparent 55%),
    linear-gradient(180deg, #fbfcfb 0%, #f3f7f5 40%, #eef4f1 100%);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(90deg, rgba(146, 201, 177, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(146, 201, 177, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}

a { color: var(--mint-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 14px;
  padding: 13px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; border-radius: 12px; }

.btn-primary {
  background: var(--mint-bright);
  color: #fff;
  box-shadow: 0 12px 28px rgba(48, 179, 122, 0.28);
}
.btn-primary:hover { background: #28a56f; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(22, 27, 25, 0.04);
}
.btn-secondary:hover { border-color: var(--mint); color: var(--mint-dark); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 14px;
}

/* —— Hero (Modrinth-like centered) —— */
.hero-modrinth {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 0 72px;
  min-height: min(78vh, 820px);
  justify-content: center;
}

.hero-logo-wrap {
  position: relative;
  margin-bottom: 8px;
  animation: float-in 0.8s ease both;
}
.hero-logo { position: relative; z-index: 1; }
.hero-logo-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle, rgba(146, 201, 177, 0.55), transparent 68%);
  filter: blur(8px);
  z-index: 0;
  animation: pulse-glow 3.2s ease-in-out infinite;
}

.hero-card {
  max-width: 720px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 8px 12px 0;
  animation: float-in 0.9s 0.08s ease both;
}

.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-card h1 {
  font-family: var(--display);
  margin: 18px 0 16px;
  font-size: clamp(2.35rem, 6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.rotator {
  display: inline-block;
  position: relative;
  color: var(--mint-bright);
  min-width: 2.4em;
}
.rotator-word {
  display: inline-block;
  animation: word-in 0.45s ease;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0 auto 28px;
  max-width: 38rem;
}
.lead code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--mint-soft);
  color: var(--mint-dark);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.95em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-stat strong {
  color: var(--ink);
  font-size: 1.05rem;
}

/* —— Feature bands (Modrinth feature page style) —— */
.features-modrinth {
  padding: 20px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.feature-band.reverse { direction: rtl; }
.feature-band.reverse > * { direction: ltr; }

@media (max-width: 860px) {
  .feature-band,
  .feature-band.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
  }
}

.feature-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eceff8;
  color: #4a5878;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-badge.mint {
  background: var(--mint-soft);
  color: var(--mint-dark);
}

.feature-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.2;
}
.feature-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}
.feature-copy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--mint-dark);
}

.feature-visual { position: relative; }
.feature-visual::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(circle, rgba(146, 201, 177, 0.45), transparent 70%);
  filter: blur(24px);
  z-index: 0;
}

.mock-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.mock-search-bar {
  background: #f3f5f4;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.mock-search-bar [data-mock-query] {
  color: var(--ink);
  font-weight: 700;
}
.mock-results {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mock-results.is-out {
  opacity: 0;
  transform: translateY(6px);
}
.mock-results.is-in {
  opacity: 1;
  transform: translateY(0);
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  margin-top: 8px;
  background: #fafcfb;
  border: 1px solid #eef2f0;
}
.mock-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mint);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.mock-icon.soft { background: #c5ddd2; color: var(--mint-dark); }
.mock-meta { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.mock-tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  background: #e8f8ef;
  color: #18794e;
}
.mock-tag.gray { background: #eef0ef; color: #66706c; }

.mock-title {
  font-weight: 700;
  margin-bottom: 12px;
}
.mock-notify-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-top: 10px;
  background: #fff;
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint-bright);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(48, 179, 122, 0.18);
}
.mock-dot.dim { background: #a8b5af; box-shadow: none; }

.mock-launchers { position: relative; z-index: 1; }
.mock-window {
  background: #1e2321;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mock-traffic {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: #2a302d;
}
.mock-traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5a6560;
  display: block;
}
.mock-traffic i:nth-child(1) { background: #ff5f57; }
.mock-traffic i:nth-child(2) { background: #febc2e; }
.mock-traffic i:nth-child(3) { background: #28c840; }
.mock-window-body {
  padding: 36px 24px 28px;
  text-align: center;
}
.mock-big {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--mint);
  letter-spacing: 0.08em;
}
.mock-bar {
  margin: 18px auto 0;
  width: 70%;
  height: 8px;
  border-radius: 999px;
  background: #3a433f;
  overflow: hidden;
}
.mock-bar span {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--mint-bright));
  animation: bar-load 2.4s ease-in-out infinite;
}
.mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}
.mock-chips span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 20px rgba(22, 27, 25, 0.05);
}

/* —— SEO guide / FAQ —— */
.seo-section {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 8px 4px 0;
}
.seo-section h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  line-height: 1.25;
}
.seo-lead {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.seo-section > p {
  color: var(--muted);
  line-height: 1.75;
  margin: 16px 0 0;
}
.seo-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink);
  line-height: 1.8;
}
.seo-steps li { margin: 8px 0; }
.seo-steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--mint-dark);
}

.seo-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  margin-top: 10px;
}
.seo-faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq details[open] summary { margin-bottom: 8px; }
.seo-faq details p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

@media (max-width: 720px) {
  .nav .nav-link[href="#guide"],
  .nav .nav-link[href="#faq"] {
    display: none;
  }
}

.panel, .login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.panel { padding: 28px; }
.panel h3 {
  font-family: var(--display);
  margin-top: 0;
  letter-spacing: -0.02em;
}

.address-box {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.address-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--mint-soft);
  border: 1px dashed #b9d9c9;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--mint-dark);
}

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
}
.input:focus {
  outline: 2px solid rgba(48, 179, 122, 0.35);
  border-color: var(--mint-bright);
}

.hint, .error, .success {
  font-size: 0.92rem;
  margin-top: 10px;
}
.hint { color: var(--muted); }
.error { color: #c0392b; }
.success { color: var(--mint-dark); }

.site-footer {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  border-top: 1px solid rgba(228, 235, 231, 0.9);
}

.login-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 24px 0 48px;
}
.login-card {
  width: min(520px, 100%);
  padding: 32px;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  color: var(--muted);
  line-height: 1.5;
}
.check-row input { margin-top: 4px; }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 60px;
  line-height: 1.75;
}
.legal h1 { font-size: 2rem; font-family: var(--display); }
.legal h2 { margin-top: 28px; }

.hidden { display: none !important; }

@keyframes float-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: none; }
}
@keyframes bar-load {
  0%, 100% { width: 42%; }
  50% { width: 78%; }
}

@media (max-width: 640px) {
  .hero-modrinth { min-height: auto; padding: 24px 0 48px; }
  .hero-logo svg { width: 88px; height: 88px; }
  .nav-link { display: none; }
}
