/* ============ METRICS ============ */

.metricgrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}

.metric {
  padding: 34px 22px 30px;
  border-left: 1px solid var(--ink-line);
}

.metric:first-child {
  border-left: 0;
}

.metric__value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--green-100);
  line-height: 0.9;
}

.metric__sign {
  font-family: var(--f-disp);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 400;
  transform: translateY(-2px);
  margin-right: 4px;
  color: var(--green-300);
}

.metric__num {
  font-family: var(--f-disp);
  font-size: clamp(52px, 5.1vw, 76px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.metric__unit {
  font-size: 12px;
  font-weight: 500;
  margin-left: 6px;
  color: rgba(236, 246, 241, 0.62);
  letter-spacing: 0.02em;
}

.metric--accent .metric__value,
.metric--accent .metric__sign {
  color: var(--orange);
}

.metric__label {
  margin-top: 22px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(236, 246, 241, 0.74);
}

.metric__note {
  margin-top: 5px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(236, 246, 241, 0.48);
}

/* ============ SECURITY ============ */

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 90px);
  margin-top: clamp(40px, 4.5vw, 64px);
  border-top: 1px solid var(--light-line);
}

.duo__col {
  padding-top: 34px;
}

.duo__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.duo__idx {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--light-line);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--green-600);
}

.duo__head h3 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--n11);
}

.duo__col p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--n8);
  max-width: 52ch;
}

.duo__col p + p {
  margin-top: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chips span {
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 6px 11px;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid rgba(16, 104, 71, 0.12);
}

/* ============ LAUNCH PAD ============ */

.launch {
  overflow: hidden;
}

.launch__glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 1100px;
  height: 780px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(28, 129, 88, 0.4), rgba(28, 129, 88, 0.08) 62%, transparent 78%);
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.8s var(--ease);
}

.launchpad.is-ignited ~ .launch__note {
  color: rgba(236, 246, 241, 0.58);
}

.launch__head {
  position: relative;
  max-width: 780px;
  margin-bottom: clamp(46px, 5vw, 70px);
}

.launch__sub {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(236, 246, 241, 0.62);
  max-width: 44ch;
}

.launchpad {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 34px);
  align-items: center;
  padding: clamp(22px, 3.2vw, 44px);
  border: 1px solid var(--ink-line);
  border-radius: 3px;
  background: rgba(236, 246, 241, 0.022);
}

.lcard {
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid rgba(236, 246, 241, 0.12);
  border-radius: 2px;
  background: rgba(4, 24, 15, 0.35);
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease), transform 0.5s var(--ease);
}

.launchpad.is-ignited .lcard {
  border-color: rgba(166, 213, 192, 0.34);
  background: rgba(11, 79, 53, 0.3);
}

.lcard.is-focus {
  animation: entryflash 1.8s var(--ease);
}

@keyframes entryflash {
  0%, 100% { border-color: rgba(236, 246, 241, 0.14); }
  18%, 62% {
    border-color: rgba(240, 130, 0, 0.75);
    box-shadow: 0 0 0 3px rgba(240, 130, 0, 0.12);
  }
}

.lcard__kicker {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--green-300);
}

.lcard h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--green-50);
  line-height: 1.3;
}

.lcard__copy {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(236, 246, 241, 0.55);
}

.lcard__btn {
  width: 100%;
  margin-top: 22px;
}

/* mini browser */

.miniweb {
  margin-top: 18px;
  border: 1px solid rgba(236, 246, 241, 0.14);
  background: #06170F;
  overflow: hidden;
}

.miniweb__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding-inline: 8px;
  border-bottom: 1px solid rgba(236, 246, 241, 0.1);
}

.miniweb__bar i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(236, 246, 241, 0.28);
}

