/* Giblet marketing site — shared stylesheet */
:root {
  --black: #000000;
  --near-black: #0a0908;
  --charcoal: #141312;
  --white: #f4f1ec;
  --gray: #b7b3af;
  --gray-dim: #8a8683;
  --gray-faint: #6f6b68;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.1);
  --orange: #fd9c02;
  --orange-hover: #e58c00;
  --green: #4ade80;
  --font: 'Bai Jamjuree', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: #ffb63d; }
::selection { background: var(--orange); color: #000; }
button { font-family: inherit; }

/* Layout helpers */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Header */
.gb-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.gb-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.gb-logo img { height: 44px; width: auto; object-fit: contain; border-radius: 6px; }
.gb-nav { display: none; align-items: center; gap: 24px; }
.gb-nav a { color: var(--white); font-weight: 600; font-size: 15px; white-space: nowrap; }
.gb-cta-desktop { display: none; align-items: center; gap: 20px; }
.gb-cta-desktop a { color: var(--white); font-weight: 600; font-size: 15px; }
.btn-primary {
  background: var(--orange); color: var(--charcoal); font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 8px; white-space: nowrap; display: inline-block; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--orange-hover); color: var(--charcoal); }
.btn-secondary {
  border: 2px solid rgba(255,255,255,0.3); color: #fff; font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 8px; display: inline-block; background: none;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.gb-burger {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: none; background: transparent; flex-direction: column; gap: 5px; cursor: pointer;
}
.gb-burger span { width: 24px; height: 2px; background: var(--white); display: block; }
.gb-mobile-menu {
  display: none; border-top: 1px solid var(--border); padding: 20px 24px 28px;
  flex-direction: column; gap: 18px; background: #000;
}
.gb-mobile-menu.open { display: flex; }
.gb-mobile-menu a { color: var(--white); font-weight: 600; font-size: 16px; }
.gb-mobile-menu .divider { height: 1px; background: var(--border); margin: 4px 0; }
.gb-mobile-menu .btn-primary { text-align: center; }

@media (min-width: 1150px) {
  .gb-nav, .gb-cta-desktop { display: flex; }
  .gb-burger { display: none; }
  .gb-mobile-menu { display: none !important; }
  .gb-logo img { height: 56px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.1; font-weight: 700; margin: 0 0 20px; letter-spacing: -0.02em; color: #fff; }
.hero h1 .accent { color: var(--orange); }
.hero p.lead { font-size: 17px; line-height: 1.6; color: var(--gray); max-width: 520px; margin: 0 0 28px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.watch-demo-link {
  display: flex; align-items: center; gap: 10px; margin-top: 24px; background: none; border: none; padding: 0; cursor: pointer;
}
.watch-demo-link .play-dot {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(253,156,2,0.15); border: 1px solid rgba(253,156,2,0.4);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.watch-demo-link span.label { color: var(--white); font-weight: 600; font-size: 14.5px; }

.proof-card { background: var(--charcoal); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7); }
.proof-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.proof-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.proof-card-head span { color: #f4f2f0; font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.proof-inner { background: #1b1a19; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 24px; }
.proof-row-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.proof-check { width: 26px; height: 26px; border-radius: 50%; background: #1f9d55; display: flex; align-items: center; justify-content: center; }
.proof-title { display: flex; align-items: center; gap: 10px; }
.proof-title span { font-weight: 700; font-size: 15px; color: #fff; }
.proof-verified { background: #153a26; color: var(--green); font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 20px; letter-spacing: .04em; }
.proof-details { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; }
.proof-details span.k { color: var(--gray-dim); }
.proof-details span.v { font-weight: 600; color: var(--white); }
.proof-details span.mono { font-family: monospace; }
.proof-steps { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.proof-steps .tag { font-weight: 700; font-size: 11px; padding: 5px 9px; border-radius: 5px; }
.proof-steps .tag.orange { background: var(--orange); color: var(--charcoal); }
.proof-steps .tag.green { background: #1f9d55; color: #fff; }
.proof-steps .line { flex: 1; height: 2px; background: rgba(255,255,255,0.1); }

canvas.starfield { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; pointer-events: none; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .hero h1 { font-size: 64px; }
  .hero p.lead { font-size: 19px; }
}

/* Generic sections */
.section { padding: 64px 0; }
.section-alt { background: var(--near-black); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--black); position: relative; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 28px; font-weight: 700; margin: 0 0 20px; letter-spacing: -0.01em; color: #fff; }
.section p.desc { font-size: 16px; line-height: 1.7; color: var(--gray); }
.text-center { text-align: center; }
.max-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.max-mid { max-width: 1000px; margin-left: auto; margin-right: auto; }

@media (min-width: 768px) {
  .section h2 { font-size: 38px; }
  .section p.desc { font-size: 18px; }
}

/* Problem cards */
.problem-cards { display: grid; gap: 20px; margin-top: 48px; }
.problem-card { background: var(--charcoal); border: 1px solid var(--border); border-radius: 14px; padding: 28px 22px; }
.problem-card p { font-size: 18px; font-weight: 700; margin: 0; color: #fff; }
@media (min-width: 768px) { .problem-cards { grid-template-columns: repeat(3,1fr); } .problem-card p { font-size: 20px; } }

/* Steps */
.steps-grid { display: grid; gap: 24px; margin-top: 48px; }
.step-card { background: var(--charcoal); border: 1px solid var(--border); border-radius: 14px; padding: 24px 20px; }
.step-num { width: 40px; height: 40px; border-radius: 10px; background: var(--orange); color: var(--charcoal); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.step-card p { font-size: 14.5px; line-height: 1.6; color: var(--gray); margin: 0; }
@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(4,1fr); } }

/* Product walkthrough */
.walkthrough-grid { display: grid; gap: 20px; margin-top: 48px; }
.walkthrough-item img { border-radius: 14px; border: 1px solid var(--border-strong); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.walkthrough-item p { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--white); }
@media (min-width: 700px) { .walkthrough-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .walkthrough-grid { grid-template-columns: repeat(3,1fr); } }

/* Comparison table */
.compare-table { border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; margin-top: 40px; }
.compare-row { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 14px 16px; align-items: center; font-size: 14px; }
.compare-row.head { background: var(--charcoal); font-weight: 700; color: #fff; }
.compare-row:not(.head) { border-top: 1px solid var(--border); color: var(--white); }
.compare-row span.center { text-align: center; }
.compare-row .ordinary { color: var(--gray-dim); }
.compare-row .giblet { color: var(--green); font-weight: 700; }
.compare-row.head .giblet-head { color: var(--orange); }
@media (min-width: 640px) { .compare-row { padding: 18px 24px; font-size: 15px; } }

/* Use cases */
.usecase-grid { display: grid; gap: 20px; margin-top: 48px; }
.usecase-card { background: var(--charcoal); border: 1px solid var(--border); border-radius: 14px; padding: 24px 20px; }
.usecase-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.usecase-card p { font-size: 14.5px; line-height: 1.6; color: var(--gray); margin: 0; }
@media (min-width: 700px) { .usecase-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .usecase-grid { grid-template-columns: repeat(3,1fr); } }

/* Security bullets */
.bullets { display: grid; gap: 20px; margin-top: 32px; }
.bullet { display: flex; gap: 14px; }
.bullet .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: 9px; flex-shrink: 0; }
.bullet p { margin: 0; font-size: 15px; line-height: 1.65; color: #d8d5d1; }
@media (min-width: 700px) { .bullets { grid-template-columns: repeat(2,1fr); gap: 20px 32px; } }
.security-note { font-size: 13.5px; color: var(--gray-faint); margin-top: 32px; text-align: center; }

/* Demo */
.demo-frame {
  position: relative; background: var(--charcoal); border-radius: 16px; aspect-ratio: 16/9;
  cursor: pointer; overflow: hidden;
}
.demo-play {
  width: 68px; height: 68px; border-radius: 50%; background: var(--orange);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.demo-caption { position: absolute; bottom: 16px; color: var(--gray-dim); font-size: 12px; font-family: monospace; }

/* Final CTA */
.final-cta { padding: 72px 0; text-align: center; }
.final-cta h2 { font-size: 30px; }
.final-cta p { font-size: 17px; color: var(--gray); margin: 0 0 28px; }
@media (min-width: 768px) { .final-cta h2 { font-size: 40px; } }

/* Footer */
.gb-footer { background: var(--black); color: #d8d5d1; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 48px 24px 28px; display: flex; flex-direction: column; gap: 32px; }
.footer-brand img { height: 26px; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--gray-dim); margin: 0; max-width: 280px; }
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #d8d5d1; font-size: 14px; }
.footer-col a:hover { color: var(--orange); }
.footer-col a.accent { color: var(--orange); font-weight: 700; }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding: 20px 24px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--gray-faint); }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; } }

/* Reveal animation */
.gb-reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.gb-reveal.gb-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .gb-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Custom cursor */
.gb-cursor {
  position: fixed; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--orange);
  pointer-events: none; z-index: 9999; mix-blend-mode: difference; transform: translate3d(-50%,-50%,0);
  transition: width .25s ease, height .25s ease, background .25s ease;
}
.gb-cursor.gb-hover { width: 52px; height: 52px; background: #fff; }
@media (max-width: 900px), (hover: none) { .gb-cursor { display: none !important; } }
body.gb-has-cursor { cursor: none; }
@media (max-width: 900px), (hover: none) { body.gb-has-cursor { cursor: auto; } }

/* Video modal */
.gb-modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.gb-modal-backdrop.open { display: flex; }
.gb-modal-box { width: 100%; max-width: 960px; position: relative; }
.gb-modal-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: var(--white); font-size: 15px; font-weight: 600; cursor: pointer; }
.gb-modal-frame { background: var(--charcoal); border-radius: 16px; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); background-size: cover; background-position: center; }

/* Inner pages (about/faqs/contacts/privacy/terms) */
.page-main { padding: 56px 0 96px; }
.page-main h1 { font-size: 34px; font-weight: 700; margin: 0 0 24px; letter-spacing: -0.01em; color: #fff; }
.page-main p { font-size: 16px; line-height: 1.75; color: #d8d5d1; margin: 0 0 20px; }
.page-main h2 { font-size: 19px; font-weight: 700; color: #fff; margin: 32px 0 12px; }
@media (min-width: 768px) { .page-main h1 { font-size: 42px; } .page-main p { font-size: 17px; } }

.faq-lead { font-size: 16px; color: var(--gray); margin: 0 0 40px; }
.faq-cat { margin-bottom: 36px; }
.faq-cat h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin: 0 0 14px; }
.faq-item { border-top: 1px solid var(--border-strong); padding: 16px 0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; font-size: 15.5px; font-weight: 600; color: var(--white); cursor: pointer; list-style: none; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--orange); font-size: 20px; flex-shrink: 0; }
.faq-item p { font-size: 14.5px; line-height: 1.7; color: var(--gray); margin: 12px 0 0; }

.contact-card { border: 1px solid var(--border-strong); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 18px; background: var(--near-black); }
.contact-card .label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-dim); margin: 0 0 6px; }
.contact-card .value { font-size: 16px; font-weight: 600; margin: 0; color: var(--white); }
