/* Arktos Tools — shared styles. Dark, restrained, depth-driven. */
:root {
  --bg0: #05080f;
  --bg1: #0a1120;
  --panel: rgba(15, 23, 42, 0.55);
  --panel-solid: #0e1627;
  --line: rgba(148, 163, 184, 0.14);
  --text: #e6edf7;
  --muted: #8fa1ba;
  --faint: #5b6b84;
  --accent: #3b82f6; /* overridden per tool */
  --radius: 16px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: radial-gradient(1200px 700px at 70% -10%, #101d3a 0%, var(--bg1) 45%, var(--bg0) 100%) fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(59, 130, 246, 0.35); }

/* Constellation canvas sits behind everything */
#field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---- header ---- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.wordmark .sigil {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, #1e3a8a, #0f172a);
  border: 1px solid rgba(99, 140, 255, 0.35);
  font-weight: 800; font-size: 17px; color: #cfe0ff;
  box-shadow: 0 6px 24px rgba(30, 64, 175, 0.35);
}
.wordmark b { font-size: 17px; letter-spacing: 0.02em; font-weight: 700; }
.wordmark span.dim { color: var(--faint); font-weight: 500; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.top nav a:hover { color: var(--text); }

/* ---- hero ---- */
.hero { padding: 84px 0 40px; text-align: left; max-width: 780px; }
.hero h1 {
  font-size: clamp(40px, 6.5vw, 68px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800;
  background: linear-gradient(115deg, #f3f7ff 30%, #a9c3f5 75%, #6d90d8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 620px; }
.hero .chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 12.5px; font-weight: 600; color: #b7c7e2;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(20, 30, 52, 0.5);
  backdrop-filter: blur(6px);
}

/* ---- section headings on the index ---- */
.section-head { padding: 44px 0 2px; }
.section-head:first-child { padding-top: 34px; }
.section-head h2 {
  font-size: 22px; font-weight: 750; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px;
}
.section-head h2::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.section-head p { margin-top: 7px; color: var(--muted); font-size: 15px; }

/* ---- card grid ---- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px; padding: 22px 0 12px;
  perspective: 1400px;
}
.card {
  position: relative; display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(23, 33, 55, 0.85), rgba(10, 16, 30, 0.9));
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 24px 70px -18px color-mix(in srgb, var(--accent) 38%, transparent); }
.card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; transform: translateZ(24px); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.035); }
.card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 20, 0.92) 100%);
}
.card .type-tag {
  position: absolute; top: 10px; left: 10px; z-index: 4;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; color: #dbe6fb;
  background: rgba(6, 10, 20, 0.62); border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.card .glare {
  position: absolute; inset: -40%; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(400px 300px at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.14), transparent 60%);
  transition: opacity .25s;
}
.card:hover .glare { opacity: 1; }
.card .body { padding: 20px 22px 22px; transform: translateZ(34px); }
.card .name-row { display: flex; align-items: center; gap: 10px; }
.card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.card h3 { font-size: 21px; font-weight: 750; letter-spacing: -0.01em; }
.card p { margin-top: 7px; color: var(--muted); font-size: 14.5px; }
.card .meta { margin-top: 15px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.badge.status-live { color: #4ade80; border-color: rgba(74, 222, 128, 0.35); }
.badge.status-review { color: #facc15; border-color: rgba(250, 204, 21, 0.3); }
.badge.status-soon { color: #93c5fd; border-color: rgba(147, 197, 253, 0.3); }
.badge.price { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

/* ---- shared section bits ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.footer {
  margin-top: 70px; padding: 34px 0 46px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 13.5px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---- detail page ---- */
.crumb { padding-top: 8px; font-size: 14px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.detail-hero { padding: 44px 0 10px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.detail-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; }
.detail-hero h1 .accent { color: var(--accent); }
.detail-hero p.lead { margin-top: 16px; color: var(--muted); font-size: 17px; }
.detail-hero .badges { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; text-decoration: none;
  font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 34px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); background: rgba(18, 27, 47, 0.5); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.hero-visual { perspective: 1200px; }
.hero-visual .frame {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 18px 50px -20px color-mix(in srgb, var(--accent) 30%, transparent);
  transform-style: preserve-3d; transition: transform .18s ease-out;
}
.hero-visual img { display: block; width: 100%; }

.section { padding: 54px 0 6px; }
.section h2 { font-size: 26px; font-weight: 750; letter-spacing: -0.015em; margin-bottom: 22px; }
.section h2 .tick { color: var(--accent); }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: var(--panel); backdrop-filter: blur(8px); }
.tier.pro { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.tier h4 { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tier.pro h4 { color: var(--accent); }
.tier ul { margin-top: 14px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tier li { padding-left: 24px; position: relative; font-size: 14.5px; color: #c6d2e6; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.highlights { list-style: none; display: grid; gap: 12px; max-width: 760px; }
.highlights li { padding-left: 26px; position: relative; font-size: 15px; color: #c6d2e6; }
.highlights li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: var(--panel-solid); transition: transform .2s, border-color .2s; }
.shot:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.shot img { display: block; width: 100%; }
.shot figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); }

.steps { counter-reset: step; display: flex; flex-direction: column; gap: 0; max-width: 720px; }
.step { position: relative; padding: 0 0 26px 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px;
  background: linear-gradient(var(--line), transparent);
}
.step p { color: #c6d2e6; font-size: 15.5px; padding-top: 5px; }

.privacy-note {
  margin-top: 54px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius); padding: 24px 28px; background: color-mix(in srgb, var(--accent) 6%, transparent);
  font-size: 15px; color: #c6d2e6; max-width: 860px;
}
.privacy-note b { color: var(--text); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: none; place-items: center;
  background: rgba(3, 6, 12, 0.9); backdrop-filter: blur(10px); cursor: zoom-out; padding: 4vh 4vw;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 120px rgba(0,0,0,.7); }

@media (max-width: 860px) {
  .detail-hero { grid-template-columns: 1fr; gap: 30px; }
  .tiers { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
}
