/* ==========================================================================
   NordicNodes — shared product pages
   Product marketing layout that sits on top of landing.css.
   Used by: lexonads views/web.php (and future product front pages)
   Load after landing.css. Keep selectors neutral (.product-*) so any
   project can reuse them.
   ========================================================================== */

/* ---------- Shell ---------- */
.product-main { justify-content: flex-start; }

/* ---------- Nav ---------- */
.product-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.4vw, 30px);
}

.product-nav a { text-decoration: none; }

.product-nav a:not(.nav-login) {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ivory-2);
    transition: color 0.25s var(--ease);
}

.product-nav a:not(.nav-login):hover { color: var(--ivory); }

/* ---------- Invite strip ---------- */
.product-invite {
    border-bottom: 1px solid var(--line);
    background: var(--brand-wash);
    padding: 12px 0;
}

.product-invite p {
    margin: 0;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ivory-2);
    text-align: center;
}

.product-invite strong { color: var(--ivory); font-weight: 400; }

/* ---------- Hero ---------- */
.product-hero { padding: 0; }

.product-hero h1 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(2.9rem, 7.4vw, 5.6rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ivory);
    margin: 0;
}

.product-hero h1 span { display: block; }

.product-hero h1 em {
    display: block;
    padding-left: clamp(0.6em, 7vw, 3.4em);
    font-style: italic;
    color: var(--brand);
}

.product-hero .lede { margin-top: 22px; max-width: 52ch; }

/* ---------- Hero network drawing ---------- */
/* The drawing itself (.network, .net-*) is shared from landing.css.
   Here it gets its two-column hero placement and a slow, living pulse. */
.product-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
    padding-top: clamp(20px, 3.6vh, 38px);
}

.product-hero-copy { position: relative; z-index: 1; }

.product-hero-grid h1 { font-size: clamp(3.1rem, 6.7vw, 6.3rem); }

.product-hero-grid h1 em { padding-left: 0.72em; }

.product-hero .network {
    justify-self: end;
    width: 100%;
    max-width: min(460px, 46vh);
    margin-top: clamp(-14px, -1.2vh, 0px);
}

.product-hero .network svg {
    animation: product-net-float 22s ease-in-out infinite alternate;
}

.product-hero .net-node-dot {
    fill: currentColor;
}

.product-hero .net-node-arc {
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    opacity: 0.55;
}

.product-hero .net-node-arc--outer { opacity: 0.26; }

.product-hero .net-node-ping {
    fill: none;
    stroke: currentColor;
    stroke-width: 0.8;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: product-node-ping 12s var(--ease) infinite;
}

.product-hero .net-node:nth-child(1) .net-node-ping { animation-delay: 0s; }
.product-hero .net-node:nth-child(2) .net-node-ping { animation-delay: 2.4s; }
.product-hero .net-node:nth-child(3) .net-node-ping { animation-delay: 4.8s; }
.product-hero .net-node:nth-child(4) .net-node-ping { animation-delay: 7.2s; }
.product-hero .net-node:nth-child(5) .net-node-ping { animation-delay: 9.6s; }

.product-hero .net-lines path { opacity: 0.34; }

.product-hero .net-lines path.net-ghost { opacity: 0.22; }

.product-hero .net-dots circle {
    animation: product-net-dot 7s ease-in-out infinite;
}

.product-hero .net-dots circle:nth-child(2n) { animation-delay: 2.1s; }
.product-hero .net-dots circle:nth-child(3n) { animation-delay: 4.3s; }

/* The quiet triangle variant (LexonRank) gets its own breathing motion. */
.product-hero .net-pings circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 0.8;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: product-node-ping 9s var(--ease) infinite;
}

.product-hero .net-pings circle:nth-child(2) { animation-delay: 3s; }
.product-hero .net-pings circle:nth-child(3) { animation-delay: 6s; }

.product-hero .net-rings circle,
.product-hero .net-hubs circle {
    transform-box: fill-box;
    transform-origin: center;
}

.product-hero .net-rings circle {
    animation: product-ring-pulse 9s var(--ease) infinite;
}

.product-hero .net-hubs circle {
    animation: product-hub-pulse 9s var(--ease) infinite;
}

.product-hero .net-rings circle[data-node="1"],
.product-hero .net-hubs circle[data-node="1"] { animation-delay: 3s; }

