/* eresource ERP Style - Engineering Goods Industry */
:root {
  --primary-blue: #1a5f7a;
  --primary-blue-dark: #0d3d4d;
  --accent-orange: #f97316;
  --accent-orange-hover: #ea580c;
  --purple-banner: #7c3aed;
  --purple-banner-dark: #6d28d9;
  --text-gray: #4b5563;
  --text-light: #6b7280;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --gradient-blue-start: #e0f2fe;
  --gradient-blue-end: #f0f9ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Top Purple Banner */
.top-banner {
  background: linear-gradient(90deg, var(--purple-banner) 0%, var(--purple-banner-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.top-banner .banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.top-banner .ai-logo {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}

/* Main Header / Navigation */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo .logo-dot {
  color: var(--accent-orange);
  font-weight: 900;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-menu > li > a:hover {
  color: var(--primary-blue);
}

.nav-menu .dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.nav-menu > li.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menus */
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 480px;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 20px;
  display: none;
  z-index: 1001;
  margin-top: 4px;
}

.nav-menu > li.open .dropdown-panel {
  display: block;
}

.nav-menu > li.open .dropdown-panel.erp-products-dropdown {
  display: block;
}

.nav-menu > li.open .dropdown-panel.resources-dropdown {
  display: block;
}

.nav-menu > li.open .dropdown-panel.manufacturing-dropdown {
  display: block;
  min-width: 220px;
}

.dropdown-panel.two-column {
  grid-template-columns: 200px 1fr;
  gap: 24px;
  min-width: 560px;
}

.erp-products-dropdown {
  min-width: 720px;
  padding: 24px;
}

.dropdown-column h4 {
  margin: 0 0 12px 0;
  font-size: 0.85rem;
  color: var(--primary-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-column ul li {
  margin-bottom: 4px;
}

.dropdown-column ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.dropdown-column ul li a:hover {
  background: var(--bg-light);
  color: var(--primary-blue);
}

.dropdown-column ul li a::before {
  content: "→";
  color: var(--accent-orange);
  font-weight: bold;
}

/* ERP Products Grid Dropdown */
.erp-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.erp-product-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.erp-product-item:hover {
  background: var(--bg-light);
  color: var(--primary-blue);
}

.erp-product-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gradient-blue-start), #bae6fd);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.erp-product-item h5 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  color: var(--primary-blue);
}

.erp-product-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-action-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-blue);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.header-action-link:hover {
  color: var(--primary-blue-dark);
  background: rgba(26, 95, 122, 0.08);
}

.header-action-logout:hover {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.08);
}

/* Slim header (app pages with left nav) */
.main-header-slim .header-inner {
  height: 56px;
}

/* App layout: left nav-bar + main content */
.app-layout {
  display: flex;
  min-height: calc(100vh - 42px);
  flex: 1;
}

.left-nav {
  width: 260px;
  min-width: 260px;
  background: var(--white);
  border-right: 1px solid #e5e7eb;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.left-nav-brand {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.left-nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  display: block;
}

.left-nav-logo:hover {
  color: var(--primary-blue-dark);
}

.left-nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.left-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.left-nav-list > li {
  margin: 0;
}

.left-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.left-nav-link i:first-child {
  width: 20px;
  text-align: center;
  color: var(--primary-blue);
  opacity: 0.9;
}

.left-nav-link span {
  flex: 1;
}

.left-nav-link:hover {
  background: var(--bg-light);
  color: var(--primary-blue);
}

.left-nav-link.left-nav-toggle .left-nav-chevron {
  font-size: 0.7rem;
  transition: transform 0.2s;
  margin-left: auto;
}

.left-nav-link.left-nav-toggle.open .left-nav-chevron {
  transform: rotate(180deg);
}

.left-nav-sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 0;
  background: rgba(26, 95, 122, 0.04);
  border-left: 3px solid var(--primary-blue);
  margin-left: 20px;
  margin-right: 12px;
  border-radius: 0 6px 6px 0;
}

.left-nav-sublist[hidden] {
  display: none;
}

.left-nav-sublist li {
  margin: 0;
}

.left-nav-sublist a {
  display: block;
  padding: 8px 20px 8px 16px;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}

.left-nav-sublist a:hover {
  background: rgba(26, 95, 122, 0.08);
  color: var(--primary-blue);
}

.main-content {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg-light);
}

.search-icon {
  color: var(--text-gray);
  cursor: pointer;
  font-size: 1.2rem;
}

.btn-book-demo {
  background: #0092d9;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-book-demo:hover {
  background: #007bb8;
  color: #fff !important;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--text-gray);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.lang-selector:hover {
  background: var(--bg-light);
}

.lang-selector img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--gradient-blue-start) 0%, var(--gradient-blue-end) 50%, var(--white) 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(124,58,237,0.1));
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.hero-content .subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin: 0;
  max-width: 520px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-placeholder {
  width: 100%;
  max-width: 420px;
  height: 360px;
  background: linear-gradient(145deg, rgba(26,95,122,0.08) 0%, rgba(249,115,22,0.08) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(26,95,122,0.2);
  color: var(--text-light);
  font-size: 1rem;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 16px 0;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  margin: 0 0 48px 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Core Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s, transform 0.2s;
}

.module-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.module-card h3 {
  font-size: 1.15rem;
  color: var(--primary-blue);
  margin: 0 0 12px 0;
}

.module-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.module-card .key-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text-gray);
}

.module-card .key-highlights li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.module-card .key-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: bold;
}

/* Enquiry Form */
.enquiry-section {
  background: var(--bg-light);
  padding: 80px 24px;
}

.enquiry-inner {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.enquiry-inner h2 {
  font-size: 1.75rem;
  color: var(--primary-blue);
  margin: 0 0 24px 0;
}

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

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

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

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

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

.btn-submit {
  background: #0092d9;
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #007bb8;
}

/* Footer */
.main-footer {
  background: var(--primary-blue-dark);
  color: var(--white);
  padding: 60px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* Trusted By Section */
.trusted-section {
  padding: 48px 24px;
  text-align: center;
  background: var(--white);
}

.trusted-section h3 {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
  margin: 0 0 24px 0;
}

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

.logo-strip-item {
  width: 120px;
  height: 50px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Benefits List */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.benefit-item .icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-blue-start);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .app-layout {
    min-height: calc(100vh - 42px);
  }

  .left-nav {
    width: 220px;
    min-width: 220px;
  }

  .left-nav-link {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .left-nav-sublist a {
    padding: 6px 16px 6px 12px;
    font-size: 0.8rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modules-grid {
    grid-template-columns: 1fr;
  }
  
  .dropdown-panel {
    min-width: 100%;
  }
  
  .dropdown-panel.two-column {
    grid-template-columns: 1fr;
  }
}
