/* ===================================================================
   OptimumIntelligence Landing Page — Additional Styles
   Extends color-system.css + main.css
   =================================================================== */

/* ---- General ---- */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
}

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

a:hover {
  color: var(--primary-dark-purple);
}

/* ---- Section base ---- */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #271645;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #271645;
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: #271645;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ---- Hero ---- */
.hero-section {
  background: #63537D;
  padding: 120px 0 80px;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero-section::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.04'%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");
}

.hero-section .hero-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.hero-section .hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #271645;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50px;
  padding: 14px 36px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-hero-primary:hover {
  background: #63537D;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  padding: 14px 36px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-hero-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Feedback loop graphic ---- */
.loop-graphic {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  margin: 12px 0 16px;
  position: relative;
}

.loop-node {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.loop-node:hover {
  background: rgba(255,255,255,0.28);
}

.loop-arrow {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  padding: 0 3px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.loop-return {
  width: 100%;
  text-align: center;
  margin-top: 6px;
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Large loop for tech page */
.loop-graphic-large .loop-node {
  background: #63537D;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-purple);
}

.loop-graphic-large .loop-arrow {
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ---- Cards ---- */
.oi-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(161,88,255,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border-top: 4px solid #271645;
}

.oi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-purple);
}

.oi-card .card-icon {
  width: 56px;
  height: 56px;
  background: #63537D;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 20px;
}

.oi-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #271645;
  margin-bottom: 10px;
}

.oi-card p {
  font-size: 0.93rem;
  color: #63537D;
  line-height: 1.65;
  margin: 0;
}

.oi-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-purple);
}

.oi-card .card-link:hover {
  color: var(--primary-dark-purple);
}

.domain-card .card-link {
  color: #271645;
}

.domain-card .card-link:hover {
  color: #63537D;
}

/* Domain / product large cards */
.domain-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.domain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-purple);
}

.domain-card .domain-card-header {
  background: #63537D;
  padding: 32px 28px 24px;
  color: #fff;
  height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.domain-card .domain-card-header .domain-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}

.domain-card .domain-card-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.domain-card .domain-card-body {
  padding: 24px 28px;
}

.domain-card .domain-card-body p {
  color: #63537D;
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.domain-card .domain-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.domain-card .domain-card-body ul li {
  font-size: 0.88rem;
  color: #666;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.domain-card .domain-card-body ul li i {
  color: var(--primary-purple);
  font-size: 0.8rem;
}

/* ---- Section: accent background ---- */
.section-accent {
  background: var(--bg-light);
}

.section-dark {
  background: var(--gradient-secondary);
  color: #fff;
}

.section-dark .section-title h2 {
  color: #fff;
}

.section-dark .section-title h2::after {
  background: rgba(255,255,255,0.5);
}

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

/* ---- Tech pillars ---- */
.tech-pillar {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(161,88,255,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border-top: 4px solid #271645;
}

.tech-pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-purple);
}

.tech-pillar .pillar-number {
  width: 56px;
  height: 56px;
  background: #63537D;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  -webkit-text-fill-color: #fff;
}

.tech-pillar h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #271645;
  margin-bottom: 10px;
}

.tech-pillar p {
  font-size: 0.93rem;
  color: #63537D;
  line-height: 1.65;
  margin: 0;
}

/* ---- Product cards (overview) ---- */
.product-card-grid {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(161,88,255,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-top: 4px solid #271645;
}

.product-card-grid:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-purple);
}

.product-card-grid .product-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #63537D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 16px;
}

.product-card-grid h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #271645;
  margin-bottom: 10px;
}

.product-card-grid p {
  font-size: 0.93rem;
  color: #63537D;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.product-card-grid .btn-learn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 50px;
  background: #271645;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.product-card-grid .btn-learn:hover {
  background: #63537D;
  transform: translateX(4px);
}

