/* =====================================================
   AT&T Fiber Sales Landing — style.css
   ===================================================== */

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

:root {
  --att-blue: #00a8e0;
  --att-blue-dark: #006fa6;
  --att-blue-light: #33c1f0;
  --att-glow: rgba(0, 168, 224, 0.35);
  --bg-dark: #090f1a;
  --bg-card: #0e1829;
  --bg-card2: #111e33;
  --text-primary: #f0f6ff;
  --text-muted: #7a95b5;
  --border: rgba(255,255,255,0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.45);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: relative;
  z-index: 10;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  background: linear-gradient(135deg, var(--att-blue), var(--att-blue-dark));
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.logo-badge.sm { font-size: 11px; padding: 3px 7px; }
.logo-text { font-weight: 700; font-size: 18px; }
.logo-accent { color: var(--att-blue); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.btn-nav {
  background: transparent;
  border: 1.5px solid var(--att-blue);
  color: var(--att-blue);
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-nav:hover { background: var(--att-blue); color: #fff; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,168,224,0.12) 0%, transparent 70%), var(--bg-dark);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  background: rgba(0,168,224,0.15);
  top: -200px; left: -100px;
  animation: float1 8s ease-in-out infinite alternate;
}
.glow-2 {
  width: 500px; height: 500px;
  background: rgba(0,100,180,0.1);
  bottom: -100px; right: -100px;
  animation: float2 10s ease-in-out infinite alternate;
}
@keyframes float1 { to { transform: translate(60px, 80px); } }
@keyframes float2 { to { transform: translate(-50px, -60px); } }

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 100px;
  position: relative;
  z-index: 5;
}
.hero-badge {
  display: inline-block;
  background: rgba(0,168,224,0.15);
  border: 1px solid rgba(0,168,224,0.35);
  color: var(--att-blue-light);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--att-blue-light) 0%, #fff 50%, var(--att-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text-primary); }
.btn-primary {
  background: linear-gradient(135deg, var(--att-blue) 0%, var(--att-blue-dark) 100%);
  color: #fff;
  border: none;
  padding: 17px 38px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 40px var(--att-glow);
  font-family: inherit;
  letter-spacing: -0.3px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(0,168,224,0.5);
}
.hero-note { color: var(--text-muted); font-size: 13px; margin-top: 12px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 60px;
  padding: 24px 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--att-blue-light); letter-spacing: -1px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ---- SECTIONS ---- */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -1px; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 17px; margin-bottom: 56px; }

/* ---- FEATURES ---- */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: rgba(0,168,224,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,168,224,0.1);
}
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* ---- PLANS ---- */
.plans { padding: 100px 0; background: linear-gradient(180deg, transparent, rgba(0,168,224,0.04), transparent); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}
.plan-card:hover { transform: translateY(-4px); border-color: rgba(0,168,224,0.25); }
.plan-popular {
  border-color: var(--att-blue) !important;
  background: linear-gradient(180deg, rgba(0,168,224,0.08), var(--bg-card));
  box-shadow: 0 0 40px rgba(0,168,224,0.15);
}
.plan-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--att-blue), var(--att-blue-dark));
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 50px;
  white-space: nowrap;
}
.plan-speed { font-size: 38px; font-weight: 900; color: var(--att-blue-light); letter-spacing: -1px; }
.plan-name { font-size: 16px; color: var(--text-muted); margin: 4px 0 20px; font-weight: 500; }
.plan-price { font-size: 42px; font-weight: 900; margin-bottom: 24px; letter-spacing: -1px; }
.plan-price span { font-size: 54px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li { font-size: 14px; color: var(--text-muted); padding: 6px 0; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border: none; }
.btn-plan {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: 1.5px solid var(--att-blue);
  background: transparent;
  color: var(--att-blue);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.plan-popular .btn-plan {
  background: linear-gradient(135deg, var(--att-blue), var(--att-blue-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px var(--att-glow);
}
.btn-plan:hover { background: var(--att-blue); color: #fff; }
.plan-popular .btn-plan:hover { opacity: 0.9; }

/* ---- FAQ ---- */
.faq-section { padding: 100px 0; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--att-blue-light); }
.faq-q span { font-size: 22px; color: var(--att-blue); flex-shrink: 0; transition: transform var(--transition); }
.faq-q.open span { transform: rotate(45deg); }
.faq-a {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
}
.faq-a.open { max-height: 200px; padding-bottom: 20px; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.footer-copy { color: var(--text-muted); font-size: 13px; text-align: center; }

/* ========================
   CHAT WIDGET
   ======================== */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px; height: 62px;
  background: linear-gradient(135deg, var(--att-blue) 0%, var(--att-blue-dark) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,168,224,0.45);
  z-index: 9000;
  transition: transform var(--transition), box-shadow var(--transition);
  user-select: none;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(0,168,224,0.6); }
.chat-fab-icon { font-size: 26px; line-height: 1; }
.chat-fab-pulse {
  position: absolute;
  inset: 0; border-radius: 50%;
  border: 2px solid var(--att-blue);
  animation: pulse 2.5s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.chat-notification {
  position: absolute;
  top: -4px; right: -4px;
  background: #ff4f5e;
  color: #fff;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-dark);
  transition: transform var(--transition), opacity var(--transition);
}
.chat-notification.hidden { transform: scale(0); opacity: 0; }

.chat-container {
  position: fixed;
  bottom: 105px; right: 28px;
  width: 390px;
  max-height: 650px;
  background: #0b1628;
  border: 1px solid rgba(0,168,224,0.2);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,168,224,0.05);
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: 8999;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
}
.chat-container.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, #0f2040, #0d1930);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.chat-agent-info { display: flex; align-items: center; gap: 12px; }
.agent-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--att-blue), var(--att-blue-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff;
  flex-shrink: 0;
}
.agent-name { font-weight: 700; font-size: 15px; }
.agent-status { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.chat-header-actions { display: flex; gap: 4px; }
.chat-minimize, .chat-close-btn {
  background: rgba(255,255,255,0.07);
  border: none; color: var(--text-muted);
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  font-family: inherit;
}
.chat-minimize:hover, .chat-close-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Message bubbles */
.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: msgIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.msg-row.user { flex-direction: row-reverse; }
.msg-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--att-blue), var(--att-blue-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.msg-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}
.msg-row.bot .msg-bubble {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}
.msg-row.user .msg-bubble {
  background: linear-gradient(135deg, var(--att-blue), var(--att-blue-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-time { font-size: 10px; color: var(--text-muted); margin-top: 3px; text-align: right; }
.msg-row.bot .msg-time { text-align: left; }

/* Typing indicator */
.typing-row { display: flex; align-items: flex-end; gap: 8px; }
.typing-bubble {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex; gap: 4px; align-items: center;
}
.typing-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-6px); opacity: 1; } }

/* Plan cards in chat */
.chat-plans {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.chat-plan-card {
  background: linear-gradient(135deg, rgba(0,168,224,0.1), rgba(0,100,180,0.08));
  border: 1px solid rgba(0,168,224,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
}
.chat-plan-card:hover { border-color: var(--att-blue); background: rgba(0,168,224,0.15); }
.chat-plan-card.selected { border-color: var(--att-blue); background: rgba(0,168,224,0.2); }
.cp-speed { font-size: 18px; font-weight: 800; color: var(--att-blue-light); }
.cp-name { font-size: 13px; color: var(--text-muted); }
.cp-price { font-size: 15px; font-weight: 700; margin-top: 4px; }
.cp-features { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Quick replies */
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 8px;
}
.quick-reply-btn {
  background: rgba(0,168,224,0.1);
  border: 1px solid rgba(0,168,224,0.3);
  color: var(--att-blue-light);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.quick-reply-btn:hover { background: rgba(0,168,224,0.2); border-color: var(--att-blue); }

/* Input */
.chat-input-area {
  border-top: 1px solid var(--border);
  padding: 12px 16px 16px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.2);
}
.chat-input-row { display: flex; gap: 10px; align-items: center; }
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: rgba(0,168,224,0.5); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--att-blue), var(--att-blue-dark));
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 0 4px 15px var(--att-glow);
}
.chat-send:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,168,224,0.5); }

/* Coverage results */
.coverage-result {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 6px;
  font-size: 14px; font-weight: 600;
}
.coverage-ok { background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.3); color: #2ecc71; }
.coverage-no { background: rgba(255,79,94,0.12); border: 1px solid rgba(255,79,94,0.3); color: #ff4f5e; }
.coverage-partial { background: rgba(255,165,0,0.12); border: 1px solid rgba(255,165,0,0.3); color: #ffa500; }

/* Lead success */
.lead-success {
  text-align: center;
  padding: 12px;
}
.lead-success .success-icon { font-size: 40px; margin-bottom: 8px; }
.lead-success h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.lead-success p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 20px 24px; }
  .stat-divider { width: 80%; height: 1px; }
  .chat-container { width: calc(100vw - 32px); right: 16px; bottom: 90px; }
  .plans-grid { grid-template-columns: 1fr; }
}
