/* --- Variables & Reset --- */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #0f172a;
  --accent: #8b5cf6;
  --text: #334155;
  --text-light: #64748b;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.2);
  --font-main: 'Inter', sans-serif;
  --font-head: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo {
  font-family: var(--font-head);
}

a { text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding { padding: 100px 0; }
.bg-light { background: var(--light-bg); }

/* --- Buttons --- */
.btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--secondary);
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.glass-btn {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.glass-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* --- Navigation --- */
nav {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -1px;
}

.logo span { color: var(--secondary); }

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

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

.contact-link { font-weight: 600 !important; }

.nav-buttons { display: flex; gap: 12px; align-items: center; }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--secondary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 120px 0 160px;
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.75)), 
                    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  color: #e2e8f0;
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
}

/* 3D Floating Visual */
.hero-visual {
  max-width: 900px;
  margin: 0 auto;
  transform: perspective(1000px) rotateX(5deg) translateY(20px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  border-radius: 15px;
  border: 4px solid rgba(255,255,255,0.1);
  background: #1e293b;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.hero-visual img {
  width: 100%;
  display: block;
  opacity: 0.9;
}

@keyframes float {
  0%, 100% { transform: perspective(1000px) rotateX(5deg) translateY(20px); }
  50% { transform: perspective(1000px) rotateX(5deg) translateY(10px); }
}

/* --- Photo Strip --- */
.photo-strip {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid #e2e8f0;
}

.strip-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.strip-text {
  font-weight: 600;
  color: var(--secondary);
  font-size: 18px;
}

.avatar-group { display: flex; }

.avatar-group img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--white);
  margin-left: -15px;
  object-fit: cover;
}

.avatar-count {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -15px;
  border: 3px solid var(--white);
  font-weight: bold;
  font-size: 12px;
}

/* --- About Section --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-tag {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.split-layout h2, .how-section h2, .bg-light h2 {
  font-size: 42px;
  color: var(--secondary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.lead-text {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.feature-list li {
  color: #475569;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list i { color: var(--primary); }

/* About Collage */
.about-collage {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.about-collage img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.img-main { height: 400px; }
.img-secondary { height: 250px; margin-top: 60px; }

/* --- How It Works --- */
.how-section { text-align: center; background: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step {
  padding: 40px 30px;
  background: var(--light-bg);
  border-radius: 20px;
  transition: transform 0.3s;
  border: 1px solid #f1f5f9;
}

.step:hover { transform: translateY(-10px); }

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.step h3 { margin-bottom: 10px; color: var(--secondary); }
.step p { color: var(--text-light); font-size: 15px; }

/* --- Campaigns --- */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.campaign-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
  border: 1px solid #f1f5f9;
}

.campaign-card:hover { transform: translateY(-5px); }

.card-image {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.campaign-content { padding: 25px; }

.campaign-tag {
  background: #e0e7ff;
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.campaign-content h3 {
  font-size: 20px;
  margin: 15px 0;
  color: var(--secondary);
}

.campaign-content p { color: var(--text-light); font-size: 14px; }

.campaign-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: var(--text-light);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 30px;
  padding: 80px 40px;
  text-align: center;
  color: var(--white);
  margin: 80px auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
}

.cta-section h2 { color: var(--white); margin-bottom: 30px; }
.cta-section p { margin-bottom: 30px; opacity: 0.9; }

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10%);
  background-size: 20px 20px;
  opacity: 0.3;
}

.cta-buttons { display: flex; gap: 15px; justify-content: center; }

.btn-white { background: var(--white); color: var(--primary); }
.btn-outline-white { background: rgba(0,0,0,0.2); color: var(--white); border: 1px solid rgba(255,255,255,0.3); }

/* --- Footer --- */
footer {
  background: var(--secondary);
  color: #94a3b8;
  padding: 60px 0 20px;
  text-align: center;
}

.footer-brand .logo {
  justify-content: center;
  color: var(--white);
  font-size: 32px;
  margin-bottom: 20px;
}

footer p { max-width: 500px; margin: 0 auto 30px; color: #64748b; }

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: 0.3s;
}

.social-links a:hover { background: var(--primary); transform: scale(1.1); }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 14px; }

/* --- Chat Widget --- */
#chat-widget-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

#chat-button {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

#chat-button:hover { transform: scale(1.1); }

#chat-window {
  display: none;
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 360px;
  height: 500px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

#chat-window.open { display: flex; animation: slideUp 0.3s ease; }

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

#chat-header {
  background: var(--primary);
  color: var(--white);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-header h3 { margin: 0; font-size: 18px; }
.status-indicator { font-size: 12px; opacity: 0.8; }
#close-chat { background: none; border: none; color: var(--white); cursor: pointer; font-size: 24px; }

#chat-form { padding: 25px; background: var(--light-bg); height: 100%; }
#chat-form p { margin-bottom: 20px; color: var(--text-light); }

#chat-form input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: var(--font-main);
}

#start-chat {
  width: 100%;
  padding: 14px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

#chat-messages { flex: 1; overflow-y: auto; padding: 20px; background: #f8fafc; }

.message-bubble {
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 14px;
  max-width: 80%;
  margin-bottom: 10px;
  word-wrap: break-word;
}

.message.visitor { display: flex; justify-content: flex-end; }
.message.visitor .message-bubble { background: var(--primary); color: var(--white); border-bottom-right-radius: 2px; }

.message.agent { display: flex; justify-content: flex-start; }
.message.agent .message-bubble { background: #e2e8f0; color: var(--text); border-bottom-left-radius: 2px; }

#chat-input-area { padding: 15px; border-top: 1px solid #e2e8f0; display: none; gap: 10px; background: var(--white); }
#chat-input-area.active { display: flex; }

#message-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  outline: none;
}

#send-button {
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
    .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-buttons { display: none; }
  .hamburger { display: block; }
  
  .hero h1 { font-size: 36px; }
  
  .split-layout { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  
  /* Mobile Menu Active */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 1001;
  }
  
  .nav-links.active a {
    padding: 10px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
  }

  .about-collage { grid-template-columns: 1fr; }
  .img-secondary { display: none; }
  .img-main { height: 300px; }
  
  #chat-window {
    width: 90%;
    bottom: 20px;
    right: 5%;
    height: 60vh;
  }
}
