/* ==========================================================================
   Arcaneflow — Nocturne III · page overrides (loaded after nl-site.css, nl-hero-copy.css,
   n3-frame.css and the delegated component styles)
   ========================================================================== */

/* --------------------------------------------------------------- header: the complete white logo */
.brand img { width: 212px; height: auto; }

/* --------------------------------------------------------------- hero: voxel "OpenWeb." + the Midnight ledger */
.hero-copy.hc-x { width: min(620px, 50%); }
.hero-copy.hc-x h1 { font-size: clamp(52px, 5.5vw, 90px); margin-top: 22px; }
.hero-copy.hc-x .hcD-lead { font-size: .76em; }
.hero-copy.hc-x .hcD-word { font-size: 1.3em; }
.hero-copy.hc-x .platform { margin-top: 22px; padding-top: 0; border-top: 0; max-width: 560px; }
.hero-copy.hc-x .hcB-term { margin-top: 16px; max-width: 560px; }
.hero-copy.hc-x .hero-actions { margin-top: 28px; gap: 28px; }

/* laptops (1366×768, 1280×720 …): the voxel word scales with the height too, the ledger shows three rows */
@media (min-width: 761px) and (max-height: 840px) {
  .hero-copy.hc-x h1 { font-size: clamp(48px, min(5.5vw, 9.4vh), 90px); margin-top: 16px; }
  .hero-copy.hc-x .platform { margin-top: 16px; }
  .hero-copy.hc-x .hcB-term { margin-top: 12px; }
  .hero-copy.hc-x .hcB-head { height: 32px; }
  .hero-copy.hc-x .hcB-view { height: calc(3 * 22px + 10px); }
  .hero-copy.hc-x .hcB-list { bottom: 5px; }
  .hero-copy.hc-x .hcB-line:nth-last-child(n+4) { opacity: 0; transition-duration: .18s; }
  .hero-copy.hc-x .hero-actions { margin-top: 20px; }
}
@media (max-width: 980px) {
  .hero-copy.hc-x { width: min(540px, 60%); }
  .hero-copy.hc-x h1 { font-size: clamp(46px, 6.3vw, 64px); }
  .hero-copy.hc-x .hcB-term { max-width: min(540px, calc(50vw - 24px)); }   /* clear of the mark's left leaf */
}
@media (max-width: 760px) {
  .hero-copy.hc-x { width: 100%; }
  .hero-copy.hc-x h1 { font-size: clamp(38px, 11vw, 54px); margin-top: 12px; }
  .hero-copy.hc-x .hcD-lead { font-size: .74em; }
  .hero-copy.hc-x .hcD-word { font-size: 1.3em; }
  .hero-copy.hc-x .platform { margin-top: 14px; font-size: 15px; }
  .hero-copy.hc-x .hcB-term { max-width: none; margin-top: 12px; }
  .hero-copy.hc-x .hero-actions { margin-top: 18px; gap: 20px; }
}

/* --------------------------------------------------------------- 02 monetization: shorter, a dark module, bright cards */
.section.monetize { padding: clamp(46px, 4.8vw, 72px) 0 clamp(52px, 5.4vw, 80px); }
.monetize .section-head { margin-bottom: clamp(26px, 2.8vw, 38px); }
.monetize .section-head h2 { font-size: clamp(38px, 4.6vw, 68px); }

