/* What Feather Terminal is and how it helps: the plain-language explainer,
   the fresh-notes strip under What's new, and small hero refinements. */

/* Hero: a shining primary action and a slow sheen on the accent line. */
.button-primary {
  position: relative;
  overflow: hidden;
}
.button-primary::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent 20%, #ffffff8c 50%, transparent 80%);
  transform: translateX(-120%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
html:not(.motion-paused) .button-primary:hover::after {
  animation: button-shine 0.9s var(--ease) forwards;
}
@keyframes button-shine {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(420%) skewX(-18deg); opacity: 0; }
}
html:not(.motion-paused) .hero h1 > span {
  background-size: 180% 100%;
  animation: hero-sheen 11s ease-in-out infinite alternate;
}
@keyframes hero-sheen {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.hero-lede strong {
  color: #dcece5;
  font-weight: 500;
}
.nav-account {
  padding: 10px 12px;
  border-radius: 8px;
  color: #bbc9c3;
  font-size: 12px;
  transition: color 0.2s, background 0.2s;
}
.nav-account:hover {
  color: #f1fff8;
  background: #d6fff009;
}
[data-reveal-delay="3"] {
  transition-delay: 270ms !important;
}

/* Explainer section. */
.explainer-section {
  overflow: hidden;
  padding-top: 110px;
}
.explainer-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 80px;
  left: 50%;
  width: min(1100px, 100%);
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, #6fd9ab14, transparent 62%);
  pointer-events: none;
}
.explainer-heading {
  max-width: 820px;
}
.explainer-heading > p:last-child {
  max-width: 680px;
  font-size: 15px;
}
.explainer-heading strong {
  color: #dcece5;
  font-weight: 500;
}