.miniweb__bar span {
  margin-left: 6px;
  font-family: var(--f-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  color: rgba(236, 246, 241, 0.38);
}

.miniweb__body {
  position: relative;
  display: grid;
  grid-template-columns: 24% 38% 1fr;
  gap: 6px;
  height: 84px;
  padding: 8px;
}

.miniweb__side {
  border: 1px solid rgba(236, 246, 241, 0.1);
  background: repeating-linear-gradient(180deg, rgba(236, 246, 241, 0.08) 0 1px, transparent 1px 12px);
}

.miniweb__chart {
  border: 1px solid rgba(236, 246, 241, 0.1);
  background:
    linear-gradient(160deg, transparent 46%, rgba(113, 187, 157, 0.5) 47%, rgba(113, 187, 157, 0.5) 48%, transparent 49%),
    linear-gradient(20deg, transparent 60%, rgba(113, 187, 157, 0.3) 61%, rgba(113, 187, 157, 0.3) 62%, transparent 63%);
}

.miniweb__map {
  border: 1px solid rgba(236, 246, 241, 0.1);
  background-image: radial-gradient(rgba(166, 213, 192, 0.28) 1px, transparent 1px);
  background-size: 8px 8px;
  position: relative;
}

.miniweb__map::after {
  content: "";
  position: absolute;
  left: 20%;
  top: 28%;
  width: 7px;
  height: 7px;
  background: var(--orange);
}

/* QR */

.qr {
  width: 148px;
  height: 148px;
  margin-top: 18px;
  padding: 9px;
  background: var(--green-50);
  border-radius: 1px;
}

.qr svg {
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
}

.stores {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.store {
  flex: 1;
  text-align: center;
  padding-block: 9px;
  border: 1px solid rgba(236, 246, 241, 0.2);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(236, 246, 241, 0.6);
}

/* power */

.start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.power {
  position: relative;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 1px solid rgba(166, 213, 192, 0.4);
  display: grid;
  place-items: center;
  color: var(--green-50);
  transition: background 0.6s var(--ease), border-color 0.4s var(--ease), box-shadow 0.6s var(--ease);
}

.power:hover {
  border-color: var(--green-300);
  box-shadow: inset 0 0 40px rgba(28, 129, 88, 0.35);
}

.power__halo {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(166, 213, 192, 0.14);
  animation: halopulse 3.6s ease-out infinite;
}

.power__ring {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(236, 246, 241, 0.12);
}

.power__glyph {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  transform: translateY(-4px);
  transition: stroke 0.4s var(--ease), transform 0.5s var(--ease);
}

.power__text {
  position: absolute;
  bottom: 34px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: rgba(236, 246, 241, 0.55);
}

.power.is-on {
  background: radial-gradient(circle at 50% 50%, rgba(28, 129, 88, 0.6), rgba(7, 58, 39, 0.9) 72%);
  border-color: var(--green-300);
  box-shadow: 0 0 60px rgba(28, 129, 88, 0.5), inset 0 0 40px rgba(113, 187, 157, 0.25);
}

.power.is-on .power__glyph {
  stroke: var(--green-100);
  transform: translateY(-4px) scale(1.04);
}

.power.is-on .power__text {
  color: var(--green-100);
}

@keyframes halopulse {
  0% { transform: scale(0.94); opacity: 0.9; }
  70% { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.08); opacity: 0; }
}

.start__hint {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(236, 246, 241, 0.42);
  text-align: center;
  min-height: 14px;
  transition: color 0.4s var(--ease);
}

.launchpad.is-ignited .start__hint {
  color: var(--green-300);
}

.launch__note {
  margin-top: 26px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(236, 246, 241, 0.32);
}

/* ============ FOOTER ============ */

.footer {
  background: var(--n12);
  color: rgba(236, 246, 241, 0.6);
  padding-top: clamp(56px, 6vw, 84px);
  padding-bottom: 30px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(236, 246, 241, 0.1);
}

.footer__line {
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--green-50);
}

.footer__links {
  display: grid;
}

.flink {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 16px;
  padding-block: 17px;
  border-top: 1px solid rgba(236, 246, 241, 0.1);
  transition: border-color 0.3s var(--ease);
}

.flink:last-child {
  border-bottom: 1px solid rgba(236, 246, 241, 0.1);
}

.flink__k {
  grid-column: 1 / -1;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--green-300);
}

.flink__v {
  font-size: 14.5px;
  color: var(--green-50);
  transition: color 0.3s var(--ease);
}

.flink svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: rgba(236, 246, 241, 0.5);
  stroke-width: 1.3;
  transition: transform 0.3s var(--ease), stroke 0.3s var(--ease);
}

.flink:hover .flink__v {
  color: var(--green-300);
}

.flink:hover svg {
  transform: translateX(4px);
  stroke: var(--green-300);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 30px;
  padding-top: 24px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(236, 246, 241, 0.32);
}

.footer__brand {
  font-family: var(--f-disp);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: rgba(236, 246, 241, 0.72);
}

.footer__brand span {
  color: var(--green-300);
}

