/* ============================================================
   SPARTAN TECHNOLOGIES — SHARED STYLESHEET
   Logo palette: Navy #1e1b72 · Purple #6b35c8 · Lavender #b8a8e0
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1e1b72;
  --navy-dk:     #14124f;
  --navy-mid:    #2a2590;
  --purple:      #6b35c8;
  --purple-dk:   #4a1fa8;
  --purple-lt:   #ede8ff;
  --lavender:    #b8a8e0;
  --lavender-lt: #f3f0ff;
  --accent:      #9b68e0;
  --white:       #ffffff;
  --off-white:   #f8f7ff;
  --border:      #ddd6f8;
  --text:        #2a2550;
  --text-light:  #7068a0;
  --shadow-sm:   0 2px 10px rgba(30,27,114,0.07);
  --shadow-md:   0 6px 28px rgba(30,27,114,0.13);
  --shadow-lg:   0 16px 52px rgba(30,27,114,0.2);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.section   { padding: 88px 0; }
.alt-bg    { background: var(--off-white); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
  display: inline-block;
  background: var(--purple-lt);
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-dk); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(107,53,200,0.4); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-dk); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(30,27,114,0.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.75); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--navy-dk);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(20,18,79,0.55);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 12px; color: var(--white); }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-text .logo-name { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.nav-logo-text .logo-sub  { font-size: 10px; font-weight: 500; opacity: 0.65; letter-spacing: 2.5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px; font-weight: 500;
  padding: 8px 18px; border-radius: 50px;
  transition: var(--transition);
}
.nav-links a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-links a.active { background: var(--purple); color: var(--white); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 50%, var(--purple-dk) 100%);
  padding: 148px 28px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 60% at 15% 55%, rgba(107,53,200,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 65% at 85% 25%, rgba(107,53,200,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .section-tag { background: rgba(184,168,224,0.18); color: var(--lavender); }
.page-hero h1 { font-size: clamp(32px,5vw,52px); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.page-hero p  { font-size: 18px; color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 auto; }

/* ============================================================
   ICON LIST
   ============================================================ */
.icon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.icon-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text);
  padding: 11px 16px; background: var(--white);
  border-radius: 8px; border: 1px solid var(--border);
}
.icon-list li i { color: var(--purple); font-size: 14px; margin-top: 4px; flex-shrink: 0; }

/* ============================================================
   TAGS
   ============================================================ */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tags span {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple-lt); color: var(--purple);
  font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 50px;
  border: 1px solid rgba(107,53,200,0.2);
}

/* ============================================================
   INFO CARDS
   ============================================================ */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 8px; }
.info-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; transition: var(--transition);
}
.info-card:hover { box-shadow: var(--shadow-md); border-color: var(--purple); transform: translateY(-3px); }
.info-card > i    { font-size: 26px; color: var(--purple); margin-bottom: 14px; display: block; }
.info-card h4     { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.info-card p      { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.info-card.warning { border-left: 4px solid #e67e22; }
.info-card.warning > i { color: #e67e22; }

/* ============================================================
   DETAIL HEADER
   ============================================================ */
.detail-header { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.detail-icon {
  width: 68px; height: 68px; min-width: 68px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dk));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--white);
  box-shadow: 0 8px 24px rgba(107,53,200,0.35);
}
.detail-header .section-tag { display: block; margin-bottom: 4px; }
.detail-header h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--navy); }

.detail-text > p  { font-size: 16px; color: var(--text-light); margin-bottom: 28px; max-width: 800px; line-height: 1.8; }
.detail-text h4   { font-size: 12px; font-weight: 700; color: var(--navy); margin: 28px 0 14px; text-transform: uppercase; letter-spacing: 1.5px; }

/* ============================================================
   TWO COL
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-dk); padding: 64px 0 0; }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand > span { font-size: 17px; font-weight: 800; color: var(--white); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.7; max-width: 260px; }

.footer-col h4 { font-size: 11px; font-weight: 700; color: var(--lavender); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.82); transition: color var(--transition); }
.footer-col a:hover { color: var(--lavender); }

.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: rgba(255,255,255,0.70); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-dk); padding: 16px 20px 24px; gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a    { padding: 12px 18px; font-size: 15px; }
  .nav-toggle     { display: block; padding: 8px; }
  .navbar         { background: var(--navy-dk); }
  .icon-list      { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; }
  .detail-header  { flex-direction: column; align-items: flex-start; }
  .page-hero      { padding: 110px 18px 56px; }
  .section        { padding: 60px 0; }
  .container      { padding: 0 18px; }
  .nav-inner      { padding: 0 18px; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: clamp(22px, 6vw, 32px); }
  .section-header p  { font-size: 15px; }
  .btn            { padding: 12px 24px; font-size: 14px; }
}
@media (max-width: 480px) {
  .container   { padding: 0 14px; }
  .nav-inner   { padding: 0 14px; }
  .section     { padding: 48px 0; }
  .section-header h2 { font-size: 22px; }
  .btn         { padding: 11px 20px; font-size: 13px; }
  .page-hero   { padding: 100px 14px 48px; }
  .footer      { padding: 40px 0 0; }
  .footer-inner { gap: 28px; padding-bottom: 32px; }
}

/* ============================================================
   ENHANCED NAV LOGO MARK
   ============================================================ */
