@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

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

:root {
  --bg:        #FDF6EE;
  --bg-alt:    #F5EAD8;
  --card:      #FFFFFF;
  --border:    rgba(180,90,0,0.12);
  --orange:    #E85D00;
  --orange-lt: #FF7A20;
  --green:     #1A7A40;
  --text:      #1C0E04;
  --muted:     #8A5530;
  --nav-h:     64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: var(--nav-h);
  background: rgba(253,246,238,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px; font-weight: 800; letter-spacing: 0.03em;
  color: var(--text); text-decoration: none;
}
.nav-logo-icon {
  width: 34px; height: 34px; background: var(--orange);
  border-radius: 7px; display: flex; align-items: center;
  justify-content: center; font-size: 17px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 14px; text-decoration: none;
  transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--orange);
  transform: scaleX(0); transition: transform 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--orange); color: #fff;
  padding: 9px 22px; border-radius: 5px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer; border: none; font-family: inherit;
}
.nav-cta:hover { background: var(--orange-lt); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(253,246,238,0.98); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); z-index: 199;
  flex-direction: column; padding: 20px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text); text-decoration: none; font-size: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--orange); }

/* ── BUTTONS ── */
.btn-orange {
  background: var(--orange); color: #fff;
  padding: 14px 32px; border-radius: 5px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  letter-spacing: 0.03em; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; border: none; font-family: inherit;
}
.btn-orange:hover {
  background: var(--orange-lt); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,93,0,0.25);
}
.btn-ghost {
  color: var(--text); padding: 14px 28px; border-radius: 5px;
  font-size: 15px; text-decoration: none;
  border: 1.5px solid rgba(180,90,0,0.22); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; background: transparent; font-family: inherit;
}
.btn-ghost:hover {
  border-color: var(--orange); color: var(--orange);
  background: rgba(232,93,0,0.04);
}
.btn-sm {
  padding: 9px 20px; font-size: 13px;
}

/* ── SECTION COMMON ── */
section { padding: 96px 48px; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(34px, 4vw, 52px); font-weight: 800;
  line-height: 1.05; color: var(--text); margin-bottom: 14px;
}
.section-sub {
  font-size: 15px; color: var(--muted); max-width: 520px; line-height: 1.8;
}

/* ── TICKER ── */
.ticker { background: var(--orange); padding: 11px 0; overflow: hidden; white-space: nowrap; }
.ticker-inner { display: inline-flex; animation: ticker 32s linear infinite; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px; padding: 0 30px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; color: #fff; text-transform: uppercase;
}
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.45); }

/* ── STATS BAND ── */
.stats-band { background: linear-gradient(135deg, #C84800, #E85D00, #FF7A20); padding: 64px 48px; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 0 28px; border-right: 1px solid rgba(255,255,255,0.22); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 56px; font-weight: 800; color: #fff; line-height: 1; display: block; }
.stat-unit { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 600; color: rgba(255,255,255,0.82); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.68); margin-top: 6px; display: block; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px 48px 72px;
  background: linear-gradient(160deg, #FDF6EE 0%, #F5E8D0 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(180,90,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,90,0,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content { position: relative; z-index: 1; max-width: 640px; }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: var(--orange); text-decoration: none; }
.page-hero .breadcrumb span { opacity: 0.5; }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(44px, 6vw, 72px); font-weight: 800;
  line-height: 0.95; color: var(--text); margin-bottom: 18px;
}
.page-hero h1 em { font-style: normal; color: var(--orange); }
.page-hero p { font-size: 16px; color: var(--muted); line-height: 1.8; max-width: 500px; }

/* ── FOOTER ── */
footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 52px 48px 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 36px;
}
.footer-brand h3 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800;
  margin-bottom: 10px; color: var(--text);
}
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 270px; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer-col a {
  display: block; font-size: 13px; color: var(--muted);
  text-decoration: none; margin-bottom: 9px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p, .footer-icp { font-size: 12px; color: var(--muted); }

/* ── CHAT WIDGET ── */
.chat-fab {
  position: fixed; bottom: 32px; right: 32px; z-index: 1000;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; cursor: pointer; border: none;
  box-shadow: 0 6px 24px rgba(232,93,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fab-pulse 2.5s ease-in-out infinite;
}
@keyframes fab-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(232,93,0,0.4); }
  50% { box-shadow: 0 6px 32px rgba(232,93,0,0.65), 0 0 0 8px rgba(232,93,0,0.1); }
}
.chat-fab:hover { transform: scale(1.08); }

