/* Layout and page-specific styles only — tokens/reset from app.css */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth), background 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
}

.btn-primary {
  background: var(--text-primary);
  color: #fff;
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  padding: 13px 14px;
}
.btn-text:hover { color: var(--text-primary); }

.btn-sm { padding: 9px 20px; font-size: 0.875rem; }

/* ============================================
   NAVBAR — glassmorphism
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}
/* ==========================================
   Brand Logo
========================================== */

.brand-logo{
    font-family:'Poppins',sans-serif;
    font-weight:800;
    letter-spacing:-1px;
    display:inline-block;
    text-decoration:none;
}

.brand-blue{
    color:#2563EB;
}

.brand-green{
    color:#10B981;
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo{

    font-family:'Poppins',sans-serif;

    font-size:34px;

    font-weight:800;

    letter-spacing:-1px;

    transition:.3s;

}

.nav-logo:hover{

    transform:scale(1.03);

}

.nav-logo .know{

    color:#2563EB;

}

.nav-logo .ly{

    color:#10B981;

}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2563EB;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: 700;
    font-size: 16px;

    text-decoration: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: color 0.2s var(--ease-smooth), background 0.2s var(--ease-smooth);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(17, 24, 39, 0.04); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4.5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 1.6px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-smooth), opacity 0.2s var(--ease-smooth);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-links-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  gap: 2px;
}
.nav-links-mobile a {
  padding: 12px 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.nav-links-mobile .btn { margin-top: 10px; width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 110px 32px 100px;
  background:
    radial-gradient(ellipse 800px 500px at 15% 0%, rgba(37, 99, 235, 0.06), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 30%, rgba(16, 185, 129, 0.05), transparent 60%);
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-blue-hover);
  background: var(--brand-blue-lighter);
  border: 1px solid #DBEAFE;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.hero-headline .reveal-line { display: block; }
.hero-headline .accent { color: var(--brand-blue); }
.hero-headline .reveal-line:last-child .accent { color: var(--accent-green); }

.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: wordUp 0.7s var(--ease-smooth) forwards;
  animation-delay: calc(var(--i, 0) * 0.05s);
}
@keyframes wordUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-subhead {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--text-primary);
  margin-top: 24px;
}
.hero-subhead strong { color: var(--accent-green-hover); font-weight: 700; }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 480px;
  line-height: 1.6;
}

.search-shell { margin-top: 36px; max-width: 460px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 8px 6px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}
.search-box:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10), var(--shadow-sm);
}
.search-icon { width: 19px; height: 19px; color: var(--text-secondary); flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  padding: 10px 0;
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
}
.search-input::placeholder { color: #9CA3AF; }
.search-submit {
  background: var(--text-primary);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 11px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s var(--ease-smooth);
  flex-shrink: 0;
}
.search-submit:hover { background: #000; }

.hero-ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* hero floating cards */
.hero-visual {
  position: relative;
  height: 460px;
  perspective: 1000px;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  width: 218px;
  animation: drift 7s ease-in-out infinite;
  transition: transform 0.3s var(--ease-smooth);
  will-change: transform;
}

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}

.card-1 { top: 0;    left: 8%;   --rot: -3deg; animation-delay: 0s; }
.card-2 { top: 16%;  right: 0;   --rot: 2deg;  animation-delay: 1.1s; }
.card-3 { top: 42%;  left: 0;    --rot: 2.5deg; animation-delay: 2.2s; }
.card-4 { top: 60%;  right: 6%;  --rot: -2deg; animation-delay: 0.6s; }
.card-5 { top: 82%;  left: 18%;  --rot: 3deg;  animation-delay: 1.8s; }

.float-card-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-card-icon svg { width: 20px; height: 20px; }
.icon-blue   { background: var(--brand-blue-lighter);   color: var(--brand-blue); }
.icon-green  { background: var(--accent-green-light);  color: var(--accent-green-hover); }
.icon-amber  { background: #FEF3C7;             color: #B45309; }
.icon-purple { background: #EDE9FE;             color: var(--purple); }
.icon-coral  { background: #FEE2E2;             color: var(--danger); }

.float-card-title { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); }
.float-card-sub { font-size: 0.78rem; color: var(--text-secondary); margin-top: 1px; }

/* ============================================
   PROBLEM SECTION — editorial
   ============================================ */
.problem {
  padding: 120px 32px;
  background: var(--text-primary);
}
.problem-inner { max-width: 760px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 20px;
}
.section-eyebrow.centered { text-align: center; }

.problem-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  color: #fff;
  letter-spacing: -0.02em;
}

.problem-subheadline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
}

.problem-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 36px;
  max-width: 620px;
}

