:root {
  --bg: #0a0a0d;
  --bg-raised: rgba(255, 255, 255, 0.03);
  --bg-raised-strong: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  /* Numele variabilelor rămâne "gold" (evită atingerea a zeci de referințe în restul fișierului)
     — valorile au devenit albastru-violet (indigo), ca în gradientul logo-ului QueueDesk. */
  --border-gold: rgba(99, 102, 241, 0.22);
  --border-gold-strong: rgba(99, 102, 241, 0.45);

  --gold: #a5b4fc;
  --gold-strong: #c7d2fe;
  --gold-deep: #6366f1;
  --gold-ink: #1e1b4b;

  --green: #4ade80;

  --text-primary: #f3efe6;
  --text-secondary: #a8a294;
  --text-muted: #6e695e;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 800px 500px at 75% 8%, rgba(99, 102, 241, 0.07), transparent 65%),
    radial-gradient(ellipse 600px 400px at 15% 30%, rgba(99, 102, 241, 0.04), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo img {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 150ms ease;
}

.site-nav a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.link-quiet {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
}

.link-quiet:hover {
  color: var(--text-primary);
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease,
    box-shadow 150ms ease, transform 150ms ease;
  min-height: 44px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.25), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #f5f5f4, var(--gold-strong));
  box-shadow: 0 0 36px rgba(99, 102, 241, 0.4), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-header {
  padding: 9px 18px;
  min-height: 38px;
  font-size: 14px;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-gold);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-raised);
  border-color: var(--border-gold-strong);
}

.btn-secondary svg {
  color: var(--gold);
}

/* --- Hero --- */

.hero {
  padding: 88px 0 104px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
  background: rgba(99, 102, 241, 0.05);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.9);
  flex-shrink: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 62px);
  font-optical-sizing: auto;
  line-height: 1.08;
  font-weight: 500;
  margin: 0 0 26px;
  letter-spacing: -0.015em;
}

h1 em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 48px rgba(99, 102, 241, 0.35);
}

.hero-pitch {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 48ch;
  margin: 0 0 14px;
}

.hero-pitch-strong {
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-features {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.hero-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 150px;
  flex: 1;
}

.hero-features svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-features strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.hero-features span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- Hero visual: mesaj -> flux -> tichet --- */

.hero-visual {
  display: flex;
  align-items: center;
  position: relative;
}

.msg-card {
  background: var(--bg-raised-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  width: 210px;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.msg-head .logo-slack,
.msg-head .logo-discord {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.msg-channel {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
}

.msg-meta {
  margin: 0 0 4px;
  font-size: 13px;
}

.msg-meta strong {
  font-weight: 600;
}

.msg-meta span {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 8px;
}

.msg-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.flow-wrap {
  position: relative;
  width: 72px;
  height: 240px;
  flex-shrink: 0;
  margin: 0 -6px;
  z-index: 1;
}

.flow-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.55));
}

.flow-line {
  stroke-dasharray: 6 8;
  animation: flow-dash 2.8s linear infinite;
}

@keyframes flow-dash {
  to {
    stroke-dashoffset: -28;
  }
}

.flow-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.45);
}

.ticket-panel {
  flex: 1;
  min-width: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 20px 22px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 60px -12px rgba(99, 102, 241, 0.2),
    0 28px 56px -20px rgba(0, 0, 0, 0.7);
  transform: perspective(1400px) rotateY(-3deg);
  position: relative;
  z-index: 2;
}

.tp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.tp-head > img {
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
  flex-shrink: 0;
}

.tp-title-wrap {
  flex: 1;
  min-width: 0;
}

.tp-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tp-status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green);
}

.tp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
}

.tp-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 3px 9px;
  flex-shrink: 0;
}

.tp-row {
  padding: 9px 0;
}

.tp-row + .tp-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tp-row-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tp-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-row:not(.tp-row-inline) .tp-label {
  margin-bottom: 5px;
}

.tp-text {
  margin: 0 0 3px;
  font-size: 14px;
}

.tp-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.tp-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
}

.tp-value .logo-slack {
  width: 15px;
  height: 15px;
}

.tp-value-open {
  color: var(--green);
}

.tp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  white-space: nowrap;
}

.tp-btn svg {
  width: 15px;
  height: 15px;
}

.tp-btn-main {
  color: var(--gold);
  border-color: var(--border-gold);
  background: rgba(99, 102, 241, 0.06);
}

/* --- Sections --- */

section {
  padding: 88px 0;
}

.section-header {
  max-width: 60ch;
  margin: 0 0 44px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.2vw, 36px);
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
}

/* --- Pillars grid --- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.pillar-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.pillar-card:hover {
  border-color: var(--border-gold-strong);
  box-shadow: 0 0 32px -8px rgba(99, 102, 241, 0.25);
}

.pillar-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 3px 9px;
  margin-bottom: 14px;
  background: rgba(99, 102, 241, 0.05);
}

.pillar-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* --- How it works --- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold-deep));
  color: var(--gold-ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

@media (min-width: 861px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 48px;
    right: -12px;
    border-top: 1px dashed var(--border-gold);
  }
}

/* --- FAQ --- */

.faq-list {
  max-width: 72ch;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
  background: var(--bg-raised);
  transition: border-color 150ms ease;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--border-gold);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  padding: 14px 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
  transition: transform 150ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 65ch;
}

/* --- Trust strip --- */

.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
  background: var(--bg-raised);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font-mono);
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-items li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.trust-items svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

/* --- Final CTA --- */

.final-cta {
  text-align: center;
  background-image: radial-gradient(ellipse 560px 300px at 50% 60%, rgba(99, 102, 241, 0.1), transparent 70%);
  background-repeat: no-repeat;
  padding: 112px 0;
}

.final-cta h2 {
  margin-bottom: 12px;
}

.final-cta .section-lead {
  margin: 0 auto 30px;
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Responsive --- */

@media (max-width: 1023px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-visual {
    flex-direction: column;
    gap: 0;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }

  .msg-card {
    width: 100%;
  }

  .flow-wrap {
    width: 240px;
    height: 72px;
  }

  .flow-svg {
    display: none;
  }

  .flow-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 1.5px dashed var(--border-gold-strong);
  }

  .ticket-panel {
    transform: none;
    width: 100%;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 64px;
  }

  section {
    padding: 60px 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero-features {
    flex-direction: column;
    gap: 16px;
  }

  .header-actions .link-quiet {
    display: none;
  }
}
