/* /ULTRAPROMPT landing page - "violet keyhole at night".
   Palette + type inherited from the sibling beckonaccess-homepage, which is the
   same brand the Ultraprompt desktop app itself uses ("Access - Deep" theme). */

:root {
  --bg: #0a0813;
  --bg-elev: #120e22;
  --surface: #191330;
  --surface-2: #241b3d;
  --line: rgba(160, 98, 206, 0.14);
  --line-strong: rgba(160, 98, 206, 0.32);

  --violet: #a062ce;
  --violet-bright: #be87e5;
  --violet-deep: #241241;
  --violet-grad-top: #a98cf0;
  --violet-grad-mid: #8a5cc8;
  --violet-text-end: #6d3b88;

  --indigo: #46299b;
  --orchid: #c65bd6;
  --orchid-glow: rgba(198, 91, 214, 0.28);

  --ink: #eae4f2;
  --muted: #9a8fae;
  --success: #6fb98a;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--orchid);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section {
  padding-block: clamp(4rem, 9vw, 7rem);
  position: relative;
}

/* ---------- shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--orchid));
  flex: none;
}

/* Hero eyebrow: one line on desktop, stacks to centered lines on narrow screens
   (see the max-width: 560px block below). Keep each phrase unbroken. */
.eyebrow-split .eb-part {
  white-space: nowrap;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 22ch;
  text-wrap: balance;
}

.section-lead {
  color: var(--muted);
  max-width: 56ch;
  margin: 1rem 0 0;
  font-size: 1.02rem;
}

/* gradient hairline atop the interior sections - the top-bar signature */
.how::before,
.editor::before,
.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 3rem));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 98, 206, 0.4), rgba(198, 91, 214, 0.3), transparent);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  color: #fdfbff;
  background: linear-gradient(160deg, var(--indigo), var(--violet-deep));
  box-shadow:
    inset 0 1px 0 rgba(160, 130, 255, 0.32),
    0 1px 0 rgba(0, 0, 0, 0.4),
    0 12px 32px rgba(70, 41, 155, 0.42);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(160, 130, 255, 0.5),
    0 1px 0 rgba(0, 0, 0, 0.4),
    0 16px 40px rgba(70, 41, 155, 0.55);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--violet);
  transform: translateY(-1px);
}

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

.btn-sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.gh-mark {
  flex: none;
}

/* ---------- wordmark ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
}

.wordmark-bolt {
  color: var(--violet-bright);
  flex: none;
  filter: drop-shadow(0 0 8px var(--orchid-glow));
}

.wordmark-text {
  font-size: 0.95rem;
  background: linear-gradient(180deg, var(--violet-grad-top), var(--violet-grad-mid) 55%, var(--violet-text-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--violet);
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 8, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-head::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 98, 206, 0.5), rgba(198, 91, 214, 0.4), transparent);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  filter: drop-shadow(0 0 14px rgba(160, 98, 206, 0.22));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links .btn-primary {
  color: #fdfbff;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 8px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}

.burger-bar {
  width: 18px;
  height: 2px;
  background: var(--violet);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.hero::before {
  content: '';
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 92vw);
  height: 520px;
  background: radial-gradient(ellipse at center, var(--orchid-glow), transparent 70%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.04;
  max-width: 17ch;
  text-wrap: balance;
  margin-top: 1.1rem;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(180deg, var(--violet-grad-top), var(--violet-grad-mid) 52%, var(--violet-text-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--violet);
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 58ch;
  margin-top: 1.3rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cmd {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--violet-bright);
  letter-spacing: 0.02em;
}

.hero-cmd .prompt {
  color: var(--muted);
  margin-right: 0.1rem;
}

.caret {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  background: var(--orchid);
  margin-left: 0.2rem;
  vertical-align: -0.14em;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- screenshot frames ---------- */

.shot {
  margin: 0;
}

.shot-hero {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.editor .shot {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.shot-frame {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: 0 1px 0 rgba(208, 168, 236, 0.1) inset, 0 30px 90px rgba(0, 0, 0, 0.6);
  line-height: 0;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-cap {
  margin: 0.9rem 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------- how it works ---------- */

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

.step {
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-strong);
}

.step-no {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  background: linear-gradient(180deg, var(--violet-grad-top), var(--violet-text-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--violet);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.step:last-child .step-title {
  background: linear-gradient(90deg, var(--violet-bright), var(--orchid));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--orchid);
}

.step-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- features ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.6rem;
}

.fcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.fcard-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}

.fcard-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.fcard-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- final cta ---------- */

.final {
  text-align: center;
  overflow: hidden;
}

.final::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 92vw);
  height: 480px;
  background: radial-gradient(ellipse at center, var(--orchid-glow), transparent 70%);
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
}

.final-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.final h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.final-body {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
}

.final-repo {
  margin: 0.2rem 0 0;
}

.final-repo a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--violet);
  text-decoration: none;
}

.final-repo a:hover {
  color: var(--violet-bright);
}

.repo-bolt {
  color: var(--violet-bright);
  flex: none;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.foot-tagline {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 34ch;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
}

.foot-links a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
}

.foot-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- legal pages ---------- */

.legal {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 9vw, 7rem);
  min-height: 55vh;
}

.legal h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.legal-intro {
  margin: 1rem 0 3.4rem;
  color: var(--muted);
  max-width: 62ch;
}

.legal-block {
  margin-top: 2rem;
  max-width: 62ch;
}

.legal-block h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  max-width: none;
}

.legal-block p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

.legal-block ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-block a {
  color: var(--violet);
  word-break: break-word;
}

.legal-odr {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 62ch;
}

/* ---------- reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

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

@media (max-width: 760px) {
  .nav-burger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.5rem 1.2rem;
    background: rgba(10, 8, 19, 0.97);
    border-bottom: 1px solid var(--line-strong);
    text-align: left;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 0.7rem 0;
    font-size: 1rem;
  }
  .nav-links .btn-primary {
    margin-top: 0.7rem;
    text-align: center;
  }
  .foot-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
  /* hero eyebrow: gradient dash above, two phrases stacked, middot hidden */
  .eyebrow-split {
    flex-direction: column;
    gap: 0.65rem;
    text-align: center;
  }
  .eyebrow-split .eb-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    line-height: 1.4;
  }
  .eyebrow-split .eb-sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .caret {
    animation: none;
  }
}

/* ---------- decorative "no cookies" toast ---------- */
/* Stamp-style badge, bottom-right, shown once per session then auto-dismissed
   by main.js. Pure decoration: the site sets no cookies and embeds nothing
   third-party, so there is no accept/reject and no consent logic. */
.cookie-toast {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 60;
  text-align: right;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cookie-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}
.cookie-stamp {
  display: inline-block;
  transform: rotate(-6deg);
  padding: 8px 16px;
  border: 2px solid var(--violet);
  border-radius: 8px;
  background: rgba(160, 98, 206, 0.1);
  color: var(--violet-bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.cookie-cap {
  display: block;
  margin: 8px 2px 0;
  max-width: 30ch;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .cookie-toast {
    transition: opacity 0.3s ease;
    transform: none;
  }
  .cookie-toast.is-in {
    transform: none;
  }
}
