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

:root {
  --navy: #0f1b2d;
  --navy-light: #1a2744;
  --orange: #e8612d;
  --orange-hover: #d4541f;
  --light-bg: #f5f5f5;
  --white: #ffffff;
  --text-dark: #0f1b2d;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-hover);
}

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

.btn-outline:hover {
  border-color: var(--white);
}

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  padding: 140px 0 80px;
  text-align: center;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero-label {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title em {
  color: var(--orange);
  font-style: italic;
}

.hero-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.metric-label {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ===== HERO CHATBOT ===== */
.hero-chat {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.hero-chat-panel {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 700px;
}

.chatbot-header {
  padding: 18px 24px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
}

.chatbot-header-text {
  display: flex;
  flex-direction: column;
}

.chatbot-header-text strong {
  color: var(--white);
  font-size: 0.9rem;
}

.chatbot-header-text span {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
}

.chatbot-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

.chatbot-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot-close:hover {
  color: var(--white);
}

/* ===== CHAT MESSAGES ===== */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.chat-msg {
  display: flex;
}

.chat-msg-bot {
  justify-content: flex-start;
}

.chat-msg-user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-msg-bot .chat-bubble {
  background: var(--light-bg);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

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

.chat-bubble p {
  margin-bottom: 8px;
}

.chat-bubble p:last-child {
  margin-bottom: 0;
}

/* ===== TYPING INDICATOR ===== */
.chatbot-typing {
  padding: 8px 16px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  background: var(--light-bg);
  border-radius: 16px;
  width: fit-content;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.4s infinite;
}

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

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* ===== CHAT PROMPTS ===== */
.chat-prompts {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.prompt-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.82rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.prompt-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(232,97,45,0.04);
}

/* ===== CHAT INPUT ===== */
.chatbot-input-area {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.chatbot-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border 0.2s;
}

.chatbot-input-area input:focus {
  border-color: var(--orange);
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--orange);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.send-btn:hover {
  background: var(--orange-hover);
}

/* ===== SECTIONS SHARED ===== */
.section-label {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label-light {
  color: var(--orange);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-title-light {
  color: var(--white);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 20px;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== HIGHLIGHT SECTION ===== */
.highlight-section {
  padding: 100px 0;
  background: var(--navy);
}

.highlight-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.highlight-text {
  flex: 1;
}

.highlight-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.highlight-subtitle {
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

.highlight-list {
  list-style: none;
  padding: 0;
}

.highlight-list li {
  color: rgba(255,255,255,0.75);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}

.highlight-list li strong {
  color: var(--white);
}

.highlight-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.highlight-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  min-width: 200px;
}

.highlight-card-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
}

.highlight-card-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ===== WHY PTF ===== */
.why-ptf {
  padding: 100px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.why-card {
  text-align: center;
  padding: 24px;
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--navy);
}

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

.step-card {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 20px;
}

.step-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.step-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--light-bg);
}

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--orange);
  transition: 0.3s;
}

.faq-open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-tagline {
  color: rgba(255,255,255,0.4);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

/* ===== FLOATING CHATBOT ===== */
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232,97,45,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s;
}

.chatbot-toggle:hover {
  transform: scale(1.05);
}

.toggle-icon {
  font-size: 1.4rem;
}

.chatbot-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 999;
  width: 420px;
  animation: slideUp 0.3s ease;
}

.chatbot-float-panel {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 580px;
}

.chatbot-float-messages {
  min-height: 200px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid, .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 16px;
  }

  .hero-title { font-size: 2.2rem; }
  .hero-metrics { gap: 24px; }
  .hero-chat-panel { height: 500px; }
  .hero-chat { max-width: 100%; }

  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .highlight-content { flex-direction: column; }
  .footer-content { grid-template-columns: 1fr; }

  .section-title { font-size: 1.8rem; }

  .chatbot-float { width: calc(100% - 32px); right: 16px; bottom: 90px; }
}

/* Fix bot message text alignment */
.chat-msg-bot .chat-bubble {
  text-align: left;
}
