/* ========================================
   PIMM SYSTEMS - LIGHT & TECHY THEME
   ======================================== */

/* Root Variables */
:root {
  --primary-color: #6b8cdb;
  --primary-hover: #7d9ce3;
  --secondary-color: #89b4d8;
  --accent-color: #a294c2;
  --accent-hover: #b3a6d1;
  --text-primary: #e2e8f0;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --bg-primary: #0f1419;
  --bg-secondary: #1a202c;
  --bg-card: #1e2633;
  --border-color: #2d3748;
  --gradient-1: linear-gradient(135deg, #4a5568 0%, #6b5b8c 100%);
  --gradient-2: linear-gradient(135deg, #6b8cdb 0%, #89b4d8 100%);
  --gradient-text: linear-gradient(90deg, #6b8cdb 0%, #89b4d8 50%, #a294c2 100%);
  --gradient-purple: linear-gradient(135deg, #6b8cdb 0%, #a294c2 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.4), 0 3px 6px rgba(0,0,0,0.3);
  --shadow-xl: 0 15px 30px rgba(0,0,0,0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.heading.extra-large {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.heading.large {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

.heading.medium {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

.heading.regular {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
}

.heading.small {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
}

.paragraph {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.paragraph.large {
  font-size: 1.125rem;
  line-height: 1.75;
}

.paragraph.extra-large {
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Text Gradient Effect */
.text-gradient-overlay {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: gradient-shift 12s ease infinite;
  opacity: 0.9;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 20, 25, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
  border-top: 2px solid rgba(162, 148, 194, 0.3);
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.logo img {
  height: 65px;
  width: auto;
  opacity: 0.9;
  filter: brightness(1.2);
}

.logo-image {
  height: 65px;
  max-height: 65px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  opacity: 0.85;
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(107, 140, 219, 0.1);
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
  opacity: 0.7;
}

.nav-link:hover::after {
  width: 60%;
}

.actions-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.button, .w-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--gradient-purple);
  color: var(--bg-primary);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  opacity: 0.95;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.button:hover::before {
  transform: translateX(0);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.button-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  padding: 0.7rem 2rem;
  opacity: 0.85;
}

.button-secondary:hover {
  background: transparent;
  color: var(--accent-color);
  opacity: 1;
  border-color: var(--accent-color);
}

.button.small {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 5rem 2rem;
  position: relative;
  padding-top: 8rem; 
}

.container-large {
  max-width: 1200px;
  margin: 0 auto;
}

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

/* Header/Hero Section */
.header-layout, .grid-2-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 80px);
  margin-top: 10px;
}

/* Grid layouts */
.grid-2-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 80px;
}

.grid-2-column {
  min-height: auto; /* Override for contact page */
  align-items: start;
}

.header-content {
  animation: fadeInUp 1s ease;
}

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

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.image-wrapper {
  position: relative;
  animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image, .feature-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  opacity: 0.95;
}

.social-proof-logos-wrapper {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
}

/* Cards */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card-item {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  transform: scaleX(0);
  transition: transform 0.3s;
  opacity: 0.8;
}

.card-item:hover::before {
  transform: scaleX(1);
}

.card-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: rgba(30, 38, 51, 0.8);
  border-color: var(--primary-color);
}

.icon-large, .icon-medium {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(107, 140, 219, 0.15) 0%, rgba(137, 180, 216, 0.15) 100%);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid rgba(107, 140, 219, 0.2);
}

/* Features Section */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.feature-content {
  padding: 2rem 0;
}

.text-color-accent {
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.grid-3-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-item {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.benefit-item:hover {
  background: rgba(30, 38, 51, 0.8);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

/* FAQ Section */
.faq-wrapper {
  display: grid;
  gap: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-accordion {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-accordion:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(162, 148, 194, 0.5);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(107, 140, 219, 0.05);
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
  filter: invert(0.8);
}

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

.faq-accordion.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

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

/* CTA Section */
.cta-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(107, 140, 219, 0.2) 0%, rgba(162, 148, 194, 0.2) 100%);
  border-radius: 20px;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.cta-card-content h2,
.cta-card-content .paragraph {
  color: var(--text-primary);
  opacity: 0.95;
}

.cta-card-content .button {
  background: var(--primary-color);
  color: var(--bg-primary);
}

.gradient-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-2);
  opacity: 0.03;
  border-radius: 20px;
}

/* Footer */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.text-color-muted {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.divider-line {
  height: 1px;
  background: var(--border-color);
  margin: 2rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Utility Classes */
.spacer-8 { height: 0.5rem; }
.spacer-16 { height: 1rem; }
.spacer-24 { height: 1.5rem; }
.spacer-32 { height: 2rem; }
.spacer-40 { height: 2.5rem; }
.spacer-64 { height: 4rem; }
.spacer-80 { height: 5rem; }
.spacer-96 { height: 6rem; }
.spacer-128 { height: 8rem; }

.text-weight-medium { font-weight: 500; }
.is-relative { position: relative; }

/* Mobile Menu */
.nav-menu-button {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  width: 24px;
  height: 20px;
  position: relative;
}

.menu-icon-line-top,
.menu-icon-line-bottom {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.menu-icon-line-top { top: 0; }
.menu-icon-line-bottom { bottom: 0; }

/* Responsive Design */
@media (max-width: 991px) {
  .header-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .feature-item {
    grid-template-columns: 1fr;
  }
  
  .grid-2-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: none;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu-button {
    display: block;
  }
  
  .hide-mobile-portrait {
    display: none;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .section:first-of-type {
    padding-top: 6rem;
  }
  
  .heading.extra-large {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .heading.large {
    font-size: 1.5rem;
  }
  
  .heading.medium {
    font-size: 1.25rem;
  }
  
  .paragraph.large {
    font-size: 1rem;
  }
  
  .card-list {
    grid-template-columns: 1fr;
  }
  
  .grid-3-column {
    grid-template-columns: 1fr;
  }
  
  .grid-2-column {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-container {
    padding: 1rem;
  }
  
  .logo-image {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .heading.extra-large {
    font-size: 1.5rem;
    word-wrap: break-word;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .button, .button-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .heading.extra-large {
    font-size: 2rem;
  }
  
  .heading.large {
    font-size: 1.75rem;
  }
  
  .card-list {
    grid-template-columns: 1fr;
  }
  
  .grid-3-column {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: var(--accent-color);
  color: var(--bg-primary);
}

::-moz-selection {
  background: var(--accent-color);
  color: var(--bg-primary);
}

/* Purple accent dot for lists */
.paragraph li::marker {
  color: var(--accent-color);
}