.module.module--dark {
  position: relative; isolation: isolate;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(236px, 290px);
  gap: clamp(26px, 3.4vw, 52px); padding: clamp(28px, 3.6vw, 54px) clamp(24px, 3.6vw, 54px);
  border: 0; border-radius: 22px; color: var(--fg);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(155, 72, 224, .20), rgba(155, 72, 224, 0) 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(47, 91, 255, .16), rgba(47, 91, 255, 0) 70%),
    linear-gradient(180deg, #15132D 0%, #0B0A1A 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .08), 0 44px 80px -46px rgba(26, 14, 66, .55);
}
/* a faint pixel grid inside the panel, like the ManaForge stage */
.module.module--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(90% 90% at 70% 40%, #000, transparent); mask-image: radial-gradient(90% 90% at 70% 40%, #000, transparent);
}
.module--dark .kicker { margin-bottom: 22px; }
.module--dark h3 { font-size: clamp(40px, 4.2vw, 62px); margin-bottom: 20px; color: #F4F2FC; }
.module--dark h3 em { color: #FF86C2; }
.module--dark .module-copy > p:not(.kicker) { color: #B9B6CF; margin-bottom: 24px; }

/* the integration choices: bright N3-frame cards on the dark panel */
.module--dark .rail-title { color: #A9A7C0; margin-bottom: 14px; }
.module--dark .rail-list { border-top: 0; gap: 12px; }
.module--dark .rail-item.n3-frame {
  --fr-face: #EFEBE3; --fr-line: rgba(255, 255, 255, .2);
  grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px;
  padding: 16px 18px 16px 16px; border-bottom: 0; color: #141220;
  transition: transform .35s var(--e);
}
.module--dark .rail-item.n3-frame::before { width: auto; height: auto; margin: 0; transform: none; transition: background-color .3s; }
.module--dark .rail-item .ri-text strong { color: #141220; font-size: 15.5px; }
.module--dark .rail-item .ri-text small { color: #5B576E; font-size: 13.5px; }
.module--dark .rail-item .ri-num { color: #77738C; }
.module--dark .rail-item:hover { transform: translateX(3px); }
.module--dark .rail-item[aria-selected="true"] { --fr-face: #FFFFFF; padding-left: 16px; }
.module--dark .rail-item[aria-selected="true"] .ri-num { color: #C4105A; }
.module--dark .rail-item:focus-visible { outline: none; }
.module--dark .rail-item:focus-visible::before { box-shadow: inset 0 0 0 2px #2F5BFF; }

/* the integration card: N3 frame (cream face), tilt + glare under the pointer, pixel art kept */
.int-stage { gap: 0; perspective: 1100px; }
.int-lift { width: 100%; max-width: 290px; }
.int-card.n3-frame {
  --fr-face: #FBFAF7; --fr-line: rgba(255, 255, 255, .26); --fr-c: 16px;
  display: block; width: 100%; max-width: none; aspect-ratio: 5 / 6.5; box-shadow: none;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--e);
}
.int-card.is-hot { transition: transform .14s linear; }
.int-face { position: relative; display: flex; flex-direction: column; height: 100%; color: #141220; transition: transform .22s var(--e), opacity .22s; transform-origin: 50% 50%; }
.int-card.is-flipping .int-face { transform: rotateY(90deg) scale(.96); opacity: .35; }
.int-card .card-top { padding: 14px 16px 11px 18px; }
.card-kind { font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #6B6780; }
.int-card .card-art { margin: 0 12px; aspect-ratio: 1 / .74; border-radius: 0; background: #100F24; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.int-card .card-body { padding: 14px 16px 0; }
.int-card .card-body h4 { font-size: 23px; }
.int-card .card-foot { padding: 11px 16px 13px; }
.int-sheen {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(118deg, rgba(69, 202, 255, 0) 0%, rgba(69, 202, 255, .5) 4%, rgba(155, 72, 224, .45) 8%, rgba(255, 47, 191, .5) 12%, rgba(47, 91, 255, .45) 16%, rgba(69, 202, 255, 0) 20%);
  background-size: 260% 260%; background-position: calc(var(--px, 50%) * 1.4) calc(var(--py, 50%) * 1.2);
  mix-blend-mode: color-dodge; opacity: 0; transition: opacity .3s;
}
.int-glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 44%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .3s;
}
.int-card.is-hot .int-glare { opacity: 1; }
.int-card.is-hot .int-sheen { opacity: .36; }
.int-card:focus-visible { outline: none; }
.int-card:focus-visible .int-face { box-shadow: inset 0 0 0 2px #2F5BFF; }

@media (max-width: 1180px) {
  .module.module--dark { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .module--dark .int-stage { justify-content: center; }
}
@media (max-width: 760px) {
  .section.monetize { padding: 36px 0 44px; }
  .monetize .section-head { gap: 12px; }
  .module.module--dark { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 24px 18px 26px; border-radius: 18px; }
  .module--dark .kicker { margin-bottom: 16px; }
  .module--dark h3 { font-size: clamp(36px, 10vw, 44px); margin-bottom: 14px; }
  .module--dark .module-copy > p:not(.kicker) { font-size: 15px; margin-bottom: 16px; }
  .module--dark .rail-item.n3-frame { padding: 13px 14px 13px 13px; gap: 12px; }
  .int-lift { max-width: 236px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .int-card.n3-frame { transform: none; transition: none; } }

/* --------------------------------------------------------------- 03 ManaForge */
.forge-top { display: block; margin-bottom: clamp(40px, 4.6vw, 62px); }
.forge-logo { width: 184px; margin: 0 0 clamp(6px, .8vw, 12px); }    /* .fl brings its own room above the headline */
.forge-actions { margin-top: clamp(4px, .6vw, 10px); align-items: center; }    /* .fl ends with its own clear zone */

/* five plates: Yield · Supply · Demand · Insight · Trust */
.plates { gap: 10px; }
.plate { height: 46px; width: calc(100% - 62px); margin-left: calc(var(--i) * 10px); }
.plates .plate:nth-child(1) { --c: #E6E2F6; --c-hi: #FFFFFF; --c-sh: #6D6690; --c-glow: rgba(233, 229, 247, .42); }
.plates .plate:nth-child(2) { --c: #8EA6FF; --c-hi: #C9D5FF; --c-sh: #2340C8; --c-glow: rgba(47, 91, 255, .5); }
.plates .plate:nth-child(3) { --c: #FF7AD6; --c-hi: #FFD3F1; --c-sh: #B21C86; --c-glow: rgba(255, 47, 191, .5); }
.plates .plate:nth-child(4) { --c: #C38BF0; --c-hi: #EEDCFF; --c-sh: #5B2A93; --c-glow: rgba(155, 72, 224, .55); }
.plates .plate:nth-child(5) { --c: #8FE0FF; --c-hi: #E2F7FF; --c-sh: #1F6FB8; --c-glow: rgba(69, 202, 255, .45); }
.tab-panel { min-height: 136px; }   /* steady height while the copy changes per plate */
.tab-tag { margin-bottom: 10px; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #FF86C2; }
.heat[data-mode="1"] .tab-tag { color: #9FB3FF; }
.heat[data-mode="2"] .tab-tag { color: #FF8FD9; }
.tab-panel.is-swap .tab-tag { animation: swapIn .5s var(--e); }
.heat[data-mode="3"] .trust-chips span { opacity: 0; }
.heat[data-mode="4"] .trust-chips span { opacity: 1; }
.edge span { transition: opacity .3s; }
@media (max-width: 760px) {
  .heat-ui { align-items: stretch; }
  .tab-panel { min-height: 150px; }
  .plate { width: min(calc(100% - 62px), 340px); }
  .forge-logo { width: 148px; }
}


/* the hero's bottom row (scroll cue, figure caption, pause button) is gone: give phones back that space */
@media (max-width: 760px) { .hero-grid { padding-bottom: 64px; } }
