/* PromptHop Landing Page */

:root {
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --bg-panel: #111a2e;
  --fg: #f1f5f9;
  --fg-muted: #94a3b8;
  /* Was #64748b, which measured 4.14:1 on --bg and 3.86:1 on --bg-elevated.
     Both fail WCAG AA (4.5:1) for normal text, and this token is used on the
     SMALLEST text on the page (0.8-0.86rem): stat captions, browser list,
     field hints, footer. A real user reported the page hard to read; the
     measurement agreed. Now 8.16:1 on --bg and 7.62:1 on cards - AAA both. */
  --fg-dim: #9aa8bd;
  --border: #1e293b;
  --border-bright: #334155;

  --accent: #22d3ee;
  --accent-deep: #0891b2;
  --violet: #a78bfa;
  --violet-deep: #7c3aed;
  --lime: #a3e635;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 128px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  top: -400px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 900px;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.08) 0%, rgba(124, 58, 237, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

section,
header,
footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.wrap-narrow {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  margin-bottom: var(--s-3);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 620px;
}

/* ============ HEADER ============ */
.header {
  /* 24px top and bottom made a 90px band across the top of every screen.
     11px brings the sticky bar to ~64px, the usual height for one. */
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

/* The header is sticky, so an anchor jump would otherwise put the section's
   first line underneath it. scrollIntoView honours this. The feedback form is
   named here too: it is the Chrome Web Store support link's landing target, so
   it gets jumped to directly rather than as part of its parent section. */
section[id],
#feedback {
  scroll-margin-top: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--accent);
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, var(--accent) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.header-nav a:not(.btn) {
  color: var(--fg-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.header-nav a:not(.btn):hover {
  color: var(--fg);
  opacity: 1;
}

@media (max-width: 820px) {
  .header-nav .nav-link {
    display: none;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #04121a;
  box-shadow: 0 6px 28px rgba(34, 211, 238, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 38px rgba(34, 211, 238, 0.42);
  opacity: 1;
}

.btn-ghost {
  background: rgba(167, 139, 250, 0.08);
  color: var(--violet);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.btn-ghost:hover {
  background: rgba(167, 139, 250, 0.14);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-lg {
  padding: 17px 38px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ============ HERO ============ */
.hero {
  padding: var(--s-7) 0 var(--s-6);
  text-align: center;
}

.hero-headline {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: var(--s-4);
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-headline .grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--violet) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 auto var(--s-6);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}

.browser-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  color: var(--fg-dim);
  font-size: 0.86rem;
  margin-bottom: var(--s-5);
}

.browser-support .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--fg-dim);
}

.hero-promise {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px 20px;
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  background: var(--bg-elevated);
  font-size: 0.92rem;
  color: var(--fg-muted);
}

.hero-promise strong {
  color: var(--fg);
  font-weight: 600;
}

/* ============ DEMO ============ */
.demo {
  padding: var(--s-5) 0 var(--s-6);
}

.demo-frame {
  width: 100%;
  /* Deliberately short of the content column. At 1080px the video filled the
     whole viewport and read as the end of the page; leaving room above and
     below shows there is more to scroll to. */
  max-width: 880px;
  margin: 0 auto;
  /* Matches the demo recording (1280x800). At 16/9 the cover fit cropped ~40px
     off the bottom, which is exactly where the overlay's "Hop to" row sits. */
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(34, 211, 238, 0.08);
}

.demo-frame img,
.demo-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  color: var(--fg-dim);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%),
    var(--bg-elevated);
}

.demo-placeholder .ph-icon {
  font-size: 2.5rem;
  opacity: 0.6;
}

.flow {
  max-width: 780px;
  margin: var(--s-6) auto 0;
  text-align: center;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.75;
  color: var(--fg-muted);
}

.flow .hl {
  color: var(--fg);
  font-weight: 600;
}

.flow .pop {
  display: block;
  margin-top: var(--s-3);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--accent) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.try-it {
  text-align: center;
  margin-top: var(--s-5);
  font-size: 1rem;
  color: var(--fg-muted);
}

.link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.link:hover {
  opacity: 0.8;
}

/* ============ NUMBERS STRIP ============ */
.numbers {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.03) 0%, transparent 100%);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-6);
}

.number-item {
  text-align: center;
}

.number-value {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--s-2);
  background: linear-gradient(100deg, var(--accent) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.number-label {
  font-weight: 600;
  margin-bottom: var(--s-1);
}

.number-note {
  font-size: 0.86rem;
  color: var(--fg-dim);
}

/* ============ FEATURES ============ */
.features {
  padding: var(--s-7) 0;
}

.features-head {
  margin-bottom: var(--s-5);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-4);
}

