/* ============================================================
   Homepage-specific styles
   ============================================================ */

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: 56px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-bottom: 72px;
}
.hero-copy .hl { color: var(--ink); background: linear-gradient(180deg, transparent 62%, var(--lime) 62%); padding: 0 .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 14.5px; color: var(--tx-2); }
.hero-trust strong { color: var(--tx); }
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink);
  background: var(--lime-soft); border: 2px solid var(--paper); margin-left: -10px;
}
.trust-avatars span:first-child { margin-left: 0; background: var(--lime); }
.trust-avatars span:nth-child(2){ background: var(--violet-soft); color: var(--violet); }

/* hero visual */
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hv-glow {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(166,224,0,.34), transparent 62%);
  filter: blur(18px); z-index: 0;
}
.hv-card {
  position: relative; z-index: 2; width: min(440px, 100%);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 22px;
}
.hv-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hv-dot-row { display: flex; gap: 6px; }
.hv-dot-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.hv-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.hv-node { display: flex; flex-direction: column; gap: 5px; padding: 12px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); min-width: 0; }
.hv-node-label { font-size: 11px; color: var(--tx-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.hv-domain { font-size: 13px; font-weight: 500; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-arrow { position: relative; width: 64px; height: 40px; display: grid; place-items: center; }
.hv-arrow svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-code { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 10.5px; padding: 3px 7px; box-shadow: var(--shadow-sm); }
.hv-packet {
  position: absolute; top: 50%; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime-deep); box-shadow: 0 0 0 4px rgba(139,190,0,.22);
  transform: translateY(-50%);
  animation: packet 2.6s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes packet { 0%{ left: 2px; opacity:0; } 12%{opacity:1;} 80%{opacity:1;} 100%{ left: 56px; opacity:0; } }
.hv-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.hv-stats > div { display: flex; flex-direction: column; gap: 2px; }
.hv-stat-num { font-size: 19px; font-weight: 600; color: var(--tx); letter-spacing: -.02em; }
.hv-stat-lbl { font-size: 11.5px; color: var(--tx-3); }

.hv-mini {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 11px 14px;
}
.hv-mini div { display: flex; flex-direction: column; line-height: 1.25; }
.hv-mini strong { font-size: 13.5px; color: var(--tx); white-space: nowrap; }
.hv-mini span { font-size: 11.5px; color: var(--tx-3); white-space: nowrap; }
.hv-mini-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--green-soft); display: grid; place-items: center; }
.hv-mini-ic svg { width: 18px; height: 18px; }
.hv-mini-ic.violet { background: var(--violet-soft); }
.hv-mini-1 { top: 6%; right: -4%; animation: float1 6s ease-in-out infinite; }
.hv-mini-2 { bottom: 8%; left: -6%; animation: float2 7s ease-in-out infinite; }
@keyframes float1 { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }
@keyframes float2 { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce){ .hv-mini-1,.hv-mini-2,.hv-packet { animation: none; } }

/* hero strip */
.hero-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { display: flex; align-items: center; gap: 28px; white-space: nowrap; width: max-content; animation: strip 28s linear infinite; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--tx-2); }
.strip-dot { color: var(--lime-deep); font-size: 9px; }
@keyframes strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .strip-track { animation: none; } }

