/* ===================================================================
   TAIKAI APP — MARKETING SITE SHARED STYLES
   =================================================================== */

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

:root {
  --bg:            #0f0f14;
  --bg-2:          #13131a;
  --bg-3:          #1a1a24;
  --accent:        #dc2626;
  --accent-h:      #b91c1c;
  --accent-muted:  rgba(220,38,38,0.12);
  --accent-border: rgba(220,38,38,0.35);
  --text:          #ffffff;
  --muted:         rgba(255,255,255,0.60);
  --dim:           rgba(255,255,255,0.30);
  --glass:         rgba(255,255,255,0.05);
  --glass-2:       rgba(255,255,255,0.09);
  --border:        rgba(255,255,255,0.08);
  --border-h:      rgba(255,255,255,0.16);
  --green:         #22c55e;
  --amber:         #f59e0b;
  --r:             14px;
  --r-sm:          8px;
  --r-lg:          20px;
  --nav-h:         64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Container ── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Beta Banner ── */
.beta-banner {
  background: linear-gradient(90deg, rgba(220,38,38,0.18) 0%, rgba(220,38,38,0.08) 100%);
  border-bottom: 1px solid rgba(220,38,38,0.25);
  padding: 10px 24px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}
.beta-banner a {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  white-space: nowrap;
}
.beta-banner a:hover { border-color: #fff; }
.beta-banner-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
}
.beta-banner-close:hover { color: var(--text); }

/* ── Navbar ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(15,15,20,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
}
.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.75;
}
.hero-logo {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto 28px;
}
@media (max-width: 640px) {
  .hero-logo { height: 44px; }
}
.beta-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  padding: 2px 7px;
  text-transform: uppercase;
  position: relative;
  cursor: help;
}
.beta-pill::after {
  content: "We're in public beta. Founding director pricing locked in until we exit beta.";
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--border-h);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 200;
}
.beta-pill:hover::after { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--glass-2); }
.nav-links a.active { color: var(--text); }

.nav-cta {
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-h); }
.btn-outline {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border-h);
}
.btn-outline:hover { background: var(--glass-2); border-color: var(--border-h); }
.btn-lg {
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--r);
}
.btn-sm {
  font-size: 13px;
  padding: 7px 15px;
}

/* ── Sections ── */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.first { padding-top: 80px; }

/* ── Typography helpers ── */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 620px;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Hero ── */
.hero {
  padding: 80px 0 0;
  text-align: center;
}
.hero-content {
  text-align: center;
}
.hero-mockup {
  margin-top: 56px;
}
.hero-mockup img {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 0 auto;
}
.hero h1 {
  font-size: 66px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--dim);
}

/* ── Cards ── */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 32px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-h); }
.card-accent { border-left: 3px solid var(--accent); }
.card-green { border-left: 3px solid var(--green); }

/* ── Grid layouts ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ── Feature card ── */
.feat-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}
.feat-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feat-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Pricing table ── */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r);
  overflow: hidden;
}
.pricing-table th {
  background: var(--glass-2);
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.pricing-table td {
  padding: 16px 20px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: var(--glass); }
.pricing-table .tier-name { font-weight: 600; }
.pricing-table .price { font-weight: 700; font-size: 17px; }
.pricing-table .discount {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ── Comparison callout ── */
.compare-block {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.compare-block-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 17px;
}
.compare-block-header.ours { color: var(--accent); background: var(--accent-muted); }
.compare-block-body { padding: 24px 28px; }
.compare-block-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.compare-block-body p:last-child { margin-bottom: 0; }
.compare-block-body strong { color: var(--text); }

/* ── List with check/cross ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.cross-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cross-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.cross-list li::before {
  content: '✗';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Beta callout panel ── */
.beta-callout {
  background: linear-gradient(135deg, rgba(220,38,38,0.10) 0%, rgba(220,38,38,0.04) 100%);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: var(--r-lg);
  padding: 48px 52px;
}
.beta-callout h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}
.beta-callout ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.beta-callout ul li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}
.beta-callout ul li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.beta-callout p {
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 28px;
  line-height: 1.7;
}
.beta-callout-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}
.beta-callout-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding-top: 8px;
  width: 260px;
}
.beta-callout-cta .btn {
  text-align: center;
  white-space: normal;
  font-size: 14px;
  line-height: 1.35;
}

