/* ==========================================================================
   VeyViz - Apple.com Style Complete CSS
   ========================================================================== */

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --apple-black: #000000;
  --apple-dark: #1d1d1f;
  --apple-gray: #86868b;
  --apple-light: #f5f5f7;
  --apple-white: #ffffff;
  --apple-blue: #0071e3;
  --nav-height: 48px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--apple-dark);
  background: var(--apple-white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   NAVIGATION - Black Apple Style (48px)
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-container {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--apple-light);
  font-size: 18px;
  font-weight: 600;
}

.brand svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 0;
  height: 100%;
}

.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn {
  font-size: 12px;
  padding: 6px 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-btn .icon {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

.mobile-drawer {
  display: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #0071e3;
  /* Precise Apple Blue */
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: #0077ed;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--apple-blue);
  border: 1px solid var(--apple-blue);
}

.btn-secondary:hover {
  background: var(--apple-blue);
  color: #fff;
}

.btn-sm {
  font-size: 12px;
  padding: 8px 14px;
}

.btn-lg {
  font-size: 17px;
  padding: 14px 28px;
}

.btn-ghost {
  background: transparent;
  color: var(--apple-blue);
}

.btn-link {
  background: none;
  border: none;
  color: var(--apple-blue);
  font-size: 21px;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
#app {
  padding-top: var(--nav-height);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ==========================================================================
   HERO CAROUSEL - Apple Style
   ========================================================================== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  background: #000;
}

.hero-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-slide-content {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.hero-slide-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-slide-tagline {
  font-size: 24px;
  margin: 0 0 24px;
  opacity: 0.9;
}

.hero-slide-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero-nav-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.hero-nav-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 5px;
}

/* Quick Stats Bar */
.quick-stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 22px;
  background: var(--apple-light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quick-stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--apple-dark);
  letter-spacing: -0.02em;
}

.quick-stat-label {
  font-size: 14px;
  color: var(--apple-gray);
  margin-top: 4px;
}

/* ==========================================================================
   HERO - Apple Centered Style (Legacy)
   ========================================================================== */
.hero-apple {
  padding: 60px 22px 20px;
  text-align: center;
  background: var(--apple-white);
}

.hero-apple-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-apple-title {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--apple-dark);
  margin: 0;
}

.hero-apple-subtitle {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #0071e3, #00c7be);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 20px;
}

.hero-apple-copy {
  font-size: 24px;
  line-height: 1.4;
  color: var(--apple-gray);
  margin: 0 0 28px;
}

.hero-apple-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.hero-apple-image {
  max-width: 100%;
}

/* ==========================================================================
   PRODUCT TILES - 2 Column Grid (Like Apple)
   ========================================================================== */
.hero-apple-image img {
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  /* Constrain vertical height */
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
}

/* Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.tile-section {
  padding: 12px;
  background: var(--apple-white);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  padding: 50px 40px 0;
  text-align: center;
}

.tile-light {
  background: var(--apple-light);
  color: var(--apple-dark);
}

.tile-dark {
  background: var(--apple-dark);
  color: #fff;
}

.tile-dark .tile-copy {
  color: rgba(255, 255, 255, 0.7);
}

.tile-dark .btn-link {
  color: #2997ff;
}

.tile-black {
  background: #000;
  color: #fff;
}

.tile-black .tile-copy {
  color: rgba(255, 255, 255, 0.7);
}

.tile-black .btn-link {
  color: #2997ff;
}

.tile-title {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 8px;
}

.tile-copy {
  font-size: 21px;
  line-height: 1.38;
  color: var(--apple-gray);
  margin: 0 0 16px;
}

.tile-cta {
  margin-bottom: 30px;
}

.tile-image {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 -40px;
}

.tile-image img {
  width: 100%;
  height: 100%;
  max-height: 350px;
  object-fit: cover;
  object-position: top center;
}

.tile-full {
  grid-column: span 2;
  min-height: 300px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--apple-light);
  padding: 40px 22px 20px;
  font-size: 12px;
  color: var(--apple-gray);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 980px;
  margin: 0 auto 30px;
}

.footer-brand {
  font-size: 14px;
}

.footer-brand .brand {
  color: var(--apple-dark);
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--apple-gray);
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 20px;
  height: 20px;
  color: var(--apple-gray);
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--apple-dark);
}

.social-link svg {
  width: 100%;
  height: 100%;
}

.footer-links-group h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-dark);
  margin-bottom: 12px;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-group a {
  color: var(--apple-gray);
  transition: color 0.2s;
}

.footer-links-group a:hover {
  color: var(--apple-dark);
}

.footer-bottom {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #d2d2d7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deployment-badges {
  display: flex;
  gap: 12px;
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #e8e8ed;
  color: var(--apple-gray);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1068px) {

  .hero-apple-title,
  .hero-apple-subtitle {
    font-size: 48px;
  }

  .tile-title {
    font-size: 32px;
  }
}

@media (max-width: 734px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .tile-full {
    grid-column: span 1;
  }

  .hero-apple-title,
  .hero-apple-subtitle {
    font-size: 36px;
  }

  .tile {
    min-height: 450px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.hide-mobile {
  display: inline-flex;
}

@media (max-width: 734px) {
  .hide-mobile {
    display: none;
  }
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.mt-8 {
  margin-top: 32px;
}

.mt-12 {
  margin-top: 48px;
}

.mt-16 {
  margin-top: 64px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mb-8 {
  margin-bottom: 32px;
}

/* ==========================================================================
   OTHER PAGES - Basic Styles
   ========================================================================== */
/* ==========================================================================
   OTHER PAGES - Basic Styles
   ========================================================================== */
.section {
  padding: 60px 22px;
}

.section-head {
  max-width: 800px;
  margin-bottom: 32px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.003em;
  color: var(--apple-dark);
  margin: 0 0 16px;
}

.section-head .lead {
  font-size: 21px;
  line-height: 1.38;
  color: var(--apple-gray);
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 734px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: 32px;
  }
}

/* Cards */
.card {
  background: var(--apple-light);
  border-radius: 18px;
  padding: 32px;
}

/* Icons */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Solutions Slider (Apple Style) */
/* Solutions Grid (Restored) */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding-bottom: 0;
  margin: 0;
}

.solution-card-large {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  height: auto;
  /* Allow flexible height */
  min-height: 480px;
}

.solution-card-large:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.solution-img-large {
  height: 200px;
  overflow: hidden;
}

.solution-img-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-content {
  padding: 24px;
}

.solution-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--apple-dark);
}

.solution-tagline {
  font-size: 17px;
  color: var(--apple-gray);
  margin: 0 0 8px;
}

.small {
  font-size: 14px;
  color: var(--apple-gray);
}

.lead {
  font-size: 21px;
  color: var(--apple-gray);
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 980px;
  background: var(--apple-blue);
  color: #fff;
}

.badge-muted {
  background: #e8e8ed;
  color: var(--apple-gray);
}

/* Feature tags */
.feature-tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  margin: 2px;
  border-radius: 4px;
  background: #e8e8ed;
  color: var(--apple-gray);
}

/* Solution stat badge */
.solution-stat-badge {
  display: inline-flex;
  flex-direction: column;
  background: var(--apple-blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.solution-stat-badge .stat-value {
  font-size: 24px;
  font-weight: 700;
}

.solution-stat-badge .stat-label {
  font-size: 11px;
  text-transform: uppercase;
}

/* ==========================================================================
   PLATFORM PAGE
   ========================================================================== */
.bg-blob {
  display: none;
}

.platform-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.platform-feature {
  background: var(--apple-light);
  border-radius: 18px;
  padding: 32px;
}

.platform-feature h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--apple-dark);
}

.platform-feature p {
  font-size: 17px;
  color: var(--apple-gray);
  line-height: 1.5;
  margin: 0;
}

.integration-strip {
  margin-top: 48px;
  text-align: center;
}

.integration-strip h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--apple-dark);
}

.integration-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.integration-logos span {
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-gray);
  letter-spacing: 0.05em;
}

.deployment-options {
  margin-top: 48px;
}