/* ---- CTA strip ---- */
.cta-strip {
  background: #fff;
  padding: 72px 0;
  text-align: center;
  color: #271645;
  border: none;
  margin: 0;
}

.cta-strip h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #271645;
}

.cta-strip p {
  font-size: 1.05rem;
  color: #63537D;
  margin-bottom: 32px;
}

.cta-strip .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-strip .btn-hero-primary,
.cta-strip .btn-hero-outline {
  min-width: 180px;
  text-align: center;
  justify-content: center;
}

.cta-strip .btn-hero-outline {
  background: #63537D;
  color: #fff;
  border-color: #63537D;
  text-decoration: none;
}

.btn-hero-outline,
.btn-hero-primary {
  text-decoration: none;
}

.cta-strip .btn-hero-outline:hover {
  background: #271645;
  border-color: #271645;
  color: #fff;
}

/* ---- Breadcrumb ---- */
.page-hero {
  background: #63537D;
  padding: 100px 0 60px;
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 680px;
  line-height: 1.7;
  margin: 0 auto;
  text-align: center;
}

/* ---- Challenge / outcome list ---- */
.challenge-list, .outcome-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.challenge-list li, .outcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0eaf8;
  font-size: 0.95rem;
  color: #63537D;
}

.challenge-list li:last-child, .outcome-list li:last-child {
  border-bottom: none;
}

.challenge-list li i {
  color: var(--primary-pink);
  margin-top: 3px;
  flex-shrink: 0;
}

.outcome-list li i {
  color: var(--primary-purple);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---- Related products/domains chips ---- */
.related-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.related-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  background: #faf8ff;
  border: 2px solid rgba(39,22,69,0.2);
  color: #271645;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-chip:hover {
  background: #271645;
  color: #fff;
  border-color: #271645;
  transform: translateY(-2px);
}

/* ---- Contact form ---- */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 18px;
  border: 2px solid rgba(161,88,255,0.2);
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(161,88,255,0.12);
}

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

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
}

/* ---- About boxes ---- */
.about-value-box {
  text-align: center;
  padding: 28px 20px;
}

.about-value-box .value-icon {
  font-size: 2.4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  display: block;
}

.about-value-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.about-value-box p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ---- System map ---- */
.system-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.system-map-item {
  background: var(--gradient-secondary);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  color: #fff;
}

.system-map-item i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.system-map-item .map-label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.system-map-item .map-sub {
  font-size: 0.78rem;
  opacity: 0.8;
}

/* ---- Header ---- */
#header {
  display: flex;
  align-items: center;
}

.branding {
  width: 100%;
}

.navmenu {
  display: flex;
  align-items: center;
}

.navmenu ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navmenu ul li {
  display: flex;
  align-items: center;
  position: relative;
}

.navmenu ul li a {
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}


.logo {
  display: flex;
  align-items: center;
}

.logo .sitename {
  margin: 0;
  display: flex;
  align-items: center;
}

/* Dropdown */
.navmenu .dropdown .dropdown-menu {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 32px rgba(122,44,179,0.18);
  padding: 8px 0;
  min-width: 220px;
  margin-top: 8px;
}

.navmenu .dropdown .dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 20px;
  transition: all 0.2s ease;
}

.navmenu .dropdown .dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary-purple);
  padding-left: 26px;
}

/* ---- Language switcher ---- */
.lang-switcher {
  margin-left: 16px;
}

.lang-switcher .btn {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.lang-switcher .btn:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.6);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .hero-section {
    padding: 100px 0 56px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .loop-graphic {
    gap: 6px;
  }

  .loop-node {
    font-size: 0.75rem;
    padding: 8px 14px;
  }

  .cta-strip {
    padding: 48px 0;
  }
}

@media (max-width: 576px) {
  .loop-graphic {
    flex-direction: column;
    align-items: center;
  }

  .loop-arrow {
    transform: rotate(90deg);
  }

  .loop-return {
    display: none;
  }
}
