/* ==========================================================================
   LibraTech — Digital Library Management System
   Landing Page Stylesheet
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root{
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --secondary: #42A5F5;
  --accent-light: #90CAF9;

  --ink-900: #0F1B2D;
  --ink-700: #2C3E50;
  --ink-500: #5B6B7C;
  --ink-300: #9AA9B8;

  --bg-white: #FFFFFF;
  --bg-grey: #F5F8FC;
  --bg-grey-dark: #EAF1FB;

  --border-soft: rgba(21, 101, 192, 0.10);

  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-primary-hover: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  --gradient-bg: linear-gradient(180deg, #F7FAFF 0%, #EAF2FD 45%, #F5F8FC 100%);

  --shadow-sm: 0 2px 8px rgba(21, 101, 192, 0.06);
  --shadow-md: 0 8px 24px rgba(21, 101, 192, 0.10);
  --shadow-lg: 0 20px 50px rgba(21, 101, 192, 0.16);
  --shadow-btn: 0 10px 30px rgba(21, 101, 192, 0.30);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

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

/* Guarantee [hidden] always hides, even on elements whose class sets its
   own display value (e.g. .btn, .empty-state) — author rules normally
   beat the browser's default [hidden]{display:none}, so without this an
   element marked hidden can still render. */
[hidden]{ display: none !important; }

html{ scroll-behavior: smooth; }

body{
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-700);
  background-color: var(--bg-grey);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22172%22%20height%3D%22140%22%20viewBox%3D%220%200%20172%20140%22%3E%0A%20%20%3Cg%3E%3Crect%20x%3D%224%22%20y%3D%2214%22%20width%3D%2211%22%20height%3D%2246%22%20rx%3D%221.5%22%20fill%3D%22%231565C0%22%20fill-opacity%3D%220.035%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2222%22%20width%3D%229%22%20height%3D%2238%22%20rx%3D%221.5%22%20fill%3D%22%2342A5F5%22%20fill-opacity%3D%220.035%22/%3E%3Crect%20x%3D%2230%22%20y%3D%228%22%20width%3D%2213%22%20height%3D%2252%22%20rx%3D%221.5%22%20fill%3D%22%230D47A1%22%20fill-opacity%3D%220.035%22/%3E%3Crect%20x%3D%2246%22%20y%3D%2226%22%20width%3D%228%22%20height%3D%2234%22%20rx%3D%221.5%22%20fill%3D%22%2390CAF9%22%20fill-opacity%3D%220.035%22/%3E%3Crect%20x%3D%2257%22%20y%3D%2216%22%20width%3D%2212%22%20height%3D%2244%22%20rx%3D%221.5%22%20fill%3D%22%231565C0%22%20fill-opacity%3D%220.035%22/%3E%3Crect%20x%3D%2272%22%20y%3D%2220%22%20width%3D%2210%22%20height%3D%2240%22%20rx%3D%221.5%22%20fill%3D%22%2342A5F5%22%20fill-opacity%3D%220.035%22/%3E%3Crect%20x%3D%2285%22%20y%3D%2210%22%20width%3D%2214%22%20height%3D%2250%22%20rx%3D%221.5%22%20fill%3D%22%230D47A1%22%20fill-opacity%3D%220.035%22/%3E%3Crect%20x%3D%22102%22%20y%3D%2224%22%20width%3D%229%22%20height%3D%2236%22%20rx%3D%221.5%22%20fill%3D%22%2390CAF9%22%20fill-opacity%3D%220.035%22/%3E%3Crect%20x%3D%22114%22%20y%3D%2218%22%20width%3D%2211%22%20height%3D%2242%22%20rx%3D%221.5%22%20fill%3D%22%231565C0%22%20fill-opacity%3D%220.035%22/%3E%3Crect%20x%3D%22128%22%20y%3D%2212%22%20width%3D%2210%22%20height%3D%2248%22%20rx%3D%221.5%22%20fill%3D%22%2342A5F5%22%20fill-opacity%3D%220.035%22/%3E%3Crect%20x%3D%22141%22%20y%3D%2221%22%20width%3D%2212%22%20height%3D%2239%22%20rx%3D%221.5%22%20fill%3D%22%230D47A1%22%20fill-opacity%3D%220.035%22/%3E%3Crect%20x%3D%22156%22%20y%3D%2215%22%20width%3D%229%22%20height%3D%2245%22%20rx%3D%221.5%22%20fill%3D%22%2390CAF9%22%20fill-opacity%3D%220.035%22/%3E%3C/g%3E%0A%20%20%3Crect%20x%3D%220%22%20y%3D%2260%22%20width%3D%22172%22%20height%3D%223%22%20fill%3D%22%231565C0%22%20fill-opacity%3D%220.04%22/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg{ display: block; max-width: 100%; }
