/* =============================================================================
   COLOR TOKENS — replace only here if brand palette changes
   --color-accent: primary accent (text, borders, icons on dark)
   --color-bg-deep / --color-bg-bright: gradient stops and section backgrounds
   ============================================================================= */
:root {
  --color-accent: #ffffff;
  --color-bg-deep: #31007f;
  --color-bg-bright: #5300f9;
  --color-surface: rgba(255, 255, 255, 0.06);
  --color-surface-strong: rgba(255, 255, 255, 0.12);
  --color-muted: rgba(255, 255, 255, 0.72);
  --color-faint: rgba(255, 255, 255, 0.45);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --shadow-soft: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
  --max-read: 42rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-accent);
  background: var(--color-bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  opacity: 0.9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- layout primitives ---------- */
.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    180deg,
    rgba(49, 0, 127, 0.92) 0%,
    rgba(49, 0, 127, 0.75) 100%
  );
  border-bottom: 1px solid var(--color-surface-strong);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
}

.brand:hover {
  opacity: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-faint);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: flex-end;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

.nav a:hover {
  border-bottom-color: var(--color-surface-strong);
  opacity: 1;
}

/* ---------- hero (unique diagonal + wind SVG) ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background: linear-gradient(
    155deg,
    var(--color-bg-deep) 0%,
    var(--color-bg-bright) 42%,
    #3d0aa8 78%,
    var(--color-bg-deep) 100%
  );
  transform: skewY(-3deg);
  transform-origin: top left;
  z-index: 0;
}

.hero__wind {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 900px) {
  .hero__content {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}

.hero__titleblock {
  padding-top: 0.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero__lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 36ch;
  margin: 0;
}

.keyword-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}

.keyword-ribbon li {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--color-surface-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  color: var(--color-faint);
}

.hero__aside {
  position: relative;
}

.pulse-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-strong);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
}

.pulse-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-bottom: 0.75rem;
}

.pulse-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* subtle “breathing” frame decoration */
.pulse-card__frame {
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-xl) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.01);
  }
}

/* ---------- angled section band ---------- */
.section-band {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: linear-gradient(
    180deg,
    var(--color-bg-deep) 0%,
    #2a006c 50%,
    var(--color-bg-deep) 100%
  );
}

.section-band--tilt {
  margin-top: -2rem;
  padding-top: clamp(4rem, 9vw, 6rem);
}

.section-band__header {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-band .sub {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* ---------- screenshots: staggered “deck” ---------- */
.shot-deck {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .shot-deck {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .shot-deck__item:nth-child(odd) {
    transform: translateY(1.5rem);
  }

  .shot-deck__item:nth-child(even) {
    transform: translateY(-0.5rem);
  }
}

.shot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 0.65rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid var(--color-surface-strong);
  box-shadow: var(--shadow-soft);
}

.shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.shot-frame img {
  border-radius: calc(var(--radius-lg) - 4px);
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.25);
}

.shot-caption {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--color-faint);
  text-align: center;
}

/* ---------- feature lattice ---------- */
.lattice {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .lattice {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .lattice {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lattice__cell {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 100%;
}

.lattice__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--color-accent);
}

.lattice__cell h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lattice__cell p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ---------- long-form story ---------- */
.prose-block {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(83, 0, 249, 0.35) 0%,
    transparent 65%
  ),
    var(--color-bg-deep);
}

.prose-block__inner {
  max-width: var(--max-read);
  margin-inline: auto;
}

.prose-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2.25rem 0 1rem;
  letter-spacing: -0.02em;
}

.prose-block h2:first-child {
  margin-top: 0;
}

.prose-block p {
  margin: 0 0 1.1rem;
  color: var(--color-muted);
  font-size: 1.02rem;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.pull-quote {
  margin: 2rem 0;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 3px solid var(--color-accent);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
  background: linear-gradient(
    90deg,
    var(--color-bg-bright) 0%,
    #4510c4 50%,
    var(--color-bg-deep) 100%
  );
  border-top: 1px solid var(--color-surface-strong);
  border-bottom: 1px solid var(--color-surface-strong);
}

.cta-strip p {
  margin: 0 auto 1.25rem;
  max-width: 28rem;
  color: var(--color-muted);
  font-size: 1rem;
}

.cta-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--color-accent);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg-deep);
}

.btn--primary:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.92);
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 2.5rem 0 2rem;
  font-size: 0.85rem;
  color: var(--color-faint);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  opacity: 1;
}

.legal-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-surface);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ---------- inner pages (privacy, terms, contacts) ---------- */
.page-hero {
  padding: clamp(2rem, 5vw, 3rem) 0 2rem;
  border-bottom: 1px solid var(--color-surface-strong);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-meta {
  font-size: 0.85rem;
  color: var(--color-faint);
  margin: 0;
}

.article {
  padding: 2.5rem 0 4rem;
}

.article__body {
  max-width: 46rem;
}

.article__body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.article__body h2:first-child {
  margin-top: 0;
}

.article__body p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.article__body ul {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  color: var(--color-muted);
}

.article__body li {
  margin-bottom: 0.4rem;
}

/* contacts */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.vcard {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-surface-strong);
}

.vcard dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.vcard dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-bottom: 0.2rem;
}

.vcard dd {
  margin: 0;
  font-size: 1rem;
}

.vcard a {
  word-break: break-word;
}

.form-panel {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-surface-strong);
  background: linear-gradient(
    160deg,
    rgba(83, 0, 249, 0.25) 0%,
    rgba(49, 0, 127, 0.4) 100%
  );
}

.form-panel h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.form-panel > p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-bg-deep);
  background: var(--color-accent);
  border: none;
  border-radius: 0.5rem;
}

.form-row textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-note {
  font-size: 0.78rem;
  color: var(--color-faint);
  margin-top: 1rem;
  line-height: 1.5;
}

/* ---------- repeating motif strip (visual fill) ---------- */
.motif-strip {
  display: flex;
  overflow: hidden;
  gap: 2rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--color-surface);
  background: rgba(0, 0, 0, 0.12);
}

.motif-strip__track {
  display: flex;
  gap: 2.5rem;
  animation: scroll-x 32s linear infinite;
  white-space: nowrap;
}

.motif-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-faint);
}

.motif-strip__item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

@keyframes scroll-x {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---------- utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .motif-strip__track,
  .pulse-card__frame {
    animation: none;
  }

  .shot-deck__item:nth-child(odd),
  .shot-deck__item:nth-child(even) {
    transform: none;
  }
}
