/* Resonance — site styles (dark, liquid glass) */

:root {
  color-scheme: dark;

  --bg: #08080B;
  --bg-deep: #050507;
  --ink: #F5F5F7;
  --dim: rgba(235, 235, 245, 0.64);
  --faint: rgba(235, 235, 245, 0.40);

  /* glass materials — translucent fills that pick up the light behind them */
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --edge: rgba(255, 255, 255, 0.10);
  --edge-bright: rgba(255, 255, 255, 0.22);
  --specular: rgba(255, 255, 255, 0.26);

  /* accents, pushed brighter so they hold up against near-black */
  --red: #FF5A4E;
  --amber: #FFB340;
  --teal: #34D8C4;
  --blue: #7A9DFF;

  --display: "Bricolage Grotesque", sans-serif;
  --body: "Public Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

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

html { scroll-behavior: smooth; background: var(--bg-deep); }

/*
  Ambient light field. These are painted on the body itself, at fixed pixel
  depths rather than percentages, so each glow sits behind a specific band of
  the page — the glass panels have something colored to refract as you scroll.
*/
body {
  background:
    radial-gradient(1100px 640px at 82% -80px, rgba(255, 69, 58, 0.36), transparent 70%),
    radial-gradient(900px 560px at -8% 240px, rgba(62, 109, 232, 0.34), transparent 70%),
    radial-gradient(1000px 620px at 108% 1450px, rgba(16, 200, 178, 0.22), transparent 70%),
    radial-gradient(1150px 700px at -4% 2350px, rgba(255, 150, 20, 0.16), transparent 68%),
    radial-gradient(1000px 660px at 102% 3250px, rgba(120, 96, 255, 0.24), transparent 70%),
    radial-gradient(950px 620px at 10% 4150px, rgba(255, 69, 58, 0.20), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fine grain so the large dark fields don't band */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Liquid glass material ---------- */
.glass {
  position: relative;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.025) 100%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid var(--edge);
  box-shadow:
    inset 0 1px 0 var(--specular),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 28px 70px -34px rgba(0, 0, 0, 0.9);
}

/* specular sweep across the top-left of every glass surface */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(80% 120% at 6% -12%, rgba(255, 255, 255, 0.14), transparent 62%);
}

.glass > * { position: relative; }

/* ---------- Nav ---------- */
.nav-shell {
  position: sticky;
  top: 14px;
  z-index: 50;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  margin-top: 16px;
  border-radius: 999px;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-icon {
  width: 26px;
  height: 26px;
  display: block;
  margin-right: 9px;
  border-radius: 7px;
  box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.5);
}

.brand span {
  color: var(--red);
  text-shadow: 0 0 14px rgba(255, 90, 78, 0.7);
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

/* scrollspy active state — the section you're currently passing */
.nav-links a:not(.cta).active {
  color: var(--ink);
  position: relative;
}

.nav-links a:not(.cta).active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -7px;
  width: 60%;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 90, 78, 0.75);
}

.nav-links a.cta.active {
  box-shadow: 0 0 0 2px rgba(255, 90, 78, 0.5), 0 2px 14px -4px rgba(255, 255, 255, 0.45);
}

.nav-links a.cta {
  color: #0A0A0C;
  background: linear-gradient(180deg, #FFFFFF 0%, #E6E6EA 100%);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 0 2px 14px -4px rgba(255, 255, 255, 0.45);
}

.nav-links a.cta:hover { background: #fff; color: #000; }

/* mobile menu button — hidden until the breakpoint */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  display: inline-block;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #E4E4E9 100%);
  color: #0A0A0C;
  border: none;
  box-shadow: 0 10px 30px -14px rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 14px 34px -14px rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.btn-ghost {
  color: var(--ink);
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--specular);
}

.btn-ghost:hover { border-color: var(--edge-bright); background: var(--glass-strong); }

/* ---------- Hero ---------- */
header.hero {
  padding: 72px 0 80px;
  text-align: center;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin: 0 auto 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 0 44px rgba(255, 90, 78, 0.55);
}

.hero p.lede {
  color: var(--dim);
  max-width: 54ch;
  margin: 0 auto 32px;
  font-size: 1.08rem;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.requires {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.04em;
  margin-bottom: 56px;
}

/* ---------- Viewfinder (hero product shot) ---------- */
.viewfinder {
  position: relative;
  border-radius: 24px;
  padding: 14px;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid var(--edge);
  box-shadow:
    inset 0 1px 0 var(--specular),
    0 40px 90px -40px rgba(0, 0, 0, 0.95),
    0 0 90px -30px rgba(255, 90, 78, 0.32);
}

.vf-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ---------- Inside-the-app showcase ---------- */
.shotframe {
  border-radius: 22px;
  padding: 12px;
  margin: 22px auto 0;
  max-width: 760px;
}

.shotframe img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.shotframe figcaption {
  color: var(--dim);
  font-size: 0.95rem;
  padding: 16px 10px 6px;
}

.shotframe figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

/* Claude lockup at first mention */
.claude-lockup { white-space: nowrap; }

.claude-mark {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  margin-right: 0.14em;
}

/* ---------- Section scaffolding ---------- */
section { padding: 92px 0; }

/* keep anchor jumps clear of the sticky nav */
section[id] { scroll-margin-top: 88px; }

.slate {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.slate::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 90, 78, 0.8);
}

.slate.amber::before { background: var(--amber); box-shadow: 0 0 12px rgba(255, 179, 64, 0.8); }
.slate.teal::before { background: var(--teal); box-shadow: 0 0 12px rgba(52, 216, 196, 0.8); }
.slate.blue::before { background: var(--blue); box-shadow: 0 0 12px rgba(122, 157, 255, 0.8); }

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.12;
  max-width: 24ch;
  margin-bottom: 18px;
}

