/* VioraAI coming soon
   Direction: solid enterprise purple; feature widgets; full-bleed atmosphere */

:root {
  --ink: #14101c;
  --paper: #f2eff8;
  --paper-muted: rgba(242, 239, 248, 0.74);
  --purple: #7c5cfc;
  --purple-deep: #6346e0;
  --purple-soft: rgba(124, 92, 252, 0.22);
  --stone: #a39bb8;
  --line: rgba(242, 239, 248, 0.2);
  --panel: rgba(18, 14, 32, 0.72);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space: clamp(1.25rem, 3vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background: #0c0a14;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Atmosphere */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.atmosphere__photo {
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(115deg, rgba(14, 10, 28, 0.25) 0%, transparent 45%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2400&q=80")
      center / cover no-repeat;
  animation: drift 28s var(--ease) infinite alternate;
  will-change: transform;
}

.atmosphere__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      165deg,
      rgba(12, 10, 24, 0.58) 0%,
      rgba(18, 12, 36, 0.74) 42%,
      rgba(10, 8, 20, 0.92) 100%
    ),
    radial-gradient(ellipse 75% 50% at 70% 18%, rgba(124, 92, 252, 0.3), transparent 55%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(124, 92, 252, 0.12), transparent 50%);
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
  animation: grid-breathe 12s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.06) translate(-1.2%, 0.8%);
  }
}

@keyframes grid-breathe {
  from {
    opacity: 0.1;
  }
  to {
    opacity: 0.2;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(124, 92, 252, 0.45);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(124, 92, 252, 0);
  }
}

/* Hero */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.5rem, 8vh, 4.5rem) var(--space) clamp(3rem, 8vh, 5rem);
  text-align: center;
}

.hero__inner {
  width: 100%;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--paper);
  animation: rise 1s var(--ease) 0.1s both;
}

.hero__headline {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--paper-muted);
  animation: rise 1s var(--ease) 0.22s both;
}

.hero__lede {
  margin: 0 0 2rem;
  max-width: 32rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--stone);
  animation: rise 1s var(--ease) 0.34s both;
}

.hero__cta {
  width: 100%;
  max-width: 28rem;
  animation: rise 1s var(--ease) 0.46s both;
}

.waitlist {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(16, 12, 30, 0.55);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.waitlist:focus-within {
  border-color: rgba(124, 92, 252, 0.7);
  background: rgba(16, 12, 30, 0.78);
}

.waitlist input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3.15rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
}

.waitlist input::placeholder {
  color: rgba(242, 239, 248, 0.42);
}

.waitlist input:focus {
  outline: none;
}

.waitlist button {
  flex: 0 0 auto;
  min-height: 3.15rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 0;
  background: var(--purple);
  color: #f7f5ff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.waitlist button:hover:not(:disabled) {
  background: var(--purple-deep);
}

.waitlist button:disabled {
  cursor: default;
  background: var(--purple-deep);
  opacity: 0.9;
}

.hero__note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: rgba(163, 155, 184, 0.9);
}

/* Capabilities + widgets */

.capabilities {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  padding: 0;
  border-top: none;
  background: transparent;
  backdrop-filter: none;
  text-align: left;
}

.capabilities__intro {
  max-width: 40rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.capabilities__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

.capabilities h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.capabilities__lede {
  margin: 0;
  color: var(--stone);
  font-size: 1.05rem;
}

.widgets {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  max-width: 72rem;
  margin: 0 auto;
}

.widget {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid rgba(242, 239, 248, 0.28);
  border-radius: 6px;
  background: rgba(18, 14, 32, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.widget:hover {
  border-color: rgba(124, 92, 252, 0.45);
  transform: translateY(-2px);
}

.widgets-more {
  margin: 1.75rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--purple);
}

.widget__head {
  display: block;
}

.widget__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.widget__desc {
  margin: 0;
  color: var(--stone);
  font-size: 0.92rem;
}

.widget__panel {
  margin-top: 0.25rem;
  padding: 0.9rem;
  border: 1px solid rgba(242, 239, 248, 0.1);
  border-radius: 4px;
  background: rgba(8, 6, 16, 0.55);
  font-size: 0.85rem;
  min-height: 8.5rem;
}

/* Voice */

.voice-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper-muted);
  margin-bottom: 0.85rem;
}