.product-hero .net-rings circle[data-node="2"],
.product-hero .net-hubs circle[data-node="2"] { animation-delay: 6s; }

@keyframes product-net-float {
    from { transform: translate3d(0, -5px, 0); }
    to { transform: translate3d(0, 7px, 0); }
}

@keyframes product-node-ping {
    0% { opacity: 0; transform: scale(0.5); }
    6% { opacity: 0.45; }
    24% { opacity: 0; transform: scale(2.4); }
    100% { opacity: 0; transform: scale(2.4); }
}

@keyframes product-net-dot {
    0%, 100% { opacity: 0.18; }
    50% { opacity: 0.7; }
}

@keyframes product-ring-pulse {
    0%, 100% { opacity: 0.26; transform: scale(1); }
    16% { opacity: 0.62; transform: scale(1.22); }
    42% { opacity: 0.26; transform: scale(1); }
}

@keyframes product-hub-pulse {
    0%, 100% { transform: scale(1); }
    16% { transform: scale(1.3); }
    42% { transform: scale(1); }
}

/* ---------- Biolinker: one link, many places ---------- */
/* Hub-and-spoke variant: a central link with satellites around it. */
.product-hero .network--biolink .net-lines path[data-node="3"] { animation-delay: 0.6s; }
.product-hero .network--biolink .net-lines path[data-node="4"] { animation-delay: 0.75s; }
.product-hero .network--biolink .net-lines path[data-node="5"] { animation-delay: 0.9s; }
.product-hero .network--biolink .net-lines path[data-node="6"] { animation-delay: 1.05s; }

.product-hero .network--biolink .net-sat-ring {
    fill: none;
    stroke: currentColor;
    stroke-width: 0.9;
    opacity: 0.3;
}

.product-hero .network--biolink .net-sat-dot { fill: currentColor; }

.product-hero .network--biolink .net-sat-ping {
    fill: none;
    stroke: currentColor;
    stroke-width: 0.8;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: product-node-ping 9.8s var(--ease) infinite;
}

.product-hero .network--biolink .net-sat:nth-child(1) .net-sat-ping { animation-delay: 0s; }
.product-hero .network--biolink .net-sat:nth-child(2) .net-sat-ping { animation-delay: 1.4s; }
.product-hero .network--biolink .net-sat:nth-child(3) .net-sat-ping { animation-delay: 2.8s; }
.product-hero .network--biolink .net-sat:nth-child(4) .net-sat-ping { animation-delay: 4.2s; }
.product-hero .network--biolink .net-sat:nth-child(5) .net-sat-ping { animation-delay: 5.6s; }
.product-hero .network--biolink .net-sat:nth-child(6) .net-sat-ping { animation-delay: 7s; }
.product-hero .network--biolink .net-sat:nth-child(7) .net-sat-ping { animation-delay: 8.4s; }

.product-hero .network--biolink .net-core-ring {
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    opacity: 0.28;
}

.product-hero .network--biolink .net-core-dot { fill: currentColor; }

.product-hero .network--biolink .net-core-pulse {
    fill: none;
    stroke: var(--brand);
    stroke-width: 0.9;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: bio-core-pulse 7.5s var(--ease) infinite;
}

@keyframes bio-core-pulse {
    0% { opacity: 0; transform: scale(0.55); }
    14% { opacity: 0.34; }
    62%, 100% { opacity: 0; transform: scale(1.55); }
}

/* ---------- Buttons ---------- */
.product-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 34px;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0.95em 1.5em;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: var(--brand-ink);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.product-btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: var(--brand-ink); }

.product-btn--ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ivory-2);
}

.product-btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: transparent; }

.product-link {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ivory-2);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 3px;
}

.product-link:hover { color: var(--brand); border-bottom-color: var(--brand); }

.product-cta-note {
    margin-top: 16px;
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ivory-3);
}

/* ---------- Stat strip ---------- */
.product-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: clamp(40px, 7vw, 76px);
}

.product-stat {
    padding: 22px 18px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.product-stat:last-child { border-right: 0; }

.product-stat strong {
    display: block;
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    color: var(--ivory);
    font-variant-numeric: tabular-nums;
}

.product-stat span {
    display: block;
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ivory-3);
}

/* ---------- Sections ---------- */
.product-section {
    padding: clamp(58px, 8vw, 100px) 0;
    border-top: 1px solid var(--line);
}

