/* Tribble Design System (from tribble-style-guide.html + cursor-prompt) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy-950: #0a1628;
  --navy-900: #1a2f5e;
  --navy-800: #243f7a;
  --navy-700: #2e4a8a;
  --navy-600: #3d5fa8;
  --blue-600: #3658d4;
  --blue-500: #4a6fe8;
  --blue-400: #6b8cf0;
  --blue-300: #7a9bf0;
  --blue-200: #a5c0ff;
  --blue-100: #dce8ff;
  --blue-50: #eef2ff;
  --slate-900: #1e2a3a;
  --slate-700: #3a4a6b;
  --slate-500: #6b7a99;
  --slate-400: #8894b0;
  --slate-300: #b8c2d8;
  --slate-200: #dce3f0;
  --slate-100: #eef0f5;
  --slate-50: #f7f9fc;
  --white: #ffffff;
  --black: #000000;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(26,47,94,0.08);
  --shadow-md: 0 4px 16px rgba(26,47,94,0.10);
  --shadow-lg: 0 8px 32px rgba(26,47,94,0.14);
  --shadow-glow: 0 0 0 4px rgba(74,111,232,0.15);
  --ease-standard: cubic-bezier(0.4,0,0.2,1);
  --ease-enter: cubic-bezier(0,0,0.2,1);
  --dur-fast: 100ms;
  --dur-default: 200ms;
  --dur-deliberate: 350ms;
  --font: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "kern" 1, "liga" 1, "calt" 1; }
body { font-family: var(--font); background: var(--slate-50); color: var(--navy-900); line-height: 1.6; }

.text-display { font-size: clamp(36px, 5vw, 48px); font-weight: 900; letter-spacing: -2px; line-height: 1; color: var(--navy-900); }
.text-h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; color: var(--navy-900); }
.text-h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; color: var(--navy-900); }
.text-h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; color: var(--navy-900); }
.text-h4 { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--navy-900); }
.text-lead { font-size: 16px; font-weight: 400; line-height: 1.7; color: var(--slate-500); }
.text-body { font-size: 14px; font-weight: 400; line-height: 1.7; color: var(--slate-700); }
.text-small { font-size: 12px; font-weight: 400; line-height: 1.6; color: var(--slate-500); }
.text-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--slate-400); }
.stat-num, .metric-value, [data-type="number"] { font-variant-numeric: tabular-nums; }

.draft-nav { position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 1000; display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-900); }
.draft-nav-right { background: var(--white); display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-6); padding: 0 var(--sp-8); }
.draft-nav-left { display: flex; align-items: center; padding-left: var(--sp-8); gap: var(--sp-8); }
.draft-nav .wordmark { display: flex; align-items: center; text-decoration: none; }
.draft-nav .wordmark img { height: 24px; width: auto; display: block; }
.footer-wordmark img { height: 24px; width: auto; display: block; }
.draft-nav .nav-link { font-size: 12px; font-weight: 500; color: var(--slate-500); text-decoration: none; transition: color var(--dur-fast); }
.draft-nav .nav-link:hover, .draft-nav .nav-link.active { color: var(--navy-900); font-weight: 600; }
.draft-nav .nav-link.dark { color: rgba(255,255,255,0.6); }
.draft-nav .nav-link.dark:hover { color: var(--white); }
@media (max-width: 900px) { .draft-nav { grid-template-columns: 1fr; } .draft-nav-right { justify-content: center; background: var(--navy-900); } .draft-nav .nav-link { color: rgba(255,255,255,0.6); } .draft-nav .nav-link:hover { color: var(--white); } }

.btn { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font); font-weight: 700; border: none; cursor: pointer; transition: all var(--dur-fast) var(--ease-standard); white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--blue-500); color: var(--white); padding: 12px 28px; border-radius: var(--r-md); font-size: 14px; }
.btn-primary:hover { background: var(--blue-600); }
.btn-secondary { background: transparent; color: var(--navy-900); padding: 11px 27px; border-radius: var(--r-md); font-size: 14px; border: 1px solid var(--slate-300); }
.btn-secondary:hover { border-color: var(--blue-500); color: var(--blue-500); }
.btn-ghost { background: transparent; color: var(--white); padding: 11px 27px; border-radius: var(--r-md); font-size: 14px; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); }
.btn-white { background: var(--white); color: var(--navy-900); padding: 12px 28px; border-radius: var(--r-md); font-size: 14px; }
.btn-white:hover { background: var(--slate-50); }

.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; border-radius: var(--r-pill); }
.tag-blue { background: rgba(74,111,232,0.12); border: 1px solid rgba(74,111,232,0.25); color: var(--blue-500); padding: 4px 14px; }
.tag-white { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--white); padding: 4px 14px; }

.card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); border-left: 3px solid var(--blue-500); }
.card-dark { background: var(--navy-900); border: 1px solid rgba(255,255,255,0.06); border-left-color: var(--blue-500); }
.card-title { font-size: 16px; font-weight: 700; color: var(--navy-900); margin-bottom: var(--sp-2); line-height: 1.4; }
.card-dark .card-title { color: var(--white); }
.card-body { font-size: 13px; color: var(--slate-500); line-height: 1.7; }
.card-dark .card-body { color: rgba(255,255,255,0.45); }
/* Product cards (Solution section): no truncation — full text visible per style guide */
.section-split .panel-light .card .card-title { display: block; }
.section-split .panel-light .card .card-body { display: block; }

