/* ============================================================
   Resin Health — Design System
   NIH Supplements Facts First Competition
   ============================================================ */

/* ------------------------------------------------------------
   Brand Tokens
   ------------------------------------------------------------ */

:root {
  --amber: #AD4F08;
  --amber-light: #D97706;
  --amber-50: #FFFBEB;
  --honey: #F59E0B;
  --forest: #166534;
  --forest-light: #16a34a;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #6d6560;
  --stone-400: #a8a29e;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --warm-white: #FAF5F0;
  --warm-cream: #FEF3C7;
}

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */

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

/* ------------------------------------------------------------
   Body
   ------------------------------------------------------------ */

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  background-color: var(--warm-white);
  color: var(--stone-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */

.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------
   Accessibility — Skip Nav
   ------------------------------------------------------------ */

.skip-nav {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background-color: var(--amber);
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
}

.skip-nav:focus {
  left: 10px;
  top: 10px;
  z-index: 10000;
  border-radius: 8px;
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Focus rings on interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   Nav — Frosted Glass Fixed Header
   ------------------------------------------------------------ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(250, 245, 240, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(41, 37, 36, 0.06);
}

nav.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo span {
  font-weight: 700;
  font-size: 18px;
  color: var(--stone-800);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  color: var(--stone-600);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--stone-800);
}

.nav-lang {
  font-size: 13px;
  color: var(--stone-500);
  border: 1px solid var(--stone-200);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  background: none;
}

.nav-lang strong {
  color: var(--stone-800);
}

.nav-cta {
  background-color: var(--amber);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.25);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.nav-cta:hover {
  background-color: #9a4408;
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.35);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn-primary {
  background-color: var(--amber);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #9a4408;
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.35);
  transform: translateY(-2px);
}

.btn-primary svg {
  transition: transform 0.2s ease;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  background-color: #fff;
  color: var(--stone-800);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--stone-200);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--stone-100);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-white {
  background-color: #fff;
  color: var(--amber);
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--warm-cream) 40%, #FFEDD5 70%, var(--warm-white) 100%);
}

.hero-blob-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
  top: -100px;
  right: -100px;
  filter: blur(60px);
  pointer-events: none;
}

.hero-blob-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22, 101, 52, 0.06), transparent 70%);
  bottom: -100px;
  left: -100px;
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
  font-size: 13px;
  color: var(--amber);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--forest-light);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%   { opacity: 1; }
  50%  { opacity: 0.4; }
  100% { opacity: 1; }
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--amber), var(--amber-light), #92400E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--stone-600);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-sources {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--stone-500);
  flex-wrap: wrap;
}

.source-pill {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--stone-700);
}

/* ------------------------------------------------------------
   Phone Mockup
   ------------------------------------------------------------ */

.phone-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.phone {
  width: 280px;
  height: 570px;
  background: #fff;
  border-radius: 40px;
  border: 4px solid var(--stone-800);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 12px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: var(--stone-800);
  margin: 0 auto;
  border-radius: 0 0 16px 16px;
}

.phone-screen {
  padding: 8px 16px 16px;
  height: calc(100% - 28px);
  overflow: hidden;
  background: var(--warm-white);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 4px 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--stone-800);
}

.phone-app-header {
  text-align: center;
  margin-bottom: 16px;
}

.phone-app-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.phone-greeting {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.phone-greeting-sub {
  font-size: 12px;
  color: var(--stone-500);
  margin-bottom: 16px;
}

.phone-search {
  background: #fff;
  border: 1.5px solid var(--stone-200);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--stone-400);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.phone-result {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.1);
  margin-bottom: 10px;
}

.phone-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.phone-result-name {
  font-weight: 700;
  font-size: 14px;
}

.phone-result-brand {
  font-size: 11px;
  color: var(--stone-500);
  margin-top: 2px;
}

.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
}

.badge-safe {
  background-color: #dcfce7;
  color: #166534;
}

.badge-caution {
  background-color: #fef9c3;
  color: #854d0e;
}

.badge-warning {
  background-color: #fee2e2;
  color: #dc2626;
}

.phone-result-detail {
  font-size: 11px;
  color: var(--stone-600);
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid var(--stone-200);
}

.phone-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 20px;
  background: #fff;
  border-top: 1px solid var(--stone-200);
}

