/* UltiSoft — clean technical dark */
:root {
  --bg: #0d1117;
  --bg-alt: #0b0f14;
  --surface: #161b22;
  --surface-2: #1c232c;
  --border: #21262d;
  --border-lit: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --faint: #6e7681;
  --accent: #4f8cff;
  --accent-2: #6ee7b7;
  --ok: #3fb950;
  --warn: #d29922;
  --danger: #f85149;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--accent);
  color: #06101f;
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand__mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #7aa7ff);
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--bg);
  border-radius: 2px;
  transform: rotate(45deg);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.93rem;
  color: var(--muted);
}
.nav__links a { transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--text) !important;
  border: 1px solid var(--border-lit);
  padding: 7px 15px;
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.nav__cta:hover { border-color: var(--accent); background: rgba(79, 140, 255, 0.08); }

/* ---------- Shared ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #06101f;
}
.btn--primary:hover { background: #6ba0ff; }
.btn--ghost {
  border-color: var(--border-lit);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); background: rgba(79, 140, 255, 0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 90% at 78% -10%, rgba(79, 140, 255, 0.14), transparent 60%),
    radial-gradient(50% 70% at 8% 0%, rgba(110, 231, 183, 0.08), transparent 60%);
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 32px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}
.stat {
  flex: 1 1 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.stat dd {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section__head { max-width: 62ch; margin-bottom: 48px; }
.section__title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 700;
}
.section__sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Work cards ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s;
}
.card:hover { border-color: var(--border-lit); transform: translateY(-3px); }
.card--wide { grid-column: 1 / -1; }
.card--wide { flex-direction: row; }
.card--wide .card__media { flex: 1 1 52%; }
.card--wide .card__body { flex: 1 1 48%; }

.card__media {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card--wide .card__media { border-bottom: none; border-right: 1px solid var(--border); aspect-ratio: auto; }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.card__body { padding: 24px 26px 28px; }
.card__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.card__kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-lit);
  color: var(--muted);
}
.tag--live {
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent-2) 40%, transparent);
  background: rgba(110, 231, 183, 0.06);
}
.card__title {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  font-weight: 700;
}
.card__tagline { color: var(--text); font-weight: 500; margin: 0 0 12px; }
.card__desc { color: var(--muted); font-size: 0.96rem; margin: 0 0 18px; }
.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tech li {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 7px;
}

/* ATLAS mock tile */
.card__media--mock {
  display: grid;
  place-items: stretch;
  padding: 18px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(79, 140, 255, 0.1), transparent 70%),
    var(--bg-alt);
}
.atlas {
  align-self: center;
  width: 100%;
  font-family: var(--mono);
  font-size: 0.8rem;
  background: #0a0e13;
  border: 1px solid var(--border-lit);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.atlas__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--g { background: var(--ok); }
.dot--y { background: var(--warn); }
.dot--r { background: var(--danger); }
.atlas__label { margin-left: 8px; color: var(--faint); font-size: 0.72rem; }
.atlas__row {
  display: grid;
  grid-template-columns: 1fr 90px;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  color: var(--muted);
}
.atlas__row i {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c) var(--w), rgba(255, 255, 255, 0.06) var(--w));
  box-shadow: 0 0 0 1px var(--border) inset;
}
.atlas__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.72rem;
}

/* ---------- Native app subhead + cards ---------- */
.subhead {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 40px 0 22px;
}
.subhead__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.subhead__label {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.apps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.appcard {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.18s, transform 0.18s;
}
.appcard:hover { border-color: var(--border-lit); transform: translateY(-3px); }
.appcard__icon {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  position: relative;
}
.appcard__icon img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.appcard__icon--fish {
  background: radial-gradient(120% 120% at 30% 20%, rgba(42, 165, 184, 0.28), transparent 70%);
}
.appcard__icon--dual {
  background: radial-gradient(120% 120% at 30% 20%, rgba(63, 208, 255, 0.22), transparent 70%);
}
.appcard .card__title { font-size: 1.3rem; }
.appcard .card__tagline { margin-bottom: 10px; }
.appcard .card__desc { font-size: 0.92rem; margin-bottom: 14px; }

/* ---------- Founders ---------- */
.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.founder {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.founder__avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.15rem;
  color: #06101f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.founder__name { margin: 0 0 2px; font-size: 1.25rem; letter-spacing: -0.02em; }
.founder__role {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.founder__bio { color: var(--muted); font-size: 0.96rem; margin: 0 0 14px; }
.founder__links { display: flex; gap: 18px; }
.link {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-lit);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Contact ---------- */
.contact { text-align: center; max-width: 58ch; }
.contact .section__title { margin-inline: auto; }
.contact .section__sub { margin-bottom: 30px; }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand--sm { font-size: 0.95rem; gap: 8px; }
.footer__copy { color: var(--faint); font-size: 0.86rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav__links { gap: 18px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .work { grid-template-columns: 1fr; }
  .card--wide { flex-direction: column; }
  .card--wide .card__media { border-right: none; border-bottom: 1px solid var(--border); }
  .apps { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero { padding: 64px 0 52px; }
  .section { padding: 64px 0; }
  .founder { flex-direction: column; gap: 16px; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}
