/* ============================================
   PQRS Workbench - Official Website Styles
   ============================================ */

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

:root {
  --primary: #0d3b66;
  --primary-light: #1a5276;
  --primary-dark: #0a2d4d;
  --accent: #e67e22;
  --accent-light: #f39c12;
  --text: #2c3e50;
  --text-light: #5d6d7e;
  --text-lighter: #7f8c8d;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --bg-dark: #0d3b66;
  --border: #e0e6ed;
  --shadow: 0 2px 12px rgba(13, 59, 102, 0.08);
  --shadow-lg: 0 8px 30px rgba(13, 59, 102, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  font-size: 15px;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Navigation ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.nav-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nav-logo .logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--bg-gray);
}

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* ========== Hero Section ========== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 50%, #2980b9 100%);
  color: white;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(41, 128, 185, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--accent-light);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.hero-visual {
  position: relative;
}

.hero-screenshot {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-lighter);
  font-size: 14px;
}

.hero-screenshot .placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f2f5 0%, #e0e6ed 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-lighter);
}

.hero-screenshot .placeholder-icon {
  font-size: 48px;
  opacity: 0.4;
}

/* ========== Section Styles ========== */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--bg-gray);
}

.section-dark {
  background: var(--primary-dark);
  color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-label {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(230, 126, 34, 0.1);
  color: var(--accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.section-dark .section-header h2 {
  color: white;
}

.section-header p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

/* ========== Feature Cards ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(13, 59, 102, 0.1) 0%, rgba(230, 126, 34, 0.1) 100%);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

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

.feature-card .feature-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  background: rgba(230, 126, 34, 0.1);
  color: var(--accent);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* ========== Module Categories ========== */
.module-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.module-cat {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.module-cat:hover,
.module-cat.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

.module-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  transition: all 0.2s;
}

.module-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.module-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.module-item-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.module-item-content p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ========== Stats / Numbers ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--text-light);
}

.section-dark .stat-item .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

/* ========== CTA Banner ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 60px 0;
}

.cta-banner h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 26px;
}

/* ========== Case Studies ========== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.case-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.case-image .case-icon {
  position: relative;
  font-size: 48px;
  opacity: 0.9;
  z-index: 1;
}

.case-body {
  padding: 22px;
}

.case-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(230, 126, 34, 0.1);
  color: var(--accent);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.case-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.case-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.case-meta {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-lighter);
}

.case-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== About / Team ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.about-image {
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--text-lighter);
  overflow: hidden;
}

.about-content h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-content p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.8;
}

.timeline {
  margin-top: 24px;
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 3px;
}

.timeline-content p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ========== Pricing (optional) ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pricing-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

.pricing-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-lighter);
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

.pricing-features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-features ul {
  list-style: none;
}

.pricing-features li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li::before {
  content: '✓';
  color: #27ae60;
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ========== Contact / Form ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(13, 59, 102, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.contact-item-content p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-form {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

/* ========== Footer ========== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 24px;
}

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

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-brand .logo-mark {
  width: 34px;
  height: 34px;
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-brand .logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

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

/* ========== Utility ========== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 28px;
  }

  .hero-badges,
  .hero-ctas {
    justify-content: center;
  }

  .feature-grid,
  .case-grid,
  .pricing-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 60px 0 70px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .feature-grid,
  .case-grid,
  .pricing-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }
}
