/* ============================================================
   Sherloq — shared styles
   Design tokens extracted from production (sherloqdata.io)
   ============================================================ */

:root {
  --bg-page: #000000;
  --bg-panel: #101014;
  --bg-card: #16161a;
  --bg-elev: #242429;
  --bg-pill: #1b1b20;
  --text-hi: #ffffff;
  --text-main: #cacacc;
  --text-soft: #ececee;
  --text-muted: #8e8e9e;
  --pink: #ff3893;
  --pink-deep: #e8006a;
  --blue: #0099ff;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-softer: rgba(255, 255, 255, 0.05);
  --radius-panel: 24px;
  --radius-card: 20px;
  --radius-btn: 10px;
  --font-main: "Figtree", "Figtree Placeholder", sans-serif;
  --font-mono: "Fragment Mono", monospace;
  --nav-h: 56px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ============ Appear-on-scroll animation ============ */
.appear {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.appear.in {
  opacity: 1;
  transform: translateY(0);
}
.appear.d1 { transition-delay: 0.1s; }
.appear.d2 { transition-delay: 0.2s; }
.appear.d3 { transition-delay: 0.3s; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.98); }

.btn-dark {
  background: var(--bg-elev);
}
.btn-dark:hover { background: #2d2d33; }

.btn-pink {
  background: linear-gradient(180deg, #ff3893 0%, #f01d7f 100%);
  box-shadow: 0 4px 24px rgba(255, 56, 147, 0.35);
}
.btn-pink:hover { filter: brightness(1.06); }

.btn .key-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.btn-dark .key-chip { background: rgba(255, 255, 255, 0.14); }
.btn-pink .key-chip { background: rgba(255, 255, 255, 0.35); color: #fff; }

.btn-lg { padding: 14px 26px; font-size: 17px; }

/* ============ Nav ============ */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1148px;
  padding: 10px 14px 10px 24px;
  background: rgba(16, 16, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 26px;
  flex: 1;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 16px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-link .chev {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.nav-item { position: relative; }
.nav-item:hover .chev { transform: rotate(90deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: rgba(22, 22, 26, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 15px;
  color: var(--text-main);
}
.nav-dropdown a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 16px; font-size: 15px; }

/* mobile nav */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============ Page panel (rounded dark inset) ============ */
.page-panel {
  background: var(--bg-panel);
  border-radius: var(--radius-panel);
  margin: 16px 16px 0;
  overflow: hidden;
  position: relative;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 150px 0 0;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  /* pink ambient glow behind mockup */
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 1200px;
  height: 900px;
  transform: translateX(-38%);
  background: radial-gradient(ellipse at center, rgba(232, 0, 106, 0.32) 0%, rgba(232, 0, 106, 0.12) 35%, transparent 65%);
  pointer-events: none;
}
.hero h1 {
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; }
.hero .hero-sub {
  margin-top: 14px;
  font-size: 21px;
  color: var(--text-main);
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}
.hero-badges {
  margin: 46px auto 0;
  width: 560px;
  max-width: 82%;
}
.hero-collage {
  position: relative;
  margin: -215px auto 0;
  max-width: 1240px;
  padding: 0 20px;
}
.hero-collage img { width: 100%; height: auto; }

/* ============ Logo ticker ============ */
.logos {
  padding: 70px 0 60px;
  overflow: hidden;
}
.logos h6 {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 44px;
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  margin-bottom: 38px;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 90px;
  padding-right: 90px;
  flex-shrink: 0;
  animation: marquee 38s linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee-track img {
  height: 30px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(1) brightness(1.4);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ============ Section headers ============ */
.section { padding: 90px 0; position: relative; }
.section-header { text-align: center; position: relative; }
.section-header .float-icon {
  width: 64px;
  margin: 0 auto -26px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 18px rgba(232, 0, 106, 0.45));
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-9px) rotate(4deg); }
}
.section-header h2 {
  font-size: 44px;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.section-header .sub {
  margin-top: 14px;
  font-size: 19px;
  color: var(--text-main);
}

/* ============ AI SQL Chat section ============ */
.aichat { padding: 120px 0 40px; }
.aichat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.aichat-left h2 {
  font-size: 44px;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.2;
}
.aichat-left .sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-main);
}
.aichat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  max-width: 560px;
}
.pill {
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--bg-pill);
  border: 1px solid var(--border-softer);
  color: var(--text-soft);
  font-size: 16px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.pill.active {
  background: linear-gradient(180deg, #ff3893, #f01d7f);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 22px rgba(255, 56, 147, 0.4);
}
.aichat-arrow {
  width: 120px;
  margin: 34px 0 0 220px;
}
.aichat-right { position: relative; }
.aichat-right img {
  width: 100%;
  border-radius: 18px;
  display: none;
}
.aichat-right img.active { display: block; }

/* ============ Repository / features ============ */
.repo { padding: 110px 0 60px; }
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 54px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-softer);
  border-radius: var(--radius-card);
  padding: 30px 30px 0;
  overflow: hidden;
}
.feature-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-soft);
}
.feature-card p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-main);
  min-height: 96px;
}
.feature-card .card-img { margin-top: 18px; }

