:root {
  color-scheme: light;
  --bg-primary: #fbfaf7;     /* Warm cream background (Anthropic style) */
  --bg-secondary: #ffffff;   /* Pure white for cards and headers */
  --border-color: #e6e3db;   /* Soft warm grey borders */
  --text-primary: #191919;   /* Soft rich black for text */
  --text-secondary: #6b6a65; /* Muted warm grey for secondary text */
  --text-muted: #9a9890;     /* Soft grey for muted text */
  
  --accent-color: #000000;   /* Minimalist black accent */
  --accent-hover: #333333;   /* Soft grey hover state */
  
  /* Status & Category Colors (Earthy Warm Palette) */
  --color-false: #a24936;       /* Terracotta / Rust (Urgent / Warning) */
  --color-misleading: #b45309;  /* Ochre / Warm Amber */
  --color-unverified: #6b7280;  /* Slate / Muted Grey (Neutral / Info) */
  
  --color-tag-privacy: #4d6150;    /* Sage Green (Privacy / Security) */
  --color-tag-inclusion: #78716c;  /* Stone Grey (Access) */
  
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 12px;
  --shadow-sm: 0 2px 8px rgba(25, 25, 25, 0.03);
  --shadow-md: 0 10px 30px rgba(25, 25, 25, 0.05);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

/* Base Layout Grid Container */
.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* HEADER STYLE (Anthropic Minimalist style) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 48px;
  background: rgba(251, 250, 247, 0.85);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

nav a:hover {
  color: var(--text-primary);
}

.header-link {
  background: var(--accent-color);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

.header-link:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: block;
}

/* HERO SECTION Redesign */
.hero {
  padding: 100px 0 120px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  letter-spacing: -2px;
  line-height: 1.1;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 23px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.btn.primary {
  background: var(--accent-color);
  color: #fff;
  border: 1px solid transparent;
}

.btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn.secondary:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.hero-facts {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.hero-facts div {
  flex: 1;
  border-left: 2px solid var(--border-color);
  padding-left: 16px;
}

.hero-facts dt {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.hero-facts dd {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* PREMIUM FLAT MOCKUP FRAMES */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-frame {
  position: relative;
  border-radius: var(--border-radius);
  background: #ffffff;
  padding: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease;
}

.mockup-frame:hover {
  transform: translateY(-3px);
}

.hero-mockup-img {
  border-radius: 8px;
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
}

/* SECTION COMMON STYLING */
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  max-width: 780px;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 3.2rem;
  margin-top: 12px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* SPLIT PANEL DESIGN */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.split h2 {
  font-size: 3.2rem;
  margin-bottom: 24px;
  line-height: 1.15;
}

.split p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* PROBLEM / MISSION SECTION */
.problem-band {
  background: var(--bg-secondary);
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.problem-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition);
}

.problem-item:hover {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.tag-alert {
  background: rgba(162, 73, 54, 0.06);
  color: var(--color-false);
}

.tag-privacy {
  background: rgba(77, 97, 80, 0.06);
  color: var(--color-tag-privacy);
}

.tag-inclusion {
  background: rgba(120, 113, 108, 0.06);
  color: var(--color-tag-inclusion);
}

.problem-item h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.problem-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FIELD EVIDENCE GRID */
.evidence-band {
  background: var(--bg-primary);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.impact-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.impact-item:hover {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.impact-item strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.impact-item span {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* SOLUTION FLOW DIAGRAM */
.flow-band {
  background: var(--bg-secondary);
}

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.flow-step {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  min-height: 240px;
}

.flow-step:hover {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.flow-step h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.flow-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* VIDEO DEMOS SECTION */
.demos-band {
  background: var(--bg-primary);
}

.demos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.demo-video-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.video-wrapper.telegram-video-wrapper {
  aspect-ratio: 9 / 19.5; /* iPhone 14 Pro */
  height: 600px;
  width: auto;
  margin: 0 auto;
  border-radius: 40px;
  border: none;
  box-shadow: var(--shadow-md);
}

.video-wrapper.telegram-video-wrapper iframe {
  width: 390%; /* Scaled up slightly more to guarantee no black lines on edges */
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.video-wrapper.ussd-video-wrapper {
  aspect-ratio: 7.15 / 16; /* Trimmed side borders slightly more to sit right on the phone edge */
  height: 600px;
  width: auto;
  margin: 0 auto;
  border-radius: 40px;
  border: none;
  box-shadow: var(--shadow-md);
}

.video-wrapper.ussd-video-wrapper video {
  transform: scale(1.08); /* Zoom in slightly to eliminate white corners and thin outer black borders */
  transform-origin: center center;
}

@media (max-width: 1024px) {
  .video-wrapper.telegram-video-wrapper,
  .video-wrapper.ussd-video-wrapper {
    width: 100%;
    height: auto;
    max-width: 300px;
  }
}

.video-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
  object-fit: cover;
}

.demo-video-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
}

.demo-video-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.telegram-instruction,
.ussd-instruction {
  margin-top: 18px;
  padding: 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.telegram-instruction:hover,
.ussd-instruction:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.telegram-badge-wrapper,
.ussd-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.telegram-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #0088cc; /* Telegram blue */
  background: rgba(0, 136, 204, 0.06);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 136, 204, 0.15);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.telegram-badge:hover {
  background: rgba(0, 136, 204, 0.12);
  border-color: rgba(0, 136, 204, 0.3);
  transform: translateY(-1px);
}

.ussd-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(25, 25, 25, 0.04);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
}

.telegram-steps,
.ussd-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.telegram-steps p,
.ussd-steps p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.telegram-steps strong,
.ussd-steps strong {
  color: var(--text-primary);
  font-weight: 600;
}

.tg-code {
  font-family: var(--font-mono);
  background: rgba(25, 25, 25, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
}

/* LIVE SIMULATOR DEMO */
.demo-band {
  background: var(--bg-secondary);
}

.demo-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1.2fr) 1.1fr;
  gap: 32px;
  align-items: stretch;
}

.scenario-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scenario {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  transition: var(--transition);
}

.scenario:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.scenario.active {
  color: #fff;
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* TELEGRAM EMULATOR (Premium Light UI) */
.demo-phone {
  background: #dbe4d3; /* Soft green Telegram wallpaper color */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 480px;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  overflow: hidden;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-header strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.demo-header small {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: block;
}

.demo-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bubble {
  max-width: 85%;
  padding: 10px 14px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
}

.bubble.user {
  align-self: flex-end;
  background: #dcf8c6; /* Classic Telegram light-green user bubble */
  color: #1a1a1a;
  border-bottom-right-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.bubble.bot {
  align-self: flex-start;
  background: #ffffff;
  color: var(--text-primary);
  border-bottom-left-radius: 3px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}

.bubble.bot.loading-bubble {
  color: var(--text-secondary);
  font-style: italic;
  padding-bottom: 12px; /* no timestamp for loading */
}

/* Telegram Specific Layout Items */
.telegram-time {
  position: absolute;
  bottom: 3px;
  right: 8px;
  font-size: 0.65rem;
  color: #8c8c8c;
  display: flex;
  align-items: center;
  gap: 3px;
}

.bubble.user .telegram-time {
  color: #588e50; /* matching theme color */
}

.checkmark {
  font-size: 0.75rem;
  line-height: 1;
}

.telegram-quote {
  background: rgba(156, 39, 176, 0.04);
  border-left: 3px solid #9c27b0; /* purple/pink accent border */
  padding: 4px 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  text-align: left;
}

.telegram-quote-sender {
  font-weight: 700;
  color: #9c27b0;
  margin-bottom: 2px;
  font-size: 0.75rem;
}

.telegram-quote-text {
  color: #555555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.telegram-msg-content {
  text-align: left;
}

.telegram-link {
  color: #0088cc; /* Telegram official link blue */
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  display: inline-block;
  margin-bottom: 6px;
  transition: var(--transition);
}

.telegram-link:hover {
  text-decoration: underline;
  color: #006699;
}

.verdict-text {
  font-family: var(--font-mono);
  font-weight: 700;
}

.verdict-text.verdict-false {
  color: var(--color-false);
}

.verdict-text.verdict-misleading {
  color: var(--color-misleading);
}

.verdict-text.verdict-unverified {
  color: var(--color-unverified);
}

/* REALISTIC MOBILE USSD SIMULATOR */
.ussd-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 480px;
}

.ussd-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.ussd-chrome span:first-child {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ussd-chrome span:last-child {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
}

.ussd-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  padding: 20px;
  overflow: hidden;
}

.ussd-phone-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.ussd-phone-img {
  max-height: 380px;
  width: auto;
  border-radius: 8px;
  display: block;
}

/* Floating USSD popup dialog mockup */
.ussd-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 82%;
  max-width: 250px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.ussd-dialog-content {
  padding: 20px 16px;
  text-align: center;
}

.ussd-dialog-content p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #000000;
  font-weight: 500;
  word-wrap: break-word;
}

.ussd-dialog-action {
  border-top: 0.5px solid rgba(0, 0, 0, 0.15);
  display: flex;
}

.ussd-close-btn {
  width: 100%;
  padding: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: #007aff;
  text-align: center;
  background: transparent;
  transition: background-color 0.2s ease;
}

.ussd-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

/* PORTABLE ARCHITECTURE MODEL */
.channel-band {
  background: var(--bg-secondary);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.channel {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 36px 28px;
  transition: var(--transition);
}

.channel:hover {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.channel h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.channel p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* TEAM SECTION REDESIGN */
.team-band {
  background: var(--bg-primary);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.team-member-card {
  flex: 1;
  min-width: 200px;
  max-width: 210px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member-card:hover {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-img-container {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #fbfaf7;
  border: 1px solid var(--border-color);
}

.team-member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%; /* Default shift upwards for portrait photo heads */
  transition: transform 0.5s ease;
}

/* Individual alignment overrides based on user photo composition */
.team-member-card[data-member="innocent"] img {
  object-position: center 8%;
}
.team-member-card[data-member="ryotaro"] img {
  object-position: center 18%;
}
.team-member-card[data-member="taoheed"] img {
  object-position: center 8%;
}
.team-member-card[data-member="kevwe"] img {
  object-position: center 15%;
}
.team-member-card[data-member="amelia"] img {
  object-position: center 12%;
}

.team-member-card:hover img {
  transform: scale(1.04);
}

.team-info h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.team-img-link {
  width: 100%;
  display: block;
}

.team-name-link {
  color: var(--text-primary);
  transition: var(--transition);
}

.team-name-link:hover {
  text-decoration: underline;
}

.team-university {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* FOOTER REDESIGN */
.site-footer {
  padding: 48px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-row strong {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

/* SHERLOCKIAN & FEEDBACK SECTION */
.sherlockian-band {
  background: var(--bg-secondary);
}

.community-lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.community-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-card {
  padding: 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.community-card:hover {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.community-card h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.community-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Feedback Panel */
.feedback-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.feedback-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.feedback-panel > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.label-optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input,
.form-textarea {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03);
}

.form-textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
  border: none;
  cursor: pointer;
}

/* Success Message */
.feedback-success-msg {
  text-align: center;
  padding: 30px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeIn 0.4s ease;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(77, 97, 80, 0.1);
  color: var(--color-tag-privacy);
  font-size: 1.5rem;
  font-weight: bold;
}

.feedback-success-msg h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
  color: var(--text-primary);
}

.feedback-success-msg p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE BREAKPOINTS (Legibility & Visual Quality) */
@media (max-width: 1024px) {
  .site-header {
    padding: 0 24px;
  }

  nav {
    display: none; /* Hide header nav for cleaner mobile layout */
  }

  .hero-container {
    gap: 48px;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
  }

  .hero h1 {
    font-size: 3.6rem;
  }

  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-facts {
    max-width: 600px;
    margin: 0 auto;
  }

  .split, .deployment-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .demos-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-diagram {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .channel-grid {
    grid-template-columns: 1fr;
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .scenario-panel {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .scenario {
    width: auto;
    flex: 1 1 calc(33.333% - 8px);
    min-width: 120px;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  
  .demo-phone, .ussd-panel {
    height: 440px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2, .split h2 {
    font-size: 2.2rem;
  }

  .flow-diagram {
    grid-template-columns: 1fr;
  }
  
  .flow-step {
    min-height: auto;
    padding: 24px 20px;
  }

  .team-grid {
    justify-content: center;
  }
  
  .team-member-card {
    min-width: calc(50% - 12px);
    max-width: 100%;
  }

  .ussd-phone-img {
    max-height: 300px;
  }
  
  .ussd-dialog {
    width: 86%;
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .hero-lede {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }

  .hero-facts {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }
  
  .hero-facts div {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 12px;
    text-align: center;
  }

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

  .team-member-card {
    min-width: 100%;
  }

  .ussd-phone-img {
    max-height: 250px;
  }

  .ussd-dialog {
    width: 88%;
    max-width: 180px;
    transform: translate(-50%, -55%);
  }

  .ussd-dialog-content {
    padding: 10px 8px;
  }

  .ussd-dialog-content p {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .ussd-close-btn {
    padding: 6px;
    font-size: 0.78rem;
  }

  .footer-row {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }
}