.explainer-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.explainer-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 28px;
  border-radius: 22px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.explainer-step:hover {
  transform: translateY(-4px);
  border-color: #c8ffdd44;
}
.explainer-step + .explainer-step::before {
  content: "→";
  position: absolute;
  z-index: 4;
  top: 96px;
  left: -21px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #0f1c19;
  color: var(--accent);
  font-size: 12px;
  box-shadow: 0 4px 14px #0006;
}
.step-index {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  padding: 3px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: #0b1513d9;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.step-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 182px;
  padding: 16px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 100% 0%, #8de8c012, transparent 55%),
    linear-gradient(165deg, #0d1917, #0a1211);
  box-shadow: inset 0 1px 0 #ffffff07;
}
.step-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120px;
  background: radial-gradient(ellipse, #7ee3b31a, transparent 65%);
  pointer-events: none;
}
.explainer-step h3 {
  margin-top: 2px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.explainer-step > p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}
.explainer-step > small {
  color: #6c8d81;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Tiny interface fragments inside the step visuals. */
.mini-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d6fff00e;
  border-radius: 9px;
  background: #d6fff007;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.mini-row.faint {
  opacity: 0.55;
}
.mini-row code,
.mini-meta span {
  font-family: var(--mono);
  font-size: 10px;
  color: #8fb3a4;
}
.mini-row code {
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-glyph {
  color: #9fc9b7;
  font-size: 12px;
}
.mini-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px #9df3cf88;
}
.mini-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 9px #edc99788;
}
.mini-dot.idle {
  background: #5f7570;
  box-shadow: none;
}
html:not(.motion-paused) .explainer-steps.in .mini-dot:not(.idle) {
  animation: mini-pulse 2.2s ease-in-out infinite;
}
.explainer-steps.in .mini-row:nth-child(2) .mini-dot {
  animation-delay: 0.7s;
}
@keyframes mini-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.55; }
}
.mini-pill {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mini-pill.amber {
  border-color: #edc99744;
  background: #edc99712;
  color: var(--amber);
}
.mini-pill.muted {
  border-color: var(--line);
  background: transparent;
  color: #8b9c97;
}
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 2px 4px 6px;
}
.mini-meta span::before {
  content: "✓ ";
  color: var(--accent);
}
.mini-add,
.mini-del {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}
.mini-add {
  margin-left: auto;
  color: #86e6bb;
}
.mini-del {
  color: var(--red);
}
.mini-diff {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 3px;
  height: 6px;
  padding: 0 2px;
}
.mini-diff i {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(90deg, #65dbae, #9df3cf);
}
.mini-diff i.del {
  flex: 0.28;
  background: var(--red);
}
.mini-evidence {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  padding: 2px 2px 0;
}
.mini-evidence .mini-pill {
  margin-left: 0;
}
html:not(.motion-paused) .reveal-ready .explainer-steps .mini-evidence .mini-pill {
  opacity: 0;
  transform: translateY(6px);
}
html:not(.motion-paused) .reveal-ready .explainer-steps.in .mini-evidence .mini-pill {
  animation: pill-in 0.55s var(--ease) forwards;
  animation-delay: calc(0.35s + var(--i, 0) * 0.16s);
}
@keyframes pill-in {
  to { opacity: 1; transform: none; }
}
.mini-merge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 11px;
  border: 1px solid #c5ffdf2b;
  border-radius: 10px;
  background: linear-gradient(120deg, #9df3cf10, #9df3cf04);
  color: #a9c7ba;
  font-size: 10.5px;
}
.mini-merge b {
  padding: 5px 11px;
  border-radius: 7px;
  background: linear-gradient(175deg, #c1f9dd, #83dfb7);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 #fff9, 0 4px 14px #66dba929;
}

/* Benefits: how it helps. */
.explainer-benefits {
  margin-top: 96px;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.benefit-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 270px;
  padding: 28px 26px 28px;
  overflow: hidden;
  border: 1px solid #d2ffe917;
  border-radius: 20px;
  background: linear-gradient(160deg, #d6fff20b, #d6fff202);
  box-shadow: inset 0 1px 0 #ffffff06;
  transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s;
}
.benefit-grid article:hover {
  transform: translateY(-4px);
  border-color: #c8ffdd40;
  background: linear-gradient(160deg, #d6fff211, #d6fff204);
}
.benefit-grid h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.benefit-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.benefit-grid small {
  margin-top: auto;
  padding-top: 12px;
  color: #6c8d81;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Before / after. */
.explainer-compare {
  margin-top: 64px;
  overflow: hidden;
  border-radius: 22px;
}
.compare-head,
.compare-rows li {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.compare-head {
  border-bottom: 1px solid var(--line-strong);
}
.compare-head span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  color: #8b9c97;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.compare-head span:last-child {
  color: var(--accent);
  background: linear-gradient(90deg, #9df3cf0d, transparent 70%);
}
.compare-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.compare-rows li + li {
  border-top: 1px solid var(--line);
}
.compare-rows li span {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 18px 26px;
  font-size: 13px;
  line-height: 1.7;
}
.compare-rows li span::before {
  flex: 0 0 auto;
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 12px;
}
.compare-rows li span:first-child {
  color: #8b9c97;
}
.compare-rows li span:first-child::before {
  content: "✕";
  color: #ee9a95b0;
}
.compare-rows li span:last-child {
  color: var(--text-soft);
  background: linear-gradient(90deg, #9df3cf07, transparent 70%);
}
.compare-rows li span:last-child::before {
  content: "✓";
  color: var(--accent);
}

/* Who it is for. */
.explainer-audience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.explainer-audience-label {
  width: 100%;
  margin: 0 0 4px;
  color: #6c8d81;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}
.explainer-audience span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: #d6fff006;
  color: var(--text-soft);
  font-size: 12px;
}
.explainer-audience span i {
  color: var(--accent);
  font-style: normal;
}

/* Capability ribbon between the explainer and the real screens. */
.ribbon {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, #d6ffe905, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ribbon-track {
  display: flex;
  gap: 0;
  width: max-content;
  padding-block: 18px;
}
.ribbon-track ul {
  display: flex;
  flex: 0 0 auto;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ribbon-track li {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-inline: 22px;
  color: #9fb5ab;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ribbon-track li::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px #9df3cf88;
}
html:not(.motion-paused) .ribbon-track {
  animation: ribbon-scroll 46s linear infinite;
}
.ribbon:hover .ribbon-track {
  animation-play-state: paused;
}
@keyframes ribbon-scroll {
  to { transform: translateX(-50%); }
}
.motion-paused .ribbon-track {
  width: 100%;
  justify-content: center;
}
.motion-paused .ribbon-track ul + ul {
  display: none;
}
.motion-paused .ribbon-track ul {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 10px;
}

/* Fresh notes under What's new. */
.fresh-notes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
  padding-top: 0;
}
.fresh-notes article {
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 24px;
  border: 1px solid #d2ffe914;
  border-radius: 18px;
  background: linear-gradient(160deg, #d6fff208, #d6fff201);
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.fresh-notes article:hover {
  transform: translateY(-3px);
  border-color: #c8ffdd3a;
}
.fresh-notes .note-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(150deg, #d1fff414, #d1fff403);
  font-family: var(--mono);
  font-size: 15px;
}
.fresh-notes h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.fresh-notes p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}
.fresh-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 46px 0 0;
  color: #8fb3a4;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.fresh-label .new-label {
  margin-right: 0;
}

@media (max-width: 1100px) {
  .benefit-grid,
  .fresh-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .explainer-steps {
    gap: 14px;
  }
  .explainer-step {
    padding: 18px 18px 24px;
  }
  .explainer-step + .explainer-step::before {
    display: none;
  }
}
@media (max-width: 900px) {
  .explainer-section {
    padding-top: 90px;
  }
  .explainer-steps {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
  .explainer-step + .explainer-step::before {
    display: grid;
    top: -20px;
    left: calc(50% - 13px);
    transform: rotate(90deg);
  }
  .explainer-benefits {
    margin-top: 76px;
  }
  .compare-head {
    display: none;
  }
  .compare-rows li {
    grid-template-columns: 1fr;
  }
  .compare-rows li span {
    padding: 14px 20px;
  }
  .compare-rows li span:first-child {
    padding-bottom: 4px;
  }
  .compare-rows li span:last-child {
    padding-top: 4px;
    background: none;
  }
}
@media (max-width: 700px) {
  .announcement-divider,
  .announcement-detail {
    display: none;
  }
  .benefit-grid,
  .fresh-notes {
    grid-template-columns: 1fr;
  }
  .benefit-grid article {
    min-height: 0;
  }
  .step-visual {
    height: auto;
    min-height: 160px;
  }
  .mini-row code {
    display: none;
  }
  .explainer-audience span {
    font-size: 11.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button-primary::after,
  .hero h1 > span,
  .mini-dot,
  .mini-evidence .mini-pill,
  .ribbon-track {
    animation: none !important;
  }
  .mini-evidence .mini-pill {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Phones: the primary action stays in the bar; Account remains in the footer and Cloud section. */
@media (max-width: 700px) {
  .nav-actions > .button {
    display: inline-flex;
    padding: 9px 13px;
    font-size: 11px;
  }
  .nav-account {
    display: none;
  }
}
