/* Real Command Arranger — presentation site
   Brand: stage console · brass signal · cool paper (not purple / not cream-serif) */

:root {
  --paper: #e8ecf1;
  --paper-deep: #d5dce6;
  --ink: #121820;
  --ink-soft: #2a3444;
  --muted: #5c6a7c;
  --brass: #c9893a;
  --brass-hot: #e8a54b;
  --signal: #2bb673;
  --signal-glow: #5ee4a8;
  --stage: #1a2332;
  --stage-2: #0e141c;
  --line: rgba(18, 24, 32, 0.12);
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brass);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

/* —— Nav —— */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  color: #f4f6f8;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang {
  display: inline-flex;
  border: 1px solid rgba(244, 246, 248, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(244, 246, 248, 0.7);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.lang__btn.is-active {
  background: var(--brass);
  color: var(--ink);
}

.lang__btn:hover:not(.is-active) {
  color: var(--brass-hot);
}

.legal-nav .lang {
  border-color: rgba(244, 246, 248, 0.28);
}

.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__brand img {
  width: 36px;
  height: 36px;
}

.nav__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.nav__links a {
  color: rgba(244, 246, 248, 0.82);
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--brass-hot);
}

/* —— Hero (one composition) —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  background: var(--stage-2);
  color: #f4f6f8;
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 40%, rgba(201, 137, 58, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(43, 182, 115, 0.12), transparent 50%),
    linear-gradient(160deg, #152032 0%, var(--stage-2) 45%, #0a0e14 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

.hero__visual {
  position: absolute;
  right: -4%;
  top: 12%;
  width: min(58vw, 640px);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: riseIn 1.1s 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(6rem, 14vh, 9rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4rem);
  max-width: 34rem;
}

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-hot);
  margin: 0 0 0.85rem;
  opacity: 0;
  animation: riseIn 0.8s 0.05s ease forwards;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  opacity: 0;
  animation: riseIn 0.9s 0.15s ease forwards;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: rgba(244, 246, 248, 0.78);
  font-size: 1.08rem;
  max-width: 28rem;
  opacity: 0;
  animation: riseIn 0.9s 0.3s ease forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: riseIn 0.9s 0.45s ease forwards;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brass);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--brass-hot);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: #f4f6f8;
  border-color: rgba(244, 246, 248, 0.35);
}

.btn--ghost:hover {
  border-color: var(--brass-hot);
  color: var(--brass-hot);
}

.btn--ink {
  background: var(--ink);
  color: #f4f6f8;
}

.btn--ink:hover {
  background: var(--ink-soft);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--brass);
  color: var(--brass);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vh, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}

.section__lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 36rem;
}

.section--alt {
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
}

.section--stage {
  background: var(--stage);
  color: #f4f6f8;
}

.section--stage .section__lead {
  color: rgba(244, 246, 248, 0.7);
}

/* Feature strip — not cards: open rows with rules */
.features {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.feature__index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brass);
  letter-spacing: -0.02em;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* Platforms */
.platforms {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .platforms {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.platform h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.platform p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.platform__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.section--stage .note {
  color: rgba(244, 246, 248, 0.55);
}

/* Donate */
.feat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feat-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink-soft);
}

.feat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--signal);
  border-radius: 1px;
}

.gallery {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery__item {
  margin: 0;
}

.gallery__item img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--stage);
}

.gallery__item figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.demo-slot {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(244, 246, 248, 0.28);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(244, 246, 248, 0.55);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.demo-slot iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.footer__inner--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.made-with {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.made-with__heart {
  display: inline-block;
  color: #d94a5b;
  margin: 0 0.2rem;
  animation: heartBeat 1.8s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.18); }
  60% { transform: scale(1); }
}

.donate {
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
}

.donate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Footer */
.footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 1rem;
}

.footer a:hover {
  color: var(--brass);
}

/* Privacy page */
.legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 6rem clamp(1.25rem, 4vw, 3rem) 4rem;
}

.legal h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.legal .meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal-nav {
  position: relative;
  background: var(--stage);
  color: #f4f6f8;
}

/* —— Device illustration —— */
.device {
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
}

.device .led {
  animation: ledPulse 2.4s ease-in-out infinite;
}

.device .led:nth-child(2) { animation-delay: 0.35s; }
.device .led:nth-child(3) { animation-delay: 0.7s; }

@keyframes ledPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@media (max-width: 820px) {
  .hero__visual {
    position: relative;
    right: auto;
    top: auto;
    width: min(92vw, 420px);
    margin: 5.5rem auto 0;
    opacity: 1;
    transform: none;
    animation: riseIn 1s 0.2s ease forwards;
  }

  .hero {
    align-items: stretch;
  }

  .hero__content {
    padding-top: 1rem;
  }

  .nav__links {
    display: none;
  }

  .nav__right {
    gap: 0.5rem;
  }
}
