/* hello-beam — styled marketing site for beam.page */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

a { color: #FFB840; text-decoration: none; transition: opacity 0.2s ease, color 0.2s ease; }
a:hover { opacity: 0.85; }

/* Body-copy links (inside <main>, excluding buttons/pills/cards) — medium weight, amber, subtle underline on hover */
main a:not(.install-btn):not(.ghost-btn):not(.nav-pill):not(.card) {
  font-weight: 500;
  color: #FFB840;
}
main a:not(.install-btn):not(.ghost-btn):not(.nav-pill):not(.card):hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Body-copy paragraphs: let them fill their container in left-aligned sections.
   Overrides any Tailwind max-w-[Nch] constraint on every paragraph inside a
   non-centered section, keeping only hero (text-center) paragraphs narrow. */
main section:not([class*="text-center"]) p[class*="max-w-["] { max-width: none; }

/* Inline code (not in pre blocks): clean amber monospace, natural inline flow */
p > code, li > code, summary > code, td > code, .legal code, .card p code, .card li code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92em;
  color: #FFB840;
  vertical-align: baseline;
}

h1, h2, h3, h4 { font-family: 'Nunito', system-ui, sans-serif; color: rgba(250,241,233,0.97); letter-spacing: -0.012em; }

/* Prism line fixed at top */
.prism-line {
  position: fixed; top: 0; left: 0; right: 0; height: 1px; z-index: 50;
  background: linear-gradient(90deg, transparent 0%, #8E64E9 16%, #F5A623 34%, #FCBD1D 50%, #5EB493 66%, #F38C37 84%, transparent 100%);
  opacity: 0.65;
}

/* Atmospheric glows */
body::before {
  content: ''; position: fixed; top: -350px; right: -250px;
  width: 900px; height: 900px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(245,166,35,0.10) 0%, rgba(245,166,35,0.05) 25%, transparent 55%);
  animation: drift 24s ease-in-out infinite alternate;
}
body::after {
  content: ''; position: fixed; bottom: -400px; left: -300px;
  width: 900px; height: 900px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(142,100,233,0.08) 0%, rgba(94,180,147,0.04) 25%, transparent 55%);
}
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-40px, 30px); } }

/* Nav active state (via aria-current) */
nav a[aria-current="page"] { color: rgba(250,241,233,0.97); opacity: 1; }
nav a[aria-current="page"]:hover { opacity: 1; }

/* Section divider */
.divider { display: flex; align-items: center; gap: 24px; margin-bottom: 48px; }
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250,241,233,0.16), transparent);
}
.divider span {
  font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250,241,233,0.97);
}
.divider span::before { content: '◆'; color: #F5A623; margin-right: 12px; }
.divider span::after { content: '◆'; color: #F5A623; margin-left: 12px; }

/* Card */
.card {
  position: relative; border-radius: 16px; padding: 32px;
  border: 1px solid rgba(250,241,233,0.10);
  background: rgba(255,255,255,0.035);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 48px -28px rgba(0,0,0,0.65);
  transition: all 0.3s ease;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250,241,233,0.18), transparent);
}
.card:hover { background: rgba(255,255,255,0.055); border-color: rgba(250,241,233,0.16); transform: translateY(-2px); }

/* Copy block */
.copy {
  display: flex; align-items: stretch; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(250,241,233,0.16);
  background: rgba(255,255,255,0.05);
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  text-align: left;
  transition: border-color 0.2s ease;
}
.copy:hover { border-color: rgba(250,241,233,0.24); }
.copy code {
  flex: 1; padding: 14px 16px; color: rgba(250,241,233,0.97);
  overflow-x: auto; white-space: nowrap; background: transparent; border: none;
}
.copy.multi code { white-space: pre; padding: 16px; line-height: 1.6; }
.copy button {
  flex-shrink: 0; background: transparent; color: rgba(250,241,233,0.56);
  border: none; border-left: 1px solid rgba(250,241,233,0.16);
  padding: 0 16px; font-family: 'Source Sans 3', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.2s ease;
}
.copy button:hover { color: #FFB840; background: rgba(245,166,35,0.14); }
.copy button.copied { color: #5EB493; }

.step-accent {
  position: absolute; top: -1px; left: 0; width: 32px; height: 1px;
  background: #F5A623; box-shadow: 0 0 8px rgba(245,166,35,0.32);
}

/* Primary CTA — same min-height as ghost-btn so they align side-by-side */
.install-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: 15px;
  line-height: 1;
  background: linear-gradient(180deg, rgba(245,166,35,0.14), rgba(245,166,35,0.06));
  color: #FFB840;
  border: 1px solid rgba(245,166,35,0.4);
  transition: all 0.2s ease;
}
.install-btn:hover {
  background: linear-gradient(180deg, rgba(245,166,35,0.22), rgba(245,166,35,0.08));
  border-color: rgba(245,166,35,0.6);
  box-shadow: 0 0 28px -6px rgba(245,166,35,0.4);
  opacity: 1; transform: translateY(-1px);
}
.install-btn::after { content: '→'; font-size: 1.2em; transition: transform 0.2s ease; }
.install-btn:hover::after { transform: translateX(3px); }

.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif; font-weight: 500; font-size: 14px;
  line-height: 1;
  color: rgba(250,241,233,0.97);
  border: 1px solid rgba(250,241,233,0.16);
  background: rgba(255,255,255,0.035);
  transition: all 0.2s ease;
}
.ghost-btn:hover { border-color: rgba(245,166,35,0.5); background: rgba(245,166,35,0.14); opacity: 1; }

