/* Kholo homepage — calm split hero with WhatsApp-style proof bubbles */

:root{
  --bg: #070A10;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --faint: rgba(255,255,255,.56);
  --stroke: rgba(255,255,255,.10);

  /* Light message bubbles (off-white, not pure white) */
  --bubble: #f2f3f5;
  --bubble-text: #0f1220;
  --bubble-meta: rgba(255,255,255,.56);

  --focus: rgba(124,92,255,.65);

  /* Phone frame */
  --phone-shell: rgba(255,255,255,.06);
  --phone-shell-2: rgba(255,255,255,.08);
  --phone-stroke: rgba(255,255,255,.12);
  --phone-screen: rgba(10,12,18,.70);
}

/* Background */
body.home{
  background:
    radial-gradient(900px 700px at 20% 10%, rgba(124,92,255,.10), transparent 55%),
    radial-gradient(900px 700px at 80% 20%, rgba(0,212,255,.06), transparent 55%),
    var(--bg);
  color: var(--text);
}

/* Accessibility: visible focus */
body.home a:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Header */
.home-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.home-header-inner{
  max-width: 1120px;
  margin: 0 auto;
  /* tighter header to reduce perceived height */
  padding: 10px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* Hero layout */
.home-hero{
  /* slightly more breathing room under header; less “hit you in the face” */
  padding: clamp(76px, 10vh, 124px) 16px 64px;
}

.home-hero-inner{
  max-width: 1120px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
}

/* Left copy spacing */
.home-hero-copy{
  max-width: 56ch;
}

.home h1{
  font-size: clamp(40px, 5.8vw, 66px);
  line-height: 1.02;
  margin: 0;
}

.home-subhead{
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.home-divider{
  margin: 30px 0;
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,.14);
}

.home-trust{
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--faint);
}

.home-secondary{
  margin-top: 22px;
  font-size: 14px;
  color: var(--faint);
}

.home-secondary a{
  color: var(--text);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.home-secondary a:hover{
  border-bottom-color: rgba(255,255,255,.40);
}

/* Right examples */
.home-hero-examples{
  display:flex;
  flex-direction:column;
  gap: 26px;

  /* Phone frame */
  position: relative;
  max-width: 380px;
  margin-left: auto;

  /* nudge down slightly to optically centre against large headline */
  margin-top: 10px;

  padding: 44px 18px 18px; /* extra top space for "notch" */
  border-radius: 32px;

  background:
    linear-gradient(180deg, var(--phone-shell-2), var(--phone-shell)),
    radial-gradient(900px 450px at 50% 0%, rgba(124,92,255,.10), transparent 55%);
  border: 1px solid var(--phone-stroke);

  box-shadow:
    0 20px 60px rgba(0,0,0,.45),
    0 1px 0 rgba(255,255,255,.06) inset;

  overflow: hidden;
}

.home-hero-examples::before{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 28px;
  background: var(--phone-screen);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset;
  pointer-events:none;
}

.home-hero-examples::after{
  content:"";
  position:absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
  pointer-events:none;
}

.home-hero-examples > *{
  position: relative;
  z-index: 1;
}

.examples-head{
  font-size: 12px;
  color: var(--bubble-meta);
  letter-spacing: .02em;
}

/* Micro-animation: staggered appearance */
.bubble-group{
  opacity: 0;
  transform: translateY(10px);
  animation: bubbleIn 650ms ease-out forwards;
}

.bubble-group:nth-of-type(1){ animation-delay: 120ms; }
.bubble-group:nth-of-type(2){ animation-delay: 240ms; }
.bubble-group:nth-of-type(3){ animation-delay: 360ms; }

@keyframes bubbleIn{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .bubble-group{
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.bubble-meta{
  font-size: 12px;
  color: var(--bubble-meta);
  margin-bottom: 6px;
}

.bubble{
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--bubble);
  color: var(--bubble-text);
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid rgba(15,18,32,.10);
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
}

.bubble-left{
  border-top-left-radius: 6px;
}

/* Footer */
.home-footer{
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 16px;
  margin-top: auto;
}

.home-footer-inner{
  max-width: 1120px;
  margin: 0 auto;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
}

/* Responsive */
@media (max-width: 980px){
  .home-hero-inner{
    grid-template-columns: 1fr;
  }

  .home-hero-examples{
    max-width: 520px;
    margin-left: 0;
    margin-top: 16px;
  }
}

/* Page shell supports sticky footer behaviour */
.page-shell{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Let main consume remaining height so footer can drop */
.home-main{
  flex: 1;
}

.brand-logo {
  display: block;
  width: 64px;
  height: 64px;
}