/* ==================================================================
   Unreal Skill Issue LLC — software development & consumer tech
   Static site styles. No build step, no external requests.
   ================================================================== */

/* ---------- 1. Tokens ---------- */

:root {
  --bg:          #07080c;
  --bg-raise:    #0c0e14;
  --panel:       #11131b;
  --panel-2:     #171a23;
  --line:        #232733;
  --line-soft:   #1a1d27;

  --text:        #e9ebf1;
  --text-dim:    #a2a8b9;
  --text-faint:  #6a7183;

  --cyan:        #00d5ff;
  --violet:      #7b5cff;
  --accent:      var(--cyan);

  --radius:      14px;
  --radius-sm:   9px;
  --radius-lg:   22px;

  --shell:       1200px;
  --gut:         clamp(20px, 5vw, 48px);

  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono",
          Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. Base ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }

::selection { background: var(--accent); color: #04050a; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { left: 16px; }

/* ---------- 3. Layout ---------- */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }

.section { padding-block: clamp(62px, 8.5vw, 112px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--raise { background: var(--bg-raise); border-block: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 15px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55; }

.section-head { max-width: 640px; margin-bottom: clamp(30px, 4vw, 50px); }
.section-head h2 { font-size: clamp(27px, 3.6vw, 40px); }
.section-head p { margin-top: 15px; color: var(--text-dim); font-size: 17px; }

.rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ---------- 4. Buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-line: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--cyan), var(--violet));
  --btn-fg: #05060b;
  --btn-line: transparent;
  font-weight: 700;
}
.btn--primary:hover { box-shadow: 0 10px 32px -12px var(--cyan); }

.btn--ghost:hover { --btn-line: var(--accent); background: rgba(0,213,255,.06); }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- 5. Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7,8,12,.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); background: rgba(7,8,12,.92); }

.nav { display: flex; align-items: center; gap: 26px; height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; font-weight: 700; letter-spacing: -0.015em;
  margin-right: auto;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { font-size: 15.5px; line-height: 1.15; }
.brand__text span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-faint);
}

.nav__links { display: flex; align-items: center; gap: 4px; }

.nav__links a:not(.btn) {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14.5px; font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav__links a:not(.btn):hover { color: var(--text); background: var(--panel); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: "";
  display: block; height: 2px; margin-top: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
.nav__toggle span { position: relative; display: block; width: 16px; height: 1.5px; background: var(--text); transition: background .2s; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px;
  background: var(--text); transition: transform .28s var(--ease);
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after  { top:  5px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gut) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px -22px rgba(0,0,0,.95);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 14px; font-size: 16px; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__cta { margin: 8px 0 0; }
}

/* ---------- 6. Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(76px, 11vw, 138px) clamp(58px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(7,8,12,.97) 34%, rgba(7,8,12,.72) 62%, rgba(7,8,12,.55) 100%),
    linear-gradient(to top, var(--bg) 2%, transparent 42%);
}
.hero__glow {
  position: absolute; z-index: -1;
  left: 46%; top: -34%;
  width: min(940px, 118vw); aspect-ratio: 1;
  background:
    radial-gradient(circle at 40% 45%, rgba(0,213,255,.15), transparent 58%),
    radial-gradient(circle at 62% 55%, rgba(123,92,255,.16), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 760px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 15px; margin-bottom: 26px;
  background: rgba(17,19,27,.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
}
.hero__badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}

.hero h1 { font-size: clamp(36px, 6.2vw, 70px); letter-spacing: -0.035em; line-height: 1.04; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan) 8%, var(--violet) 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 24px; max-width: 580px; font-size: clamp(16.5px, 1.7vw, 19px); color: var(--text-dim); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 42px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 12.5px; color: var(--text-faint);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}

/* ---------- 7. Grids & cards ---------- */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
/* strict two-up, so four cards read as 2×2 instead of 3+1 */
.grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 780px) { .grid--pair { grid-template-columns: 1fr; } }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 22px 46px -26px rgba(0,0,0,.9); }

/* card with a photo on top */
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.82) contrast(1.02);
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); filter: saturate(1) contrast(1.04); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,19,27,.92) 4%, rgba(17,19,27,.15) 55%, transparent 100%);
}

.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.card__body h3 { font-size: 18.5px; margin-bottom: 10px; }
.card__body p { color: var(--text-dim); font-size: 15px; }