.feature {
  padding: var(--s-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: var(--border-bright);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(124, 58, 237, 0.14));
  border: 1px solid var(--border-bright);
  margin-bottom: var(--s-3);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.feature h4 {
  font-size: 1.08rem;
  margin-bottom: var(--s-2);
}

.feature p {
  color: var(--fg-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ============ USE CASES ============ */
.usecases {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--border);
}

.usecases-head {
  margin-bottom: var(--s-5);
}

/* Explicit 2x2 rather than auto-fit. With minmax(300px) the four cards
   needed 1272px but the container offers 1184px, so they wrapped 3+1 and
   left a full empty column beside the orphan - the blank space reported.
   A fixed two-column grid keeps all four use cases and stays balanced. */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

@media (max-width: 780px) {
  .usecases-grid {
    grid-template-columns: 1fr;
  }
}

.usecase {
  padding: var(--s-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  transition: transform 0.25s ease, border-left-color 0.25s ease;
}

.usecase:hover {
  transform: translateY(-4px);
  border-left-color: var(--violet);
}

.usecase-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--s-2);
}

.usecase h4 {
  font-size: 1.08rem;
  margin-bottom: var(--s-2);
}

.usecase p {
  color: var(--fg-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ============ FOUNDER STORY ============ */
.founder {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse at 20% 0%, rgba(124, 58, 237, 0.07) 0%, transparent 60%);
}

.founder-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-7);
  align-items: start;
}

@media (max-width: 940px) {
  .founder-inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

.founder-story {
  max-width: 60ch;
}

.founder-inner h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: var(--s-4);
}

.founder-inner p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--s-3);
}

.founder-inner p strong {
  color: var(--fg);
  font-weight: 600;
}

.founder-sign {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}

.founder-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #04121a;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.founder-sign-text {
  font-size: 0.94rem;
  line-height: 1.4;
}

.founder-sign-text strong {
  display: block;
  color: var(--fg);
  font-weight: 600;
}

.founder-sign-text span {
  color: var(--fg-dim);
}

/* ============ FEEDBACK FORM ============ */
.feedback-form {
  position: sticky;
  top: 104px;
  padding: var(--s-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (max-width: 940px) {
  .feedback-form {
    position: static;
  }
}

.form-title {
  font-size: 1.12rem;
  margin-bottom: var(--s-2);
}

.form-intro {
  color: var(--fg-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: var(--s-4);
}

.field {
  margin-bottom: var(--s-3);
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--fg-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.94rem;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.optional {
  font-weight: 400;
  color: var(--fg-dim);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-top: var(--s-2);
}

.form-status {
  margin-top: var(--s-3);
  font-size: 0.9rem;
  color: var(--lime);
  min-height: 20px;
}

/* ============ FAQ ============ */
.faq {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--border);
}

.faq-head {
  margin-bottom: var(--s-5);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: var(--s-3) var(--s-6);
}

@media (max-width: 700px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--s-4) 0;
}

.faq-item h4 {
  font-size: 1rem;
  margin-bottom: var(--s-2);
  color: var(--fg);
}

.faq-item p {
  color: var(--fg-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ============ FINAL CTA ============ */
.final-cta {
  padding: var(--s-7) 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.09) 0%, transparent 65%);
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--s-3);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.final-cta p {
  color: var(--fg-muted);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 0 auto var(--s-5);
}

/* ============ FOOTER ============ */
.footer {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.footer-note {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--fg-dim);
}

/* ============ BADGE ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.32);
  color: var(--violet);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .wrap,
  .wrap-narrow {
    padding: 0 var(--s-4);
  }

  .hero {
    padding: var(--s-7) 0 var(--s-6);
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ============ LEGAL PAGES ============ */
.legal {
  padding: var(--s-6) 0 var(--s-7);
}

.legal-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: var(--s-2);
}

.legal-updated {
  color: var(--fg-dim);
  font-size: 0.9rem;
  margin-bottom: var(--s-5);
}

.legal-callout {
  padding: var(--s-4);
  margin-bottom: var(--s-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: var(--fg-muted);
  line-height: 1.7;
}

.legal-callout strong {
  color: var(--fg);
}

.legal h2 {
  font-size: 1.3rem;
  margin: var(--s-6) 0 var(--s-3);
  color: var(--fg);
}

.legal h3 {
  font-size: 1.05rem;
  margin: var(--s-4) 0 var(--s-2);
  color: var(--fg);
}

.legal p {
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: var(--s-3);
}

.legal ul {
  margin: 0 0 var(--s-3) var(--s-4);
  color: var(--fg-muted);
  line-height: 1.75;
}

.legal li {
  margin-bottom: var(--s-2);
}

.legal code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--fg);
}

/* Wide tables must scroll inside their own container, never the page body. */
.legal-table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--s-4);
  font-size: 0.94rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
  vertical-align: top;
}

.legal-table th {
  color: var(--fg);
  font-weight: 600;
  white-space: nowrap;
}

.brand,
.footer-brand {
  text-decoration: none;
}

/* ============ COMING SOON STRIP ============ */
.coming-strip {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  margin-top: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.32);
  background:
    linear-gradient(120deg, rgba(167, 139, 250, 0.10) 0%, rgba(34, 211, 238, 0.05) 100%),
    var(--bg-elevated);
}

.coming-mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.12);
}

.coming-mark svg {
  width: 22px;
  height: 22px;
  color: var(--violet);
}

.coming-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.coming-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.coming-head h3 {
  font-size: 1.15rem;
  margin: 0;
}

.coming-body p {
  color: var(--fg-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 62ch;
}

@media (max-width: 560px) {
  .coming-strip {
    flex-direction: column;
    gap: var(--s-3);
  }
}
