/* ═══════════════════════════════════════════════
   KAYLO — Shared Styles
   Brand: Navy #18266a · Light #d5d7e2 · Manrope
   ═══════════════════════════════════════════════ */

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

:root {
  --navy: #18266a;
  --navy-deep: #0f1845;
  --navy-mid: #1e3080;
  --navy-light: #2a3a90;
  --light: #d5d7e2;
  --light-dim: #b0b5d0;
  --light-bg: #f0f1f5;
  --white: #ffffff;
  --muted: #7a80a0;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Manrope', sans-serif; color: var(--white); background: var(--navy); overflow-x: hidden; }
::selection { background: rgba(213, 215, 226, 0.25); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 3px; }

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 48px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: all 0.5s var(--ease);
}
.nav-logo { grid-column: 1; justify-self: start; }
.nav-links { grid-column: 2; }
.nav-cta { grid-column: 3; justify-self: end; }
.nav-toggle { grid-column: 3; justify-self: end; }
nav.scrolled {
  padding: 14px 48px;
  background: rgba(24, 38, 106, 0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(213, 215, 226, 0.06);
}

/* Kaylo Logo */
.nav-logo { display: flex; align-items: center; line-height: 0; }
.nav-logo svg { height: 26px; width: auto; vertical-align: middle; }
.nav-logo-img { height: 26px; width: auto; display: block; vertical-align: middle; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--light); opacity: 0.55;
  letter-spacing: 0.015em; transition: opacity 0.3s ease; position: relative;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 20%; right: 20%;
  height: 1.5px; background: var(--light); border-radius: 1px;
}

.nav-cta {
  padding: 9px 22px; background: var(--white); color: var(--navy);
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600;
  border-radius: 100px; border: none; cursor: pointer;
  transition: all 0.4s var(--ease); letter-spacing: 0.01em;
  align-self: center; flex-shrink: 0; line-height: 1;
}
.nav-cta:hover { transform: scale(1.03); box-shadow: 0 8px 28px rgba(213,215,226,0.18); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--white); margin: 5px 0; transition: 0.3s; }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; background: var(--white); color: var(--navy);
  font-family: 'Manrope', sans-serif; font-size: 14.5px; font-weight: 600;
  border-radius: 100px; border: none; cursor: pointer;
  transition: all 0.4s var(--ease); letter-spacing: 0.01em;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(213,215,226,0.15); }
.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: transparent; color: var(--light);
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 500;
  border: 1px solid rgba(213,215,226,0.18); border-radius: 100px;
  cursor: pointer; transition: all 0.4s var(--ease);
}
.btn-outline:hover { border-color: rgba(213,215,226,0.4); background: rgba(213,215,226,0.04); }

.btn-navy {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; background: var(--navy); color: var(--white);
  font-family: 'Manrope', sans-serif; font-size: 14.5px; font-weight: 600;
  border-radius: 100px; border: none; cursor: pointer;
  transition: all 0.4s var(--ease);
}
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(24,38,106,0.25); }

