/* ========================================================
   VedaaChari Typography Stack: Fraunces (Headings) + Hind (Body)
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500..800&family=Hind:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Apple Global Navigation & Interconnected Ecosystem Bar
   Zero-bloat, vanilla CSS following Ponytail senior dev principles.
   Inspired by Apple.com navigation, Bento Grids, and macOS Control Center. */

:root {
  --apple-font: 'Hind', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --apple-serif: 'Fraunces', Georgia, serif;
  --apple-mono: "JetBrains Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;
  --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --apple-nav-bg: rgba(18, 18, 22, 0.82);
  --apple-nav-border: rgba(255, 255, 255, 0.08);
  --apple-flyout-bg: rgba(24, 25, 32, 0.94);
}

/* Global Heading Typography using VedaaChari Fraunces */
.apple-section-title,
.bento-title,
.card-title,
.bento-value-quote,
h1, h2, h3 {
  font-family: var(--apple-serif), 'Fraunces', Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.035em !important;
}

/* Global Body Typography using VedaaChari Hind */
body, p, .apple-section-sub, .bento-desc, .card-desc, .apple-brand, .apple-flyout-text, .pill, .btn {
  font-family: var(--apple-font), 'Hind', -apple-system, sans-serif;
}


/* Floating Frosted Glass Bar */
.apple-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--apple-nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--apple-nav-border);
  z-index: 9999;
  font-family: var(--apple-font);
  transition: background 0.3s var(--apple-ease), border-color 0.3s var(--apple-ease);
}

.apple-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.apple-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f5f5f7;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}
.apple-brand:hover { opacity: 0.8; }
.apple-brand-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* Ecosystem Switcher Button */
.apple-ecosystem-wrapper {
  position: relative;
}

.apple-ecosystem-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 980px;
  padding: 6px 14px;
  color: #f5f5f7;
  font-family: var(--apple-font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--apple-ease);
  outline: none;
}
.apple-ecosystem-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}
.apple-ecosystem-btn:active {
  transform: scale(0.98);
}
.apple-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 8px #34c759;
  animation: applePulse 2s infinite;
}
@keyframes applePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.apple-chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.25s var(--apple-ease);
}
.apple-ecosystem-btn[aria-expanded="true"] .apple-chevron {
  transform: rotate(180deg);
}

/* Expandable Apple Flyout Bento Menu */
.apple-flyout {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.97);
  width: 680px;
  max-width: calc(100vw - 32px);
  background: var(--apple-flyout-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--apple-ease), transform 0.25s var(--apple-ease);
  z-index: 10000;
}
.apple-flyout.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.apple-flyout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86868b;
  font-weight: 600;
}
.apple-flyout-badge {
  color: #34c759;
  font-family: var(--apple-mono);
}

/* Flyout 2-column Bento Grid */
.apple-flyout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.apple-flyout-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: #f5f5f7;
  transition: all 0.2s var(--apple-ease);
  position: relative;
  overflow: hidden;
}
.apple-flyout-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.apple-flyout-item.is-current {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}
.apple-flyout-item.is-current::after {
  content: 'CURRENT';
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 0.62rem;
  font-family: var(--apple-mono);
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

.apple-flyout-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
/* Unique Color Schemas for Icons */
.theme-hub .apple-flyout-icon-box { background: rgba(0, 113, 227, 0.2); color: #2997ff; border: 1px solid rgba(0, 113, 227, 0.35); }
.theme-omsetra .apple-flyout-icon-box { background: rgba(0, 208, 132, 0.2); color: #00d084; border: 1px solid rgba(0, 208, 132, 0.35); }
.theme-freellm .apple-flyout-icon-box { background: rgba(139, 92, 246, 0.2); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.35); }
.theme-agentwire .apple-flyout-icon-box { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }
.theme-seo .apple-flyout-icon-box { background: rgba(255, 107, 74, 0.2); color: #ff6b4a; border: 1px solid rgba(255, 107, 74, 0.35); }
.theme-rea .apple-flyout-icon-box { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.35); }
.theme-studio .apple-flyout-icon-box { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.35); }

.apple-flyout-text {
  display: flex;
  flex-direction: column;
}
.apple-flyout-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}
.apple-flyout-desc {
  font-size: 0.74rem;
  color: #86868b;
  margin-top: 1px;
}

.apple-flyout-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: #86868b;
}
.apple-flyout-footer a {
  color: #2997ff;
  text-decoration: none;
}
.apple-flyout-footer a:hover { text-decoration: underline; }

