*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FDF4F0;
  --surface: #ffffff;
  --surface2: #faeae3;
  --accent: #CC3300;
  --accent2: #FF6600;
  --accent-light: #fde8df;
  --text: #1a1a1a;
  --text-muted: #5a3a2a;
  --text-light: #8a6a5a;
  --border: rgba(150,50,0,0.12);
  --radius: 14px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --chat-user-bg: #CC3300;
  --chat-bot-bg: #fdf4f0;
  --shadow: 0 4px 24px rgba(150,50,0,0.1);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #CC3300;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: #FF6600;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #CC3300; }
.nav-cta {
  background: #CC3300;
  color: white !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500 !important;
}
.nav-cta:hover { background: #aa2200; color: white !important; }

/* ── HERO ── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
.hero-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-avatar-img {
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid #FF6600;
  box-shadow: 0 12px 40px rgba(204,51,0,0.18);
  display: block;
}
video.hero-avatar-img {
  width: 380px;
  height: 480px;
  object-fit: cover;
  margin: 0 auto;
}
.avatar-badge {
  background: #CC3300;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.avatar-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.avatar-status-dot {
  width: 9px; height: 9px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46,204,113,0.25);
  flex-shrink: 0;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fde8df;
  color: #aa2200;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-tag::before { content: ''; width: 7px; height: 7px; background: #FF6600; border-radius: 50%; }
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}
h1 em { color: #CC3300; font-style: normal; }
.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: #CC3300;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: #aa2200; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: #CC3300;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid #CC3300;
  transition: background 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { background: #fde8df; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem;
}
.stat-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #CC3300; }
.stat-label { font-size: 0.8rem; color: var(--text-light); }

/* ── CHAT PREVIEW ── */
.chat-preview {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.chat-header {
  background: linear-gradient(135deg, #CC3300, #FF6600);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.chat-header-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.chat-header-info span { font-size: 0.78rem; opacity: 0.8; }
.chat-status { width: 8px; height: 8px; background: #2ecc71; border-radius: 50%; margin-left: auto; box-shadow: 0 0 0 2px rgba(46,204,113,0.3); }
.chat-messages { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.msg { max-width: 85%; }
.msg-bot { align-self: flex-start; }
.msg-user { align-self: flex-end; }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.msg-bot .msg-bubble {
  background: var(--chat-bot-bg);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg-user .msg-bubble {
  background: var(--chat-user-bg);
  color: white;
  border-bottom-right-radius: 4px;
}
.msg-time { font-size: 0.72rem; color: var(--text-light); margin-top: 4px; padding: 0 4px; }
.msg-user .msg-time { text-align: right; }
.typing-indicator { display: flex; gap: 5px; align-items: center; padding: 10px 14px; background: var(--chat-bot-bg); border-radius: 14px; border-bottom-left-radius: 4px; width: fit-content; }
.typing-dot { width: 7px; height: 7px; background: var(--text-light); border-radius: 50%; animation: bounce 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,80%,100%{transform:translateY(0);opacity:.4} 40%{transform:translateY(-6px);opacity:1} }
.chat-input-bar {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input-bar input {
  flex: 1;
  background: var(--surface2);
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
}
.chat-send-btn {
  width: 38px; height: 38px;
  background: #CC3300;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: background 0.2s;
}
.chat-send-btn:hover { background: #aa2200; }

/* ── INFO CARDS ── */
.section { max-width: 1100px; margin: 0 auto; padding: 60px 2rem; }
.section-tag {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: #FF6600;
  margin-bottom: 0.75rem;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.section-intro { color: var(--text-muted); font-size: 1rem; max-width: 560px; line-height: 1.75; margin-bottom: 2.5rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 46px; height: 46px;
  background: #fde8df;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 1rem;
}
.card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* Card states */
.card-active { border-color: rgba(204,51,0,0.2); }
.card-inactive { opacity: 0.5; filter: grayscale(0.4); cursor: default; pointer-events: none; }
.card-inactive:hover { transform: none; box-shadow: none; }
.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-badge.active { background: #fde8df; color: #aa2200; }
.card-badge.coming { background: #f0f0f0; color: #888; }
a.card-link { text-decoration: none; color: inherit; display: block; }
a.card-link:hover { border-color: var(--primary); }

/* Logo placeholder */
.nav-logo-icon { background: #CC3300; }
.nav-logo-placeholder {
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.15) 3px,
    transparent 3px,
    transparent 9px
  ), #CC3300;
  border: 2px dashed rgba(255,255,255,0.5);
}

/* ── LINKS SECTION ── */
.links-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.link-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s;
}
.link-card:hover { border-color: #FF6600; transform: translateY(-2px); }
.link-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #fde8df;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.link-card-info { flex: 1; min-width: 0; }
.link-card-info strong { font-size: 0.88rem; font-weight: 600; display: block; }
.link-card-info span { font-size: 0.78rem; color: var(--text-light); }
.link-arrow { color: var(--text-light); font-size: 14px; }

/* ── CHAT SECTION ── */
.chat-full-section { background: var(--bg); }
.chat-full-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}
.chat-full-header {
  background: linear-gradient(135deg, #CC3300, #FF6600);
  color: white;
  padding: 20px 24px;
  display: flex; align-items: center; gap: 14px;
}
.chat-full-header .avatar {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.chat-full-header h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.chat-full-header span { font-size: 0.82rem; opacity: 0.8; }
#chat-log {
  padding: 24px;
  min-height: 380px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.full-msg { max-width: 80%; }
.full-msg.bot { align-self: flex-start; }
.full-msg.user { align-self: flex-end; }
.full-msg .bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.full-msg.bot .bubble { background: #f0f4f8; color: var(--text); border-bottom-left-radius: 4px; }
.full-msg.user .bubble { background: #CC3300; color: white; border-bottom-right-radius: 4px; }
.full-msg .ts { font-size: 0.72rem; color: var(--text-light); margin-top: 5px; padding: 0 4px; }
.full-msg.user .ts { text-align: right; }
#chat-form {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px;
}
#chat-input {
  flex: 1;
  background: var(--surface2);
  border: 1.5px solid transparent;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
#chat-input:focus { border-color: #FF6600; }
#chat-submit {
  background: #CC3300;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
#chat-submit:hover { background: #aa2200; }
#chat-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 16px; }
.sugg-btn {
  background: #fde8df;
  color: #aa2200;
  border: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}
.sugg-btn:hover { background: #fbd0c0; }

/* ── FOOTER ── */
footer {
  background: #aa2200;
  color: rgba(255,255,255,0.85);
  padding: 3rem 2rem 2rem;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { color: white; }
.footer-brand h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; opacity: 0.8; }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; color: white; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: white; }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-avatar-wrap { order: -1; }
  .hero-avatar-img { max-width: 280px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  nav .nav-links { display: none; }
}

.full-msg.bot .bubble h2,
.full-msg.bot .bubble h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; margin: 0.75rem 0 0.35rem; color: var(--text); }
.full-msg.bot .bubble p { margin-bottom: 0.5rem; }
.full-msg.bot .bubble ul, .full-msg.bot .bubble ol { padding-left: 1.25rem; margin-bottom: 0.5rem; }
.full-msg.bot .bubble li { margin-bottom: 0.25rem; }
.full-msg.bot .bubble strong { font-weight: 600; color: #aa2200; }
.full-msg.bot .bubble p:last-child { margin-bottom: 0; }
