/* ========================================
   KI·SUM·AI - Apple-style Glassmorphism
   ======================================== */

/* Glass Card Base */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

/* Top edge light refraction */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent);
  z-index: 1;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 8px 40px rgba(0, 245, 255, 0.12),
    0 0 0 1px rgba(0, 245, 255, 0.1);
  transform: translateY(-6px);
}

/* Product Glass Card */
.glass-product-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.glass-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent);
}

/* Subtle gradient overlay on hover */
.glass-product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 245, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.glass-product-card:hover::after {
  opacity: 1;
}

.glass-product-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 12px 48px rgba(0, 245, 255, 0.1),
    0 0 0 1px rgba(0, 245, 255, 0.08);
  transform: translateY(-8px) scale(1.01);
}

.glass-product-card > * {
  position: relative;
  z-index: 1;
}

/* Product icon */
.glass-product-card .product-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 245, 255, 0.3));
}

.glass-product-card .product-icon-img {
  margin-bottom: 1rem;
}

.glass-product-card .product-icon-img img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 245, 255, 0.3));
}

.glass-product-card .product-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.glass-product-card .product-tagline {
  font-size: 0.95rem;
  color: var(--secondary-accent);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.glass-product-card .product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  width: 100%;
  text-align: left;
}

.glass-product-card .product-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.glass-product-card .product-features li::before {
  content: '\2713';
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.glass-product-card .product-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.glass-product-card .product-cta {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Glass Buttons */
.glass-btn {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 0.8rem 2rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 20px rgba(0, 245, 255, 0.15);
  transform: translateY(-2px);
}

.glass-btn.primary {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
  border-color: rgba(102, 126, 234, 0.3);
}

.glass-btn.primary:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 24px rgba(102, 126, 234, 0.3);
}

/* Glass Header */
.glass-header {
  background: rgba(10, 14, 39, 0.6) !important;
  backdrop-filter: blur(40px) !important;
  -webkit-backdrop-filter: blur(40px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.glass-header.scrolled {
  background: rgba(10, 14, 39, 0.85) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Glass Section Titles */
.glass-section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.glass-section-title h2 {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.glass-section-title p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* About / Stats Glass Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.stat-card .stat-label {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.stat-card .stat-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Feature Glass Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.feature-glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.feature-glass-card .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-glass-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-glass-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Glass Hero Enhancement */
.glass-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.glass-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--accent-color), var(--secondary-accent), #fff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
  margin-bottom: 1rem;
}

.glass-hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.glass-hero .description {
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

.glass-hero .hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Site Preview - Browser Window Frame
   ======================================== */
.site-preview {
  width: calc(100% + 4rem);
  margin: -2.5rem -2rem 1.5rem -2rem;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-titlebar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: rgba(30, 30, 40, 0.8);
  gap: 8px;
}

.preview-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.preview-dot.red { background: #ff5f57; }
.preview-dot.yellow { background: #ffbd2e; }
.preview-dot.green { background: #28c840; }

.preview-url {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 16px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0e27;
}

.preview-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-product-card:hover .preview-body img {
  transform: scale(1.05);
}

/* Gradient fade at bottom of preview */
.preview-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(10, 14, 39, 0.5));
  pointer-events: none;
}

/* Product Brand Logo */
.product-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.product-brand-logo .brand-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.product-brand-logo .brand-text {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

/* BOT brand logo */
.bot-brand {
  font-size: 1.6rem;
  gap: 0.15em;
  color: #e2e8f0;
}

/* MASK brand logo */
.mask-brand {
  font-size: 1.3rem;
  gap: 0.5rem;
}

.mask-brand .brand-logo-icon {
  height: 2.5em;
  width: auto;
}

.mask-brand .mask-text {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, 'Courier New', monospace;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.mask-brand .mask-ai {
  color: #475569;
}

/* ========================================
   Compliance Dashboard Preview (Dark)
   ======================================== */
.compliance-preview {
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.06), #0a0e27, rgba(13, 148, 136, 0.04)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1rem;
}

.compliance-dash {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  padding: 0.9rem 1rem;
  width: 80%;
  max-width: 260px;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

.cdash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cdash-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cdash-label-text {
  display: flex;
  flex-direction: column;
}

.cdash-type {
  font-size: 0.55rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.2;
}

.cdash-risk {
  font-size: 0.7rem;
  color: #f1f5f9;
  font-weight: 700;
  line-height: 1.2;
}

.cdash-badge {
  background: rgba(13, 148, 136, 0.2);
  color: #2dd4bf;
  font-size: 0.55rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  white-space: nowrap;
}

.cdash-ring-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0.4rem auto;
}

.cdash-ring {
  width: 100%;
  height: 100%;
}

.cdash-ring-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.cdash-percent {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #2dd4bf;
  line-height: 1;
}

.cdash-konform {
  display: block;
  font-size: 0.5rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 0.1rem;
}

.cdash-items {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.cdash-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.55rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
}

.cdash-item svg {
  flex-shrink: 0;
}

.cdash-item.cdash-warn {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

.cdash-pdf {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  justify-content: flex-end;
}

.cdash-pdf-label {
  font-size: 0.45rem;
  color: #64748b;
}

.cdash-pdf-link {
  font-size: 0.5rem;
  color: #2dd4bf;
  font-weight: 700;
}

/* ========================================
   AI Product Assistant Chat Preview
   ======================================== */
.assistant-preview {
  background: linear-gradient(145deg, rgba(0, 245, 255, 0.04), #0a0e27, rgba(102, 126, 234, 0.04)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
}

.assistant-demo {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 88%;
  max-width: 280px;
  overflow: hidden;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

.ademo-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.ademo-name {
  font-size: 0.58rem;
  color: #e2e8f0;
  font-weight: 600;
}

.ademo-online {
  font-size: 0.42rem;
  color: #22c55e;
  margin-left: auto;
}

.ademo-messages {
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ademo-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.35), rgba(118, 75, 162, 0.3));
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: 10px 10px 2px 10px;
  padding: 0.35rem 0.5rem;
  font-size: 0.5rem;
  color: #e2e8f0;
  max-width: 80%;
}

.ademo-msg-ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px 10px 10px 2px;
  padding: 0.4rem 0.5rem;
  max-width: 92%;
}

.ademo-ai-text {
  font-size: 0.48rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.35rem;
}

.ademo-products {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ademo-prod {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
}

.ademo-prod-emoji {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ademo-prod-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ademo-prod-name {
  font-size: 0.48rem;
  color: #e2e8f0;
  font-weight: 600;
}

.ademo-prod-price {
  font-size: 0.44rem;
  color: var(--accent-color, #00f5ff);
  font-weight: 700;
}

.ademo-prod-stars {
  margin-left: auto;
  font-size: 0.42rem;
  color: #fbbf24;
  flex-shrink: 0;
}

.ademo-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.46rem;
  color: #475569;
}

/* Adjust card padding when using preview */
.glass-product-card.has-preview {
  padding-top: 0;
}

.glass-product-card.has-preview .product-name {
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .glass-product-card {
    padding: 2rem 1.5rem;
  }

  .site-preview {
    width: calc(100% + 3rem);
    margin: -2rem -1.5rem 1.5rem -1.5rem;
  }

  .glass-hero {
    padding: 6rem 1.5rem 3rem;
  }
}
