/* ziq.au - studio landing page
   Modern dark, neon accent. The page is framed as a "deployments board":
   cyan is the brand accent, green is a real live-status signal, and every
   endpoint is shown in monospace like the actual thing it is. */

:root {
  --bg: #0a0c10;
  --surface: #12161d;
  --surface-hover: #161c25;
  --border: #212833;
  --border-hover: #303c4c;

  --text: #e7eaf0;
  --muted: #8a93a3;
  --faint: #5b6472;

  --cyan: #35e5ff;
  --cyan-soft: rgba(53, 229, 255, 0.14);
  --live: #5dff9b;
  --live-glow: rgba(93, 255, 155, 0.55);
  --soon: #ffcf5c;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo,
    Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  --maxw: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Ambient: a single soft cyan bloom top-centre over a faint dot grid.
   Fixed, subtle, never competes with the content. */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      760px 460px at 50% -8%,
      var(--cyan-soft),
      transparent 70%
    ),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
}

header,
main,
footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ---------- top bar ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 8px;
}

.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.cursor {
  color: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}

.top-tag {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(64px, 13vw, 128px);
  padding-bottom: clamp(56px, 9vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.headline {
  margin: 0;
  font-weight: 720;
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.headline .hl {
  color: var(--cyan);
}

.lede {
  margin: 26px 0 0;
  max-width: 52ch;
  font-size: clamp(1rem, 2.2vw, 1.16rem);
  color: var(--muted);
}

.status-strip {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
}

.status-strip strong {
  color: var(--text);
  font-weight: 700;
}

.status-strip .sep {
  color: var(--faint);
}

/* ---------- hero terminal (the signature: a live status board) ---------- */
.term {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #0e131a, #0a0d12);
  overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.85);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.term-dots {
  display: inline-flex;
  gap: 6px;
}

.term-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b3542;
}

.term-dots i:first-child {
  background: rgba(53, 229, 255, 0.5);
}

.term-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.term-body {
  margin: 0;
  padding: 18px 20px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  white-space: pre;
  overflow-x: auto;
}

.term-prompt {
  color: var(--cyan);
}

.term-cmd {
  color: var(--text);
}

.term .up {
  color: var(--live);
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .term {
    max-width: 440px;
  }
}

/* ---------- status dots ---------- */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}

.dot-live {
  background: var(--live);
  box-shadow: 0 0 0 0 var(--live-glow);
  animation: pulse 2.4s var(--ease) infinite;
}

.dot-soon {
  background: var(--soon);
  opacity: 0.85;
}

/* ---------- projects ---------- */
.projects {
  padding-bottom: 96px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.section-sub {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  min-height: 232px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    background 0.28s var(--ease);
}

/* the accent hairline that lights up on hover */
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--cyan), transparent 42%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  pointer-events: none;
}

a.card:hover,
a.card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

a.card:hover::after,
a.card:focus-visible::after {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 6px;
}

.badge-live {
  color: var(--live);
  background: rgba(93, 255, 155, 0.08);
}

.badge-soon {
  color: var(--soon);
  background: rgba(255, 207, 92, 0.08);
}

.kind {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.card-name {
  margin: 0 0 8px;
  font-size: 1.44rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
}

.tags li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.endpoint {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
}

.ep-url {
  color: var(--cyan);
}

.ep-go {
  color: var(--faint);
  transition: transform 0.28s var(--ease), color 0.28s var(--ease);
}

a.card:hover .ep-go,
a.card:focus-visible .ep-go {
  color: var(--cyan);
  transform: translateX(3px);
}

/* the "soon" card is inert and quiet */
.card-soon {
  border-style: dashed;
  background: transparent;
}

.card-soon .card-name,
.card-soon .card-desc {
  color: var(--faint);
}

.endpoint-muted .ep-url {
  color: var(--faint);
}

/* ---------- footer ---------- */
.foot {
  margin-top: auto;
  padding-top: 24px;
  padding-bottom: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.foot-mark {
  color: var(--muted);
}

/* ---------- motion ---------- */
@keyframes blink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--live-glow);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(93, 255, 155, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(93, 255, 155, 0);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .top-tag {
    display: none;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---------- accessibility ---------- */
a:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
