:root{
  /* Light Theme (Default) */
  --bg: #fafbfc;
  --bg2: #f5f7fa;
  --card: #ffffff;
  --text: #1a1f2e;
  --muted: #5a6578;
  --muted-light: #8b95a6;
  --line: rgba(0,0,0,.08);
  --accent: #4f6df5;
  --accent-light: #6b84ff;
  --accent2: #00c9e5;
  --accent-gradient: linear-gradient(135deg, #4f6df5 0%, #6b84ff 50%, #00c9e5 100%);
  --success: #10b981;
  --warning: #f59e0b;

  --max: 1200px;
  --r: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 30px rgba(79,109,245,.15);
}

/* Dark Theme */
[data-theme="dark"]{
  --bg: #0b1220;
  --bg2: #0f1a33;
  --card: #0e1730;
  --text: #eaf0ff;
  --muted: #b8c3e6;
  --muted-light: #8b95a6;
  --line: rgba(255,255,255,.10);
  --accent: #7aa2ff;
  --accent-light: #6b84ff;
  --accent2: #5ad7ff;
  --accent-gradient: linear-gradient(135deg, #7aa2ff 0%, #6b84ff 50%, #5ad7ff 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --shadow: 0 18px 45px rgba(0,0,0,.35);
  --shadow-hover: 0 8px 30px rgba(122,162,255,.25);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
}

/* Dark theme body background */
[data-theme="dark"] body{
  background: radial-gradient(1200px 700px at 20% -10%, rgba(122,162,255,.20), transparent 60%),
              radial-gradient(900px 600px at 90% 0%, rgba(90,215,255,.14), transparent 55%),
              linear-gradient(180deg, var(--bg), #060a14 65%);
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.95; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(250,251,252,.85);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: background-color .3s ease, border-color .3s ease;
}
[data-theme="dark"] .site-header{
  background: rgba(6,10,20,.55);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand{
  display: inline-flex;
  align-items: center;
  height: 40px;
  text-decoration: none;
}
.brand img{
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.nav{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}
.nav a{
  font-size: 14px;
  color: var(--muted);
  transition: all .2s ease;
  font-weight: 500;
  position: relative;
  padding: 4px 8px;
  border-radius: 6px;
}
.nav a:hover{ 
  color: var(--accent);
  background: rgba(79,109,245,.08);
}
.nav a.active{
  color: var(--accent);
  font-weight: 600;
  background: rgba(79,109,245,.1);
}
.nav a.active::after{
  content: '';
  position: absolute;
  bottom: -2px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Theme Toggle Button */
.theme-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
  margin-left: 8px;
  position: relative;
}
.theme-toggle:hover{
  background: var(--bg2);
  border-color: var(--accent);
  transform: scale(1.05);
}
.theme-toggle svg{
  width: 18px;
  height: 18px;
  transition: transform .3s ease;
}
.theme-toggle .icon-sun{
  display: block;
}
.theme-toggle .icon-moon{
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun{
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-moon{
  display: block;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  background: url('/assets/img/CTA-Button-Backgrounds.jpg') center center / cover no-repeat,
              var(--accent-gradient); /* Fallback gradient */
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(79,109,245,.3);
  transition: all .2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.1);
  opacity: 0;
  transition: opacity .2s ease;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79,109,245,.4);
}
.btn:hover::before{
  opacity: 1;
}
.btn:active{ transform: translateY(0); }

.btn-ghost{
  background: transparent;
  border: 2px solid var(--accent);
  box-shadow: none;
  color: var(--accent);
  padding: 12px 22px;
}
.btn-ghost:hover{
  background: rgba(79,109,245,.05);
  border-color: var(--accent-light);
  color: var(--accent-light);
}
.btn-small{
  padding: 9px 12px;
  font-size: 13px;
}

/* Sections */
.section{
  padding: 80px 0;
}
.section-alt{
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
[data-theme="dark"] .section-alt{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}
.section-contact{
  background: linear-gradient(135deg, rgba(79,109,245,.03) 0%, rgba(0,201,229,.02) 100%);
  border-top: 1px solid var(--line);
  border-radius: 0;
  transition: background .3s ease;
}
[data-theme="dark"] .section-contact{
  background: radial-gradient(900px 600px at 10% 10%, rgba(122,162,255,.12), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(90,215,255,.09), transparent 55%);
}

h1,h2,h3{ line-height:1.2; margin: 0 0 16px; font-weight: 700; }
h1{ font-size: clamp(36px, 5vw, 56px); letter-spacing:-.5px; color: var(--text); }
h2{ font-size: clamp(28px, 3.5vw, 40px); letter-spacing:-.3px; color: var(--text); }
h3{ font-size: 20px; color: var(--text); font-weight: 600; }

p{ margin: 0 0 16px; color: var(--muted); }
.lead{
  font-size: 20px;
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.6;
  font-weight: 400;
}
.sub{ 
  max-width: 80ch; 
  font-size: 17px;
  color: var(--muted-light);
}
.micro{
  font-size: 14px;
  color: var(--muted-light);
  margin-top: 12px;
}

/* Hero */
/* To switch hero images, change 'Hero-01.jpg' to Hero-02.jpg, Hero-03.jpg, or Hero-04.jpg */
.hero{
  padding: 100px 0 80px;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(248,249,251,.95) 100%),
              url('/assets/img/Hero-01.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.80) 0%, rgba(255,255,255,.70) 50%, rgba(248,249,251,.80) 100%);
  z-index: 0;
  transition: background .3s ease;
}
[data-theme="dark"] .hero{
  background: linear-gradient(180deg, rgba(11,18,32,.92) 0%, rgba(15,26,51,.95) 100%),
              url('/assets/img/Hero-01.jpg') center center / cover no-repeat;
}
[data-theme="dark"] .hero::before{
  background: linear-gradient(180deg, rgba(11,18,32,.85) 0%, rgba(11,18,32,.75) 50%, rgba(15,26,51,.85) 100%);
}
.hero .container{
  position: relative;
  z-index: 1;
}
.hero h1{
  text-shadow: 0 2px 8px rgba(255,255,255,.8);
}
[data-theme="dark"] .hero h1{
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero .lead{
  text-shadow: 0 1px 4px rgba(255,255,255,.6);
}
[data-theme="dark"] .hero .lead{
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Xapplets Hero - Specific styling for Xapplets page */
.hero.xapplets-hero{
  background: linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(248,249,251,.92) 100%),
              url('/assets/img/Xapplets-Hero.jpg') center center / cover no-repeat;
}
.hero.xapplets-hero::before{
  background: linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.65) 50%, rgba(248,249,251,.75) 100%);
}
[data-theme="dark"] .hero.xapplets-hero{
  background: linear-gradient(180deg, rgba(11,18,32,.90) 0%, rgba(15,26,51,.92) 100%),
              url('/assets/img/Xapplets-Hero.jpg') center center / cover no-repeat;
}
[data-theme="dark"] .hero.xapplets-hero::before{
  background: linear-gradient(180deg, rgba(11,18,32,.80) 0%, rgba(11,18,32,.70) 50%, rgba(15,26,51,.80) 100%);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}
.hero-card{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}
.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Grid utilities */
.grid{
  display:grid;
  gap: 14px;
}
.cards-3{
  grid-template-columns: repeat(3, 1fr);
}
.bullets-2{
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 0 12px;
}

/* Cards */
.card{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  padding: 28px;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}
.card:hover{
  transform: translateY(-4px);
  border-color: rgba(79,109,245,.2);
  box-shadow: var(--shadow-hover);
}
.card p{ margin: 12px 0 0; color: var(--muted); }
.card ul{
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.card li{ margin: 8px 0; line-height: 1.6; }

/* Industry Cards with Background */
.card.industry-card{
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.88) 100%),
              url('/assets/img/Industry-Cards-Background.jpg') center center / cover no-repeat;
}
.card.industry-card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.78) 100%);
  z-index: 0;
  border-radius: var(--r);
  transition: opacity .2s ease;
}
.card.industry-card:hover::before{
  opacity: .9;
}
[data-theme="dark"] .card.industry-card{
  background: linear-gradient(180deg, rgba(14,23,48,.92) 0%, rgba(14,23,48,.88) 100%),
              url('/assets/img/Industry-Cards-Background.jpg') center center / cover no-repeat;
}
[data-theme="dark"] .card.industry-card::before{
  background: linear-gradient(180deg, rgba(14,23,48,.85) 0%, rgba(14,23,48,.80) 100%);
}
.card.industry-card > *{
  position: relative;
  z-index: 1;
}

/* Testimonial Cards */
.card.testimonial-card{
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.92) 100%),
              url('/assets/img/Testimonial_Quote-Cards-Background.jpg') center center / cover no-repeat;
  position: relative;
}
.card.testimonial-card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.85) 100%);
  z-index: 0;
  border-radius: var(--r);
  transition: background .3s ease;
}
[data-theme="dark"] .card.testimonial-card{
  background: linear-gradient(180deg, rgba(14,23,48,.95) 0%, rgba(14,23,48,.92) 100%),
              url('/assets/img/Testimonial_Quote-Cards-Background.jpg') center center / cover no-repeat;
}
[data-theme="dark"] .card.testimonial-card::before{
  background: linear-gradient(180deg, rgba(14,23,48,.88) 0%, rgba(14,23,48,.85) 100%);
}
.card.testimonial-card > *{
  position: relative;
  z-index: 1;
}
.testimonial-quote{
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-author{
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.testimonial-role{
  font-size: 14px;
  color: var(--muted);
}

/* Feature Icons */
.card-icon{
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  background-image: url('/assets/img/Feature-Icons.jpg');
  background-size: 400% 200%; /* 4 columns x 2 rows */
  background-repeat: no-repeat;
  background-position: 0 0;
  flex-shrink: 0;
  border-radius: 12px;
  transition: transform .2s ease;
}
.card:hover .card-icon{
  transform: scale(1.05);
}
/* Industry Solutions - Larger Icons */
.industry-card .card-icon{
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
}
/* Icon positions - 2 rows x 4 columns grid */
.card-icon.icon-1{ background-position: 0% 0%; }      /* Top-left: Headset Person (AI Agents) */
.card-icon.icon-2{ background-position: 33.33% 0%; }  /* Top-2nd: Stethoscope (Healthcare) */
.card-icon.icon-3{ background-position: 66.66% 0%; }   /* Top-3rd: Shield Checkmark (Security) */
.card-icon.icon-4{ background-position: 100% 0%; }     /* Top-right: Growth Chart (Sales/CRM) */
.card-icon.icon-5{ background-position: 0% 100%; }      /* Bottom-left: Network (Orchestration) */
.card-icon.icon-6{ background-position: 33.33% 100%; } /* Bottom-2nd: Document Plus (Media) */
.card-icon.icon-7{ background-position: 66.66% 100%; } /* Bottom-3rd: Document Starburst (Impact) */
.card-icon.icon-8{ background-position: 100% 100%; }   /* Bottom-right: Clock (Efficiency) */

/* Card with icon layout */
.card.has-icon{
  display: flex;
  flex-direction: column;
}
.card.has-icon h3{
  margin-top: 0;
}

/* Use Case Illustrations */
.use-case-illustration{
  width: 100%;
  height: 200px;
  margin-bottom: 20px;
  border-radius: 12px;
  transition: transform .2s ease;
  background-color: #f8f9fb; /* Fallback color */
  object-fit: contain;
  display: block;
}
.card:hover .use-case-illustration{
  transform: scale(1.02);
}

/* Split blocks */
.split{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  align-items: start;
}
.panel{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* Bullets */
.bullet{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

/* Checklist */
.checklist{
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li{
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
}

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
  position: relative;
}
.steps-wrapper{
  position: relative;
  width: 100%;
  margin-top: 24px;
}
.process-steps-image{
  width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  display: block;
}
/* Keep step styling for fallback or if needed */
.step{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  padding: 20px;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: all .2s ease;
}
.step:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.step strong{
  color: var(--accent);
  margin-right: 8px;
  font-size: 16px;
}

/* Notice */
.notice{
  border-left: 4px solid var(--accent);
  background: rgba(79,109,245,.06);
  padding: 20px 24px;
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  background: var(--bg2);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 32px 0;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner a{ color: var(--muted); transition: color .2s ease; }
.footer-inner a:hover{ color: var(--accent); }

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .cards-3{ grid-template-columns: 1fr 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; }
  .section{ padding: 60px 0; }
  .hero{ padding: 80px 0 60px; }
}
@media (max-width: 620px){
  .container{ width: min(var(--max), calc(100% - 32px)); }
  .cards-3{ grid-template-columns: 1fr; }
  .bullets-2{ grid-template-columns: 1fr; }
  .nav{ display:none; } /* keep header clean on mobile */
  .brand{
    height: 36px; /* Slightly smaller on mobile */
  }
  .brand img{
    height: 36px;
    max-width: 150px; /* Smaller max width on mobile */
  }
  .hero{ 
    padding: 60px 0 50px;
    background-size: cover;
    background-position: center;
  }
  .hero::before{
    background: linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.85) 100%);
  }
  .hero.xapplets-hero::before{
    background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.80) 100%);
  }
  .use-case-illustration{
    height: 160px; /* Slightly smaller on mobile */
  }
  .process-steps-image{
    border-radius: 16px; /* Slightly smaller radius on mobile */
  }
  .section{ padding: 50px 0; }
  .card{ padding: 20px; }
  .panel{ padding: 20px; }
}
