/* Atelys pain-point landings — design system inspired by atelys-digital.com */
:root {
  --night: #08070d;
  --night2: #100a15;
  --panel: #15101c;
  --panel-2: #1c1426;
  --violet: #7b3dff;
  --violet2: #b783ff;
  --copper: #ff8a5b;
  --coral: #ff5f87;
  --electric: #79e8ff;
  --mint: #72eab3;
  --ivory: #f4efe7;
  --paper: #fffdf8;
  --ink: #211720;
  --muted: #978f9c;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(123, 61, 255, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 95, 135, 0.14), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(121, 232, 255, 0.08), transparent 45%),
    var(--night);
  color: var(--ivory);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--violet2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--electric);
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
  color: rgba(244, 239, 231, 0.88);
}

.muted {
  color: var(--muted);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(8, 7, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ivory);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--ivory);
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--violet), var(--coral) 70%, var(--copper));
  box-shadow: 0 0 24px rgba(123, 61, 255, 0.45);
  position: relative;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.brand__text {
  font-size: 1.05rem;
}

.nav-back {
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-back:hover {
  color: var(--ivory);
}

/* Hero / page intro */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet2);
  margin-bottom: 1rem;
}

.page-hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 18ch;
  margin-bottom: 0.75rem;
}

.page-hero__lead {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(244, 239, 231, 0.78);
}

/* Hub cards */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-bottom: 4rem;
}

@media (min-width: 720px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid .card:nth-child(4),
  .cards-grid .card:nth-child(5) {
    grid-column: span 1;
  }
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.card__priority {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--electric);
  background: rgba(121, 232, 255, 0.1);
  border: 1px solid rgba(121, 232, 255, 0.25);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.card h2 {
  font-size: 1.25rem;
  margin: 0;
}

.card__summary {
  font-size: 0.95rem;
  color: rgba(244, 239, 231, 0.78);
  margin: 0;
  flex-grow: 0;
}

.card__angles {
  margin: 0;
  padding: 0.75rem 0 0.25rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card__angles li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.card__angles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

.card__angles-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet2);
  margin: 0.25rem 0 0;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Buttons */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 560;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  text-decoration: none;
  line-height: 1.2;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--violet), #993fff 55%, var(--coral));
  color: #fff;
  box-shadow: 0 10px 30px rgba(123, 61, 255, 0.35);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 14px 36px rgba(123, 61, 255, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--violet2);
  color: var(--violet2);
}

.btn--copy {
  background: rgba(123, 61, 255, 0.18);
  color: var(--violet2);
  border: 1px solid rgba(183, 131, 255, 0.35);
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}

.btn--copy:hover {
  background: rgba(123, 61, 255, 0.28);
  color: #fff;
}

.btn--copy.is-copied {
  background: rgba(114, 234, 179, 0.18);
  border-color: rgba(114, 234, 179, 0.45);
  color: var(--mint);
}

.btn--lg {
  padding: 0.95rem 1.55rem;
  font-size: 1rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 8, 0.72);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: min(90vh, 820px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(123, 61, 255, 0.12), transparent 30%),
    var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem 1.35rem;
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal__title {
  margin: 0;
  font-size: 1.35rem;
}

.modal__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal__close {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.modal__close:hover {
  border-color: var(--violet2);
  color: var(--violet2);
}

.script-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.script-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 550;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.script-tab:hover {
  color: var(--ivory);
  border-color: var(--line-strong);
}

.script-tab.is-active {
  background: rgba(123, 61, 255, 0.22);
  border-color: rgba(183, 131, 255, 0.5);
  color: var(--ivory);
}

.script-panel {
  display: none;
}

.script-panel.is-active {
  display: block;
}

.script-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.script-meta__tone {
  font-size: 0.78rem;
  color: var(--muted);
}

.script-meta__duration {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--electric);
}

.script-text {
  background: rgba(8, 7, 13, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ivory);
  white-space: pre-wrap;
  margin: 0 0 1rem;
}

.script-audio {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(123, 61, 255, 0.1);
}

.script-audio__label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet2);
}

.script-audio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .script-audio__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.script-audio__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.script-audio__voice {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 560;
  color: var(--ivory);
}

.script-audio__player {
  width: 100%;
  height: 36px;
  border-radius: 999px;
}

.script-audio__status {
  margin: 0;
  font-size: 0.78rem;
}

.script-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

body.modal-open {
  overflow: hidden;
}

/* Landing pages */
.landing-hero {
  padding: 4rem 0 2.5rem;
}

.landing-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.landing-hero__tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.section {
  padding: 2.25rem 0;
}

.section--tight {
  padding: 1.5rem 0;
}

.section__label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet2);
  margin-bottom: 0.75rem;
}

.prose {
  max-width: 62ch;
}

.prose p {
  font-size: 1.08rem;
  margin-bottom: 1.1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.story-block {
  border-left: 2px solid var(--violet);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.story-block p {
  font-size: 1.15rem;
  color: rgba(244, 239, 231, 0.92);
}

.cost-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .cost-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cost-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.05rem;
}

.cost-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--ivory);
}

.cost-item span {
  font-size: 0.88rem;
  color: var(--muted);
}

.angles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .angles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.angle-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
}

.angle-card__num {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 0.55rem;
}

.angle-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.angle-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.proof {
  background:
    linear-gradient(135deg, rgba(123, 61, 255, 0.16), rgba(255, 138, 91, 0.08)),
    var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  margin-top: 1rem;
}

.proof__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.6rem;
}

.proof p {
  margin-bottom: 0.75rem;
}

.proof p:last-child {
  margin-bottom: 0;
}

.cta-band {
  margin: 3rem 0 4rem;
  padding: 2.25rem 1.75rem;
  border-radius: 24px;
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(123, 61, 255, 0.35), transparent 60%),
    linear-gradient(135deg, #1a1026, #120b1a 60%, #1d1228);
  border: 1px solid var(--line-strong);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  max-width: 22ch;
  margin: 0 auto 0.75rem;
}

.cta-band p {
  max-width: 42ch;
  margin: 0 auto 1.5rem;
  color: rgba(244, 239, 231, 0.78);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ivory);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--violet2);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .card__actions {
    flex-direction: column;
  }

  .card__actions .btn {
    width: 100%;
  }
}