.nav-logo { gap: 12px; }

.nav-logo-mark {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 11px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(107,53,200,0.75);
  box-shadow: 0 0 14px rgba(107,53,200,0.4), 0 2px 8px rgba(20,18,79,0.35);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-logo:hover .nav-logo-mark {
  border-color: var(--lavender);
  box-shadow: 0 0 22px rgba(107,53,200,0.65), 0 2px 10px rgba(20,18,79,0.4);
}
.nav-logo-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--white);
  display: block;
}

.nav-logo-text .logo-name { font-size: 17px; font-weight: 800; letter-spacing: 1.5px; }
.nav-logo-text .logo-sub  { font-size: 9.5px; font-weight: 600; opacity: 0.65; letter-spacing: 2.5px; }

@media (max-width: 640px) {
  .nav-logo-mark { width: 38px; height: 38px; min-width: 38px; border-radius: 9px; }
  .nav-logo-text .logo-name          { font-size: 15px; }
  .nav-logo-text .logo-sub           { font-size: 8.5px; }
  .nav-logo                          { gap: 10px; }
}
@media (max-width: 480px) {
  .nav-logo-mark { width: 34px; height: 34px; min-width: 34px; border-radius: 8px; }
  .nav-logo-text .logo-name          { font-size: 14px; }
  .nav-logo-text .logo-sub           { font-size: 8px; }
}

/* Footer logo mark */
.footer-logo-mark {
  width: 48px; height: 48px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(184,168,224,0.25);
  flex-shrink: 0;
}
.footer-logo-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--white);
  display: block;
}

/* ============================================================
   SPLASH / INTRO SCREEN
   ============================================================ */
.splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 45%, var(--purple-dk) 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.65s ease 0.1s, visibility 0.65s ease 0.1s;
}
.splash-screen.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.splash-bg-grid {
  position: absolute; inset: 0;
  background-image: 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.025'%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");
  pointer-events: none;
}
.splash-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,53,200,0.3) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}

.splash-inner {
  position: relative; z-index: 1;
  text-align: center;
  animation: splashEnter 0.85s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}
@keyframes splashEnter {
  from { opacity: 0; transform: scale(0.72) translateY(28px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.splash-logo-ring {
  width: 120px; height: 120px;
  margin: 0 auto 26px;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid rgba(184,168,224,0.45);
  box-shadow: 0 0 40px rgba(107,53,200,0.5), 0 4px 24px rgba(20,18,79,0.45);
  background: var(--white);
  animation: splashRingPulse 2.2s ease-in-out 0.85s infinite;
}
@keyframes splashRingPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(107,53,200,0.4), 0 4px 24px rgba(20,18,79,0.4); }
  50%       { box-shadow: 0 0 56px rgba(107,53,200,0.65), 0 4px 32px rgba(20,18,79,0.55); }
}

.splash-logo-ring img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.splash-brand-name {
  display: block;
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 800; letter-spacing: 6px;
  color: var(--white);
  margin-bottom: 5px;
  text-shadow: 0 2px 20px rgba(107,53,200,0.4);
}
.splash-brand-sub {
  display: block;
  font-size: clamp(10px, 2.5vw, 13px);
  font-weight: 600; letter-spacing: 5px;
  color: var(--lavender); opacity: 0.85;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.splash-tagline {
  font-size: clamp(12px, 2.8vw, 14px);
  color: rgba(255,255,255,0.45);
  font-style: italic; letter-spacing: 1px;
  margin-bottom: 36px;
}

.splash-dots {
  display: flex; justify-content: center; gap: 10px;
}
.splash-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lavender);
  animation: splashDot 1.4s ease-in-out infinite;
}
.splash-dots span:nth-child(2) { animation-delay: 0.22s; }
.splash-dots span:nth-child(3) { animation-delay: 0.44s; }
@keyframes splashDot {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.4); }
}