.product-section:first-of-type { border-top: 0; }

.product-kicker {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ivory-3);
    margin: 0 0 16px;
}

.product-section h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--ivory);
    margin: 0 0 18px;
}

.product-section h2 em { font-style: italic; color: var(--ivory-2); }

.product-section > .container > p,
.product-intro { max-width: 58ch; color: var(--ivory-2); }

/* ---------- Card grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: clamp(32px, 5vw, 54px);
    border-top: 1px solid var(--line);
}

.product-card {
    padding: clamp(24px, 3vw, 38px) clamp(20px, 2.4vw, 32px);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-card:nth-child(3n) { border-right: 0; }

.product-card h3 {
    font-family: var(--display);
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--ivory);
    margin: 0 0 12px;
}

.product-card p {
    color: var(--ivory-2);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

.product-card b { color: var(--ivory); font-weight: 400; }

/* ---------- Table ---------- */
.product-table-wrap {
    margin-top: clamp(32px, 5vw, 50px);
    border: 1px solid var(--line);
    overflow-x: auto;
}

.product-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.product-table th {
    padding: 14px 18px;
    text-align: left;
    font-family: var(--mono);
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ivory-3);
    border-bottom: 1px solid var(--line);
}

.product-table td {
    padding: 13px 18px;
    border-bottom: 1px solid rgba(16, 19, 24, 0.08);
    color: var(--ivory-2);
    font-variant-numeric: tabular-nums;
}

.product-table tbody tr:last-child td { border-bottom: 0; }

.product-table .product-level { color: var(--ivory); }

.product-table .product-payout { text-align: right; color: var(--ivory); }

.product-table .product-payout b { font-weight: 400; color: var(--ivory); }

/* ---------- Dash list ---------- */
.product-list { list-style: none; margin: 36px 0 0; padding: 0; max-width: 72ch; }

.product-list li {
    position: relative;
    padding: 15px 0 15px 28px;
    border-bottom: 1px solid var(--line);
    color: var(--ivory-2);
    font-size: 0.94rem;
}

.product-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--ivory-3);
}

.product-list b { color: var(--ivory); font-weight: 400; }

/* ---------- Closing section ---------- */
.product-final { text-align: center; }

.product-final h2 { margin-inline: auto; }

.product-final .product-intro {
    margin-inline: auto;
    text-align: center;
}

.product-final .product-cta { justify-content: center; }

/* ---------- Prose blocks (SEO landing pages) ---------- */
.product-prose {
    max-width: 72ch;
    margin-top: 10px;
}

.product-prose p {
    margin: 0 0 16px;
    color: var(--ivory-2);
    font-size: 0.95rem;
    line-height: 1.7;
}

.product-prose p:last-child { margin-bottom: 0; }

.product-prose b,
.product-prose strong {
    color: var(--ivory);
    font-weight: 400;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .product-hero-grid { grid-template-columns: 1fr; position: relative; }
    .product-hero .network {
        top: 0;
        right: -6%;
        width: 54%;
        max-width: none;
        opacity: 0.16;
    }
    .product-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-stat:nth-child(2n) { border-right: 0; }
    .product-grid { grid-template-columns: 1fr; }
    .product-card { border-right: 0; }
}

@media (max-width: 640px) {
    .product-nav a:not(.nav-login) { display: none; }
    .product-hero-grid h1 { font-size: clamp(2.9rem, 13vw, 3.7rem); }
    .product-hero h1 em { padding-left: 0.2em; }
    .product-stats { grid-template-columns: 1fr; }
    .product-stat { border-right: 0; }
    .product-table th:last-child,
    .product-table td:last-child { text-align: right; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .product-hero .network svg,
    .product-hero .net-node-ping,
    .product-hero .net-pings circle,
    .product-hero .net-dots circle,
    .product-hero .net-lines path[data-node],
    .product-hero .net-rings circle,
    .product-hero .net-hubs circle,
    .product-hero .network--biolink .net-sat-ping,
    .product-hero .network--biolink .net-core-pulse { animation: none; }

    .product-hero .net-node-ping { opacity: 0; }
    .product-hero .net-pings circle { opacity: 0; }
    .product-hero .net-dots circle { opacity: 0.34; }
    .product-hero .network--biolink .net-sat-ping,
    .product-hero .network--biolink .net-core-pulse { opacity: 0; }
}

