.content-border-top, .content-border-bottom {
  position: absolute;
  left: 0; width: 100%; height: 18px;
  pointer-events: none;
  z-index: 3;
}
.content-border-top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-card) 60%, transparent 100%);
}
.content-border-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-card) 60%, transparent 100%);
}
/* --- Modernized Redesign, keep all texts and structure as-is --- */
:root {
  --primary: #E5E7EB;
  --accent: #3B82F6;
  --accent-light: #60A5FA;
  --accent-dark: #2563EB;
  --bg-main: #10131a;
  --bg-card: rgba(35, 40, 58, 0.85);
  --glass-blur: blur(18px);
  --text-main: #f5f5f5;
  --bar-gradient: linear-gradient(90deg, #3B82F6 0%, #60A5FA 30%, #fff 50%, #60A5FA 70%, #3B82F6 100%);
  --glow: 0 0 32px 4px #3B82F6cc, 0 0 8px 2px #60A5FA99;
  --animated-gradient: linear-gradient(120deg, #23283a, #3B82F6, #23283a);
/* --- Floating Blobs for Smart Content Effect --- */
.floating-blobs {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(20px) saturate(1.1);
  mix-blend-mode: lighten;
  animation: floatBlobXY 14s ease-in-out infinite alternate;
}
.blob1 { width: 320px; height: 320px; background: #353c54; left: 5%; top: 10%; animation-delay: 0s; }
.blob2 { width: 220px; height: 220px; background: #2d334a; left: 60%; top: 30%; animation-delay: 3s; }
.blob3 { width: 180px; height: 180px; background: #384057; left: 30%; top: 60%; animation-delay: 6s; }
.blob4 { width: 140px; height: 140px; background: #323850; left: 75%; top: 70%; animation-delay: 9s; }

@keyframes floatBlobXY {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(40px, -30px) scale(1.08); }
  40%  { transform: translate(-30px, 30px) scale(0.96); }
  60%  { transform: translate(30px, -20px) scale(1.04); }
  80%  { transform: translate(-40px, 20px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Fade overlays for content convergence with header/footer */
.content-fade-top, .content-fade-bottom {
  position: absolute;
  left: 0; width: 100%; height: 160px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.95;
}
.content-fade-top {
  top: 0;
  background: linear-gradient(to bottom, 
    var(--bg-card) 0%, 
    rgba(35, 40, 58, 0.8) 30%,
    rgba(35, 40, 58, 0.4) 60%,
    transparent 100%
  );
}
.content-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, 
    var(--bg-card) 0%, 
    rgba(35, 40, 58, 0.8) 30%,
    rgba(35, 40, 58, 0.4) 60%,
    transparent 100%
  );
}
  --circuit-pattern: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><g stroke="%2360A5FA" stroke-width="0.7" opacity="0.13"><path d="M10 0v100M30 0v100M50 0v100M70 0v100M90 0v100M0 10h100M0 30h100M0 50h100M0 70h100M0 90h100"/><circle cx="10" cy="10" r="2.5"/><circle cx="90" cy="90" r="2.5"/><circle cx="50" cy="50" r="1.5"/></g></svg>');
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background: var(--bg-main);
  opacity: 1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background-image: var(--circuit-pattern);
  background-size: 220px 220px;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes smartGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header {
  background: var(--bg-card);
  text-align: center;
  padding: 2.5rem 0 1.5rem 0;
  box-shadow: var(--glow);
  position: relative;
  backdrop-filter: var(--glass-blur);
  border-radius: 0 0 24px 24px;
  z-index: 1;
}


@keyframes barGradientMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  height: 10rem;
  width: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-brand-text {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: var(--bar-gradient);
  background-size: 200% 100%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: barGradientMove 4s linear infinite;
  margin-bottom: 0.5rem;
  text-align: center;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-medium);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}

/* ───────────────  Hero  ─────────────── */
.hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: var(--bg-card);
  color: var(--primary);
  position: relative;
  box-shadow: var(--glow);
  border-radius: 24px;
  margin: 2rem auto 2rem auto;
  max-width: 700px;
  backdrop-filter: var(--glass-blur);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, var(--primary) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, var(--primary-light) 0%, transparent 30%);
  background-size: 100px 100px;
  opacity: 0.03;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-medium);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ───────────────  Features grid  ─────────────── */
.features {
  width: 100%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  padding: 0;
  z-index: 1;
}

.animated-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  width: 100vw;
  background: none;
  z-index: 1;
}

#animated-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  text-align: center;
  margin: 0;
  padding: 0 1rem;
  background: none;
}

footer {
  margin-top: auto;
  padding: 2rem;
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid #23283a;
  color: var(--primary);
  box-shadow: var(--glow);
  backdrop-filter: var(--glass-blur);
  border-radius: 24px 24px 0 0;
  z-index: 1;
}

@media (max-width: 700px) {
  .nav-logo { height: 4rem; }
  .nav-brand-text { font-size: 1.5rem; }
  #animated-title { font-size: 1.5rem; }
  .animated-title-container { min-height: 180px; }
}