/* Nav pill (top header — Projects / Setup) — proper button feel */
.nav-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 999px;
  font-family: 'Source Sans 3', sans-serif; font-weight: 500; font-size: 14px;
  color: rgba(250,241,233,0.97);
  border: 1px solid rgba(250,241,233,0.38);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 1px 2px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  white-space: nowrap; line-height: 1;
}
.nav-pill:hover { border-color: rgba(245,166,35,0.6); background: rgba(245,166,35,0.14); color: #FFB840; opacity: 1; transform: translateY(-1px); }
.nav-pill.primary {
  color: #FFB840; font-weight: 600;
  border-color: rgba(245,166,35,0.4);
  background: rgba(245,166,35,0.14);
}
.nav-pill.primary:hover { border-color: rgba(245,166,35,0.7); background: rgba(245,166,35,0.28); box-shadow: 0 0 20px -6px rgba(245,166,35,0.5); }

/* Form fields */
.field { display: block; margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: rgba(250,241,233,0.78); }
.field input, .field textarea {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  font: inherit; color: rgba(250,241,233,0.97);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(250,241,233,0.16);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(245,166,35,0.5); box-shadow: 0 0 0 3px rgba(245,166,35,0.1); }
.field input::placeholder, .field textarea::placeholder { color: rgba(250,241,233,0.36); }

/* FAQ details */
details.faq-item { border-top: 1px solid rgba(250,241,233,0.10); padding: 20px 0; }
details.faq-item:last-of-type { border-bottom: 1px solid rgba(250,241,233,0.10); }
details.faq-item summary {
  cursor: pointer; list-style: none; padding-right: 32px;
  position: relative; font-family: 'Nunito', sans-serif;
  font-weight: 600; color: rgba(250,241,233,0.97);
  transition: color 0.2s ease; font-size: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: -2px;
  color: #F5A623; font-size: 1.4em; font-weight: 300;
  transition: transform 0.2s ease; line-height: 1;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item summary:hover { color: #FFB840; }
details.faq-item > *:not(summary) { margin-top: 12px; color: rgba(250,241,233,0.78); font-size: 15px; line-height: 1.6; }

/* Tables */
.tool-table { width: 100%; border-collapse: collapse; font-family: 'Source Sans 3', sans-serif; }
.tool-table th, .tool-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(250,241,233,0.10); font-size: 14px; }
.tool-table th { color: rgba(250,241,233,0.97); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.tool-table td { color: rgba(250,241,233,0.78); }
.tool-table td code { color: #FFB840; font-family: 'JetBrains Mono', monospace; font-size: 13px; background: transparent; }

/* Quote cycler */
.quote-text { transition: opacity 0.45s ease; }
.quote-text::before { content: '\201C'; color: #F5A623; font-size: 1.1em; margin-right: 4px; font-family: 'Nunito'; font-style: italic; }
.quote-text::after  { content: '\201D'; color: #F5A623; font-size: 1.1em; margin-left: 2px; font-family: 'Nunito'; font-style: italic; }

/* Mobile nav drawer */
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 80vw);
  background: #0F1133;
  border-left: 1px solid rgba(250,241,233,0.10);
  z-index: 60; padding: 40px 24px;
  transition: transform 0.3s ease;
}
.nav-drawer .nav-close {
  position: absolute; top: 16px; right: 16px;
  color: rgba(250,241,233,0.56); padding: 8px;
  background: transparent; border: none; cursor: pointer; font-size: 20px;
}
.nav-drawer .nav-logo {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  color: rgba(250,241,233,0.97); margin-top: 24px; margin-bottom: 24px; font-size: 18px;
}
.nav-drawer a {
  display: block; padding: 10px 0;
  color: rgba(250,241,233,0.78);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
}
.nav-drawer a:hover { color: #FFB840; opacity: 1; }
.nav-drawer a.primary { color: #FFB840; font-weight: 600; }

/* Drawer button group at the bottom: Setup + Your projects as prominent buttons */
.nav-drawer .drawer-buttons {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(250,241,233,0.10);
  display: flex; flex-direction: column; gap: 12px;
}
.nav-drawer .drawer-buttons a {
  border-bottom: none;
  text-align: center;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(250,241,233,0.28);
  background: rgba(255,255,255,0.06);
  font-weight: 500;
  color: rgba(250,241,233,0.97);
}
.nav-drawer .drawer-buttons a:hover {
  border-color: rgba(245,166,35,0.5);
  background: rgba(245,166,35,0.14);
}
.nav-drawer .drawer-buttons a.primary {
  border-color: rgba(245,166,35,0.4);
  background: rgba(245,166,35,0.14);
  color: #FFB840;
  font-weight: 600;
}
.nav-drawer .drawer-buttons a.primary:hover {
  border-color: rgba(245,166,35,0.7);
  background: rgba(245,166,35,0.28);
}

.hero-quote { min-height: 2.8em; display: flex; align-items: center; justify-content: center; }

/* Mobile: stack hero buttons to full width so they match each other */
@media (max-width: 640px) {
  .install-btn, .ghost-btn {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
  }
}

/* Desktop: stacked hero buttons share the same min-width so they look balanced */
@media (min-width: 641px) {
  .install-btn, .ghost-btn { min-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0B0C29; }
::-webkit-scrollbar-thumb { background: rgba(250,241,233,0.10); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(250,241,233,0.24); }