.card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--accent);
}
.card__icon svg { width: 20px; height: 20px; }

.card__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.card__list li::before {
  content: "";
  position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

/* ---------- 8. Feature split (image + text) ---------- */

.split {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.split__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(0,213,255,.10), transparent 45%, rgba(123,92,255,.14));
}
.split__body h2 { font-size: clamp(25px, 3.2vw, 36px); }
.split__body p { margin-top: 16px; color: var(--text-dim); font-size: 16.5px; }
.split__body .card__list { margin-top: 22px; }

/* ---------- 9. Steps ---------- */

.steps { counter-reset: step; }
.step { position: relative; padding-left: 60px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* ---------- 10. Tech chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---------- 11. Page head ---------- */

.page-head {
  position: relative;
  padding-block: clamp(50px, 7vw, 82px) clamp(30px, 4vw, 46px);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute; left: 50%; top: -62%;
  width: min(880px, 120vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(123,92,255,.13), transparent 62%);
  pointer-events: none;
}
.page-head__inner { position: relative; max-width: 720px; }
.page-head h1 { font-size: clamp(31px, 4.4vw, 50px); }
.page-head p { margin-top: 15px; color: var(--text-dim); font-size: 17px; }

/* ---------- 12. Prose ---------- */

.prose { max-width: 740px; }
.prose h2 { font-size: clamp(21px, 2.5vw, 26px); margin-top: 44px; margin-bottom: 13px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin-top: 26px; margin-bottom: 9px; }
.prose p, .prose li { color: var(--text-dim); font-size: 15.5px; }
.prose p + p { margin-top: 13px; }
.prose ul, .prose ol { margin: 13px 0; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--accent); }
.prose strong { color: var(--text); }

.deflist { display: grid; }
.deflist > div {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.deflist > div:first-child { padding-top: 0; }
.deflist > div:last-child { border-bottom: 0; }
.deflist dt {
  flex: 0 0 180px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); padding-top: 3px;
}
.deflist dd { flex: 1 1 220px; margin: 0; font-size: 15.5px; }

/* ---------- 13. Form ---------- */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field--row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; } }

.form__note { font-size: 13px; color: var(--text-faint); }

/* ---------- 14. CTA band ---------- */

.cta-band {
  position: relative;
  padding: clamp(34px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(0,213,255,.13), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(123,92,255,.15), transparent 55%),
    var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 35px); max-width: 17ch; }
.cta-band p { margin-top: 14px; max-width: 50ch; color: var(--text-dim); }
.cta-band .hero__actions { margin-top: 26px; }

/* ---------- 15. Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-raise);
  padding-block: clamp(42px, 6vw, 64px) 26px;
  margin-top: clamp(58px, 8vw, 96px);
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.7fr repeat(3, 1fr); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-about p { margin-top: 15px; max-width: 34ch; font-size: 14.5px; color: var(--text-dim); }

.footer-col h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 13px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--text-dim); }
.footer-col a { color: var(--text-dim); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--text-faint);
}
.footer-bottom .spacer { margin-left: auto; }
.footer-bottom a { color: var(--text-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-dim); }

/* ---------- 16. Toast notification ---------- */

.toast-stack {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 200;
  display: grid; gap: 10px;
  width: min(370px, calc(100vw - 40px));
  pointer-events: none;
}
@media (max-width: 520px) {
  .toast-stack { right: 14px; left: 14px; bottom: 14px; width: auto; }
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 15px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: var(--radius-sm);
  box-shadow: 0 22px 48px -20px rgba(0,0,0,.95);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-in  { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateY(8px) scale(.99); }
.toast--error { border-left-color: #ff5c7a; }
.toast--error .toast__icon { background: rgba(255,92,122,.13); color: #ff5c7a; }

/* honeypot: off-screen for people, still filled in by bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.toast__icon {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(0,213,255,.12);
  color: var(--cyan);
}
.toast__icon svg { width: 16px; height: 16px; }

.toast__body { flex: 1; min-width: 0; }
.toast__body strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.toast__body p { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }

.toast__close {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  margin: -2px -4px 0 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text-faint);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.toast__close:hover { color: var(--text); background: var(--panel); }
.toast__close svg { width: 13px; height: 13px; }

/* submit button while "sending" */
.btn.is-busy { pointer-events: none; opacity: .8; }
.btn__spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(5,6,11,.28);
  border-top-color: #05060b;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 17. Reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}
