/* ==========================================================================
   DEMO 4: Anity Template Style (Based on Figma Theme-4)
   Minimalist Modern Corporate Foundation & Clean Executive Architecture
   Palette: Royal Indigo (#2563eb), Slate (#0f172a), Cool Gray (#f8fafc)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cinzel:wght@600;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --accent: #f97316;
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

/* Demo Top Bar */
.demo-switcher-top {
  background: #0f172a;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.demo-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-pill {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.demo-pill:hover, .demo-pill.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
}

/* Anity Header */
.anity-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 41px;
  z-index: 900;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-wrap img {
  height: 44px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.7rem;
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.anity-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-item {
  color: #334155;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 6px 4px;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-item:hover {
  color: #2563eb;
}

.btn-blue {
  background: #2563eb;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-blue:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-outline-slate {
  background: transparent;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-slate:hover {
  border-color: #0f172a;
}

.mobile-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Anity Minimal Hero Slider */
.hero-slider-wrap {
  position: relative;
  height: 540px;
  background: #0f172a;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.78) 55%, rgba(15, 23, 42, 0.3) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 680px;
  padding: 0 40px;
}

.tag-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-slide-content h1 {
  font-size: 3rem;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 16px 0;
}

.hero-slide-content p {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.slider-btn:hover {
  background: #2563eb;
}

.slider-dots {
  position: absolute;
  bottom: 36px;
  left: 40px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
}

.slider-dot.active {
  background: #2563eb;
  width: 24px;
  border-radius: 4px;
}

/* Strategic Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  border-color: #2563eb;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin: 0 0 8px 0;
}

.pillar-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

/* Common Section */
.sec-wrap {
  padding: 70px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.sec-title-wrap {
  text-align: center;
  margin-bottom: 46px;
}

.sec-title-wrap h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.sec-title-wrap p {
  color: #64748b;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .mobile-toggle {
    display: block;
  }
  .anity-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-bottom: 2px solid #2563eb;
    align-items: stretch;
    box-sizing: border-box;
  }
  .anity-nav.active {
    display: flex;
  }
  .hero-slide-content h1 {
    font-size: 2.2rem;
  }
}
