/* ===== Reset & Variables ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #F5A623;
  --orange-light: #FBCB6B;
  --orange-bg: #F9B84A;
  --burgundy: #8B1A1A;
  --burgundy-dark: #6B1010;
  --white: #ffffff;
  --cream: #FFF8EE;
  --dark: #2A1A0A;
  --gray: #6B5B4A;
  --border: 3px solid var(--burgundy);
  --radius: 10px;
  --transition: 0.2s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--cream);
  overflow-x: hidden;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  color: var(--burgundy);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  -webkit-text-stroke: 2px var(--white);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--white);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  -webkit-text-stroke: 1px var(--white);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--white);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 3px solid var(--burgundy);
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow:
    0 4px 0 var(--burgundy-dark),
    0 6px 12px rgba(107, 16, 16, 0.3);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}

.btn-primary:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #4a0a0a,
    0 8px 16px rgba(107, 16, 16, 0.4);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 var(--burgundy-dark),
    0 2px 4px rgba(107, 16, 16, 0.3);
}

.btn-lg {
  padding: 20px 48px;
  font-size: 1.2rem;
  border-radius: 14px;
}

/* ===== Online Indicator ===== */
.online-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--burgundy-dark);
}

.online-dot {
  width: 10px;
  height: 10px;
  background: #2D7D3A;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(45, 125, 58, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(45, 125, 58, 0); }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--dark);
  font-weight: 500;
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-actions {
  margin-bottom: 24px;
}

.hero-gift {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--burgundy);
  background: var(--white);
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--burgundy);
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  padding-top: 36px;
  border-top: 3px solid var(--burgundy);
}

.stat-icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--burgundy);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 600;
}

/* ===== Floating Shapes ===== */
.floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.fl {
  position: absolute;
  opacity: 0.15;
  border: 4px solid var(--burgundy);
}

.fl-1 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  top: 12%;
  left: 8%;
  animation: drift1 14s ease-in-out infinite;
}

.fl-2 {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  top: 20%;
  right: 12%;
  animation: drift2 11s ease-in-out infinite;
}

.fl-3 {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  bottom: 18%;
  left: 15%;
  animation: drift3 16s ease-in-out infinite;
}

.fl-4 {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  top: 60%;
  right: 8%;
  animation: drift4 12s ease-in-out infinite;
  transform: rotate(45deg);
}

.fl-5 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  top: 5%;
  right: 30%;
  opacity: 0.08;
  border-width: 6px;
  animation: drift5 18s ease-in-out infinite;
}

.fl-6 {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  bottom: 30%;
  right: 20%;
  background: var(--burgundy);
  border: none;
  opacity: 0.1;
  animation: drift6 10s ease-in-out infinite;
}

.fl-7 {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  bottom: 10%;
  right: 40%;
  animation: drift7 13s ease-in-out infinite;
  transform: rotate(15deg);
}

.fl-8 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  top: 40%;
  left: 5%;
  background: var(--burgundy);
  border: none;
  opacity: 0.08;
  animation: drift8 15s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -20px) rotate(90deg); }
  50% { transform: translate(-15px, 25px) rotate(180deg); }
  75% { transform: translate(20px, 15px) rotate(270deg); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-25px, 30px) rotate(120deg); }
  66% { transform: translate(20px, -15px) rotate(240deg); }
}

@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
}

@keyframes drift4 {
  0%, 100% { transform: translate(0, 0) rotate(45deg); }
  25% { transform: translate(-20px, -25px) rotate(135deg); }
  50% { transform: translate(15px, -40px) rotate(225deg); }
  75% { transform: translate(-10px, 10px) rotate(315deg); }
}

@keyframes drift5 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 40px); }
}

@keyframes drift6 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -20px) scale(1.4); }
  66% { transform: translate(-15px, 15px) scale(0.8); }
}

@keyframes drift7 {
  0%, 100% { transform: translate(0, 0) rotate(15deg); }
  50% { transform: translate(-35px, -20px) rotate(195deg); }
}

@keyframes drift8 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, 30px) scale(1.3); }
  50% { transform: translate(-10px, 50px) scale(0.9); }
  75% { transform: translate(30px, 10px) scale(1.1); }
}

/* ===== For Who ===== */
.for-who {
  padding: 64px 0;
  background: var(--cream);
  text-align: center;
}

.for-who-inner {
  max-width: 620px;
  margin: 0 auto;
}

.for-who h2 {
  margin-bottom: 16px;
}

.for-who-text {
  font-size: 1.05rem;
  color: var(--gray);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 28px;
}

.for-who-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.section-cta {
  margin-top: 36px;
  text-align: center;
}

.tag {
  padding: 8px 18px;
  background: var(--white);
  border: 2px solid var(--burgundy);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--burgundy);
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 64px 0;
  background: var(--orange-bg);
  border-top: 3px solid var(--burgundy);
  border-bottom: 3px solid var(--burgundy);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 36px;
}

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

.testimonial {
  background: var(--white);
  border: 3px solid var(--burgundy);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars {
  color: var(--orange);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.65;
  font-weight: 500;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--orange-light);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: var(--burgundy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--burgundy);
}

.testimonial-role {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  background: var(--dark);
  border-top: 3px solid var(--burgundy);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange-bg);
}

.footer-brand p {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 6px;
}

.footer-info {
  text-align: right;
}

.footer-info p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-version {
  display: block;
  text-align: right;
  color: #8A7A6A;
  font-size: 0.75rem;
  margin-top: 16px;
}

/* ===== Fullscreen Chat ===== */
.chat-fullscreen {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  justify-content: center;
}

.chat-fullscreen.open {
  display: flex;
  opacity: 1;
}

.chat-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: var(--cream);
  position: relative;
}

.chat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid var(--orange-light);
  flex-shrink: 0;
}

.chat-top-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--burgundy);
}

.chat-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2D7D3A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status .online-dot {
  width: 7px;
  height: 7px;
}

.chat-back {
  background: none;
  border: none;
  color: var(--burgundy);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.chat-back:hover {
  background: var(--orange-light);
}

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

.chat-msg {
  max-width: 80%;
  animation: msgIn 0.25s ease;
}

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

.chat-msg p {
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.bot p {
  background: var(--white);
  color: var(--dark);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-msg.user p {
  background: var(--burgundy);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

/* Message meta (time, read status) */
.chat-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 4px;
  padding: 0 4px;
  font-weight: 500;
}

.chat-msg.user .chat-meta {
  text-align: right;
}

/* Typing indicator dots */
.typing-dots {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 20px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--gray);
  border-radius: 50%;
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.chat-msg.typing.paused .typing-dots span {
  animation-play-state: paused;
  opacity: 0.4;
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-area {
  display: flex;
  padding: 16px 24px;
  gap: 12px;
  border-top: 2px solid var(--orange-light);
  background: var(--white);
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid transparent;
  border-radius: 24px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: var(--cream);
  transition: var(--transition);
}

.chat-input-area input:focus {
  border-color: var(--orange-bg);
  background: var(--white);
}

.chat-input-area button {
  background: var(--burgundy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-input-area button:hover {
  background: var(--burgundy-dark);
}

/* ===== Reduce Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .fl { animation: none !important; }
  .online-dot { animation: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 32px;
  }

  .fl { opacity: 0.1; }
  .fl-5 { display: none; }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-info {
    text-align: center;
  }

  .for-who-tags {
    gap: 8px;
  }

  .chat-fullscreen {
    background: var(--cream);
  }

  .chat-container {
    max-width: 100%;
  }

  .chat-messages {
    padding: 16px;
  }

  .chat-input-area {
    padding: 12px 16px;
  }
}