/* plugin sub-section */
.plugin-head { margin-top: 110px; }
.plugin-head .float-icon { width: 72px; }
.plugin-editor {
  position: relative;
  margin-top: 46px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-softer);
}
.plugin-editor .bg { width: 100%; }
.plugin-editor .hub {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46%;
  height: auto;
}
.plugin-editor .learn-btn {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
}

/* ============ Testimonials ============ */
.testi { padding: 110px 0 60px; }
.testi-grid {
  columns: 3;
  column-gap: 24px;
  margin-top: 56px;
}
.t-card {
  break-inside: avoid;
  background: var(--bg-card);
  border: 1px solid var(--border-softer);
  border-radius: var(--radius-card);
  padding: 26px;
  margin-bottom: 24px;
}
.t-card .t-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.t-card .t-head img.co { height: 22px; width: auto; }
.t-card .t-head img.q { height: 20px; width: auto; }
.t-card .quote {
  font-size: 16px;
  color: var(--text-main);
  white-space: pre-line;
}
.t-card .t-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-softer);
}
.t-card .t-foot img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.t-card .t-foot .name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-soft);
}
.t-card .t-foot .role {
  font-size: 14px;
  color: var(--text-muted);
}
.testi-link-wrap { text-align: center; margin-top: 44px; }
.testi-link {
  font-size: 20px;
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.testi-link:hover { color: #fff; }

/* ============ Security ============ */
.security {
  position: relative;
  padding: 150px 0 120px;
  text-align: center;
  overflow: hidden;
}
.security::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 62%, rgba(232, 0, 106, 0.34), transparent 70%);
  pointer-events: none;
}
.security .binary {
  width: 900px;
  max-width: 94%;
  margin: 0 auto 0;
  opacity: 0.92;
}
.security h2 {
  position: relative;
  font-size: 46px;
  font-weight: 700;
  color: var(--text-soft);
  margin-top: -120px;
}
.security p {
  position: relative;
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 17px;
  color: var(--text-main);
}
.security a.pink { color: var(--pink); }
.security a.blue { color: var(--blue); }
.security a:hover { text-decoration: underline; }