.footer__year {
  margin-left: auto;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1140px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: 36px;
  }
  .herochain {
    max-width: 360px;
  }
  .tier {
    grid-template-columns: 56px 200px minmax(0, 1fr) 260px;
    gap: 24px;
  }
  .webgrid {
    grid-template-columns: 262px minmax(0, 1fr);
  }
  .metric {
    padding-inline: 16px;
  }
  .metricgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .metric:nth-child(4) {
    border-left: 0;
  }
  .metric:nth-child(n + 4) {
    border-top: 1px solid var(--ink-line);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 0;
    padding-top: 104px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    padding-bottom: 34px;
  }
  .herochain {
    max-width: 440px;
    justify-self: start;
    margin-top: 10px;
  }
  .hero__title {
    font-size: clamp(42px, 8vw, 68px);
  }
  .tier {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
      "spine name"
      "spine graphic"
      "spine copy";
    gap: 18px 22px;
    padding-block: 30px;
  }
  .tier__spine { grid-area: spine; }
  .tier__name { grid-area: name; }
  .tier__graphic { grid-area: graphic; max-width: 420px; }
  .tier__copy { grid-area: copy; max-width: 56ch; }
  .tiers::before {
    left: 15px;
  }
  .tier__idx {
    width: 32px;
  }
  .arch__foot {
    text-align: left;
  }
  .webgrid {
    grid-template-columns: 1fr;
  }
  .scenarios {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
  }
  .scenario {
    grid-template-columns: 26px 1fr;
    padding: 16px 14px 14px 0;
    border-top: 1px solid var(--ink-line);
  }
  .scenario + .scenario {
    padding-left: 14px;
    border-left: 1px solid var(--ink-line);
  }
  .scenario__body {
    max-height: 0;
  }
  .scenario.is-active .scenario__body {
    max-height: 240px;
  }
  .browser__body {
    min-height: 380px;
  }
  .appgrid,
  .taskgrid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .phones {
    order: 2;
    min-height: 600px;
    padding-left: 0;
    justify-content: center;
  }
  .phone--front {
    margin-left: 60px;
  }
  .appcopy {
    order: 1;
  }
  .ring {
    max-width: 440px;
  }
  .capgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .duo {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .duo__col {
    padding-block: 30px;
    border-bottom: 1px solid var(--light-line);
  }
  .launchpad {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .start {
    order: -1;
    padding-block: 8px 4px;
  }
  .power {
    width: 140px;
    height: 140px;
  }
  .power__glyph {
    width: 38px;
    height: 38px;
  }
  .power__text {
    bottom: 26px;
  }
  .lcard--web {
    order: 0;
  }
  .lcard--app {
    order: 1;
  }
  .qr {
    width: 128px;
    height: 128px;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .hero__foot span:first-child {
    display: none;
  }
  .hero__foot-line {
    display: none;
  }
  .hero__tags {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__tags span + span {
    padding-left: 0;
    border-left: 0;
  }
  .hnode {
    grid-template-columns: minmax(0, 1fr) 118px;
    padding: 13px 15px;
  }
  .hnode__title {
    font-size: 17px;
  }
  .statrow {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashgrid,
  .single,
  .remote {
    grid-template-columns: 1fr;
  }
  .map {
    height: 200px;
  }
  .browser__body {
    min-height: 0;
  }
  .mockrail {
    display: none;
  }
  .mockmain {
    padding: 12px;
  }
  .alertrow {
    flex-wrap: wrap;
  }
  .alertrow__more {
    margin-left: 0;
  }
  .phones {
    min-height: 540px;
  }
  .phone {
    width: 256px;
    height: 528px;
  }
  .phone--back {
    display: none;
  }
  .phone--front {
    margin-left: 0;
  }
  .phones__cap {
    bottom: -6px;
  }
  .capgrid {
    grid-template-columns: 1fr;
  }
  .metricgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    padding: 24px 16px;
  }
  .metric:nth-child(odd) {
    border-left: 0;
  }
  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--ink-line);
  }
  .metric__num {
    font-size: 50px;
  }
  .metric:last-child {
    grid-column: span 2;
  }
  .ring__item {
    width: 86px;
  }
  .ring__item b {
    font-size: 12.5px;
  }
  .ring__item em {
    font-size: 9px;
  }
  .ring__center {
    font-size: 17px;
  }
  .scenarios {
    grid-template-columns: 1fr;
  }
  .scenario {
    grid-template-columns: 30px 1fr;
    padding-right: 0;
  }
  .scenario + .scenario {
    padding-left: 0;
    border-left: 0;
  }
  .scenario__body {
    grid-column: 2;
  }
  .scenario.is-active .scenario__body {
    max-height: 300px;
  }
  .footer__bottom {
    gap: 8px 18px;
  }
  .footer__year {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hnode {
    grid-template-columns: 1fr;
  }
  .hnode__art {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: 34px;
  }
  .applist li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .metricgrid {
    grid-template-columns: 1fr;
  }
  .metric,
  .metric:last-child {
    grid-column: auto;
    border-left: 0;
  }
  .metric + .metric {
    border-top: 1px solid var(--ink-line);
  }
  .ring__item--1 { top: 2%; }
  .ring__item--3,
  .ring__item--4 { top: 90%; }
  .ring__item--2 { left: 88%; }
  .ring__item--5 { left: 12%; }
}
