/* NodeHood public site — brand colors match web/privacy.html (gold #d4af37) */
:root {
  --gold: #d4af37;
  --gold-dark: #b8952c;
  --gold-light: #f2d879;
  --ink: #1a1a1a;
  --ink-soft: #262626;
  --text: #333;
  --muted: #666;
  --bg: #fdfdfd;
  --card: #ffffff;
  --border: #eee;
  --highlight: #fff9e6;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1120px;
  --shadow-sm: 0 2px 8px rgba(20, 20, 20, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 20, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 20, 20, 0.14);
  --shadow-gold: 0 10px 26px rgba(212, 175, 55, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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


/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 253, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
header.site-header.scrolled {
  background: rgba(253, 253, 253, 0.96);
  box-shadow: 0 6px 24px rgba(20, 20, 20, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15em; color: var(--ink); }
.brand img { height: 34px; width: 34px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.brand:hover { text-decoration: none; }
nav.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav.main-nav a { position: relative; color: var(--text); font-weight: 500; font-size: 0.95em; padding: 4px 0; }
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
nav.main-nav a:hover { color: var(--gold-dark); text-decoration: none; }
nav.main-nav a:hover::after { transform: scaleX(1); }

#lang-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  background: white;
  font-size: 0.9em;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
#lang-select:hover { border-color: var(--gold); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  nav.main-nav.open { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 12px 0 4px; }
  .header-inner { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border);
    background: white; font-size: 1.1em; cursor: pointer;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  background: linear-gradient(180deg, #fffdf5 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0) 70%);
}
.hero::after {
  width: 320px; height: 320px;
  bottom: -160px; left: -100px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0) 70%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  background: var(--highlight);
  border: 1px solid var(--gold);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
h1 { font-size: 2.6em; line-height: 1.16; letter-spacing: -0.01em; margin: 0 0 16px; color: var(--ink); }
.hero p.subtitle { font-size: 1.12em; color: var(--muted); margin-bottom: 26px; max-width: 46ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 0.95em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn[data-store]::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}
.btn[data-store="ios"]::before {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E");
}
.btn[data-store="android"]::before {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M325.3 234.3L104.6 13l280.8 161.2-60.1 60.1zM47 0C34 6.8 25.3 19.2 25.3 35.3v441.4c0 16.1 8.7 28.5 21.7 35.3l256.6-256L47 0zm425.2 225.6l-58.9-34.1-65.7 64.5 65.7 64.5 60.1-34.1c18-14.3 18-46.5-1.2-60.8zM104.6 499l280.8-161.2-60.1-60.1L104.6 499z'/%3E%3C/svg%3E");
}
.btn-primary { background: var(--ink); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #000; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: white; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: white; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero-note { font-size: 0.85em; color: var(--muted); margin-top: 12px; }

.hero-social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-social-label {
  font-size: 0.8em;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-social.below-download {
  justify-content: center;
  margin-top: 40px;
}

/* ---------- Screenshot frame ---------- */
.shot-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 8px solid var(--ink);
  background: #f2f2f2;
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-shot .shot-frame:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 30px 70px rgba(20, 20, 20, 0.2); }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }
.shot-frame.img-missing img { display: none; }
.shot-placeholder {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 20px; text-align: center;
  color: var(--muted); background: repeating-linear-gradient(135deg, #f6f6f6, #f6f6f6 10px, #efefef 10px, #efefef 20px);
}
.shot-frame.img-missing .shot-placeholder { display: flex; }
.shot-placeholder .icon { font-size: 2em; opacity: 0.5; }
.shot-placeholder .txt { font-size: 0.85em; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: #fbfbfb; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 2em; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 12px; position: relative; display: inline-block; }
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}
.section-head p { color: var(--muted); }

.intro-block { max-width: 760px; margin: 0 auto; text-align: center; }
.intro-block h2 { font-size: 2em; color: var(--ink); margin-bottom: 14px; }
.intro-block p { color: var(--muted); font-size: 1.1em; }

/* screen-by-screen rows */
.screen-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.screen-row:last-child { border-bottom: none; }
.screen-row:nth-child(even) { grid-template-columns: 1fr 300px; }
.screen-row:nth-child(even) .screen-shot { order: 2; }
.screen-row .screen-shot .shot-frame { max-width: 260px; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.screen-row .screen-shot .shot-frame:hover { transform: translateY(-5px); box-shadow: 0 26px 54px rgba(20, 20, 20, 0.18); }
.screen-row h3 { font-size: 1.45em; color: var(--ink); margin: 0 0 12px; letter-spacing: -0.005em; }
.screen-row p { color: var(--muted); font-size: 1.03em; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { text-align: center; padding: 64px 0 48px; }
  .cta-row { justify-content: center; }
  .hero-social { justify-content: center; }
  .screen-row, .screen-row:nth-child(even) { grid-template-columns: 1fr; text-align: center; }
  .screen-row:nth-child(even) .screen-shot { order: 0; }
  h1 { font-size: 2.05em; }
}

/* why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.why-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(212, 175, 55, 0.35); }
.why-card:hover::before { transform: scaleX(1); }
.why-card h3 { color: var(--ink); font-size: 1.1em; margin: 0 0 8px; border-left: 4px solid var(--gold); padding-left: 10px; }
.why-card p { color: var(--muted); margin: 0; font-size: 0.97em; }

/* Button-guide cards: circular icon badge matching the exact in-app icon/color */
.button-guide-card h3 { border-left: none; padding-left: 0; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}
.icon-badge-group { display: inline-flex; gap: 8px; margin-bottom: 14px; }
.icon-badge-group .icon-badge { margin-bottom: 0; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
details.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
details.faq-item:hover { border-color: rgba(212, 175, 55, 0.4); box-shadow: var(--shadow-sm); }
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 18px 0;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; float: right; color: var(--gold-dark); font-weight: 700; transition: transform 0.2s ease; }
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p { color: var(--muted); margin: 0 0 18px; line-height: 1.7; }

/* Download CTA */
.download-cta {
  position: relative;
  text-align: center;
  background: linear-gradient(160deg, #101010 0%, var(--ink) 55%, #0a0a0a 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.download-cta::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  top: -180px; right: -100px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0) 70%);
  pointer-events: none;
}
.download-cta > * { position: relative; z-index: 1; }
.download-cta h2 { font-size: 2em; margin-bottom: 10px; letter-spacing: -0.01em; }
.download-cta p { color: #cfcfcf; margin-bottom: 28px; }
.download-cta .btn-outline { background: transparent; color: white; border-color: rgba(255, 255, 255, 0.6); }
.download-cta .btn-outline:hover { background: white; color: var(--ink); border-color: white; }
.download-cta .btn-primary { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.download-cta .btn-primary:hover { background: var(--gold-light); box-shadow: 0 14px 32px rgba(212, 175, 55, 0.4); }

.qr-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.qr-card {
  background: white;
  border-radius: 18px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 152px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.qr-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28); }
.qr-card img { width: 100%; height: auto; border-radius: 8px; display: block; }
.qr-card span { font-size: 0.8em; color: var(--ink); font-weight: 600; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  font-size: 0.9em;
  color: var(--muted);
}
footer .footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center;
}
footer .footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Social links ---------- */
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.social-links a.social:hover { text-decoration: none; transform: translateY(-4px) scale(1.05); box-shadow: var(--shadow-md); filter: brightness(1.06); }
.social-links a.social::before {
  content: "";
  width: 21px;
  height: 21px;
  background-color: white;
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}
.social-links a.instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E");
}
.social-links a.youtube {
  background: #ff0000;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M549.7 124.1c-6.3-23.7-24.8-42.3-48.3-48.6C458.8 64 288 64 288 64S117.2 64 74.6 75.5c-23.5 6.3-42 24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zM232 337.6V174.4L370 256l-138 81.6z'/%3E%3C/svg%3E");
}
.social-links a.telegram {
  background: #229ed9;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'%3E%3Cpath d='M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm121.8 169.9l-40.7 191.8c-3 13.6-11.1 16.9-22.4 10.5l-62-45.7-29.9 28.8c-3.3 3.3-6.1 6.1-12.5 6.1l4.4-63.1 114.9-103.8c5-4.4-1.1-6.9-7.7-2.5l-142 89.4-61.2-19.1c-13.3-4.2-13.6-13.3 2.8-19.7l239.1-92.2c11.1-4 20.8 2.7 17.2 19.5z'/%3E%3C/svg%3E");
}
.social-links a.tiktok {
  background: #000;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M448 209.9a210.1 210.1 0 0 1 -122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V0l88 0a121.2 121.2 0 0 0 1.9 22.2h0A122.2 122.2 0 0 0 381 102.4a121.4 121.4 0 0 0 67 20.1z'/%3E%3C/svg%3E");
}