.phone-nav-item {
  text-align: center;
  font-size: 9px;
  color: var(--stone-400);
  font-weight: 500;
  text-decoration: none;
}

.phone-nav-item.active {
  color: var(--amber);
}

.phone-nav-item svg {
  display: block;
  margin: 0 auto 2px;
}

/* ------------------------------------------------------------
   Trust Bar
   ------------------------------------------------------------ */

.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--stone-200);
  padding: 24px;
}

.trust-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

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

.trust-label {
  font-size: 12px;
  color: var(--stone-500);
  margin-bottom: 2px;
  text-align: center;
}

.trust-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--stone-800);
  text-align: center;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--stone-200);
}

/* ------------------------------------------------------------
   Section — Generic
   ------------------------------------------------------------ */

.section {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--stone-600);
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------
   How It Works — Steps
   ------------------------------------------------------------ */

.how-it-works {
  background-color: var(--warm-white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.step {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--stone-200);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.step:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.step-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 15px;
  color: var(--stone-600);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Safety Demo — Interaction Checker
   ------------------------------------------------------------ */

.safety-demo {
  background: #fff;
}

.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.safety-card {
  background: var(--warm-white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--stone-200);
}

.safety-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.safety-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--warm-cream), #FDE68A);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.safety-card-name {
  font-size: 20px;
  font-weight: 700;
}

.safety-card-brand {
  font-size: 14px;
  color: var(--stone-500);
}

.interaction-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--stone-200);
}

.interaction-row:last-child {
  border-bottom: none;
}