/* ═══════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.section { padding: 160px 48px; }
.section-sm { padding: 100px 48px; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--light); opacity: 0.4; margin-bottom: 20px;
}
.section-label::before, .section-label::after { content: ''; width: 20px; height: 1px; background: currentColor; opacity: 0.5; }
.section-label-dark { color: var(--navy); }

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.25s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════
   HERO (shared)
   ═══════════════════════════════════════════════ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 140px 48px 100px; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 860px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border: 1px solid rgba(213,215,226,0.12); border-radius: 100px;
  font-size: 11.5px; font-weight: 500; color: var(--light); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 36px; opacity: 0; animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.hero-badge-dot { width: 6px; height: 6px; background: rgba(255,189,46,0.8); border-radius: 50%; animation: pulse 2s ease-in-out infinite; box-shadow: 0 0 6px rgba(255,189,46,0.4); }

.hero h1 {
  font-size: clamp(38px, 5.5vw, 76px); font-weight: 300; line-height: 1.06;
  letter-spacing: -0.035em; margin-bottom: 26px; opacity: 0; animation: fadeUp 1s var(--ease) 0.4s forwards;
}
.hero h1 strong { font-weight: 600; }

.hero-sub {
  font-size: clamp(15px, 1.6vw, 19px); font-weight: 400; color: var(--light);
  opacity: 0; line-height: 1.65; max-width: 540px; margin: 0 auto 44px;
  animation: fadeUp 1s var(--ease) 0.6s forwards;
}
.hero-sub span { opacity: 0.55; }

.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 16px; opacity: 0; animation: fadeUp 1s var(--ease) 0.8s forwards; }

/* Scroll indicator */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  opacity: 0; animation: fadeUp 1s var(--ease) 1.2s forwards;
}
.scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--light), transparent); animation: scrollAnim 2s ease-in-out infinite; }
@keyframes scrollAnim { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Page hero (non-home) */
.page-hero { min-height: 60vh; padding: 180px 48px 100px; }
.page-hero h1 { font-size: clamp(36px, 4.5vw, 64px); }

/* ═══════════════════════════════════════════════
   HERO PATTERN ANIMATION
   ═══════════════════════════════════════════════ */
.hero-canvas-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ═══════════════════════════════════════════════
   SECTION: LIGHT BACKGROUND
   ═══════════════════════════════════════════════ */
.bg-light { background: var(--white); color: var(--navy); }
.bg-light-alt { background: var(--light-bg); color: var(--navy); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy-deep { background: var(--navy-deep); color: var(--white); }

/* ═══════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════ */
.card {
  background: var(--white); border-radius: 20px; padding: 44px 32px;
  border: 1px solid rgba(24,38,106,0.04); transition: all 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(24,38,106,0.07); }

.card-dark {
  background: rgba(213,215,226,0.03); border-radius: 20px; padding: 44px 32px;
  border: 1px solid rgba(213,215,226,0.06); transition: all 0.5s var(--ease);
}
.card-dark:hover { border-color: rgba(213,215,226,0.12); background: rgba(213,215,226,0.05); }

.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.card-icon svg { width: 20px; height: 20px; }
.card-icon-light { background: var(--light-bg); }
.card-icon-light svg path { stroke: var(--navy); }

.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.card p, .card-dark p { font-size: 14.5px; line-height: 1.65; color: var(--muted); font-weight: 400; }
.card-dark h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.card-dark p { color: var(--light-dim); }

/* ═══════════════════════════════════════════════
   GRID LAYOUTS
   ═══════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ═══════════════════════════════════════════════
   PRODUCT DEMO WINDOW
   ═══════════════════════════════════════════════ */
.demo-window {
  background: var(--navy-deep); border-radius: 16px;
  border: 1px solid rgba(213,215,226,0.06); overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.35);
}
.demo-toolbar {
  display: flex; align-items: center; gap: 7px; padding: 13px 18px;
  border-bottom: 1px solid rgba(213,215,226,0.04);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot:nth-child(1) { background: rgba(255,95,86,0.65); }
.demo-dot:nth-child(2) { background: rgba(255,189,46,0.65); }
.demo-dot:nth-child(3) { background: rgba(39,201,63,0.65); }
.demo-toolbar-title { flex: 1; text-align: center; font-size: 12px; color: var(--light); opacity: 0.3; font-weight: 500; }

.demo-body { padding: 32px; min-height: 420px; position: relative; overflow: hidden; }

/* Shimmer lines */
.shimmer-line {
  height: 8px; border-radius: 4px; margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(213,215,226,0.05) 0%, rgba(213,215,226,0.1) 50%, rgba(213,215,226,0.05) 100%);
  background-size: 200% 100%; animation: shimmer 2s ease-in-out infinite;
}
.shimmer-line:last-child { margin-bottom: 0; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Source tags */
.source-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; background: rgba(213,215,226,0.05);
  border: 1px solid rgba(213,215,226,0.08); border-radius: 6px;
  font-size: 11px; color: var(--light); opacity: 0.45;
}
.source-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.5; }

/* ═══════════════════════════════════════════════
   EXPANDING FRAMES (CTA background)
   ═══════════════════════════════════════════════ */
.ring {
  position: absolute; top: 50%; left: 50%;
  border: 1px solid rgba(213,215,226,0.06); border-radius: 0;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: frameExpand 9s ease-out infinite;
}
.ring:nth-child(2) { animation-delay: 3s; }
.ring:nth-child(3) { animation-delay: 6s; }
@keyframes frameExpand { 0% { width: 120px; height: 120px; opacity: 0.5; } 100% { width: 1400px; height: 1400px; opacity: 0; } }

/* ═══════════════════════════════════════════════
   REGULATED ENVIRONMENT OBJECTIONS
   ═══════════════════════════════════════════════ */
.objections { padding: 120px 48px; }
.objections-header { text-align: center; margin-bottom: 64px; }
.objections-header h2 { font-size: clamp(28px, 3.5vw, 46px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; color: var(--navy); }
.objections-header h2 strong { font-weight: 600; }
.objections-header p { font-size: 16px; color: var(--navy); opacity: 0.45; margin-top: 14px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.obj-grid { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.obj-item { padding: 30px 32px; border-top: 1px solid rgba(24,38,106,0.07); }
.obj-item:nth-child(odd) { padding-right: 48px; border-right: 1px solid rgba(24,38,106,0.07); }
.obj-item:nth-child(even) { padding-left: 48px; }
.obj-item:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: none; padding-right: 32px; max-width: 580px; }
.obj-q { font-size: 13px; font-weight: 600; color: var(--navy); opacity: 0.7; margin-bottom: 10px; letter-spacing: 0.01em; }
.obj-a { font-size: 14px; color: var(--navy); opacity: 0.45; line-height: 1.65; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  padding: 64px 48px 40px; background: var(--navy-deep);
  border-top: 1px solid rgba(213,215,226,0.04);
}
.footer-top { display: flex; justify-content: space-between; margin-bottom: 48px; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light); opacity: 0.35; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--light); opacity: 0.5; margin-bottom: 10px; transition: opacity 0.3s; }
.footer-col a:hover { opacity: 0.85; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(213,215,226,0.04); }
.footer-logo svg { height: 18px; opacity: 0.35; }
.footer-logo-img { height: 20px; width: auto; display: block; }
.footer-copy { font-size: 12px; color: var(--light); opacity: 0.2; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 100px 24px; }
  .section-sm { padding: 72px 24px; }
  .hero { padding: 120px 24px 80px; }
  .page-hero { padding: 140px 24px 72px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  footer { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