.section-lede {
  color: var(--dim);
  max-width: 60ch;
}

/* ---------- Built for Mac: capability list ---------- */
.techlist {
  list-style: none;
  margin-top: 44px;
  border-radius: 24px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 18px;
}

.techlist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 16px;
  border-radius: 14px;
  transition: background 0.15s ease;
}

.techlist li:hover { background: rgba(255, 255, 255, 0.045); }

.techlist .tl-ic {
  flex: none;
  width: 23px;
  height: 23px;
  margin-top: 1px;
  color: var(--blue);
}

.techlist .tl-ic svg { width: 23px; height: 23px; display: block; }

.techlist .tl-text {
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--dim);
}

.techlist .tl-text strong {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-right: 5px;
}

/* ---------- Shot list ---------- */
.shotlist {
  margin-top: 52px;
  border-radius: 24px;
  overflow: hidden;
}

.shot {
  display: grid;
  grid-template-columns: 56px 1fr 1.4fr;
  gap: 24px;
  padding: 26px 28px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.15s ease;
}

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

.shot:hover { background: rgba(255, 255, 255, 0.055); }

.shot .step-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--specular);
}

.shot .step-icon svg { width: 23px; height: 23px; display: block; }

.shot h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.shot p {
  color: var(--dim);
  font-size: 0.97rem;
}

/* ---------- Use cases ---------- */
.uses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.use {
  border-radius: 20px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.use:hover { border-color: var(--edge-bright); transform: translateY(-2px); }

/* icon badge on the left, slate number on the right */
.use-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.use .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--specular);
}

.use .icon svg { width: 21px; height: 21px; display: block; }

.use .icon { color: var(--red); }
.use:nth-child(4n+2) .icon { color: var(--amber); }
.use:nth-child(4n+3) .icon { color: var(--teal); }
.use:nth-child(4n+4) .icon { color: var(--blue); }

.use:nth-child(4n+1):hover { background: linear-gradient(160deg, rgba(255, 90, 78, 0.22), rgba(255, 255, 255, 0.05)); }
.use:nth-child(4n+2):hover { background: linear-gradient(160deg, rgba(255, 179, 64, 0.22), rgba(255, 255, 255, 0.05)); }
.use:nth-child(4n+3):hover { background: linear-gradient(160deg, rgba(52, 216, 196, 0.22), rgba(255, 255, 255, 0.05)); }
.use:nth-child(4n+4):hover { background: linear-gradient(160deg, rgba(122, 157, 255, 0.22), rgba(255, 255, 255, 0.05)); }

.use h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.use p {
  color: var(--dim);
  font-size: 0.91rem;
  line-height: 1.5;
}

/* ---------- Closing CTA + signup ---------- */
.closing {
  border-radius: 30px;
  padding: 72px 32px;
  text-align: center;
  margin: 40px 0 88px;
  position: relative;
  overflow: hidden;
}

.closing::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  background:
    radial-gradient(40% 40% at 30% 0%, rgba(255, 90, 78, 0.22), transparent 70%),
    radial-gradient(40% 40% at 74% 6%, rgba(255, 179, 64, 0.18), transparent 70%);
  pointer-events: none;
}

.closing > * { position: relative; z-index: 1; }

.closing .slate { justify-content: center; }

.closing h2 { margin-left: auto; margin-right: auto; }

.closing p.sub {
  color: var(--dim);
  max-width: 46ch;
  margin: 0 auto 30px;
}

.signup {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 460px;
  margin: 0 auto 14px;
}

.signup input[type="email"] {
  flex: 1;
  min-width: 220px;
  font-family: var(--body);
  font-size: 0.97rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 13px 22px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.signup input[type="email"]::placeholder { color: var(--faint); }

.signup input[type="email"]:focus {
  border-color: var(--edge-bright);
  background: rgba(255, 255, 255, 0.12);
}

.fineprint {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.signup-done {
  max-width: 460px;
  margin: 0 auto 14px;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--faint);
}

footer .foot-copy { display: inline-flex; align-items: center; gap: 9px; }

.foot-icon {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 6px;
  box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.5);
}

footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .uses { grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (max-width: 720px) {
  nav { flex-wrap: wrap; row-gap: 0; border-radius: 24px; padding: 12px 16px 12px 20px; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 4px 4px;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 10px 8px;
    border-radius: 14px;
    font-size: 1rem;
  }

  /* in the stacked menu, show the active item as a filled row, not a floating underline */
  .nav-links a:not(.cta).active::after { display: none; }
  .nav-links a:not(.cta).active { background: rgba(255, 255, 255, 0.07); }

  .nav-links a.cta { text-align: center; margin-top: 6px; padding: 12px 18px; }

  .shot { grid-template-columns: 1fr; gap: 8px; padding: 22px 20px; }
  .techlist { grid-template-columns: 1fr; }
  .use { padding: 18px; }
  section { padding: 64px 0; }
  header.hero { padding: 48px 0 56px; }
  .closing { padding: 56px 22px; border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot, .use { transition: none; }
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
