/* Per-site customization: change the three variables below. */
:root {
  --accent: #1f77b4; /* buttons, kicker — matplotlib tab:blue */
  --accent-2: #ff7f0e; /* secondary chart color — matplotlib tab:orange */
  --glow-1: #dbeafe; /* background blob 1 */
  --glow-2: #ffedd5; /* background blob 2 */
}

/* Animated plot background (blurred SVG chart) */
.bg-plot {
  position: fixed;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  filter: blur(28px) saturate(1.4);
  opacity: 0.85;
}

.bg-plot svg {
  width: 100%;
  height: 100%;
  animation: drift 26s ease-in-out infinite alternate;
}

.bg-plot .line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bg-plot .area {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: areaMorph 9s ease-in-out infinite alternate;
}

.bg-plot .line-1 {
  stroke: var(--accent);
  stroke-width: 30;
  stroke-dasharray: 800;
  animation: draw 11s ease-in-out infinite alternate;
}

.bg-plot .line-2 {
  stroke: var(--accent-2);
  stroke-width: 22;
  stroke-dasharray: 800;
  opacity: 0.8;
  animation: draw 14s ease-in-out infinite alternate-reverse;
}

.bg-plot .bar {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: grow 6s ease-in-out infinite alternate;
}

.bg-plot .b2 {
  animation-delay: -1.5s;
  fill: var(--accent-2);
}
.bg-plot .b3 {
  animation-delay: -3s;
}
.bg-plot .b4 {
  animation-delay: -4.5s;
  fill: var(--accent-2);
}
.bg-plot .b5 {
  animation-delay: -2.2s;
}

.bg-plot .layer-b {
  opacity: 0.35;
  animation: fade 13s ease-in-out infinite alternate;
}

.bg-plot .dot {
  fill: var(--accent-2);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 4s ease-in-out infinite;
}

.bg-plot .d2 {
  animation-delay: -1.3s;
}
.bg-plot .d3 {
  animation-delay: -2.6s;
}

@keyframes draw {
  from {
    stroke-dashoffset: 800;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes grow {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.15;
  }
  to {
    opacity: 0.45;
  }
}

@keyframes areaMorph {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(0.55);
  }
}

@keyframes drift {
  from {
    transform: translate(-2%, -1%) scale(1);
  }
  to {
    transform: translate(2%, 1%) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-plot *,
  .bg-plot svg,
  .scroll-cue {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #18181b;
  background:
    radial-gradient(40rem 30rem at 15% 10%, var(--glow-1), transparent 60%),
    radial-gradient(35rem 30rem at 85% 85%, var(--glow-2), transparent 60%),
    #fafafa;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  position: relative;
}

/* Desktop-only showcase: app screenshot, almost full screen in a browser frame */
.showcase {
  display: none;
}

@media (min-width: 64rem) {
  .showcase {
    display: block;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    scroll-margin-top: 1rem;
  }

  .browser-frame {
    width: min(94vw, 110rem);
    margin: 0 auto;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(24, 24, 27, 0.14);
    background: #0b0f14;
    box-shadow: 0 2.5rem 5rem -2rem rgba(24, 24, 27, 0.35);
  }

  .browser-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.85rem;
    background: #161b22;
  }

  .win-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #3f4753;
  }

  .win-dot:first-child {
    background: #ff5f57;
  }

  .win-dot:nth-child(2) {
    background: #febc2e;
  }

  .win-dot:nth-child(3) {
    background: #28c840;
  }

  .browser-url {
    margin-left: 0.6rem;
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    background: #0b0f14;
    color: #8b949e;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  }

  .browser-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 84vh;
    object-fit: cover;
    object-position: top;
  }

  .showcase-caption {
    max-width: 46rem;
    margin: 1.8rem auto 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #52525b;
  }
}

.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: #52525b;
  text-decoration: none;
  animation: bob 2.4s ease-in-out infinite;
}

.scroll-cue:hover {
  color: var(--accent);
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

.details {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  padding: 5rem 1.5rem 6rem;
}

.details > * {
  max-width: 62rem;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: Charter, "Bitstream Charter", Cambria, Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-title:not(:first-child) {
  margin-top: 4.5rem;
}

.steps,
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.step,
.feature {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  padding: 1.5rem;
}

.step-num {
  font-family: Charter, "Bitstream Charter", Cambria, Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.step h3,
.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.step p,
.feature p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #52525b;
}

.prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 46rem;
}

.prompt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  color: #3f3f46;
}

.cta h2 {
  font-family: Charter, "Bitstream Charter", Cambria, Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}

.card {
  max-width: 34rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta {
  margin: 5rem auto 0;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1 {
  font-family: Charter, "Bitstream Charter", Cambria, Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #52525b;
  margin-bottom: 2.2rem;
}

.signup {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.signup input[type="email"] {
  flex: 1 1 14rem;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  border: 1px solid #d4d4d8;
  border-radius: 0.7rem;
  background: #fff;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.signup input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.signup button {
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 0.7rem;
  cursor: pointer;
  transition:
    transform 0.1s,
    filter 0.15s;
}

.signup button:hover {
  filter: brightness(1.08);
}
.signup button:active {
  transform: scale(0.98);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fine {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: #52525b;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.9);
}
