/* ==========================================================================
   SECTIONS — rules specific to a single section
   Everything else comes from components.css and layout.css.
   ========================================================================== */

/* Orange words inside a title */
.text-accent {
  color: var(--color-accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) var(--space-8);
  overflow: hidden;
}

/* Subtle dotted background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(211, 80, 23, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-6);
  }
}

.hero__eyebrow {
  display: block;
  margin-top: var(--space-5);
}

.hero__lead {
  max-width: 600px;
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
  color: var(--color-ink);
}

.hero__note {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

.hero__visual {
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

/* ---------- Trade diagram (hero illustration) ---------- */
.trade-diagram {
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font-sans);
}

.trade-diagram__orbit {
  fill: none;
  stroke: var(--color-line);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}

.trade-diagram__links line {
  stroke: var(--color-accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
  opacity: 0.55;
  animation: flow 1.6s linear infinite;
}

@keyframes flow {
  to { stroke-dashoffset: -24; }
}

.trade-diagram__node circle {
  fill: var(--color-surface);
  stroke: var(--color-line);
  stroke-width: 1.5;
}

.trade-diagram__node use {
  color: var(--color-accent);
}

.trade-diagram__node text {
  font-size: 13px;
  font-weight: 600;
  fill: var(--color-ink);
  text-anchor: middle;
}

.trade-diagram__core rect {
  fill: var(--color-dark);
}

.trade-diagram__core text {
  text-anchor: middle;
}

.trade-diagram__core-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  fill: #fff;
}

.trade-diagram__core-sub {
  font-size: 12px;
  fill: #f0875a;
}

/* Gentle "breathing" of the nodes, one after the other */
.trade-diagram__node {
  animation: breathe 4.8s var(--ease) infinite;
}

.trade-diagram__node:nth-of-type(2) { animation-delay: 0.8s; }
.trade-diagram__node:nth-of-type(3) { animation-delay: 1.6s; }
.trade-diagram__node:nth-of-type(4) { animation-delay: 2.4s; }
.trade-diagram__node:nth-of-type(5) { animation-delay: 3.2s; }
.trade-diagram__node:nth-of-type(6) { animation-delay: 4.0s; }

@keyframes breathe {
  0%, 70%, 100% { opacity: 1; }
  35%           { opacity: 0.72; }
}

/* ---------- "What you manage" strip ---------- */
.manage {
  position: relative;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
}

.manage__title,
.standards__title {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

/* ---------- How it works ---------- */
.funding {
  margin-bottom: var(--space-8);
}

.cycle__title {
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted) !important;
}

.cycle {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-dark-line);
}

@media (min-width: 720px) {
  .cycle { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .cycle { grid-template-columns: repeat(3, 1fr); }
}

.cycle__item {
  padding: var(--space-5) var(--space-5) var(--space-5) 0;
  border-bottom: 1px solid var(--color-dark-line);
}

@media (min-width: 720px) {
  .cycle__item { padding-right: var(--space-6); }
}

.cycle__heading {
  margin: 0 0 var(--space-2);
  font-size: var(--text-h3);
  font-weight: 650;
  color: var(--color-on-dark);
}

.cycle__item p {
  margin: 0;
  font-size: 0.975rem;
}

/* ---------- Why Dockchain ---------- */
.why {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

@media (min-width: 900px) {
  .why {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.why__head h2 {
  margin-bottom: 0;
}

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

/* ---------- Trust: standards strip ---------- */
.standards {
  margin-top: var(--space-7);
}

/* ---------- Status: highlight the current phase ---------- */
.roadmap__current {
  box-shadow: var(--shadow);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: var(--space-6);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: var(--accent-line) solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
  }
}

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

.contact__label {
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.contact__buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 560px) {
  .contact__buttons { grid-template-columns: repeat(3, 1fr); }
}

.contact__hint {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}