.stat-strip { display: flex; flex-direction: column; gap: 0; }
.stat-row { display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5) 0; border-bottom: 1px solid var(--slate-200); }
.stat-row:last-child { border-bottom: none; }
.stat-row-n { font-size: 36px; font-weight: 900; color: var(--blue-500); letter-spacing: -2px; line-height: 1; flex-shrink: 0; min-width: 4.5em; font-variant-numeric: tabular-nums; }
.stat-row-content { flex: 1; min-width: 0; }
.stat-row-title { font-size: 14px; font-weight: 700; color: var(--navy-900); margin-bottom: 2px; }
.stat-row-desc { font-size: 12px; color: var(--slate-500); line-height: 1.5; }

.metrics-band { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy-900); padding: var(--sp-12) var(--sp-10); gap: 1px; }
.metrics-band-cell { background: var(--navy-900); padding: var(--sp-6) var(--sp-8); text-align: center; }
.metrics-band-n { font-size: 40px; font-weight: 900; color: var(--blue-300); letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; }
.metrics-band-l { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: var(--sp-2); line-height: 1.5; }
@media (max-width: 900px) { .metrics-band { grid-template-columns: repeat(2, 1fr); } }

.section-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; }
.section-split .panel-dark { background: var(--navy-900); padding: var(--sp-20) var(--sp-16); }
.section-split .panel-light { background: var(--white); padding: var(--sp-20) var(--sp-16); }
.section-split .panel-pale { background: var(--slate-50); padding: var(--sp-20) var(--sp-16); }
.section-split .panel-blue { background: var(--blue-500); padding: var(--sp-20) var(--sp-16); }
.section-split .panel-navy8 { background: var(--navy-800); padding: var(--sp-20) var(--sp-16); }
@media (max-width: 900px) { .section-split { grid-template-columns: 1fr; } }

.cta-band { display: grid; grid-template-columns: 1fr 1fr; }
.cta-band-left { background: var(--blue-500); padding: var(--sp-20) var(--sp-16); }
.cta-band-right { background: var(--navy-800); padding: var(--sp-20) var(--sp-16); }
.cta-band-left .text-h2, .cta-band-left .text-lead { color: var(--white); }
.cta-band-left .text-lead { opacity: 0.9; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }

