/* PRAXOLT website koncepció v1 — colors-v1 · fonts-v1 */
:root {
  --ink: #0a0a0a;
  --stone: #303f47;
  --stone-side: #455760;
  --signal: #0ba880;
  --paper: #f7f5f4;
  --muted: #5c5f64;
  --pending-border: #d4d0c9;
  --whisper: #b8b6b2;
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-claim: "Instrument Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 100% 70% at 50% -10%, #faf9f8 0%, transparent 58%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(11, 168, 128, 0.04) 0%, transparent 50%),
    var(--paper);
}

a {
  color: var(--signal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* —— Stage —— */
.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vh, 4rem) 1.5rem 3rem;
  overflow: hidden;
}

.stage__core {
  position: relative;
  z-index: 2;
  width: min(100%, 40rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.logo {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  animation: logo-settle 1.1s ease-out both;
}

.claim {
  margin: 0;
  font-family: var(--font-claim);
  font-weight: 400;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.02em;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
  max-width: none;
  white-space: nowrap;
  animation: fade-up 0.9s ease-out 0.25s both;
}

.contact {
  margin: 0;
  font-size: 0.95rem;
  color: var(--stone);
  letter-spacing: 0.04em;
  animation: fade-up 0.9s ease-out 0.4s both;
}

.reveal {
  margin-top: 0.5rem;
  appearance: none;
  border: 1px solid var(--pending-border);
  background: transparent;
  color: var(--stone);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  animation: fade-up 0.9s ease-out 0.55s both;
}

.reveal:hover,
.reveal:focus-visible {
  border-color: var(--signal);
  color: var(--ink);
  outline: none;
}

.reveal[aria-expanded="true"] {
  border-color: var(--stone);
  color: var(--ink);
  background: rgba(48, 63, 71, 0.04);
}

/* —— Process layer —— */
.process {
  position: relative;
  z-index: 1;
  width: min(100%, 44rem);
  margin-top: 2.75rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.7s ease, opacity 0.5s ease, margin-top 0.5s ease;
}

.process.is-open {
  max-height: 36rem;
  opacity: 1;
  pointer-events: auto;
  margin-top: 2.75rem;
}

.process__body {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(10rem, 1fr);
  gap: 0.75rem 1.5rem;
  align-items: stretch;
  padding: 0.25rem 0 0.5rem;
}

.process__rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0.35rem 0 1.25rem;
  color: var(--whisper);
}

.process__node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0 0;
  width: 100%;
}

.process__link {
  display: block;
  width: 1px;
  height: 1.35rem;
  margin: 0.45rem 0 0.15rem;
  background: var(--stone);
  opacity: 0.55;
}

.process__link--faint {
  background: var(--whisper);
  opacity: 0.35;
}

.process__glyph {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--paper);
  position: relative;
  z-index: 1;
  opacity: 0.95;
}

.process__node--vision .process__glyph,
.process__node--proto .process__glyph {
  width: 4.5rem;
  height: 4.5rem;
}

.process__node--vision .process__glyph {
  opacity: 1;
}

.process__node--proto .process__glyph {
  opacity: 0.85;
}

.process__node--construction .process__glyph {
  opacity: 0.4;
}

.process__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

.process__node--construction .process__label {
  color: var(--whisper);
}

.process__hint {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 12rem;
  line-height: 1.4;
  text-align: center;
}

.process__node--construction .process__hint {
  color: var(--whisper);
  opacity: 0.75;
}

/* —— Floating icons (right of process graph) —— */
.float-field {
  position: relative;
  min-height: 16rem;
  align-self: stretch;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  border-left: 1px solid rgba(212, 208, 201, 0.65);
  margin-left: 0.25rem;
  padding-left: 0.35rem;
}

.float-field.is-open {
  opacity: 1;
}

.float {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 4.75rem;
  opacity: 0;
  will-change: opacity, transform;
  transition: left 0.8s ease, top 0.8s ease;
}

.float.is-visible {
  animation: float-pulse var(--float-duration, 10s) ease-in-out var(--float-delay, 0s) infinite;
}

.float img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(0.15);
}

.float span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--whisper);
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .process__body {
    grid-template-columns: minmax(9rem, 12rem) minmax(7rem, 1fr);
    gap: 0.5rem 0.75rem;
  }

  .process__glyph {
    width: 2.75rem;
    height: 2.75rem;
  }

  .process__node--vision .process__glyph,
  .process__node--proto .process__glyph {
    width: 3.6rem;
    height: 3.6rem;
  }

  .float img {
    width: 2.2rem;
    height: 2.2rem;
  }

  .float {
    width: 4rem;
  }
}

@keyframes logo-settle {
  from {
    opacity: 0;
    transform: translateY(0.6rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(0.45rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-pulse {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  18%,
  42% {
    opacity: 0.9;
    transform: translateY(-0.15rem);
  }
  62% {
    opacity: 0.12;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .claim,
  .contact,
  .reveal {
    animation: none;
  }

  .float.is-visible {
    animation: none;
    opacity: 0.55;
  }

  .float {
    transition: none;
  }

  .process {
    transition: none;
  }
}
