/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ---------- Theme ----------
 * Primary: PANTONE Dewberry #8C5896
 * --acc      primary brand colour (buttons, highlights)
 * --acc-ink  brand colour used for text; lightened in dark mode for contrast
 * --acc2     lighter lilac used for the gradient end and focus rings
 */
:root {
  --bg: #fff;
  --bg2: #f7f4f8;
  --ink: #1d1d1f;
  --mute: #6e6e73;
  --line: #d9d2db;
  --acc: #8C5896;
  --acc-ink: #8C5896;
  --acc2: #C9A0DC;
  --acc-glow: rgba(140, 88, 150, .45);
  --on: #fff;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000;
    --bg2: #161417;
    --ink: #f5f5f7;
    --mute: #a1a1a6;
    --line: #3a363c;
    --acc-ink: #B98BC2;
  }
}
:root[data-theme="dark"] {
  --bg: #000;
  --bg2: #161417;
  --ink: #f5f5f7;
  --mute: #a1a1a6;
  --line: #3a363c;
  --acc-ink: #B98BC2;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-padding-top: 64px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--acc2); outline-offset: 3px; }

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px max(20px, 5vw);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.logo i { font-style: normal; color: var(--acc-ink); }
.logo-mark { display: block; width: 36px; height: 36px; border-radius: 9px; }
nav a.btn { padding: 7px 16px; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--acc);
  color: var(--on);
  border-radius: 980px;
  padding: 13px 26px;
  font-weight: 600;
  transition: transform .15s, background-color .15s;
}
.btn:hover { transform: scale(1.03); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Layout ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 max(20px, 5vw); }
section { padding: 96px 0; }
section.alt { background: var(--bg2); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 84px 0 56px; }
h1 {
  font-size: clamp(44px, 9vw, 92px);
  line-height: 1;
  letter-spacing: -.045em;
  margin: 0 0 22px;
  font-weight: 800;
}
h1 span {
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  font-size: clamp(19px, 2.6vw, 26px);
  color: var(--mute);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.35;
}
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Terminal ---------- */
.term {
  max-width: 760px;
  margin: 56px auto 0;
  background: #0c0c0e;
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px var(--acc-glow), 0 0 0 1px #2a2a2e;
  text-align: left;
  overflow: hidden;
}
.bar { display: flex; gap: 7px; padding: 12px 14px; background: #1c1c1f; }
.bar b { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.bar b:nth-child(2) { background: #febc2e; }
.bar b:nth-child(3) { background: #28c840; }
.bar em { margin-left: auto; font-style: normal; font-size: 12px; color: #8e8e93; }
.log {
  margin: 0;
  padding: 18px 20px 22px;
  min-height: 230px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #d1d1d6;
  overflow-x: auto;
  white-space: pre;
}
.log .g { color: #30d158; }
.log .o { color: #C9A0DC; }
.log .d { color: #8e8e93; }
.cur {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #C9A0DC;
  vertical-align: -2px;
  animation: bl 1s steps(1) infinite;
}
@keyframes bl { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
h2 {
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 800;
}
.lead { color: var(--mute); font-size: 21px; max-width: 620px; margin: 0 0 48px; }

.row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 8px 28px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { margin: 0; font-size: 19px; color: var(--acc-ink); }
.row p { margin: 0; color: var(--mute); }
.tag { font-size: 13px; color: var(--mute); white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--bg); border-radius: 22px; padding: 30px; }
.step .n { font-size: 15px; color: var(--acc-ink); font-weight: 700; }
.step h3 { font-size: 24px; letter-spacing: -.02em; margin: 10px 0 8px; }
.step p { margin: 0; color: var(--mute); }

.cta { text-align: center; }
.cta .lead { margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.risk {
  font-size: 13px;
  color: var(--mute);
  max-width: 760px;
  margin: 0 auto;
  padding: 40px max(20px, 5vw) 56px;
  text-align: center;
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px max(20px, 5vw);
  font-size: 13px;
  color: var(--mute);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive / motion ---------- */
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cur { animation: none; }
  .btn { transition: none; }
}
