html {
  scrollbar-gutter: stable; /* Scrollbar එක ආවත් Layout එක වමට පනින්නේ නැහැ */
}

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

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden; /* තිරයෙන් පිටතට Content යාම වළක්වයි */
}


:root {
  /* SaaS Clean White Palette */
  --primary: #0f172a;
  --primary-muted: #334155;
  --accent-indigo: #4f46e5;
  --accent-blue: #2563eb;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --accent-purple: #7c3aed;
  
  /* Modern Surface & Borders */
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --card-bg-glass: rgba(255, 255, 255, 0.88);
  --card-border: rgba(15, 23, 42, 0.08);
  --card-border-hover: rgba(79, 70, 229, 0.3);
  
  /* Text Colors */
  --text-title: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  /* Perfect Nested Corner Radii */
  --radius-xl: 20px;  /* Main Cards */
  --radius-lg: 14px;  /* Sub-cards / Boxes */
  --radius-md: 10px;  /* Badges / Small Items */
  --radius-sm: 6px;   /* Tags */
  
  /* Enterprise Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(79, 70, 229, 0.06);
}

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

body {
  font-family: 'Noto Sans Sinhala', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  padding: 60px 20px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   1. MOUSE SPOTLIGHT & AMBIENT BLOBS
   ========================================== */

#cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999;
}

.floating-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.6;
  animation: floatAnimation 14s infinite alternate ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.07);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 450px;
  height: 450px;
  background: rgba(16, 185, 129, 0.06);
  top: 45%;
  right: -100px;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: rgba(124, 58, 237, 0.05);
  bottom: 2%;
  left: 15%;
  animation-delay: -9s;
}

@keyframes floatAnimation {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, 30px) scale(1.04); }
  100% { transform: translate(-20px, 15px) scale(0.96); }
}

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

/* ==========================================
   2. HEADER & BADGES
   ========================================== */

.phase-header {
  text-align: center;
  margin-bottom: 56px;
}

.badge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--accent-indigo);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow-sm);
}

.pulse-badge {
  position: relative;
}

.pulse-badge::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-indigo);
  opacity: 0;
  animation: pulseBorder 2.5s infinite;
}

@keyframes pulseBorder {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 0; }
}

.gradient-text {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  background: linear-gradient(135deg, #0f172a 30%, #312e81 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  letter-spacing: -0.6px;
}

.phase-header .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
  font-weight: 400;
}

/* ==========================================
   3. SECTION HEADERS & ICON PILLS
   ========================================== */

.card-section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.icon-pill {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.blue-glow { color: var(--accent-indigo); border-color: rgba(79, 70, 229, 0.2); }
.purple-glow { color: var(--accent-purple); border-color: rgba(124, 58, 237, 0.2); }
.amber-glow { color: var(--accent-amber); border-color: rgba(217, 119, 6, 0.2); }
.green-glow { color: var(--accent-emerald); border-color: rgba(5, 150, 105, 0.2); }

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.2px;
}

/* ==========================================
   4. CARDS & GRID COMPONENTS
   ========================================== */

.content-card {
  background: var(--card-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.interactive-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--card-border-hover);
}

.hero-card {
  border-top: 3px solid var(--accent-indigo);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.content-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.quote-pill {
  background: #f8fafc;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  font-size: 0.8rem;
  font-weight: 500;
  font-style: italic;
  padding: 5px 14px;
  border-radius: var(--radius-md);
}

.desc-text {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.sub-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.alert-border { border-top: 3px solid var(--accent-rose); }
.success-border { border-top: 3px solid var(--accent-emerald); }

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot-pulse.rose { background: var(--accent-rose); }
.dot-pulse.green { background: var(--accent-emerald); }

.active-tag { background: #fff1f2; color: #9f1239; border: 1px solid rgba(159, 18, 57, 0.15); }
.owner-tag { background: #f0fdf4; color: #166534; border: 1px solid rgba(22, 101, 52, 0.15); }

.sub-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 10px 0 6px 0;
}

.sub-card p {
  font-size: 0.92rem;
  color: var(--text-body);
}

/* Info Glass Boxes */
.glass-box {
  display: flex;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon.blue { background: #eff6ff; color: var(--accent-blue); }
.info-icon.green { background: #ecfdf5; color: var(--accent-emerald); }
.info-icon.purple { background: #f5f3ff; color: var(--accent-purple); }
.info-icon.amber { background: #fffbeb; color: var(--accent-amber); }

.glass-box h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.glass-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Features List */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list strong {
  color: var(--primary);
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.feature-list p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================
   5. ROADMAP CARDS
   ========================================== */

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.roadmap-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.active-final {
  border: 2px solid var(--accent-emerald);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.step-num.gold {
  color: var(--accent-emerald);
}

.roadmap-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.roadmap-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.bg-blue { background: #eff6ff; color: #1e40af; }
.bg-amber { background: #fffbeb; color: #92400e; }
.bg-emerald { background: #dcfce7; color: #166534; }

.roadmap-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  body { padding: 30px 14px; }
  .gradient-text { font-size: 1.9rem; }
  .content-card { padding: 22px 18px; border-radius: var(--radius-lg); }
  #cursor-glow { display: none; }
}



/* YouTube Channels Section Container */
.yt-channels-container {
  text-align: center;
  margin: 50px auto 30px;
  padding: 0 20px;
  max-width: 900px;
}

.yt-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

/* Flex Grid Structure */
.yt-channels-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
}

/* Individual Channel Item */
.yt-channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 95px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.yt-channel-card:hover {
  transform: translateY(-6px);
}

/* Circular Logo Styling with Blue Gradient Ring */
.avatar-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
  transition: box-shadow 0.3s ease;
}

.yt-channel-card:hover .avatar-wrapper {
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
}

.channel-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f1f5f9;
  border: 2px solid #ffffff;
}

/* Channel Name Text */
.channel-name {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.25;
  text-align: center;
  transition: color 0.2s ease;
}

.yt-channel-card:hover .channel-name {
  color: #0284c7;
}

/* Mobile Screen Responsiveness */
@media (max-width: 480px) {
  .yt-channels-grid {
    gap: 18px;
  }
  .yt-channel-card {
    width: 80px;
  }
  .avatar-wrapper {
    width: 62px;
    height: 62px;
  }
  .channel-name {
    font-size: 0.78rem;
  }
}







.footer-wrapper {
  margin-top: 60px;
  background-color: transparent;
}

/* Home Button - Pill Style with Soft Shadow */
.back-home-container {
  text-align: center;
  margin-bottom: 40px;
}

.btn-home-modern {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: #ffffff;
  color: #0284c7;
  border: 1.5px solid #e0f2fe;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  transition: all 0.3s ease;
}

.btn-home-modern:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.25);
}

/* Footer Container */
.clean-footer {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 40px 5% 25px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f1f5f9;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
}

.brand-name span {
  color: #0284c7;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: #475569;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #0284c7;
}

.footer-bottom {
  max-width: 1100px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}





