/* ====================================================================
   PENTIAN AI SOLUTIONS — STYLESHEET
   Design Tokens: Deep Navy (#020359), Glassmorphism, Modern Typography
   ==================================================================== */

:root {
  --primary: #020359;
  --primary-light: rgba(2, 3, 89, 0.06);
  --primary-medium: rgba(2, 3, 89, 0.14);
  --accent: #2563eb;
  --accent-glow: #8b8bff;
  --bg-gradient-start: #FAFBFC;
  --bg-gradient-end: #F1F3F9;
  --surface: #FFFFFF;
  --surface-translucent: rgba(255, 255, 255, 0.85);
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-light: rgba(2, 3, 89, 0.12);
  --border-strong: rgba(2, 3, 89, 0.22);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(2, 3, 89, 0.04);
  --shadow-md: 0 8px 24px -6px rgba(2, 3, 89, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(2, 3, 89, 0.14);
  --font-family: 'Quicksand', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-gradient-start);
  background-image: radial-gradient(circle at 10% 20%, rgba(2, 3, 89, 0.03) 0%, transparent 60%),
                    radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glow Spheres */
.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: rgba(2, 3, 89, 0.12);
}
.glow-2 {
  top: 600px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: rgba(37, 99, 235, 0.08);
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--primary);
  color: #FFFFFF;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  font-weight: 500;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-badge {
  background-color: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 20px;
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: -0.5px;
}

.logo-sub {
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
}

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

.nav-item {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

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

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(2, 3, 89, 0.2);
}

.btn-primary:hover {
  background-color: #01023a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 3, 89, 0.3);
}

.btn-secondary {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-medium);
}

.btn-secondary:hover {
  background-color: var(--primary-medium);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-strong);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

/* Pentian Glassmorphism Card Token */
.pentian-card {
  background-color: var(--surface-translucent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pentian-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-medium);
}

/* Hero Section */
.hero-section {
  padding: 90px 24px 70px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--primary-light);
  border: 1px solid var(--primary-medium);
  border-radius: 30px;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-metrics {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border-light);
}

/* Section Shared Layouts */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Interactive Demo */
.demo-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.demo-chat-card {
  padding: 0;
  overflow: hidden;
}

.chat-header {
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chat-user-info {
  display: flex;
  flex-direction: column;
}

.chat-name {
  font-weight: 700;
  font-size: 15px;
}

.chat-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.online-indicator {
  width: 6px;
  height: 6px;
  background-color: #10B981;
  border-radius: 50%;
}

.chat-body {
  height: 320px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #F8F9FD;
}

.message {
  max-width: 80%;
  display: flex;
  flex-direction: column;
}

.message-ai {
  align-self: flex-start;
}

.message-user {
  align-self: flex-end;
}

.msg-content {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.message-ai .msg-content {
  background-color: #FFFFFF;
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.message-user .msg-content {
  background-color: var(--primary);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.demo-preset-buttons {
  padding: 12px 20px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-chip {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-medium);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-chip:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.chat-footer {
  padding: 16px 20px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
}

.chat-footer input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
}

.chat-footer input:focus {
  border-color: var(--primary);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.plan-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.plan-badge.pop {
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  align-self: flex-start;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}

.plan-price .currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.plan-price .amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
}

.plan-price .period {
  font-size: 14px;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.plan-features li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* FAQs Section */
.faqs-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  display: none;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.2s ease;
}

/* Contact & Form Section */
.contact-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px;
}

.contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-header p {
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group input, .form-group select {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  background-color: #FFFFFF;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 3, 89, 0.1);
}

.form-success {
  display: none;
  padding: 14px;
  background-color: #D1FAE5;
  color: #065F46;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 60px 24px 30px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  margin-top: 14px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-title { font-size: 2.4rem; }
  .nav-links { display: none; }
  .mobile-menu-toggle { display: block; }
  .form-row { flex-direction: column; }
  .hero-metrics { flex-direction: column; gap: 16px; }
  .metric-divider { width: 60%; height: 1px; }
  .footer-links { flex-direction: column; gap: 30px; }
  .contact-card { padding: 24px; }
}