/* ---------- Section heads ---------- */
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 52px; }
.sec-head .h2 { margin-top: 2px; }
.sec-head.row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-head.center { align-items: center; }
@media (max-width: 680px){ .sec-head.row { flex-direction: column; align-items: flex-start; } }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feat { padding: 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.feat-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--lime-soft); display: grid; place-items: center; margin-bottom: 18px; }
.feat-ic svg { width: 26px; height: 26px; }
.feat h3 { margin-bottom: 9px; }
.feat p { margin: 0; color: var(--tx-2); font-size: 15.5px; }
@media (max-width: 920px){ .feat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .feat-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps-sec { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step { position: relative; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--lime); font-weight: 600; font-size: 16px; margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--tx-2); font-size: 15.5px; margin: 0 0 18px; }
.step-mock { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; box-shadow: var(--shadow-sm); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.mock-row .mono { color: var(--tx); font-weight: 500; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Types (dark) ---------- */
.types-sec { background: var(--ink); }
.types-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.type-card { background: var(--ink-2); border: 1px solid rgba(244,242,232,.1); border-radius: var(--r); padding: 24px; transition: transform .25s, border-color .25s; }
.type-card:hover { transform: translateY(-4px); border-color: rgba(166,224,0,.5); }
.type-card .pill { margin-bottom: 16px; }
.type-card h3 { color: var(--on-ink); margin-bottom: 9px; }
.type-card p { color: var(--on-ink-2); font-size: 14.5px; margin: 0; }
@media (max-width: 900px){ .types-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .types-grid { grid-template-columns: 1fr; } }

/* ---------- Masking ---------- */
.masking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.masking-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.mask-item { display: flex; gap: 16px; align-items: flex-start; }
.mask-tag { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 8px; background: var(--lime-soft); color: var(--ink); margin-top: 2px; }
.mask-tag-2 { background: var(--violet-soft); color: var(--violet); }
.mask-item p { margin: 0; color: var(--tx-2); font-size: 15.5px; }
.browser { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.bdot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.browser-url { flex: 1; display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; font-size: 13px; color: var(--tx); margin-left: 6px; }
.caret { width: 1.5px; height: 14px; background: var(--ink); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50%{ opacity: 0; } }
.browser-body { padding: 26px 22px 30px; min-height: 180px; }
.bb-line { height: 12px; border-radius: 6px; background: var(--paper-2); margin-bottom: 12px; }
.bb-line.w70 { width: 70%; } .bb-line.w90 { width: 90%; } .bb-line.w50 { width: 50%; }
.bb-chip { display: inline-block; margin-top: 14px; font-size: 12px; padding: 7px 12px; border-radius: 8px; background: var(--violet-soft); color: var(--violet); font-weight: 500; }
.mask-toggle { display: inline-flex; gap: 4px; margin-top: 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.mt-btn { border: none; background: transparent; font-size: 14px; font-weight: 600; color: var(--tx-2); padding: 8px 18px; border-radius: 999px; transition: background .2s, color .2s; }
.mt-btn.active { background: var(--ink); color: var(--on-ink); }
@media (max-width: 820px){ .masking-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Founder ---------- */
.founder-sec { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.founder-card { padding: 36px; }
.founder-quote { position: relative; }
.quote-mark { font-family: var(--display); font-size: 80px; line-height: .6; color: var(--lime-deep); display: block; height: 40px; }
.founder-quote p { font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; color: var(--tx); margin: 10px 0 0; text-wrap: pretty; }
.founder-by { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.founder-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--ink); }
.founder-by strong { display: block; font-size: 15.5px; }
.founder-by span { font-size: 13.5px; color: var(--tx-3); }
@media (max-width: 820px){ .founder-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Price ---------- */
.price-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; max-width: 940px; margin: 0 auto; align-items: center; }
.price-card { position: relative; padding: 36px; overflow: hidden; }
.price-ribbon { position: absolute; top: 18px; right: -34px; transform: rotate(45deg); background: var(--ink); color: var(--lime); font-size: 10px; letter-spacing: .06em; padding: 6px 44px; }
.price-name { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--tx-3); text-transform: uppercase; letter-spacing: .08em; }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.price-num { font-family: var(--display); font-size: 64px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.price-per { font-size: 17px; color: var(--tx-2); }
.price-sub { color: var(--tx-2); font-size: 15px; margin: 14px 0 0; }
.price-list { list-style: none; margin: 24px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 13px; }
.price-list li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; color: var(--tx); }
.price-list li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--lime-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12.5l3.5 3.5L18 8' stroke='%238BBE00' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 16px; background-position: center; background-repeat: no-repeat; }
.price-note { text-align: center; font-size: 13px; color: var(--tx-3); margin: 14px 0 0; }
.price-aside h3 { margin-bottom: 12px; }
.price-aside p { color: var(--tx-2); font-size: 16px; }
.price-aside-stat { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 18px 20px; background: var(--ink); border-radius: var(--r); color: var(--on-ink); }
.price-aside-stat .mono { font-size: 40px; font-weight: 600; color: var(--lime); line-height: 1; }
.price-aside-stat span:last-child { font-size: 14px; color: var(--on-ink-2); }
@media (max-width: 820px){ .price-wrap { grid-template-columns: 1fr; } }

/* ---------- Beta CTA ---------- */
.beta-card { position: relative; background: var(--ink); border-radius: var(--r-xl); padding: 64px 56px; overflow: hidden; }
.beta-glow { position: absolute; top: -40%; right: -10%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(166,224,0,.28), transparent 60%); }
.beta-content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 18px; }
.beta-form { display: flex; gap: 12px; max-width: 520px; margin-top: 8px; flex-wrap: wrap; }
.beta-input { flex: 1; min-width: 220px; background: rgba(255,255,255,.06); border: 1px solid rgba(244,242,232,.18); border-radius: 999px; padding: 15px 22px; font-size: 15px; color: var(--on-ink); transition: border-color .2s, background .2s; }
.beta-input::placeholder { color: rgba(168,165,151,.7); }
.beta-input:focus { outline: none; border-color: var(--lime); background: rgba(255,255,255,.1); }
.beta-micro { font-size: 13.5px; color: var(--on-ink-2); margin: 4px 0 0; }
.beta-micro.ok { color: var(--lime); }
@media (max-width: 680px){ .beta-card { padding: 44px 26px; } }

/* ---------- Blog teaser ---------- */
.blog-teaser { background: var(--paper-2); border-top: 1px solid var(--line); }
.teaser-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.post { display: flex; flex-direction: column; gap: 10px; padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.post-cat { align-self: flex-start; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); background: var(--violet-soft); padding: 4px 9px; border-radius: 6px; }
.post h3 { font-size: 21px; }
.post p { color: var(--tx-2); font-size: 15px; margin: 0; flex: 1; }
.post-meta { font-size: 12px; color: var(--tx-3); margin-top: 4px; }
@media (max-width: 900px){ .teaser-grid { grid-template-columns: 1fr; } }

/* hero responsive */
@media (max-width: 940px){
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 360px; order: 2; }
  .hv-mini-1 { right: 2%; } .hv-mini-2 { left: 2%; }
}