/* ==========================================================================
   PRICING PAGE
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.pricing-card {
  background: var(--apple-light);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  position: relative;
}

.pricing-card.popular {
  background: var(--apple-dark);
  color: #fff;
}

.pricing-card.popular .pricing-price,
.pricing-card.popular h3 {
  color: #fff;
}

.pricing-card.popular .pricing-features li {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--apple-blue);
  color: #fff;
  font-size: 12px;
  padding: 4px 16px;
  border-radius: 980px;
}

.pricing-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--apple-dark);
}

.pricing-card .tier-tagline {
  font-size: 14px;
  color: var(--apple-gray);
  margin: 0 0 24px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--apple-dark);
  margin: 0 0 8px;
}

.pricing-price span {
  font-size: 17px;
  font-weight: 400;
}

.pricing-features {
  text-align: left;
  margin: 24px 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--apple-gray);
}

.pricing-features li .icon {
  width: 16px;
  height: 16px;
  color: var(--apple-blue);
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--apple-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 17px;
  font-family: var(--font);
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--apple-blue);
}

.form-note {
  font-size: 12px;
  color: var(--apple-gray);
  text-align: center;
  margin-top: 16px;
}

.form-note a {
  color: var(--apple-blue);
}

/* ==========================================================================
   DEMO PAGE (Refined)
   ========================================================================== */
.demo-wrapper {
  min-height: 100vh;
  background: #000;
  /* Deep black for immersion */
  color: #fff;
  overflow: hidden;
  /* Prevent scrolling */
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(28, 28, 30, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 56px;
}

.demo-header .brand {
  color: #fff;
}

.demo-grid {
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  /* Tighter sidebars */
  gap: 8px;
  /* Minimal gap */
  padding: 8px;
  height: calc(100vh - 56px);
}

.demo-sidebar,
.demo-alerts {
  background: #1c1c1e;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-sidebar {
  padding: 12px;
}

.demo-sidebar-title {
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.demo-cam-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
}

.demo-cam-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.demo-cam-item.active {
  background: rgba(0, 113, 227, 0.2);
  color: #2997ff;
}

.demo-cam-item .icon {
  width: 16px;
  height: 16px;
}

.demo-main {
  display: flex;
  flex-direction: column;
  background: #1c1c1e;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.demo-main-header {
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #ff3b30;
  /* Apple Red */
  letter-spacing: 0.05em;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #ff3b30;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.demo-feed-container {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* AI Bounding Boxes - Realistic Style */
.demo-overlay-box {
  position: absolute;
  border: 2px solid;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  /* Shadow for contrast */
  background: rgba(0, 0, 0, 0.1);
  /* Slight darken to make text pop */
  transition: all 0.3s ease-out;
  pointer-events: none;
}

.demo-overlay-box::before,
.demo-overlay-box::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  transition: all 0.3s;
  opacity: 0.8;
}

/* Corner styles */
.demo-overlay-box::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.demo-overlay-box::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.demo-overlay-box.zone-danger {
  border-color: #ff3b30;
}

.demo-overlay-box.zone-danger::before,
.demo-overlay-box.zone-danger::after {
  border-color: #ff3b30;
}

.demo-overlay-box.zone-danger .demo-overlay-label {
  background: #ff3b30;
}

.demo-overlay-box.zone-warning {
  border-color: #ffcc00;
}

.demo-overlay-box.zone-warning::before,
.demo-overlay-box.zone-warning::after {
  border-color: #ffcc00;
}

.demo-overlay-box.zone-warning .demo-overlay-label {
  background: #ffcc00;
  color: #000;
}

.demo-overlay-box.zone-info {
  border-color: #2997ff;
}

.demo-overlay-box.zone-info::before,
.demo-overlay-box.zone-info::after {
  border-color: #2997ff;
}

.demo-overlay-box.zone-info .demo-overlay-label {
  background: #2997ff;
}

.demo-overlay-box.zone-success {
  border-color: #30d158;
}

.demo-overlay-box.zone-success::before,
.demo-overlay-box.zone-success::after {
  border-color: #30d158;
}

.demo-overlay-box.zone-success .demo-overlay-label {
  background: #30d158;
  color: #000;
}

/* Pulse Animation for active detection */
.demo-overlay-box.animate {
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.2);
}