/* ============================================
   HOW IT WORKS — timeline
   ============================================ */
.how { padding: 120px 32px; }
.how-inner { max-width: 1000px; margin: 0 auto; }

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-title.centered { text-align: center; }
.section-sub { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 60px; }
.section-sub.centered { text-align: center; }

.timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-top: 64px;
}

.timeline-step { text-align: center; padding: 0 16px; }

.timeline-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--background);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  color: var(--brand-blue);
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}
.timeline-icon svg { width: 26px; height: 26px; }
.timeline-step:hover .timeline-icon {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
}

.timeline-step h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.timeline-step p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-connector {
  height: 1.5px;
  background: linear-gradient(90deg, var(--border), var(--brand-blue), var(--border));
  margin-top: 32px;
  align-self: start;
  width: 100%;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories { padding: 120px 32px; background: var(--background); }
.categories-inner { max-width: 1100px; margin: 0 auto; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.category-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth);
}
.category-card svg {
  width: 22px; height: 22px;
  color: var(--brand-blue);
  flex-shrink: 0;
}
.category-card span {
  font-weight: 600;
  font-size: 0.95rem;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
}

/* ============================================
   WHY KNOWLY
   ============================================ */
.why { padding: 120px 32px; }
.why-inner { max-width: 1100px; margin: 0 auto; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.why-card {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-green-hover);
  margin-bottom: 20px;
}
.why-icon svg { width: 22px; height: 22px; }

.why-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   WAITLIST
   ============================================ */
.waitlist { padding: 120px 32px; }
.waitlist-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, var(--brand-blue-lighter), var(--accent-green-light) 160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 72px 48px;
}

.waitlist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-green-hover);
  background: var(--surface);
  border: 1px solid #A7F3D0;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 1.8s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.waitlist-inner h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.waitlist-inner p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 420px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.waitlist-input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  outline: none;
  background: var(--surface);
  transition: border-color 0.2s var(--ease-smooth);
}
.waitlist-input:focus { border-color: var(--brand-blue); }

.waitlist-status {
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-green-hover);
  min-height: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--text-primary); padding: 72px 32px 32px; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 56px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 220px;
}

.footer-links { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s var(--ease-smooth);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   SCROLL REVEAL (generic blocks)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 20px;
    height: 60px;
  }
  
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links-mobile { display: flex; }
  
  .hero {
    padding: 80px 20px 60px;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-visual {
    height: 380px;
    order: -1;
  }
  
  .hero-desc {
    max-width: 100%;
  }
  
  .search-shell {
    max-width: 100%;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .problem, .how, .categories, .why, .waitlist {
    padding: 80px 20px;
  }
  
  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .timeline-connector {
    display: none;
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .waitlist-inner {
    padding: 48px 24px;
  }
  
  .waitlist-form {
    flex-direction: column;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 16px;
    height: 56px;
  }
  
  .nav-logo {
    font-size: 28px;
  }
  
  .hero {
    padding: 60px 16px 40px;
  }
  
  .hero-headline {
    font-size: 1.8rem;
  }
  
  .hero-subhead {
    font-size: 1rem;
  }
  
  .hero-visual {
    height: 320px;
  }
  
  .float-card {
    width: 180px;
    padding: 12px 14px;
  }
  
  .float-card-icon {
    width: 36px;
    height: 36px;
  }
  
  .float-card-title {
    font-size: 0.8rem;
  }
  
  .float-card-sub {
    font-size: 0.72rem;
  }
  
  .problem, .how, .categories, .why, .waitlist {
    padding: 60px 16px;
  }
  
  .problem-headline {
    font-size: 1.6rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .waitlist-inner h2 {
    font-size: 1.4rem;
  }
  
  .btn {
    padding: 11px 20px;
    font-size: 0.9rem;
  }
  
  .search-box {
    padding: 5px 6px 5px 14px;
  }
  
  .search-submit {
    padding: 9px 18px;
    font-size: 0.8rem;
  }
}