a{ text-decoration: none; color: inherit; }
ul{ list-style: none; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; }

.material-symbols-rounded{
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

::selection{ background: var(--secondary); color: #fff; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.gradient-text{
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   BACKGROUND LAYER
   ========================================================================== */
.bg-layer{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient{
  position: absolute;
  inset: 0;
  background: var(--gradient-bg);
  background-size: 200% 200%;
  animation: gradientShift 18s ease infinite;
}

@keyframes gradientShift{
  0%{ background-position: 0% 30%; }
  50%{ background-position: 100% 70%; }
  100%{ background-position: 0% 30%; }
}

.bg-waves{
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 55vh;
  opacity: 0.5;
}
.wave{ fill: var(--secondary); opacity: 0.08; }
.wave-2{ fill: var(--primary); opacity: 0.06; }

.bg-shelf-texture{
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22172%22%20height%3D%22140%22%20viewBox%3D%220%200%20172%20140%22%3E%0A%20%20%3Cg%3E%3Crect%20x%3D%224%22%20y%3D%2214%22%20width%3D%2211%22%20height%3D%2246%22%20rx%3D%221.5%22%20fill%3D%22%231565C0%22%20fill-opacity%3D%220.05%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2222%22%20width%3D%229%22%20height%3D%2238%22%20rx%3D%221.5%22%20fill%3D%22%2342A5F5%22%20fill-opacity%3D%220.05%22/%3E%3Crect%20x%3D%2230%22%20y%3D%228%22%20width%3D%2213%22%20height%3D%2252%22%20rx%3D%221.5%22%20fill%3D%22%230D47A1%22%20fill-opacity%3D%220.05%22/%3E%3Crect%20x%3D%2246%22%20y%3D%2226%22%20width%3D%228%22%20height%3D%2234%22%20rx%3D%221.5%22%20fill%3D%22%2390CAF9%22%20fill-opacity%3D%220.05%22/%3E%3Crect%20x%3D%2257%22%20y%3D%2216%22%20width%3D%2212%22%20height%3D%2244%22%20rx%3D%221.5%22%20fill%3D%22%231565C0%22%20fill-opacity%3D%220.05%22/%3E%3Crect%20x%3D%2272%22%20y%3D%2220%22%20width%3D%2210%22%20height%3D%2240%22%20rx%3D%221.5%22%20fill%3D%22%2342A5F5%22%20fill-opacity%3D%220.05%22/%3E%3Crect%20x%3D%2285%22%20y%3D%2210%22%20width%3D%2214%22%20height%3D%2250%22%20rx%3D%221.5%22%20fill%3D%22%230D47A1%22%20fill-opacity%3D%220.05%22/%3E%3Crect%20x%3D%22102%22%20y%3D%2224%22%20width%3D%229%22%20height%3D%2236%22%20rx%3D%221.5%22%20fill%3D%22%2390CAF9%22%20fill-opacity%3D%220.05%22/%3E%3Crect%20x%3D%22114%22%20y%3D%2218%22%20width%3D%2211%22%20height%3D%2242%22%20rx%3D%221.5%22%20fill%3D%22%231565C0%22%20fill-opacity%3D%220.05%22/%3E%3Crect%20x%3D%22128%22%20y%3D%2212%22%20width%3D%2210%22%20height%3D%2248%22%20rx%3D%221.5%22%20fill%3D%22%2342A5F5%22%20fill-opacity%3D%220.05%22/%3E%3Crect%20x%3D%22141%22%20y%3D%2221%22%20width%3D%2212%22%20height%3D%2239%22%20rx%3D%221.5%22%20fill%3D%22%230D47A1%22%20fill-opacity%3D%220.05%22/%3E%3Crect%20x%3D%22156%22%20y%3D%2215%22%20width%3D%229%22%20height%3D%2245%22%20rx%3D%221.5%22%20fill%3D%22%2390CAF9%22%20fill-opacity%3D%220.05%22/%3E%3C/g%3E%0A%20%20%3Crect%20x%3D%220%22%20y%3D%2260%22%20width%3D%22172%22%20height%3D%223%22%20fill%3D%22%231565C0%22%20fill-opacity%3D%220.06%22/%3E%0A%3C/svg%3E");
  background-repeat: repeat;
  background-size: 172px 140px;
  opacity: 0.9;
}

.bg-book-mark{
  position: absolute;
  width: 460px;
  height: auto;
}
.bg-book-mark-1{
  bottom: -60px;
  left: -80px;
  transform: rotate(-8deg);
}
.bg-book-mark-2{
  top: 40px;
  right: -120px;
  width: 380px;
  transform: rotate(10deg);
}
.book-mark-page{ fill: var(--primary); opacity: 0.05; }
.book-mark-spine{ stroke: var(--primary-dark); stroke-width: 3; opacity: 0.06; }

.blur-orb{
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}
.orb-1{
  width: 420px; height: 420px;
  top: -120px; right: -100px;
  background: var(--secondary);
  animation: floatOrb 14s ease-in-out infinite;
}
.orb-2{
  width: 360px; height: 360px;
  bottom: -140px; left: -100px;
  background: var(--primary);
  animation: floatOrb 16s ease-in-out infinite reverse;
}
@keyframes floatOrb{
  0%, 100%{ transform: translate(0,0); }
  50%{ transform: translate(30px, -30px); }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(21, 101, 192, 0.08);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.navbar.scrolled{
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
}

.nav-container{
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon{
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-icon.small{ width: 38px; height: 38px; border-radius: 10px; }

.brand-text{ display: flex; flex-direction: column; line-height: 1.2; }
.brand-name{ font-weight: 700; font-size: 1.05rem; color: var(--ink-900); }
.brand-dept{ font-size: 0.72rem; color: var(--ink-500); font-weight: 500; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link{
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-link::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav-link:hover{ color: var(--primary); }
.nav-link:hover::after{ width: 100%; }

.nav-actions{ display: flex; align-items: center; gap: 18px; }

.nav-btn-ghost{
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-soft);
  transition: all 0.3s var(--ease);
}
.nav-btn-ghost:hover{
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.hamburger span{
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  margin: 0 auto;
}
.hamburger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu{
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  transition: max-height 0.4s var(--ease);
}
.mobile-menu.open{ max-height: 340px; }
.mobile-link{
  padding: 16px 32px;
  font-weight: 500;
  border-bottom: 1px solid rgba(21,101,192,0.06);
}
.mobile-link-accent{ color: var(--primary); font-weight: 600; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  padding: 84px 32px 60px;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
}

.hero-container{
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-left{ max-width: 620px; }

.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-grey-dark);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 22px;
  border: 1px solid var(--border-soft);
}
.hero-eyebrow .material-symbols-rounded{ font-size: 18px; }

.hero-title{
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero-title .gradient-text{ display: block; }

.hero-subtitle{
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
}

.hero-desc{
  font-size: 1rem;
  color: var(--ink-500);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

/* Buttons */
.btn{
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  isolation: isolate;
}
.btn .material-symbols-rounded{ font-size: 20px; }
.btn-arrow{ transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow{ transform: translateX(4px); }

.btn-primary{
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(21, 101, 192, 0.38);
}

.btn-secondary{
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.btn-outline{
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover{
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

/* Ripple */
.ripple{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: rippleAnim 0.6s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.btn-secondary .ripple{ background: rgba(21,101,192,0.18); }
@keyframes rippleAnim{
  to{ transform: scale(3); opacity: 0; }
}

/* Hero stats */
.hero-stats{
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat{ display: flex; flex-direction: column; }
.stat-num{
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-900);
}
.stat-label{
  font-size: 0.78rem;
  color: var(--ink-500);
  font-weight: 500;
}
.stat-divider{
  width: 1px;
  height: 36px;
  background: var(--border-soft);
}

/* ---------- Hero Illustration ---------- */
.hero-right{ position: relative; }

.illustration{
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 480px;
  margin: 0 auto;
}

.glow-blob{
  position: absolute;
  width: 340px; height: 340px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(66,165,245,0.35) 0%, rgba(21,101,192,0.08) 60%, transparent 75%);
  border-radius: 50%;
  filter: blur(10px);
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow{
  0%, 100%{ transform: translate(-50%,-50%) scale(1); }
  50%{ transform: translate(-50%,-50%) scale(1.08); }
}

.network-lines{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.network-lines line{
  stroke: var(--secondary);
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
  opacity: 0.5;
}
.network-lines circle{ fill: var(--primary); }

/* shelf */
.shelf{
  position: absolute;
  bottom: 18px;
  left: 8px;
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.9;
}
.shelf-row{
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 46px;
  background: linear-gradient(180deg, transparent 0%, rgba(21,101,192,0.06) 100%);
  border-bottom: 3px solid var(--primary);
  border-radius: 0 0 4px 4px;
  padding-bottom: 2px;
}
.book{ width: 14px; border-radius: 2px 2px 0 0; }
.b1{ height: 38px; background: var(--primary); }
.b2{ height: 30px; background: var(--secondary); }
.b3{ height: 42px; background: var(--primary-dark); }
.b4{ height: 26px; background: var(--accent-light); }
.b5{ height: 36px; background: var(--primary); }
.b6{ height: 32px; background: var(--secondary); }

/* laptop */
.laptop{
  position: absolute;
  right: 20px;
  bottom: 40px;
  width: 300px;
  z-index: 3;
  filter: drop-shadow(0 20px 30px rgba(21,101,192,0.25));
}
.laptop-screen{
  background: var(--ink-900);
  border-radius: 14px 14px 4px 4px;
  padding: 10px;
  border: 3px solid #17233A;
}
.dash-topbar{
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
}
.dash-topbar .material-symbols-rounded{ font-size: 14px; color: var(--secondary); }
.dash-search-txt{ font-size: 0.6rem; color: rgba(255,255,255,0.5); }

.dash-body{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.dash-card{
  height: 26px;
  border-radius: 6px;
  background: var(--gradient-primary);
  opacity: 0.85;
}
.dash-card.dc-2{ background: var(--secondary); opacity: 0.7; }
.dash-card.dc-3{ background: var(--accent-light); opacity: 0.6; }
.dash-card.dc-4{ background: var(--primary-dark); opacity: 0.8; }

.dash-chart{
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 34px;
  padding: 0 2px;
}
.dash-chart span{
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 3px 3px 0 0;
  animation: barPulse 2.4s ease-in-out infinite;
}
.dash-chart span:nth-child(1){ height: 40%; animation-delay: 0s; }
.dash-chart span:nth-child(2){ height: 70%; animation-delay: 0.2s; }
.dash-chart span:nth-child(3){ height: 55%; animation-delay: 0.4s; }
.dash-chart span:nth-child(4){ height: 90%; animation-delay: 0.6s; }
.dash-chart span:nth-child(5){ height: 65%; animation-delay: 0.8s; }
@keyframes barPulse{
  0%, 100%{ transform: scaleY(1); }
  50%{ transform: scaleY(1.15); }
}

.laptop-base{
  height: 12px;
  background: linear-gradient(180deg, #DCE7F5, #B9CDE8);
  border-radius: 0 0 10px 10px;
  margin: 0 -6px;
}

/* floating book cards */
.float-card{
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  z-index: 4;
  animation: floatCard 5s ease-in-out infinite;
}
.float-card .material-symbols-rounded{
  color: #fff;
  background: var(--gradient-primary);
  padding: 8px;
  border-radius: 10px;
  font-size: 20px;
}
.float-card strong{ display: block; font-size: 0.78rem; color: var(--ink-900); }
.float-card small{ font-size: 0.68rem; color: var(--ink-500); }

.card-1{ top: 10px; left: 0; animation-delay: 0s; }
.card-2{ bottom: 130px; right: -10px; animation-delay: 1.2s; }

@keyframes floatCard{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}

/* tablet */
.tablet{
  position: absolute;
  top: 60px;
  right: 0;
  width: 74px;
  height: 100px;
  background: var(--ink-900);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: floatCard 6s ease-in-out infinite;
  animation-delay: 0.6s;
}
.tablet-screen{
  width: 100%; height: 100%;
  background: var(--gradient-primary);
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.tablet-screen .material-symbols-rounded{ color: #fff; font-size: 26px; }

/* book stack */
.book-stack{
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 92px;
  z-index: 2;
}
.stack-layer{
  display: block;
  height: 14px;
  border-radius: 4px;
  margin-bottom: 4px;
  box-shadow: var(--shadow-sm);
}
.sl-1{ background: var(--primary); width: 100%; }
.sl-2{ background: var(--secondary); width: 88%; margin-left: 6%; }
.sl-3{ background: var(--accent-light); width: 96%; margin-left: 2%; }

/* search chip */
.search-chip{
  position: absolute;
  top: 46%;
  left: 42%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  animation: pulseGlow 4s ease-in-out infinite;
  z-index: 4;
}
.search-chip .material-symbols-rounded{ color: var(--primary); font-size: 22px; }

/* cloud float icons */
.float-icon{
  position: absolute;
  color: var(--secondary);
  opacity: 0.55;
  animation: floatCard 7s ease-in-out infinite;
}
.float-icon .material-symbols-rounded{ font-size: 30px; }
.cloud-1{ top: 6px; right: 90px; animation-delay: 1.6s; }
.cloud-2{ bottom: 200px; left: 40px; font-size: 20px; animation-delay: 2.4s; }

/* scroll indicator */
.scroll-indicator{
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary);
  opacity: 0.6;
  animation: bounceDown 2s ease-in-out infinite;
}
@keyframes bounceDown{
  0%, 100%{ transform: translate(-50%, 0); }
  50%{ transform: translate(-50%, 8px); }
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.section-container{
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.features{ padding: 100px 0 60px; position: relative; }

.section-heading{
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-eyebrow{
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.section-desc{ color: var(--ink-500); font-size: 1rem; }

.feature-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card{
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.feature-card:hover{
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.feature-icon{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.feature-icon .material-symbols-rounded{ font-size: 26px; }
.fi-1{ background: linear-gradient(135deg, #1565C0, #42A5F5); }
.fi-2{ background: linear-gradient(135deg, #0D47A1, #1565C0); }
.fi-3{ background: linear-gradient(135deg, #1E88E5, #64B5F6); }
.fi-4{ background: linear-gradient(135deg, #1565C0, #90CAF9); }

.feature-card h3{
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 10px;
}
.feature-card p{ font-size: 0.9rem; color: var(--ink-500); }

/* ==========================================================================
   PORTAL CTA
   ========================================================================== */
.portals{ padding: 40px 0 110px; }

.portal-panel{
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.portal-panel::before{
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  top: -120px; right: -60px;
}
.portal-panel-text{ color: #fff; max-width: 460px; position: relative; z-index: 1; }
.portal-panel-text h2{ font-size: 1.7rem; font-weight: 700; margin-bottom: 10px; }
.portal-panel-text p{ font-size: 0.95rem; opacity: 0.9; }

.portal-panel-actions{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.portal-panel-actions .btn-primary{
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 26px rgba(0,0,0,0.15);
}
.portal-panel-actions .btn-primary:hover{ box-shadow: 0 14px 32px rgba(0,0,0,0.2); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer{
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
  padding: 40px 32px;
}
.footer-container{
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand div{ display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand strong{ color: #fff; font-size: 0.95rem; }
.footer-brand span{ font-size: 0.75rem; color: rgba(255,255,255,0.55); }

.footer-meta, .footer-copy{ font-size: 0.82rem; }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: 0.12s; }
.reveal-delay-2{ transition-delay: 0.24s; }
.reveal-delay-3{ transition-delay: 0.36s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px){
  .hero-container{ grid-template-columns: 1fr; }
  .hero-right{ order: -1; }
  .illustration{ height: 400px; max-width: 420px; }
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px){
  .nav-links{ display: none; }
  .nav-btn-ghost{ display: none; }
  .hamburger{ display: flex; }
  .hero{ padding-top: 48px; }
  .hero-title{ font-size: clamp(2rem, 6vw, 2.6rem); }
  .portal-panel{ flex-direction: column; text-align: center; justify-content: center; }
  .portal-panel-text{ max-width: 100%; }
}

@media (max-width: 640px){
  .hero-actions{ flex-direction: column; }
  .btn{ width: 100%; justify-content: center; }
  .hero-stats{ flex-wrap: wrap; row-gap: 14px; }
  .feature-grid{ grid-template-columns: 1fr; }
  .illustration{ height: 360px; }
  .laptop{ width: 240px; right: 0; }
  .footer-container{ flex-direction: column; text-align: center; }
  .section-container{ padding: 0 20px; }
  .nav-container{ padding: 0 20px; }
}

@media (max-width: 400px){
  .illustration{ height: 320px; }
  .float-card{ padding: 8px 10px; }
  .float-card strong{ font-size: 0.7rem; }
  .tablet{ width: 60px; height: 84px; }
}