.demo-overlay-label {
  position: absolute;
  top: -22px;
  left: -2px;
  padding: 2px 6px;
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  /* Tech font */
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Pricing Card Fixes */
.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Equal height */
}

.pricing-features {
  flex: 1;
  /* Push button to bottom */
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

.pricing-badge {
  top: -16px;
  /* Adjust badge position */
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* Hero Spacing Fix */
.hero-content {
  margin-top: -20px;
  /* Slight lift */
}

.nav-actions {
  gap: 12px;
  /* Breathing room */
}

/* Hover States */
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Floating Controls Overlay */
.demo-controls-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(28, 28, 30, 0.85);
  /* Apple dark glass */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px;
  border-radius: 980px;
  /* Pill shape */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}

.demo-feed-container:hover .demo-controls-overlay {
  opacity: 1;
}

.demo-control-glass {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s;
}

.demo-control-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.05);
}

.demo-control-glass.active {
  color: #2997ff;
  background: rgba(41, 151, 255, 0.1);
}

.demo-control-glass .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.divider-vertical {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

/* Alerts Panel */
.alert-header {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-list {
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}

.alert-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 6px;
  border-left: 2px solid;
  transition: transform 0.2s;
}

.alert-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.alert-card.danger {
  border-left-color: #ff3b30;
}

.alert-card.warn {
  border-left-color: #ffcc00;
}

.alert-card.info {
  border-left-color: #2997ff;
}

.alert-time {
  font-size: 10px;
  color: #86868b;
  margin-bottom: 2px;
}

.alert-title {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.9);
}

.alert-loc {
  font-size: 11px;
  color: #86868b;
}

@media (max-width: 768px) {
  .demo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    height: auto;
    overflow-y: auto;
  }

  .demo-sidebar,
  .demo-alerts {
    display: none;
    /* Hide sidebars on mobile for focus */
  }

  .demo-controls-overlay {
    opacity: 1;
    /* Always show controls on mobile */
    bottom: 16px;
  }
}

/* ==========================================================================
   FAQ / ACCORDION
   ========================================================================== */
.faq-section {
  margin-top: 48px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--apple-light);
  border-radius: 12px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 500;
}

.accordion-header .icon {
  transition: transform 0.2s;
}

.accordion-body {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--apple-gray);
  line-height: 1.6;
}

/* ==========================================================================
   CTA CARDS
   ========================================================================== */
.cta-card {
  background: var(--apple-blue);
  border-radius: 18px;
  padding: 48px;
  text-align: center;
  color: #fff;
}

.cta-card h2 {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #fff;
}

.cta-card p {
  font-size: 17px;
  opacity: 0.9;
  margin: 0 0 24px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.cta-card .btn-primary {
  background: #fff;
  color: var(--apple-blue);
}

.cta-card .btn-secondary {
  border-color: #fff;
  color: #fff;
}

/* ==========================================================================
   SOLUTION DETAIL PAGE
   ========================================================================== */
.solution-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 400px;
}

.solution-hero-img {
  position: absolute;
  inset: 0;
}

.solution-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-hero-overlay {
  position: relative;
  z-index: 1;
  padding: 48px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 50%;
}

.solution-hero-overlay h1 {
  font-size: 48px;
  font-weight: 600;
  margin: 0 0 16px;
}

.solution-hero-overlay .lead {
  color: rgba(255, 255, 255, 0.8);
}

.solution-stat-large {
  display: inline-flex;
  flex-direction: column;
  background: var(--apple-blue);
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.solution-stat-large .stat-value {
  font-size: 32px;
  font-weight: 700;
}

.solution-stat-large .stat-label {
  font-size: 12px;
  text-transform: uppercase;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--apple-light);
  border-radius: 8px;
}

.feature-item .icon {
  color: var(--apple-blue);
}

.use-case-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.use-case-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--apple-light);
  border-radius: 8px;
}

.use-case-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--apple-blue);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE - OTHER PAGES
   ========================================================================== */
@media (max-width: 734px) {

  .platform-features,
  .pricing-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .demo-content {
    grid-template-columns: 1fr;
  }

  .demo-sidebar {
    display: none;
  }

  .solution-hero-overlay {
    max-width: 100%;
  }
}