/* iCat — keynote calm / Library A hero + C polish + D dossier */

:root {
  --void: #050505;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(20, 20, 22, 0.72);
  --surface: #121214;
  --surface-2: #1c1c1e;
  --gold: #c9a84c;
  --gold-soft: rgba(201, 168, 76, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--void);
  color: var(--ink);
  font-family: "Figtree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

/* —— Nav —— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.nav.is-scrolled {
  background: rgba(5, 5, 5, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: #000;
}

.nav-links {
  display: none;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.icon-btn img {
  width: 1.05rem;
  height: 1.05rem;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.buy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.buy-pill img {
  width: 1.05rem;
  height: 1.05rem;
}

.buy-pill:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.22);
}

.buy-pill:active {
  transform: translateY(1px) scale(0.98);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  padding: 6.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #050505 url("hero_bg.png") center / cover no-repeat;
  z-index: 0;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(5, 5, 5, 0.92) 0%,
      rgba(5, 5, 5, 0.72) 38%,
      rgba(5, 5, 5, 0.28) 62%,
      rgba(5, 5, 5, 0.45) 100%
    ),
    linear-gradient(to top, rgba(5, 5, 5, 0.85) 0%, transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-copy {
  max-width: 34rem;
  animation: rise-in 0.85s var(--ease) both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.hero-kicker img {
  width: 0.95rem;
  height: 0.95rem;
}

.hero-title {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(3.6rem, 12vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 0 0 0.85rem;
}

.hero-symbol {
  display: inline-block;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-bio {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  color: rgba(245, 245, 247, 0.88);
  max-width: 28rem;
  margin: 0 0 1.75rem;
  font-weight: 400;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary img {
  width: 1.2rem;
  height: 1.2rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.28);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-ghost img {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.08);
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  padding: 0.7rem 0.85rem 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.ca-pill-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ca-pill-meta span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

.ca-pill-meta code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 18rem);
}

.ca-pill button {
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.75rem;
  transition: background 0.15s ease;
}

.ca-pill button:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* —— Sections shared —— */
.section {
  padding: 5.5rem 0;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.section-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* —— About —— */
.about {
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(201, 168, 76, 0.08), transparent 55%),
    var(--void);
}

.story-rail {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .story-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.story-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-panel figure {
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.story-panel img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.55s var(--ease);
}

.story-panel:hover img {
  transform: scale(1.03);
}

.story-panel h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
}

.story-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.about-body {
  margin-top: 3rem;
  max-width: 46rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(245, 245, 247, 0.86);
}

.banner-strip {
  margin-top: 3rem;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.banner-strip img {
  width: 100%;
  object-fit: contain;
}

/* —— Dossier —— */
.dossier {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.dossier-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .dossier-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 3rem;
  }
}

.dossier-portrait {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  animation: floaty 7s ease-in-out infinite;
}

.dossier-portrait img {
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.dossier-facts {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface-2);
}

.fact-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-row dt {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-row dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-all;
}

.fact-row code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

/* —— How to —— */
.howto {
  background:
    radial-gradient(ellipse 55% 60% at 0% 50%, rgba(201, 168, 76, 0.07), transparent 60%),
    var(--void);
}

.howto-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .howto-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.howto-aside .cta-row {
  margin-top: 1.5rem;
}

.howto-aside .ca-pill {
  margin-top: 1.25rem;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    background 0.2s var(--ease);
}

.step:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.step-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.step-icon img {
  width: 1.35rem;
  height: 1.35rem;
}

.step h3 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* —— Community —— */
.community {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  padding: 5.5rem 0;
  overflow: hidden;
  isolation: isolate;
}

.community-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050505 url("3.png") center / cover no-repeat;
}

.community-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    95deg,
    rgba(5, 5, 5, 0.92) 0%,
    rgba(5, 5, 5, 0.7) 45%,
    rgba(5, 5, 5, 0.35) 100%
  );
}

.community-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.community-copy {
  max-width: 28rem;
  animation: rise-in 0.8s var(--ease) both;
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.5rem;
  background: #000;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: #fff;
}

.footer-brand strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 26rem;
}

/* —— Motion —— */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .community-copy,
  .dossier-portrait,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
