/* Features Page - Premium SaaS Style */

/* --- Global Utilities for Features --- */
.feature-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  background: rgba(76, 134, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(76, 134, 255, 0.2);
}

.section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.section-header-left {
  text-align: left;
  max-width: 600px;
  margin-bottom: 60px;
}

.feature-section h2 {
  font-size: 42px;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.1;
}

.feature-section p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Hero Section --- */
.hero-features {
  padding: 160px 0 100px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(76, 134, 255, 0.15), transparent 60%);
}

.hero-text {
  max-width: 800px;
  margin: 0 auto 60px;
}

.hero-text h1 {
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-text .lead {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Browser Mockup */
.hero-visual-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 2000px;
}

.browser-mockup {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
  overflow: hidden;
  transform: rotateX(2deg);
  transition: transform 0.6s ease;
}

.browser-mockup:hover {
  transform: rotateX(0);
}

.browser-bar {
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-url {
  margin-left: 16px;
  background: rgba(0,0,0,0.2);
  color: var(--muted);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  flex: 1;
  text-align: center;
  font-family: monospace;
}

.browser-content img {
  width: 100%;
  display: block;
}

.glow-spot {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
}

.spot-1 { background: var(--primary); top: -100px; left: -100px; }
.spot-2 { background: var(--accent); bottom: -100px; right: -100px; }

/* --- Sticky Nav --- */
.feature-nav-sticky {
  position: sticky;
  top: 73px;
  z-index: 40;
  background: rgba(7, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.feature-nav-sticky ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-nav-sticky a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  padding: 4px 0;
  position: relative;
}

.feature-nav-sticky a:hover,
.feature-nav-sticky a.active {
  color: var(--text);
}

.feature-nav-sticky a.active::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* --- Bento Grid Large (Journaling) --- */
.bento-grid-large {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .bento-grid-large {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .row-2 { grid-row: span 2; }
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.bento-card:hover {
  border-color: var(--primary-600);
}

.card-text {
  padding: 32px;
  z-index: 2;
}

.card-text h3 { margin: 0 0 12px; font-size: 24px; }
.card-text p { font-size: 15px; color: var(--muted); margin: 0; }

.feature-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.feature-tags span {
  font-size: 11px;
  background: rgba(255,255,255,0.05);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.05);
}

.card-visual {
  position: relative;
  background: var(--panel);
  flex: 1;
  overflow: hidden;
}

.card-visual img {
  position: absolute;
  max-width: none;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.right-aligned img {
  top: 20px;
  left: 20px;
  width: 90%;
}

.top-aligned img {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
}

/* Split Content Card */
.split-content {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
}

@media (min-width: 768px) {
  .split-content { grid-template-columns: 1fr 1.5fr; }
}

.text-side {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: 14px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.visual-side {
  background: var(--panel);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-window-minimal {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* --- Analytics Grid --- */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .analytics-grid { grid-template-columns: 2.5fr 1fr; }
}

.analytics-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.main-chart {
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-actions {
  display: flex;
  gap: 8px;
  background: var(--panel);
  padding: 4px;
  border-radius: 8px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
}

.icon-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.chart-wrapper {
  flex: 1;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  padding: 20px;
  margin-bottom: 16px;
}

.card-footer p { font-size: 13px; color: var(--muted); }

.analytics-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.analytics-card.small h4 {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-mini {
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.03);
}

/* Dashboard Builder */
.dashboard-builder-section {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .dashboard-builder-section { grid-template-columns: 1fr 2fr; }
}

.visual-content {
  position: relative;
}

.builder-img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.floating-ui {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 240px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--line);
  animation: float 6s ease-in-out infinite;
}

/* --- Planning Grid --- */
.planning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .planning-grid { grid-template-columns: repeat(3, 1fr); }
}

.planning-card {
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}

.card-image-full {
  height: 100%;
  width: 100%;
  position: relative;
}

.card-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.planning-card:hover .card-image-full img {
  transform: scale(1.05);
}

.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,10,20,0) 0%, rgba(7,10,20,0.9) 80%);
}

.card-content-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  z-index: 2;
}

.card-content-bottom h3 { margin: 0 0 8px; font-size: 20px; }
.card-content-bottom p { font-size: 14px; color: var(--muted); margin: 0; }

/* --- CTA Final --- */
.cta-final {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: 48px;
  margin-bottom: 16px;
}

.cta-actions {
  margin: 32px 0;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  opacity: 0.7;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Redesigned Analytics Section (App Interface) --- */
.app-interface-mockup {
  position: relative;
  margin-top: 60px;
  perspective: 1000px;
}

.app-window-frame {
  background: #0B1020; /* Very dark blue/black */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5), 
              0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.window-bar {
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-family: monospace;
}

.app-layout {
  display: flex;
  min-height: 600px;
}

.app-sidebar-strip {
  width: 60px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  background: rgba(255, 255, 255, 0.01);
}

.icon-strip {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.icon-strip.active {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(76, 134, 255, 0.4);
}

.icon-strip.bottom {
  margin-top: auto;
  margin-bottom: 20px;
}

.app-main-area {
  flex: 1;
  padding: 24px;
  background: radial-gradient(circle at top right, rgba(76, 134, 255, 0.05), transparent 40%);
}

.app-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  height: 100%;
}

.app-widget {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.large-widget {
  grid-row: span 2;
}

.app-widget-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.small-widget {
  flex: 1;
}

.widget-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.widget-controls {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
  border-radius: 4px;
}

.control-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--muted);
  cursor: pointer;
}

.control-pill.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.widget-content {
  flex: 1;
  padding: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

.app-glow-underlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

/* --- Redesigned CTA Section --- */
.cta-premium {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  text-align: center;
}

.cta-glow-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(76, 134, 255, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.cta-content-centered {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 56px;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 40px;
}

.btn-premium-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: var(--bg);
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-premium-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.cta-trust-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .app-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .large-widget {
    grid-row: auto;
    min-height: 300px;
  }
  .cta-title {
    font-size: 40px;
  }
}

/* --- Redesigned Journaling Section (Bento Premium) --- */
.bento-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
  margin-top: 60px;
}

.bento-card-premium {
  background: linear-gradient(145deg, rgba(18, 24, 38, 0.8) 0%, rgba(11, 16, 32, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bento-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.bento-card-premium.large-card {
  grid-column: span 2;
  display: flex;
  align-items: center;
  min-height: 360px;
}

.bento-card-premium.small-card {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
}

.bento-card-premium.full-width-card {
  grid-column: span 3;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
  background: radial-gradient(circle at 50% 0%, rgba(76, 134, 255, 0.08), rgba(11, 16, 32, 1) 60%);
}

/* Content Styling */
.card-content-left {
  padding: 40px;
  flex: 1;
  z-index: 2;
}

.card-visual-right {
  flex: 1.2;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-visual-top {
  height: 200px;
  background: rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-content-bottom {
  padding: 32px;
}

.card-content-center {
  text-align: center;
  max-width: 600px;
  margin-bottom: 40px;
  z-index: 2;
  position: relative;
}

/* Specific Elements */
.icon-box {
  width: 48px;
  height: 48px;
  background: rgba(76, 134, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
}

.integration-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  font-size: 13px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981; /* Success Green */
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.floating-interface {
  width: 90%;
  border-radius: 8px;
  box-shadow: -20px 20px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.bento-card-premium:hover .floating-interface {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) scale(1.02);
}

.ui-fragment {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.bento-card-premium:hover .ui-fragment {
  opacity: 1;
}

.full-width-visual {
  width: 90%;
  max-width: 1000px;
  position: relative;
  perspective: 1000px;
}

.full-width-visual .app-window-frame {
  transform: rotateX(5deg);
  transition: transform 0.5s ease;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
}

.bento-card-premium:hover .full-width-visual .app-window-frame {
  transform: rotateX(0deg);
}

@media (max-width: 992px) {
  .bento-grid-premium {
    grid-template-columns: 1fr;
  }
  .bento-card-premium.large-card,
  .bento-card-premium.small-card,
  .bento-card-premium.full-width-card {
    grid-column: span 1;
  }
  .bento-card-premium.large-card {
    flex-direction: column;
  }
  .card-visual-right {
    width: 100%;
    padding: 40px;
  }
}

/* --- Redesigned Planning Section (Glass Cards) --- */
.planning-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
}

.glass-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.glass-card-visual {
  height: 240px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.glass-card:hover .glass-card-visual img {
  transform: scale(1.05);
}

.glass-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(11, 16, 32, 0.8) 100%);
  z-index: 1;
}

.glass-card-content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.glass-card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(76, 134, 255, 0.2), rgba(76, 134, 255, 0.05));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  border: 1px solid rgba(76, 134, 255, 0.1);
}

.glass-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.glass-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .planning-grid-premium {
    grid-template-columns: 1fr;
  }
  .glass-card-visual {
    height: 200px;
  }
}

/* --- Ultra Premium Analytics Refinements (High-End Request) --- */

/* 1. Background Grid & Depth */
.app-main-area {
  background-color: #0B1020;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
  overflow: hidden;
}

/* Vignette effect for depth */
.app-main-area::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(11, 16, 32, 0.8) 100%);
  pointer-events: none;
  z-index: 0;
}

/* 2. Glassmorphic Widgets */
.app-widget {
  background: rgba(18, 24, 38, 0.6) !important; /* Override previous */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1; /* Above vignette */
}

.app-widget:hover {
  border-color: rgba(76, 134, 255, 0.4) !important;
  box-shadow: 0 0 30px rgba(76, 134, 255, 0.15), inset 0 0 20px rgba(76, 134, 255, 0.05);
  transform: translateY(-2px);
}

/* 3. Neon Accents & Controls */
.widget-header {
  background: linear-gradient(to right, rgba(255,255,255,0.03), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.control-pill.active {
  background: rgba(76, 134, 255, 0.15) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(76, 134, 255, 0.3);
  border: 1px solid rgba(76, 134, 255, 0.4);
  text-shadow: 0 0 8px rgba(76, 134, 255, 0.6);
}

/* 4. Chart Integration & Polish */
.widget-img-contain {
  filter: contrast(1.1) saturate(1.1);
  transition: transform 0.5s ease;
}

.app-widget:hover .widget-img-contain {
  transform: scale(1.02);
}

/* 5. Floating Glows */
.large-widget {
  position: relative;
  overflow: hidden;
}

.large-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(76, 134, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.large-widget:hover::before {
  opacity: 1;
}

/* --- New Tri-Grid Analytics Section --- */
.analytics-tri-section {
  position: relative;
  z-index: 1;
}

.tri-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.tri-card {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tri-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
  border-color: rgba(76, 134, 255, 0.3);
}

.tri-card-visual {
  height: 220px;
  background: #0B1020;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tri-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.tri-card:hover .tri-card-visual img {
  transform: scale(1.05);
}

.tri-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 50%, rgba(11, 16, 32, 0.4) 100%);
  pointer-events: none;
}

.tri-card-content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tri-icon {
  width: 40px;
  height: 40px;
  background: rgba(76, 134, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.tri-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.tri-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 992px) {
  .tri-chart-grid {
    grid-template-columns: 1fr;
  }
  .tri-card-visual {
    height: 260px;
  }
}

/* --- New Spacious Analytics Section (Zig-Zag) --- */
.analytics-spacious {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.spacious-features-list {
  display: flex;
  flex-direction: column;
  gap: 140px;
  margin-top: 100px;
}

.spacious-feature-row {
  display: flex;
  align-items: center;
  gap: 100px;
}

.spacious-feature-row.reversed {
  flex-direction: row-reverse;
}

/* Visual Side */
.spacious-visual {
  flex: 1.4;
  position: relative;
}

.visual-frame {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  backdrop-filter: blur(10px);
}

.spacious-feature-row:hover .visual-frame {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 60px 100px -30px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
}

.visual-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glow Blobs */
.glow-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
}

.spacious-feature-row:hover .glow-blob {
  opacity: 0.3;
}

.blob-blue { background: var(--primary); }
.blob-purple { background: #8B5CF6; }
.blob-green { background: #10B981; }

/* Content Side */
.spacious-content {
  flex: 1;
}

.spacious-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  color: var(--primary);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.spacious-content h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.spacious-content p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .spacious-feature-row,
  .spacious-feature-row.reversed {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  
  .spacious-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .spacious-features-list {
    gap: 100px;
  }
}

/* --- Premium Hero/CTA Section --- */
.cta-premium {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  background: #050810; /* Deep dark background */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 800px; /* Taller, more hero-like */
}

/* Background Layers */
.cta-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta-gradient-base {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, #1a233a 0%, #050810 60%);
}

.cta-grid-animated {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(1000px) rotateX(60deg) translateY(0);
  animation: gridMove 20s linear infinite;
  mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 70%, transparent 100%);
}

@keyframes gridMove {
  0% { transform: perspective(1000px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(1000px) rotateX(60deg) translateY(80px); }
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: floatOrb 10s ease-in-out infinite;
}

.orb-1 {
  top: 20%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(76, 134, 255, 0.2) 0%, transparent 70%);
  animation-delay: 0s;
}

.orb-2 {
  bottom: 10%;
  right: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(120, 80, 255, 0.15) 0%, transparent 70%);
  animation-delay: -5s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* Content */
.cta-content-premium {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-title-premium {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 32px;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

.cta-desc-premium {
  font-size: 24px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.2s forwards;
}

/* Buttons */
.cta-actions-premium {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 72px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.4s forwards;
}

.btn-premium-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  border-radius: 100px;
  background: #fff;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.btn-premium-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.4);
}

.btn-premium-secondary {
  display: inline-flex;
  align-items: center;
  padding: 20px 40px;
  border-radius: 100px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-premium-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Trust Badges */
.cta-trust-premium {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.6s forwards;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.trust-item:hover {
  color: #94a3b8;
}

.trust-item svg {
  opacity: 0.7;
}

.trust-divider {
  width: 4px;
  height: 4px;
  background: #334155;
  border-radius: 50%;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .cta-title-premium { font-size: 48px; }
  .cta-desc-premium { font-size: 18px; }
  .cta-actions-premium { flex-direction: column; width: 100%; max-width: 400px; margin-left: auto; margin-right: auto; }
  .btn-premium-primary, .btn-premium-secondary { width: 100%; justify-content: center; }
  .cta-trust-premium { flex-direction: column; gap: 16px; }
  .trust-divider { display: none; }
}

/* --- Sticky Navigation & Scroll Container --- */
.sticky-scroll-container {
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-nav-sticky {
  position: sticky;
  top: 20px;
  z-index: 100;
  margin-bottom: 40px;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.feature-nav-sticky .container {
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.feature-nav-sticky ul {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 16, 32, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  list-style: none;
  margin: 0;
}

.feature-nav-sticky li {
  margin: 0;
  padding: 0;
}

.feature-nav-sticky a {
  display: block;
  padding: 10px 24px;
  border-radius: 100px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-nav-sticky a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.feature-nav-sticky a.active {
  background: #fff;
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .feature-nav-sticky {
    top: 10px;
  }
  
  .feature-nav-sticky ul {
    width: calc(100% - 32px);
    margin: 0 auto;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 6px;
    border-radius: 100px;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .feature-nav-sticky ul::-webkit-scrollbar {
    display: none;
  }
  
  .feature-nav-sticky a {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 13px;
  }
}