/* Right Nav Links */
.apple-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.apple-nav-link {
  color: #86868b;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}
.apple-nav-link:hover { color: #f5f5f7; }
.apple-nav-link.is-pill {
  background: #0071e3;
  color: #fff;
  padding: 4px 12px;
  border-radius: 980px;
  font-size: 0.78rem;
  font-weight: 600;
}
.apple-nav-link.is-pill:hover { background: #0077ed; }

/* Responsive */
@media (max-width: 768px) {
  .apple-flyout {
    width: calc(100vw - 20px);
    padding: 16px;
  }
  .apple-flyout-grid {
    grid-template-columns: 1fr;
  }
  .apple-nav-links {
    display: none;
  }
}


/* ========================================================
   Apple Bento Grid & Scrollytelling Architecture
   ======================================================== */

.apple-architecture-section {
  padding: 60px 0 80px;
  position: relative;
}

.apple-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}
.apple-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2997ff;
  margin-bottom: 12px;
  font-family: var(--apple-mono);
}
.apple-section-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #f5f5f7;
  margin-bottom: 18px;
}
.apple-section-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #86868b;
}

/* 12-Column Asymmetric Bento Grid */
.apple-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

/* Base Bento Card */
.bento-card {
  background: rgba(26, 26, 32, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s var(--apple-ease), border-color 0.4s var(--apple-ease), box-shadow 0.4s var(--apple-ease);
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-4px) scale(1.006);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Scrollytelling Reveal Animation */
[data-apple-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--apple-ease), transform 0.8s var(--apple-ease);
}
[data-apple-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Column Spans */
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* Bento Typography & Elements */
.bento-badge {
  font-size: 0.72rem;
  font-family: var(--apple-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #86868b;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.bento-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}
.bento-desc {
  font-size: 0.96rem;
  color: #a1a1a6;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Tri-Feature Sub-List in Infrastructure Card */
.bento-tri-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.bento-sub-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  text-decoration: none;
  color: #f5f5f7;
  transition: all 0.25s var(--apple-ease);
}
.bento-sub-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(4px);
}
.bento-sub-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}
.bento-sub-item strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
}
.bento-sub-item span {
  font-size: 0.78rem;
  color: #86868b;
}
.bento-sub-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: #86868b;
  transition: transform 0.2s var(--apple-ease);
}
.bento-sub-item:hover .bento-sub-arrow {
  color: #2997ff;
  transform: translateX(3px);
}

.bento-footer-stat {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stat-pill {
  font-size: 0.72rem;
  font-family: var(--apple-mono);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 980px;
  color: #86868b;
}

/* Radar Pulse in AgentWire Card */
.bento-radar-meter {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}
.radar-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #60a5fa;
  font-family: var(--apple-mono);
  line-height: 1;
  margin-bottom: 6px;
}
.radar-label {
  font-size: 0.72rem;
  font-family: var(--apple-mono);
  color: #86868b;
  letter-spacing: 0.06em;
}

/* Action Buttons */
.bento-action-btn {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  background: #0071e3;
  color: #fff;
  padding: 12px 20px;
  border-radius: 980px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--apple-ease);
}
.bento-action-btn:hover {
  background: #0077ed;
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.4);
}
.btn-emerald { background: #00d084; color: #041009; }
.btn-emerald:hover { background: #10b981; box-shadow: 0 4px 16px rgba(0, 208, 132, 0.4); color: #fff; }
.btn-violet { background: #8b5cf6; color: #fff; }
.btn-violet:hover { background: #7c3aed; box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4); }
.btn-amber { background: #f59e0b; color: #000; }
.btn-amber:hover { background: #d97706; box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4); color: #fff; }

.bento-app-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}
.bento-app-meta {
  display: flex;
  gap: 12px;
  font-size: 0.76rem;
  font-family: var(--apple-mono);
  color: #86868b;
  margin-bottom: 24px;
}

/* Layer 3 - Value Guarantee Banner */
.bento-value {
  background: linear-gradient(135deg, rgba(28, 28, 36, 0.85) 0%, rgba(18, 18, 24, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.bento-value-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.bento-value-quote {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.25;
  max-width: 650px;
}
.bento-value-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.val-stat {
  display: flex;
  flex-direction: column;
}
.val-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--apple-mono);
}
.val-label {
  font-size: 0.72rem;
  font-family: var(--apple-mono);
  color: #86868b;
  letter-spacing: 0.06em;
}

/* Unique Card Theme Borders & Highlights */
.theme-titanium:hover { border-color: rgba(41, 151, 255, 0.35); }
.theme-omsetra:hover { border-color: rgba(0, 208, 132, 0.4); }
.theme-freellm:hover { border-color: rgba(139, 92, 246, 0.4); }
.theme-agentwire:hover { border-color: rgba(59, 130, 246, 0.4); }
.theme-vedaa:hover { border-color: rgba(245, 158, 11, 0.4); }

@media (max-width: 1024px) {
  .span-8, .span-4 { grid-column: span 12; }
}
@media (max-width: 768px) {
  .apple-bento-grid { grid-template-columns: 1fr; gap: 16px; }
  .bento-card { padding: 24px; border-radius: 22px; }
  .bento-value-inner { flex-direction: column; align-items: flex-start; }
  .bento-value-stats { gap: 20px; }
}

.apple-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}

.apple-brand-icon svg,
.apple-brand-icon img,
.op-nav-svg {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  border-radius: 6px;
}