.interaction-severity {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.severity-caution {
  background-color: #ca8a04;
}

.severity-safe {
  background-color: #16a34a;
}

.severity-warning {
  background-color: #dc2626;
}

.interaction-info {
  flex: 1;
}

.interaction-drug {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.interaction-detail {
  font-size: 14px;
  color: var(--stone-600);
  line-height: 1.5;
}

.interaction-action {
  font-size: 13px;
  color: var(--amber);
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.safety-text-content h3 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.safety-text-content p {
  font-size: 17px;
  color: var(--stone-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.safety-stat-row {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.safety-stat {
  display: flex;
  flex-direction: column;
}

.safety-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

.safety-stat-label {
  font-size: 13px;
  color: var(--stone-500);
  margin-top: 4px;
}

/* ------------------------------------------------------------
   Audience Cards
   ------------------------------------------------------------ */

.audience {
  background: var(--warm-white);
}

.audience-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.audience-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stone-200);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.audience-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.audience-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audience-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audience-img-placeholder {
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.audience-body {
  padding: 28px;
}

.audience-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.audience-stat {
  font-size: 14px;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 12px;
}

.audience-desc {
  font-size: 15px;
  color: var(--stone-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.audience-persona {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--warm-white);
  border-radius: 12px;
}

.persona-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--warm-cream), #FDE68A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.persona-name {
  font-weight: 600;
  font-size: 14px;
}

.persona-detail {
  font-size: 12px;
  color: var(--stone-500);
}

/* ------------------------------------------------------------
   For Every Community — Dark Section
   ------------------------------------------------------------ */

.community-section {
  background: linear-gradient(180deg, var(--stone-900) 0%, var(--stone-800) 50%, #3a2f28 100%);
  position: relative;
  overflow: hidden;
}

.community-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent 70%);
  top: -100px;
  right: -100px;
  filter: blur(80px);
  pointer-events: none;
}

.community-inner {
  position: relative;
  z-index: 1;
}

.community-section .section-label {
  color: var(--amber-light);
}

.community-section .section-title {
  color: var(--warm-white);
}

.community-section .section-subtitle {
  color: var(--stone-400);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.community-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.community-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--amber);
  transform: translateY(-2px);
}

.community-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.community-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: 8px;
}

.community-card-desc {
  font-size: 14px;
  color: var(--stone-400);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   AI Chatbot Preview
   ------------------------------------------------------------ */

.chatbot-section {
  background: #fff;
}

.chatbot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.chat-window {
  background: var(--warm-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--stone-200);
}

.chat-header {
  background: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--stone-200);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--warm-cream), #FDE68A);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header-info {
  flex: 1;
}

.chat-header-name {
  font-weight: 600;
  font-size: 15px;
}

.chat-header-status {
  font-size: 12px;
  color: var(--forest-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest-light);
  display: inline-block;
}

.chat-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-user {
  background-color: var(--amber);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-ai {
  background: #fff;
  color: var(--stone-800);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.chat-citation {
  font-size: 11px;
  color: var(--amber);
  background: rgba(180, 83, 9, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 6px;
  font-weight: 500;
}

.chat-input {
  padding: 12px 20px;
  border-top: 1px solid var(--stone-200);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-field {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--stone-200);
  border-radius: 10px;
  font-size: 14px;
  color: var(--stone-400);
  background: var(--warm-white);
  font-family: 'DM Sans', sans-serif;
}

/* ------------------------------------------------------------
   Video Preview Cards
   ------------------------------------------------------------ */

.video-section {
  background: var(--warm-white);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.video-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--stone-200);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.video-card[data-file],
.video-card[data-youtube] {
  cursor: pointer;
}

/* Video Modal */
#video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

#video-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 1;
}

#video-modal-content {
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

#video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.video-thumb {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stone-100);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1;
  position: absolute;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.video-body {
  padding: 18px;
}

.video-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.video-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.video-desc {
  font-size: 13px;
  color: var(--stone-500);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   CTA Banner
   ------------------------------------------------------------ */

.cta-banner {
  background: linear-gradient(135deg, var(--amber), var(--amber-light), #92400E);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-blob-1 {
  top: -100px;
  left: -50px;
}

.cta-blob-2 {
  bottom: -100px;
  right: -50px;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

footer {
  background: var(--stone-900);
  padding: 48px 24px 32px;
  color: var(--stone-500);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-logo span {
  font-weight: 700;
  font-size: 16px;
  color: var(--warm-white);
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone-500);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--stone-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--stone-500);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--warm-white);
}

.footer-bottom {
  max-width: 1120px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* ------------------------------------------------------------
   Scroll Reveal Animation
   ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Page Hero — Inner Pages
   ------------------------------------------------------------ */

.page-hero {
  padding: 160px 24px 80px;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--warm-cream) 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
}

.page-hero p {
  font-size: 18px;
  color: var(--stone-600);
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Data Sources Grid — Inner Pages
   ------------------------------------------------------------ */

.data-sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   Pipeline Steps — Inner Pages
   ------------------------------------------------------------ */

.pipeline-steps {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  overflow-x: auto;
}

/* ------------------------------------------------------------
   Persona Full — Inner Pages
   ------------------------------------------------------------ */

.persona-full {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--stone-200);
}

/* ------------------------------------------------------------
   Team Grid — Inner Pages
   ------------------------------------------------------------ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.team-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--stone-200);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--warm-cream), #FDE68A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
}

.team-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-credentials {
  font-size: 14px;
  color: var(--stone-500);
  margin-bottom: 4px;
}

.team-role {
  font-size: 14px;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 15px;
  color: var(--stone-600);
  line-height: 1.6;
}

/* ============================================================
   Reduced Motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Responsive — Tablet and Below (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-sources {
    justify-content: center;
  }

  .phone-container {
    display: none;
  }

  /* Section titles */
  .section-title {
    font-size: 30px;
  }

  /* Steps */
  .steps {
    grid-template-columns: 1fr;
  }

  /* Safety grid */
  .safety-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Audience */
  .audience-cards {
    grid-template-columns: 1fr;
  }

  /* Community */
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Chatbot */
  .chatbot-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Video */
  .video-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Page hero */
  .page-hero h1 {
    font-size: 32px;
  }

  /* Data sources */
  .data-sources-grid {
    grid-template-columns: 1fr;
  }

  /* Persona full */
  .persona-full {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Responsive — Small Mobile (max-width: 375px)
   ============================================================ */

@media (max-width: 375px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .section {
    padding: 60px 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 14px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    justify-content: center;
  }

  .step {
    padding: 24px 20px;
  }

  .safety-card {
    padding: 20px;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-card {
    padding: 20px;
  }

  .cta-banner {
    padding: 48px 16px;
  }

  .cta-banner h2 {
    font-size: 28px;
  }

  .page-hero {
    padding: 120px 16px 48px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .trust-inner {
    gap: 24px;
  }

  .trust-divider {
    display: none;
  }
}