.draft-footer { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-900); padding: var(--sp-12) var(--sp-16); }
.draft-footer-right { background: var(--navy-950); display: flex; align-items: center; justify-content: flex-end; padding: var(--sp-4) var(--sp-16); text-align: right; }
.draft-footer .footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }
.draft-footer .footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0; font-size: 11px; color: rgba(255,255,255,0.3); }
.draft-footer .footer-legal .footer-copy { margin-right: 0; }
.draft-footer .footer-legal a { color: rgba(255,255,255,0.5); text-decoration: none; }
.draft-footer .footer-legal a:hover { color: var(--white); }
.draft-footer .footer-legal [aria-hidden="true"] { margin: 0 var(--sp-2); color: rgba(255,255,255,0.25); }
.draft-footer .footer-links { display: flex; gap: var(--sp-6); margin-top: var(--sp-4); }
.draft-footer .footer-links a { font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; }
.draft-footer .footer-links a:hover { color: var(--white); }
@media (max-width: 900px) { .draft-footer { grid-template-columns: 1fr; } .draft-footer-right { justify-content: flex-start; text-align: left; } .draft-footer .footer-legal { justify-content: flex-start; } }

.draft-hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.draft-hero-left { background: var(--navy-900); padding: var(--sp-20) var(--sp-16); position: relative; overflow: hidden; }
.draft-hero-left::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(74,111,232,0.18) 0%, transparent 65%); pointer-events: none; }
.draft-hero-right { background: var(--white); padding: var(--sp-20) var(--sp-16); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.draft-hero-right .stat-strip { width: 100%; max-width: 100%; }
.draft-hero-right .hero-deal-intel-wrap { display: flex; align-items: center; justify-content: center; width: 100%; padding-top: var(--sp-8); flex-shrink: 0; }
.draft-hero-right .hero-deal-intel-scaler { transform: scale(0.72); transform-origin: center center; }
.draft-hero-right .hero-deal-intel-scaler iframe { display: block; width: 380px; height: 480px; border: none; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
/* Engage hero: landscape animation (468×294) — fixed container, stretched landscape iframe */
.draft-hero-right .hero-engage-wrap { width: 100%; max-width: 500px; min-height: 0; flex-shrink: 0; overflow: hidden; }
.draft-hero-right .hero-engage-scaler { transform: scale(0.9); transform-origin: center center; }
.draft-hero-right .hero-engage-scaler iframe { width: 540px; height: 340px; border: none; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
/* Respond hero: landscape animation — same pattern as Engage */
.draft-hero-right .hero-respond-wrap { width: 100%; max-width: 500px; min-height: 0; flex-shrink: 0; overflow: hidden; }
.draft-hero-right .hero-respond-scaler { transform: scale(0.9); transform-origin: center center; }
.draft-hero-right .hero-respond-scaler iframe { width: 540px; height: 340px; border: none; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
/* Tribblytics hero: deal-intelligence animation — portrait card (380px wide, tall content) */
.draft-hero-right .hero-tribblytics-wrap { width: 100%; max-width: 380px; min-height: 0; flex-shrink: 0; overflow: hidden; }
.draft-hero-right .hero-tribblytics-scaler { transform: scale(0.8); transform-origin: center center; }
.draft-hero-right .hero-tribblytics-scaler iframe { width: 380px; height: 520px; border: none; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.draft-hero-right .hero-core-platform { transform: scale(0.85); }
.draft-hero-right .hero-core-platform iframe { width: 380px; height: 400px; }
.draft-hero-left .hero-deal-intel-wrap { display: flex; align-items: center; justify-content: center; width: 100%; flex-shrink: 0; }
.draft-hero-left .hero-core-platform { transform: scale(0.92); transform-origin: center center; }
.draft-hero-left .hero-core-platform iframe { width: 380px; height: 400px; border: none; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
@keyframes float-graphic { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.floating-graphic { animation: float-graphic 4s ease-in-out infinite; }
.draft-hero .eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--blue-300); margin-bottom: var(--sp-3); }
.draft-hero .hero-h1 { font-size: clamp(36px, 5vw, 48px); font-weight: 900; color: var(--white); line-height: 1.1; letter-spacing: -2px; margin-bottom: var(--sp-4); }
.draft-hero .hero-lead { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 480px; margin-bottom: var(--sp-6); }
@media (max-width: 900px) { .draft-hero { grid-template-columns: 1fr; min-height: auto; } .draft-hero-right { flex-direction: column; } .draft-hero-right .hero-deal-intel-scaler { transform: scale(0.65); } .draft-hero-right .hero-deal-intel-scaler iframe { width: 380px; height: 480px; } }

.logo-band { display: grid; grid-template-columns: 1fr 1fr; }
.logo-band-left { background: var(--navy-900); padding: var(--sp-6) var(--sp-16); display: flex; align-items: center; justify-content: flex-end; }
.logo-band-right { background: var(--white); padding: var(--sp-6) var(--sp-16); display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.trust-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.2); }
.customer-logos { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-8); }
.customer-logos img { height: 24px; width: auto; max-width: 110px; object-fit: contain; opacity: 0.65; flex-shrink: 0; display: block; transition: opacity 0.15s; }
.customer-logos img:hover { opacity: 0.9; }
@media (max-width: 900px) { .logo-band { grid-template-columns: 1fr; } }

.step-list { display: flex; flex-direction: column; gap: 0; }
.step-item { display: flex; gap: var(--sp-4); padding: var(--sp-5) 0; border-bottom: 1px solid var(--slate-200); }
.step-item:last-child { border-bottom: none; }
.step-num { font-size: 14px; font-weight: 700; color: var(--blue-500); flex-shrink: 0; min-width: 5.5em; }
.step-title { font-size: 14px; font-weight: 700; color: var(--navy-900); margin-bottom: 2px; }
.step-desc { font-size: 12px; color: var(--slate-500); line-height: 1.5; }

.faq-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq-q { font-size: 14px; font-weight: 600; color: var(--white); padding: var(--sp-4) 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; padding-bottom: var(--sp-4); display: none; }
.faq-item.open .faq-a { display: block; }

.quote-block { border-left: 3px solid var(--blue-400); padding: var(--sp-4) var(--sp-5); background: rgba(255,255,255,0.05); }
.quote-block q { font-size: 14px; font-style: italic; color: rgba(255,255,255,0.8); line-height: 1.6; display: block; margin-bottom: var(--sp-3); }
.quote-attrib { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.35); }

/* Integration category list (dark panel) — per style guide feat-row + dark surface rules */
.int-list { list-style: none; }
.int-list-item { margin-bottom: var(--sp-5); }
.int-list-item:last-child { margin-bottom: 0; }
.int-list-label { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 2px; letter-spacing: -0.2px; }
.int-list-val { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.7); line-height: 1.6; }
.panel-dark .int-list-label { color: var(--white); }
.panel-dark .int-list-val { color: rgba(255,255,255,0.7); }

.progress-item { margin-bottom: var(--sp-5); }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); }
.progress-label { font-size: 12px; font-weight: 600; color: var(--slate-500); }
.progress-value { font-size: 14px; font-weight: 700; color: var(--blue-500); font-variant-numeric: tabular-nums; }
.progress-bar { height: 6px; background: var(--slate-100); border-radius: var(--r-pill); overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue-500); border-radius: var(--r-pill); transition: width 1.1s cubic-bezier(0,0,0.2,1); }

/* Trust badges (facts/credentials) — glass-style on dark panels, per style guide */
.trust-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }
.trust-row.trust-stack { flex-direction: column; align-items: stretch; gap: var(--sp-4); margin-top: var(--sp-6); }
.trust-row.trust-stack .tbadge { padding: var(--sp-4) var(--sp-5); font-size: 14px; }
.tbadge { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); transition: background 0.15s, color 0.15s; }
.tbadge:hover { background: rgba(255,255,255,0.11); color: var(--white); }
.tbadge::before { content: '✓'; margin-right: 8px; color: var(--blue-300); font-weight: 700; flex-shrink: 0; }
