@font-face {
  font-family: "Fraunces";
  src: url("/assets/fraunces-300.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060608;
  --text: #f3f2ef;
  --text-dim: #a5a3ab;
  --text-faint: #6c6a72;
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.22);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-hover: rgba(255, 255, 255, 0.065);
  --teal: #5eead4;
  --violet: #a78bfa;
  --pink: #f472b6;
  --radius: 22px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.serif {
  font-family: "Fraunces", Georgia, serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- WebGL aurora background ---------- */
#aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent; /* prevent white flash on WebGL context loss */
}

@media (prefers-reduced-motion: reduce) {
  #aurora { display: none; }
  body { background: radial-gradient(120% 90% at 15% 0%, #0c1016 0%, var(--bg) 55%); }
}

/* ---------- Layout ---------- */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 68px;
}

.hero h1 {
  max-width: 680px;
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--text-dim);
  font-weight: 300;
}

.hero .accent {
  background: linear-gradient(100deg, var(--teal), var(--violet) 60%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Floating dock (Apple-style bottom pills) ---------- */
.dock {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 10px;
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.dock-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: rgba(30, 30, 34, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  white-space: nowrap;
}

.dock-pill:hover {
  background: rgba(40, 40, 46, 0.45);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px) scale(1.04);
}

.dock-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dock-icon img.pad {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.dock-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

.dock-arrow {
  opacity: 0.35;
  font-size: 13px;
  flex-shrink: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dock-pill:hover .dock-arrow {
  opacity: 0.85;
  transform: translate(2px, -2px);
}

/* ---------- Section label ---------- */
.section-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.sections {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding: 8px 0 72px;
}

.iitem-avatar {
  align-items: center;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.iitem-avatar:hover .avatar {
  border-color: var(--border-hover);
  transform: scale(1.06);
  opacity: 0.85;
}

/* ---------- Currently list (Dominik-style plain rows) ---------- */
.clist {
  display: flex;
  flex-direction: column;
}

.citem {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 0;
  border-bottom: 1px dashed var(--border);
  transition: opacity 0.2s ease;
}

.citem:last-child {
  border-bottom: none;
}

.citem:hover {
  opacity: 0.7;
}

.citem:hover .ctext {
  transform: translateX(6px);
}

.citem:hover .ctag {
  color: var(--text-dim);
}

.ctext {
  font-size: 15px;
  color: var(--text-dim);
  transition: transform 0.3s ease;
}

.ctext b {
  font-weight: 600;
  color: var(--text);
}

.ctag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.5px;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.3s ease;
}

/* ---------- Info list (right column) ---------- */
.ilist {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding-top: 0;
}

.iitem {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  transition: opacity 0.3s ease;
}

.iitem:hover {
  opacity: 0.65;
}

.iitem:hover .ilabel {
  transform: translateX(4px);
  color: var(--text);
}

.iitem-soon {
  cursor: default;
}

.iitem-soon:hover {
  opacity: 1;
}

.iitem-soon:hover .ilabel {
  transform: none;
  color: var(--text-dim);
}

.ilabel {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* ---------- Showcase gallery (infinite scroll) ---------- */
.showcase {
  position: relative;
  z-index: 2;
  padding: 24px 0 48px;
  overflow: hidden;
}

/* edge blur — liquid glass depth-of-field (matching dock pill style) */
.showcase-blur {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 220px;
  z-index: 3;
  pointer-events: none;
}

.showcase-blur--l {
  left: 0;
  background: linear-gradient(to right,
    rgba(6, 6, 8, 0.35) 0%,
    rgba(6, 6, 8, 0.15) 50%,
    rgba(6, 6, 8, 0) 100%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 20%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black 20%, transparent 100%);
}

.showcase-blur--r {
  right: 0;
  background: linear-gradient(to left,
    rgba(6, 6, 8, 0.35) 0%,
    rgba(6, 6, 8, 0.15) 50%,
    rgba(6, 6, 8, 0) 100%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-mask-image: linear-gradient(to left, black 0%, black 20%, transparent 100%);
  mask-image: linear-gradient(to left, black 0%, black 20%, transparent 100%);
}

/* scrolling track — JS-driven translateX for smooth speed transitions */
.showcase-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* each set is an inline row of cards */
.showcase-set {
  display: flex;
  gap: 20px;
  padding: 0 10px;
  flex-shrink: 0;
}

/* individual card */
.showcase-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  perspective: 800px;
  transition: filter 0.4s ease;
}

.showcase-card:hover {
  filter: brightness(1.1);
}

/* card inner — receives the 3D tilt via JS */
.showcase-visual {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.4s ease;
}

.showcase-card:hover .showcase-visual {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* size classes */
.showcase-card--tall  { width: 220px; }
.showcase-card--medium { width: 260px; }
.showcase-card--wide  { width: 340px; }

.showcase-card--tall .showcase-visual   { height: 320px; }
.showcase-card--medium .showcase-visual { height: 280px; }
.showcase-card--wide .showcase-visual   { height: 240px; }

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .showcase-track { transform: none !important; }
}

/* gradient placeholder for cards without screenshots */
.showcase-visual--github {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 40%, #0f0f1a 100%);
}

.showcase-gh-icon {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.7);
}

.showcase-app-name {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.showcase-app-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.showcase-caption {
  font-size: 12px;
  color: var(--text-dim);
  padding: 0 4px;
}

.showcase-link {
  color: var(--text-faint);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.15);
  text-underline-offset: 2px;
}

.showcase-card:hover .showcase-link {
  color: var(--text-dim);
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 24px 0 100px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
  text-align: right;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding: 64px 0 44px;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.32;
  }

  .citem {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ctext {
    font-size: 16px;
  }

  .sections {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ilist {
    padding-top: 0;
  }

  .avatar {
    width: 36px;
    height: 36px;
  }

  .footer-copy {
    text-align: center;
  }

  .showcase-blur { width: 100px; }

  .showcase-set { gap: 14px; }

  .showcase-card--tall  { width: 180px; }
  .showcase-card--medium { width: 210px; }
  .showcase-card--wide  { width: 270px; }

  .showcase-card--tall .showcase-visual   { height: 260px; }
  .showcase-card--medium .showcase-visual { height: 230px; }
  .showcase-card--wide .showcase-visual   { height: 200px; }

  .dock {
    bottom: 16px;
    gap: 8px;
    flex-direction: column;
    align-items: center;
  }

  .dock-pill {
    padding: 10px 18px 10px 10px;
    gap: 10px;
  }

  .dock-label {
    font-size: 12.5px;
  }

  .dock-arrow {
    font-size: 11px;
  }
}