/* ── FAQ / Accordion ── */
details {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.2s;
}
details:hover { border-color: var(--border-h); }
details + details { margin-top: 8px; }
summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  color: var(--muted);
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 10px;
  max-width: 240px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col ul li a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--dim);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Utility ── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-green { color: var(--green); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-12 { gap: 12px; }
.center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ── Inline section split ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-wide { grid-template-columns: 55% 1fr; }

/* ── Founder quote block ── */
.founder-block {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px;
}
.founder-block p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.founder-block p:last-of-type { margin-bottom: 32px; }
.founder-sig {
  display: flex;
  align-items: center;
  gap: 14px;
}
.founder-sig strong {
  display: block;
  font-size: 15px;
}
.founder-sig span {
  font-size: 13px;
  color: var(--muted);
}

/* ── CTA band ── */
.cta-band {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 64px 48px;
  text-align: center;
}
.cta-band h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.cta-band p {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Docs index ── */
.docs-category + .docs-category { margin-top: 40px; }
.docs-category h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.docs-article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 15px;
  transition: background 0.15s;
  gap: 12px;
}
.docs-article-link:hover { background: var(--glass); }
.docs-article-link.soon { opacity: 0.45; pointer-events: none; }
.docs-article-link .pill-soon {
  font-size: 10px;
  font-weight: 700;
  background: var(--glass-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero h1 { font-size: 44px; letter-spacing: -1px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .split-wide { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-title { font-size: 32px; }
  .beta-callout { padding: 32px 28px; }
  .beta-callout-grid { grid-template-columns: 1fr; gap: 28px; }
  .beta-callout-cta { padding-top: 0; }
  .cta-band { padding: 48px 28px; }
  .cta-band h2 { font-size: 28px; }

  /* TV section — stack at tablet */
  .tv-section { flex-direction: column; min-height: unset; }
  .tv-section-text {
    flex: none;
    width: 100%;
    padding: 56px 32px 40px;
  }
  .tv-section-text h2 { font-size: 32px; }
  .tv-section-visual {
    width: 100%;
    height: 480px;
    align-self: auto;
  }
  /* Switch gradient to top-to-bottom when stacked */
  .tv-section-visual::before {
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 20%);
  }
  .tv-section-visual img { object-position: center 60%; }
}
/* ── Mockup image cards ── */
.mockup-card {
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--glass);
}
.mockup-card img {
  width: 100%;
  display: block;
}

/* ── Trusted By ── */
.trusted-by-section {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trusted-by-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 28px;
}
.trusted-by-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}
.trusted-by-logo img {
  height: 72px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(20%);
  transition: opacity 0.2s, filter 0.2s;
}
.trusted-by-logo:hover img {
  opacity: 1;
  filter: none;
}

/* ── TV Section ── */
.tv-section {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 900px;
  background: var(--bg);
  padding: 0;
}
.tv-section-text {
  flex: 0 0 42%;
  padding: 80px 64px 80px max(48px, calc((100vw - 1100px) / 2 + 24px));
}
.tv-section-text h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 12px 0 20px;
}
.tv-section-text p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}
.tv-section-visual {
  flex: 1;
  align-self: stretch;
  position: relative;
  overflow: hidden;
}
.tv-section-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 32%);
  z-index: 1;
  pointer-events: none;
}
.tv-section-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 640px) {
  .hero { padding: 60px 0 0; }
  .hero h1 { font-size: 34px; letter-spacing: -0.5px; }
  .hero-sub { font-size: 16px; }
  .hero-logo { height: 44px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .beta-banner { font-size: 13px; }
  .pricing-table { font-size: 14px; }
  .pricing-table th, .pricing-table td { padding: 12px 14px; }
  .founder-block { padding: 28px; }
  .beta-callout { padding: 28px 22px; }
  .beta-callout-cta { width: 100%; }
  .beta-callout-cta .btn { width: 100%; text-align: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .btn-lg { white-space: normal; }

  /* TV section — tighter on mobile */
  .tv-section-text { padding: 48px 24px 32px; }
  .tv-section-text h2 { font-size: 28px; }
  .tv-section-visual { height: 380px; }
}
