@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");

/* Colours are taken from the LogoFlux wordmark: white on a violet-black, with its purple as the accent. */
:root {
  --bg: #08050f;
  --panel: #120c20;
  --raise: #1b1330;
  --raise-2: #251a42;
  --field: #0d0818;
  --line: #2a1f45;
  --line-2: #43346b;
  --text: #f3f0fb;
  --muted: #9d94b8;
  --accent: #8b4dff;
  --accent-hi: #a66bff;
  --accent-lo: #632afd;
  --danger: #ff7a8a;
  --ok: #5fe0a8;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--accent-hi); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.02; }
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

#top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 5, 15, 0.82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 30px; width: auto; }
#top nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
#top nav a:not(.button) { color: var(--muted); text-decoration: none; padding: 6px 10px; font: 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
#top nav a:not(.button):hover, #top nav a.current { color: var(--text); }

.button, button {
  display: inline-block;
  font: inherit;
  color: var(--text);
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 14px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button:hover { border-color: var(--line-2); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo)); border-color: var(--accent); color: #fff; font-weight: 650; }
.primary:hover { filter: brightness(1.1); border-color: var(--accent-hi); }
.linklike { padding: 0; background: none; border: 0; color: var(--accent-hi); font-size: 14px; text-decoration: underline; }
.danger { color: var(--danger); border-color: rgba(255, 122, 138, 0.45); }
.danger:hover { border-color: var(--danger); }
.large { padding: 14px 24px; font-size: 17px; }
.small { padding: 4px 10px; font-size: 14px; }
.arrow::after { content: "\2197"; margin-left: 14px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 420px; }
section { padding: 56px 0; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent-hi); font: 12px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 12px; }
.hl { background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Home page ---- */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
/* The example video sits to the right, clear of the headline. */
.hero video.back { position: absolute; right: -2%; top: 46%; width: 56%; aspect-ratio: 16 / 9; transform: translateY(-50%); z-index: -2;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 48%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 48%, transparent 72%); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 5, 15, 0) 70%, var(--bg) 100%),
    radial-gradient(ellipse at 0% 60%, rgba(99, 42, 253, 0.35), rgba(99, 42, 253, 0) 55%);
}
.hero .wrap { width: 100%; padding-top: 80px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(64px, 10vw, 164px); line-height: 0.92; letter-spacing: 0; }
.hero h1 span { display: block; }
.star { color: var(--accent-hi); font-family: system-ui, sans-serif; font-size: 0.5em; vertical-align: 0.5em; margin-left: 0.08em; }
.hero p.lead { font-size: 18px; margin: 26px 0 28px; max-width: 52ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { font: 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 0; }

.band { background: var(--accent-lo); overflow: hidden; transform: rotate(-1.4deg) scale(1.02); margin: -18px 0 0; position: relative; z-index: 2; }
.band div { display: flex; width: max-content; animation: slide 36s linear infinite; }
.band span { font: 30px/1 var(--display); text-transform: uppercase; padding: 18px 0; white-space: nowrap; color: #fff; }
.band span::after { content: "\2731"; font-family: system-ui, sans-serif; font-size: 0.7em; margin: 0 44px; color: #d9c8ff; }
@keyframes slide { to { transform: translateX(-50%); } }

.label { display: flex; justify-content: space-between; gap: 20px; font: 12px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.label b { font-weight: 400; color: var(--text); }
.home { overflow-x: clip; }
.home section { padding: 96px 0; }
.home h2 { font-size: clamp(48px, 9vw, 150px); line-height: 0.94; }
.home h2 span { display: block; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.steps > div { padding: 28px 28px 8px 0; }
.steps > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.steps .num { display: block; font: 96px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 18px; }
.steps h3 { font: 400 28px/1.05 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { display: flex; align-items: center; gap: 20px; padding: 26px 0; }
.stats > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.stats strong { font: 400 64px/1 var(--display); text-transform: uppercase; }
.stats span { font: 12px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); max-width: 16ch; }

.looks { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.look { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; margin-top: 64px; }
.look.flip { grid-template-columns: 1fr 1.25fr; }
.look.flip video { order: 2; }
.look video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.look .file { font: 12px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-hi); margin: 0 0 12px; }
.look h3 { font: 400 clamp(40px, 6vw, 88px)/0.95 var(--display); text-transform: uppercase; }
.look p { color: var(--muted); max-width: 40ch; margin: 18px 0 0; }
a.look { color: inherit; text-decoration: none; }
a.look video { transition: border-color 0.15s; }
a.look:hover video, a.look:focus-visible video { border-color: var(--accent-hi); }
.look p.use { color: var(--accent-hi); font: 12px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.look p.use::after { content: "\2197"; margin-left: 10px; }
a.look:hover p.use { color: var(--text); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 64px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.features li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; gap: 18px; }
.features li::before { content: "\2731"; color: var(--accent-hi); }
.features strong { color: var(--text); font-weight: 600; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.faq h2 { font-size: clamp(48px, 7vw, 110px); }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--accent-hi); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 18px; color: var(--muted); max-width: 56ch; }

.finale { text-align: center; background: radial-gradient(ellipse at 50% 110%, rgba(99, 42, 253, 0.5), rgba(99, 42, 253, 0) 62%); }
.finale .label { justify-content: center; }
.finale h2 { font-size: clamp(60px, 13vw, 200px); }
.finale p { margin: 26px auto 28px; max-width: 46ch; }
.finale .actions { justify-content: center; }

/* ---- Cards and plans ---- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; align-items: stretch; }
.home .plans { margin-top: 64px; }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan h3 { font: 12px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.plan.best { border-color: var(--accent); background: linear-gradient(180deg, rgba(99, 42, 253, 0.22), var(--panel) 60%); }
.plan .price { font: 400 48px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.plan .price small { font: 400 14px system-ui, sans-serif; color: var(--muted); }
.plan ul { margin: 10px 0 18px; padding-left: 18px; color: var(--muted); flex: 1; }
.plan li { margin: 4px 0; }
.badge { align-self: flex-start; font: 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; background: var(--accent); color: #fff; }

/* ---- Forms ---- */
form.stack, .stack { display: grid; gap: 14px; }
label.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="file"], textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
.message { min-height: 1.5em; margin: 0; font-size: 14px; color: var(--muted); }
.message.error { color: var(--danger); }
.message.ok { color: var(--ok); }
.notice { background: var(--field); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Confirmation popup ---- */
dialog.confirm { width: min(440px, calc(100vw - 32px)); padding: 26px; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; }
dialog.confirm::backdrop { background: rgba(4, 2, 10, 0.72); }
dialog.confirm h2 { font-size: 30px; }
dialog.confirm p { margin: 12px 0 0; overflow-wrap: anywhere; }
dialog.confirm .actions { justify-content: flex-end; margin-top: 22px; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font: 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.status { font-weight: 600; }
.status.pending { color: var(--accent-hi); }
.status.approved { color: var(--ok); }
.status.rejected { color: var(--danger); }
td .actions { display: flex; gap: 6px; flex-wrap: wrap; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font: 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer img { height: 22px; width: auto; display: block; }

@media (max-width: 820px) {
  .steps, .stats, .plans, .features, .look, .look.flip, .faq { grid-template-columns: 1fr; }
  .steps > div + div, .stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .look.flip video { order: 0; }
  .look { gap: 20px; }
  #top, .wrap { padding-left: 16px; padding-right: 16px; }
  section { padding: 40px 0; }
  .home section { padding: 64px 0; }
  .band span { font-size: 22px; padding: 14px 0; }
  .label { margin-bottom: 28px; }
  .hero .wrap { padding-bottom: 56px; }
  .hero { min-height: 0; }
  .hero video.back { inset: 0 0 auto 0; width: 100%; height: auto; transform: none; -webkit-mask-image: none; mask-image: none; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 5, 15, 0) 0%, rgba(8, 5, 15, 0) 20%, var(--bg) 34%); }
  .hero .wrap { padding-top: calc(56.25vw + 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .band div { animation: none; }
}