.chat-window {
  position: fixed; bottom: 104px; right: 32px; z-index: 1000;
  width: 360px; background: #fff; border-radius: 18px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.16);
  display: none; flex-direction: column;
  overflow: hidden; border: 1px solid var(--border);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
.chat-window.open { display: flex; }

.chat-header {
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.chat-header-info h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 1px; }
.chat-header-info p { font-size: 11px; color: rgba(255,255,255,0.78); }
.chat-online { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; margin-left: auto; flex-shrink: 0; }
.chat-close {
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-size: 20px; cursor: pointer; margin-left: 8px; line-height: 1;
  transition: color 0.2s;
}
.chat-close:hover { color: #fff; }

.chat-body {
  flex: 1; padding: 16px; overflow-y: auto; max-height: 320px;
  display: flex; flex-direction: column; gap: 12px;
  background: #FAFAFA;
}
.chat-msg {
  max-width: 82%; padding: 10px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.55;
}
.chat-msg.bot {
  background: #fff; color: var(--text);
  border: 1px solid var(--border); align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--orange); color: #fff;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.chat-msg-time { font-size: 10px; color: var(--muted); margin-top: 3px; }

.chat-quick {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px;
  border-top: 1px solid var(--border); background: #fff;
}
.chat-quick-btn {
  padding: 5px 12px; border-radius: 20px; font-size: 12px;
  border: 1px solid rgba(232,93,0,0.25); background: rgba(232,93,0,0.04);
  color: var(--orange); cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.chat-quick-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

.chat-footer {
  padding: 12px 14px; display: flex; gap: 8px;
  border-top: 1px solid var(--border); background: #fff;
}
.chat-input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 22px;
  padding: 9px 16px; font-size: 13px; font-family: inherit;
  outline: none; color: var(--text); transition: border-color 0.2s;
  background: #FAFAFA;
}
.chat-input:focus { border-color: rgba(232,93,0,0.4); }
.chat-send {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange); color: #fff; border: none;
  cursor: pointer; font-size: 16px; flex-shrink: 0;
  transition: background 0.2s; display: flex; align-items: center; justify-content: center;
}
.chat-send:hover { background: var(--orange-lt); }

/* ── CARDS SHARED ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
}
.card-hover {
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(232,93,0,0.09);
  border-color: rgba(232,93,0,0.22);
}

/* ── FORM SHARED ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: #fff;
  border: 1.5px solid rgba(180,90,0,0.18); border-radius: 8px;
  padding: 12px 14px; color: var(--text); font-size: 14px;
  font-family: inherit; outline: none; transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(232,93,0,0.5); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A5530' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }

.animate-up { animation: fadeUp 0.6s ease both; }
.animate-up-d1 { animation: fadeUp 0.6s 0.1s ease both; }
.animate-up-d2 { animation: fadeUp 0.6s 0.2s ease both; }
.animate-up-d3 { animation: fadeUp 0.6s 0.3s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-inner .stat-item:nth-child(2) { border-right: none; }
  .stats-inner .stat-item:nth-child(3),
  .stats-inner .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.22); padding-top: 32px; margin-top: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 72px 20px; }
  .page-hero { padding: 110px 20px 56px; }
  .stats-band { padding: 48px 20px; }
  footer { padding: 40px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .chat-window { right: 12px; left: 12px; width: auto; bottom: 90px; }
  .chat-fab { right: 20px; bottom: 20px; }
}