.voice-line__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--purple);
  animation: pulse-dot 2s ease-in-out infinite;
}

.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  height: 2rem;
  margin-bottom: 0.85rem;
}

.voice-wave span {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--purple);
  transform-origin: center;
  animation: wave 1.1s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; }
.voice-wave span:nth-child(2) { animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { animation-delay: 0.15s; }
.voice-wave span:nth-child(5) { animation-delay: 0.25s; }
.voice-wave span:nth-child(6) { animation-delay: 0.05s; }
.voice-wave span:nth-child(7) { animation-delay: 0.18s; }

.voice-script {
  margin: 0 0 0.65rem;
  color: var(--paper-muted);
  font-style: italic;
}

.voice-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.voice-tags li {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--purple-soft);
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Documents */

.doc-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--paper-muted);
}

.doc-row__state {
  color: var(--purple);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doc-fields {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
}

.doc-fields div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.doc-fields dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone);
}

.doc-fields dd {
  margin: 0;
  color: var(--paper);
  font-weight: 500;
}

.doc-fields .ok {
  color: #9f8cff;
}

/* Chat */

.widget__panel--chat {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  line-height: 1.35;
}

.chat-bubble--in {
  align-self: flex-start;
  background: rgba(242, 239, 248, 0.08);
  color: var(--paper-muted);
}

.chat-bubble--out {
  align-self: flex-end;
  background: var(--purple-soft);
  color: var(--paper);
}

.chat-meta {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Maintenance */

.ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ticket-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper-muted);
}

.ticket-pri {
  flex-shrink: 0;
  width: 2.6rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0;
  border-radius: 2px;
}

.ticket-pri--high {
  background: rgba(124, 92, 252, 0.28);
  color: #d4c8ff;
}

.ticket-pri--med {
  background: rgba(124, 92, 252, 0.14);
  color: #b8a8f5;
}

.ticket-pri--low {
  background: rgba(242, 239, 248, 0.08);
  color: var(--stone);
}

/* Collections */

.collect-stat {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.collect-stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.collect-stat__label {
  color: var(--stone);
  font-size: 0.8rem;
}

.collect-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(242, 239, 248, 0.1);
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.collect-bar span {
  display: block;
  height: 100%;
  background: var(--purple);
  border-radius: 3px;
}

.collect-note {
  margin: 0;
  color: var(--stone);
  font-size: 0.8rem;
}

/* Insights */

.insight-q {
  margin: 0 0 0.65rem;
  color: var(--paper-muted);
  font-style: italic;
}

.insight-a {
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(242, 239, 248, 0.1);
  color: var(--paper);
  font-weight: 500;
}

/* Footer */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.75rem var(--space) 2.25rem;
  border-top: 1px solid var(--line);
  background: rgba(10, 8, 18, 0.96);
  font-size: 0.9rem;
  color: var(--stone);
  text-align: center;
}

.foot__copy {
  margin: 0;
}

/* Responsive */

@media (max-width: 640px) {
  .hero {
    padding-inline: 1.15rem;
  }

  .hero__brand {
    font-size: clamp(2.5rem, 14vw, 3.75rem);
  }

  .waitlist {
    flex-direction: column;
  }

  .waitlist button {
    border-top: 1px solid rgba(242, 239, 248, 0.12);
  }

  .capabilities,
  .foot {
    padding-inline: 0;
  }

  .hero {
    padding-inline: 1.15rem;
  }

  .foot {
    padding-inline: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__photo,
  .atmosphere__grid,
  .hero__brand,
  .hero__headline,
  .hero__lede,
  .hero__cta,
  .voice-wave span,
  .voice-line__dot {
    animation: none !important;
  }

  .atmosphere__photo {
    transform: none;
  }

  .widget:hover {
    transform: none;
  }

  .voice-wave span {
    transform: scaleY(0.7);
  }

  html {
    scroll-behavior: auto;
  }
}