/* ============ Get started (planet) ============ */
.getstarted {
  position: relative;
  padding: 210px 0 130px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(232, 0, 106, 0.55), rgba(232, 0, 106, 0.15) 45%, transparent 70%);
}
.getstarted::before {
  /* dark planet arc */
  content: "";
  position: absolute;
  left: 50%;
  top: 120px;
  width: 3000px;
  height: 2600px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--bg-panel);
  box-shadow: 0 -40px 120px rgba(255, 56, 147, 0.28);
  pointer-events: none;
}
.getstarted .sparkles {
  position: absolute;
  inset: 0 0 60% 0;
  background-image:
    radial-gradient(circle 3px at 12% 30%, rgba(255, 96, 168, 0.9) 40%, transparent 50%),
    radial-gradient(circle 2px at 26% 64%, rgba(255, 96, 168, 0.7) 40%, transparent 50%),
    radial-gradient(circle 3px at 44% 22%, rgba(255, 96, 168, 0.8) 40%, transparent 50%),
    radial-gradient(circle 2px at 58% 52%, rgba(255, 96, 168, 0.65) 40%, transparent 50%),
    radial-gradient(circle 3px at 74% 34%, rgba(255, 96, 168, 0.85) 40%, transparent 50%),
    radial-gradient(circle 2px at 88% 58%, rgba(255, 96, 168, 0.7) 40%, transparent 50%),
    radial-gradient(circle 2px at 8% 78%, rgba(255, 96, 168, 0.6) 40%, transparent 50%),
    radial-gradient(circle 2px at 94% 20%, rgba(255, 96, 168, 0.75) 40%, transparent 50%);
  pointer-events: none;
}
.getstarted .inner { position: relative; }
.getstarted h2 {
  font-size: 46px;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.25;
}
.getstarted h2 .num-icon {
  display: inline-block;
  width: 58px;
  vertical-align: -12px;
  margin: 0 4px;
  animation: bob 4s ease-in-out infinite;
}
.getstarted .sub {
  margin-top: 20px;
  font-size: 19px;
  color: var(--text-main);
}
.getstarted .dl-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 44px;
}
.getstarted .dl-row .btn { background: var(--bg-elev); }
.getstarted .dl-row .btn img { width: 26px; height: 26px; }

/* ============ Outro quote ============ */
.outro {
  padding: 120px 0 140px;
  text-align: center;
}
.outro .kicker {
  font-size: 17px;
  color: var(--text-main);
}
.outro h2 {
  max-width: 900px;
  margin: 26px auto 0;
  font-size: 52px;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.25;
}
.outro h2 .hl { color: var(--pink); }

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--border-softer);
  padding: 80px 0 60px;
  background: var(--bg-page);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
.footer-brand img.wordmark { height: 30px; width: auto; flex-shrink: 0; }
.footer-brand .btn-row {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}
.footer-brand .btn-row .btn { padding: 10px 16px; font-size: 15px; }
.footer-brand .socials {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.footer-brand .socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-elev);
}
.footer-brand .socials img { width: 15px; height: 15px; }
.footer-brand .badge { width: 62px; margin-top: 36px; }
.footer-col h5 {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 16px;
}
.footer-col a:hover { color: #fff; }

/* ============ Dummy form success ============ */
.form-success {
  display: none;
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #7bedaa;
  font-size: 16px;
  margin-top: 18px;
}
.form-success.show { display: block; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav { justify-content: space-between; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(16, 16, 20, 0.97);
    border-radius: 16px;
    padding: 12px;
    margin-left: 0;
    border: 1px solid var(--border-softer);
  }
  .nav.open .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    background: transparent;
    padding-left: 16px;
  }
  .hero h1 { font-size: 46px; }
  .hero-collage { margin-top: -90px; }
  .aichat-row { grid-template-columns: 1fr; }
  .aichat-arrow { display: none; }
  .cards3 { grid-template-columns: 1fr; }
  .feature-card p { min-height: 0; }
  .testi-grid { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-cta .btn-dark { display: none; }
  .nav-cta .btn { padding: 9px 13px; font-size: 14px; }
}

@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .nav { padding-left: 16px; }
  .nav-logo img { height: 24px; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 34px; }
  .hero-collage { margin-top: -30px; }
  .hero .hero-sub { font-size: 17px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .section-header h2, .aichat-left h2 { font-size: 30px; }
  .security h2 { font-size: 30px; margin-top: -20px; }
  .getstarted h2 { font-size: 30px; }
  .getstarted h2 .num-icon { width: 40px; vertical-align: -8px; }
  .getstarted .dl-row { flex-direction: column; align-items: center; }
  .outro h2 { font-size: 32px; }
  .testi-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-panel { margin: 10px 10px 0; }
}
