/* squidpixel — marketing site
   Pure white background. Cards hold the work. */

:root {
  --brand:        #6a4cff;   /* punchy purple — buttons, accents */
  --brand-deep:   #4f3caf;   /* matches logo "dark" layer */
  --brand-soft:   #ece8ff;   /* tint backgrounds */
  --brand-lilac:  #9786e4;   /* matches logo "body" layer */
  --ink:          #0e0b1f;
  --ink-2:        #2a2540;
  --muted:        #6b6680;
  --line:         #ece9f5;
  --line-strong:  #d8d4ea;
  --bg:           #ffffff;
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;
  --shadow-soft:  0 1px 2px rgba(15, 11, 31, .04), 0 8px 24px rgba(80, 64, 175, .06);
  --shadow-lift:  0 2px 4px rgba(15, 11, 31, .05), 0 18px 40px rgba(80, 64, 175, .10);
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============ Top nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 38px;
  height: auto;
}
.brand__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__wordmark-accent { color: var(--brand-deep); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
}
.nav__links a:hover { color: var(--brand-deep); }
.nav__cta {
  background: var(--brand);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background .15s ease, transform .15s ease;
}
.nav__cta:hover { background: var(--brand-deep); transform: translateY(-1px); }

/* ============ Hero ============ */
.hero {
  padding: 80px 24px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 30% 60% 30%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(151, 134, 228, .22), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .005em;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(106, 76, 255, .18);
}
.hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-transform: uppercase;
}
.hero__title-accent {
  color: var(--brand);
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-lilac) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
}

/* Rebuild form */
.rebuild-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.rebuild-form__field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding-left: 18px;
  min-width: 0;
}
.rebuild-form__prefix {
  color: var(--muted);
  font-weight: 500;
  font-size: 16px;
  padding-right: 4px;
  user-select: none;
}
.rebuild-form__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  padding: 14px 6px;
}
.rebuild-form__input::placeholder { color: #a8a3bd; }
.rebuild-form__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.rebuild-form__button:hover { background: var(--brand-deep); transform: translateY(-1px); }
.rebuild-form__button:active { transform: translateY(0); }

.hero__finefoot {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ============ Rebuilds section ============ */
.rebuilds {
  padding: 56px 24px 96px;
  max-width: 1500px;
  margin: 0 auto;
}
.rebuilds__head {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 640px;
}
.rebuilds__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.rebuilds__sub {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
}
.card__labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--line);
}
.card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__label--after { color: var(--brand-deep); }
.card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.25;
}
.card__meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.card__time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.card__time-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.card__time-time {
  font-size: 11px;
  color: var(--muted);
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-deep);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.card__link svg { width: 12px; height: 12px; }
.card__link:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.card__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fafafe;
}
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #f0eef7;
  aspect-ratio: 9 / 16;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* ============ Footer ============ */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
}
.foot__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand--foot .brand__mark { width: 32px; }
.brand--foot .brand__wordmark { font-size: 18px; }
.foot__copy {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .nav__inner { padding: 12px 18px; }
  .nav__links { gap: 14px; }
  .nav__links a:not(.nav__cta) { display: none; }

  .hero { padding: 56px 18px 40px; }
  .hero__title { font-size: clamp(36px, 11vw, 56px); }
  .hero__sub { font-size: 16px; }

  .rebuild-form {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 10px;
    gap: 8px;
  }
  .rebuild-form__field {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding-left: 14px;
  }
  .rebuild-form__input { padding: 12px 6px; font-size: 16px; }
  .rebuild-form__button {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }

  .rebuilds { padding: 32px 18px 64px; }
  .card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card__shots {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
  }
  .shot { aspect-ratio: 9 / 16; }
}
