/* Northpane Labs — custom styles layered on top of Tailwind CDN.
   Archetype: startup / tech-forward (dark-dominant, glass cards, glow buttons). */

:root {
  --grid-line: rgba(168, 85, 247, 0.10);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background-color: #0b0713;
  color: #e9d5ff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-mono-ui {
  font-family: var(--mono);
}

/* ---- Backgrounds ---- */
.grid-bg {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.glow-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.gradient-text {
  background: linear-gradient(100deg, #c084fc 0%, #a855f7 45%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Glass cards ---- */
.glass {
  background: rgba(30, 18, 51, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(168, 85, 247, 0.18);
}

.glass-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.glass-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 18px 40px -18px rgba(168, 85, 247, 0.55);
}

/* ---- Buttons (Glow style) ---- */
.btn-glow {
  box-shadow: 0 0 0 rgba(168, 85, 247, 0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-glow:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 34px -6px rgba(168, 85, 247, 0.65);
}
.btn-glow:active {
  transform: scale(0.99);
}

.btn-ghost {
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.btn-ghost:hover {
  transform: scale(1.02);
  border-color: rgba(240, 171, 252, 0.7);
  background-color: rgba(168, 85, 247, 0.12);
}

/* ---- Inputs ---- */
.field {
  background: rgba(17, 10, 30, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}
.field::placeholder { color: #7c6a99; }

/* ---- Terminal / session mockup ---- */
.session-window {
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: linear-gradient(180deg, #140c22 0%, #0d0718 100%);
  box-shadow: 0 30px 80px -30px rgba(124, 34, 206, 0.6);
}
.term-line { font-family: var(--mono); font-size: 0.8rem; line-height: 1.55; }
.term-prompt { color: #c084fc; }
.term-ok { color: #86efac; }
.term-dim { color: #8b7aa8; }

/* ---- Focus visibility for keyboard users ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Scroll reveal (DIMENSION 20: Fade In Up) ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-glow:hover, .glass-hover:hover { transform: none; }
}

/* ---- FAQ accordion ---- */
details.faq { border-bottom: 1px solid rgba(168, 85, 247, 0.18); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chev { transition: transform 0.25s ease; flex: none; }
details.faq[open] summary .chev { transform: rotate(180deg); }

/* ---- Mobile full-screen overlay menu ---- */
#mobileMenu {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
#mobileMenu.open { transform: translateY(0); }

/* ---- Cookie banner ---- */
#cookieBar { transition: transform 0.4s ease, opacity 0.4s ease; }
#cookieBar.hide { transform: translateY(120%); opacity: 0; pointer-events: none; }

/* ---- Header state ---- */
#siteHeader { transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
#siteHeader.scrolled {
  background: rgba(11, 7, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(168, 85, 247, 0.22);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

/* Legal / long-form readability */
.prose-legal h2 { color: #f5f3ff; font-family: "Space Grotesk", sans-serif; }
.prose-legal h3 { color: #ede9fe; }
.prose-legal p, .prose-legal li { color: #c4b5d8; line-height: 1.75; }
.prose-legal a { color: #d8b4fe; text-decoration: underline; }
.prose-legal a:hover { color: #f0abfc; }
