/* =====================================================
   CSS VARIABLES & RESET
===================================================== */
:root {
  --primary: hsl(173, 58%, 39%);
  --primary-light: hsl(173, 58%, 92%);
  --primary-dark: hsl(173, 58%, 28%);
  --bg: hsl(210, 20%, 98%);
  --fg: hsl(220, 20%, 10%);
  --accent: hsl(25, 85%, 55%);
  --accent-light: hsl(25, 85%, 95%);
  --red: hsl(0, 72%, 51%);
  --paid: hsl(152, 69%, 40%);
  --due: hsl(38, 92%, 50%);
  --overdue: hsl(0, 72%, 51%);
  --pending: hsl(213, 94%, 55%);
  --muted: hsl(220, 15%, 55%);
  --border: hsl(220, 20%, 88%);
  --card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --nav-h: 70px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1,h2,h3,h4,h5 {
  font-family: var(--font-heading);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); }
p { font-size: 1rem; color: var(--muted); line-height: 1.75; }
.lead { font-size: clamp(1rem, 2vw, 1.18rem); }

/* =====================================================
   LAYOUT UTILITIES
===================================================== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.75rem;
  border-radius: 999px; background: var(--primary-light);
  color: var(--primary-dark);
}
.tag-accent { background: var(--accent-light); color: var(--accent); }

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.2s ease; white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-white {
  background: #fff; color: var(--fg); border-color: #fff;
}
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-accent:hover { background: hsl(25,85%,45%); }
.btn-wa {
  background: #25D366; color: #fff; border-color: #25D366;
}
.btn-wa:hover { background: #1ebe5b; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* =====================================================
   PAGES — VISIBILITY CONTROL
===================================================== */
.page { display: none; }
.page.active { display: block; }

/* =====================================================
   NAVBAR
===================================================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(248,250,252,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 1.25rem; max-width: 1180px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; fill: #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--fg); letter-spacing: -0.01em; }
.logo-tag { font-size: 0.62rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-link {
  padding: 0.45rem 0.8rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--fg);
  cursor: pointer; transition: all 0.18s;
  position: relative;
}
.nav-link:hover { background: var(--primary-light); color: var(--primary-dark); }
.nav-link.active { color: var(--primary); background: var(--primary-light); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 0.5rem; min-width: 220px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all 0.2s;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-item {
  display: block; padding: 0.5rem 0.85rem; border-radius: var(--radius-sm);
  font-size: 0.87rem; color: var(--fg); cursor: pointer;
  transition: background 0.15s;
}
.nav-dropdown-item:hover { background: var(--primary-light); color: var(--primary-dark); }

.nav-ctas { display: flex; align-items: center; gap: 0.6rem; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; cursor: pointer; border: none; background: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--fg); border-radius: 2px; transition: all 0.25s;
}

.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 999; overflow-y: auto;
  padding: 1.5rem 1.25rem;
  flex-direction: column; gap: 0.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 500; cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-link:hover { background: var(--primary-light); color: var(--primary-dark); }
.mobile-nav-sub {
  padding: 0.5rem 1rem 0.5rem 2rem;
  font-size: 0.9rem; color: var(--muted); cursor: pointer;
}
.mobile-nav-sub:hover { color: var(--primary); }
.mobile-nav-ctas { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }

/* =====================================================
   FLOATING BUTTONS
===================================================== */
.floating-wa {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.floating-wa:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.floating-wa svg { width: 28px; height: 28px; fill: #fff; }

.back-to-top {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); display: none; align-items: center;
  justify-content: center; cursor: pointer;
  box-shadow: var(--shadow); transition: all 0.2s;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--primary-light); color: var(--primary); }
.back-to-top svg { width: 18px; height: 18px; }

/* =====================================================
   HERO
===================================================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
  background: linear-gradient(160deg, hsl(210,25%,97%) 0%, hsl(173,30%,94%) 60%, hsl(210,20%,98%) 100%);
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25; pointer-events: none;
}
.hero-blob-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -100px; right: -150px;
}
.hero-blob-2 {
  width: 300px; height: 300px;
  background: var(--accent);
  bottom: 50px; left: -80px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 3rem;
  padding: 5rem 0 4rem;
}
.hero-content { max-width: 560px; }
.hero-tag { margin-bottom: 1.25rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { color: var(--primary); font-style: italic; }
.hero-sub { margin-bottom: 2rem; font-size: 1.1rem; color: var(--muted); max-width: 480px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-credibility {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.cred-pill {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500; color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.cred-pill svg { width: 14px; height: 14px; stroke: var(--primary); fill: none; stroke-width: 2; }

/* Hero Dashboard Mock */
.hero-visual { position: relative; }
.hero-dashboard {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--border);
  animation: floatUp 6s ease-in-out infinite alternate;
}
@keyframes floatUp { from { transform: translateY(0); } to { transform: translateY(-12px); } }

.dash-header {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(173,58%,30%) 100%);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.dash-title { font-weight: 700; color: #fff; font-size: 0.9rem; font-family: var(--font-heading); }
.dash-sub { font-size: 0.7rem; color: rgba(255,255,255,0.75); }
.dash-dots { display: flex; gap: 5px; }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); }

.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-bottom: 1px solid var(--border); }
.kpi-box { padding: 0.85rem 1rem; border-right: 1px solid var(--border); }
.kpi-box:last-child { border-right: none; }
.kpi-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.2rem; }
.kpi-val { font-size: 1.2rem; font-weight: 700; font-family: var(--font-heading); }
.kpi-val.paid { color: var(--paid); }
.kpi-val.due { color: var(--due); }
.kpi-val.overdue { color: var(--overdue); }
.kpi-val.pending { color: var(--pending); }

.tenant-list { padding: 0.75rem 1.25rem; }
.tenant-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0; border-bottom: 1px solid hsl(220,20%,95%);
  font-size: 0.78rem;
}
.tenant-row:last-child { border-bottom: none; }
.tenant-name { font-weight: 600; color: var(--fg); }
.tenant-unit { color: var(--muted); font-size: 0.7rem; }
.status-pill {
  font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.55rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.sp-paid { background: hsl(152,69%,92%); color: var(--paid); }
.sp-due { background: hsl(38,92%,92%); color: hsl(38,92%,35%); }
.sp-overdue { background: hsl(0,72%,93%); color: var(--overdue); }
.sp-pending { background: hsl(213,94%,93%); color: hsl(213,94%,35%); }

.pop-badge {
  margin: 0.75rem 1.25rem;
  background: hsl(173,58%,95%); border: 1px solid hsl(173,58%,80%);
  border-radius: var(--radius-sm); padding: 0.6rem 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--primary-dark); font-weight: 500;
}
.pop-badge svg { width: 14px; height: 14px; flex-shrink: 0; stroke: var(--primary); fill: none; stroke-width: 2.2; }

.float-notif {
  position: absolute; bottom: -20px; left: -30px;
  background: var(--card); border-radius: var(--radius);
  padding: 0.75rem 1rem; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.78rem; animation: notifPop 0.5s 0.8s both;
  z-index: 2;
}

/* =====================================================
   DEVICE MOCKUPS (laptop + phone)
===================================================== */
.device-mockups {
  /* default layout adjusted when used in a showcase section */
  display: flex; gap: 1rem; align-items: flex-end; z-index: 1;
}
.mockup-laptop, .mockup-phone { display: flex; align-items: center; justify-content: center; }

/* Animation utilities */
.stagger { opacity: 0; transform: translateY(22px) scale(0.98); transition: opacity 0.5s cubic-bezier(.18,.9,.32,1), transform 0.5s cubic-bezier(.18,.9,.32,1); }
.stagger.visible { opacity: 1; transform: translateY(0) scale(1); }

@keyframes slideInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatSlow { from { transform: translateY(0px); } to { transform: translateY(-10px); } }
@keyframes btnShine { 0% { transform: translateX(-110%); } 60% { transform: translateX(30%); } 100% { transform: translateX(60%); } }

/* Hero heading reveal */
.hero h1 { position: relative; overflow: hidden; }
.hero h1 .reveal { display: inline-block; transform: translateY(18px) scale(0.995); opacity: 0; animation: slideInUp 0.72s cubic-bezier(.18,.9,.32,1) forwards; }

/* Button micro-interaction: shine */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -30%; width: 36%; height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%); transform: skewX(-18deg); opacity: 0.0; transition: opacity 0.25s;
}
.btn-primary:hover::after { opacity: 1; animation: btnShine 0.9s ease-in-out; }

/* Mockup subtle float and hover tilt */
.mockup-laptop.float-slow { animation: floatSlow 5.6s ease-in-out infinite alternate; }
.mockup-phone.float-slow { animation: floatSlow 6.2s ease-in-out infinite alternate; }
.mockup-laptop:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 40px rgba(0,0,0,0.12); }
.mockup-phone:hover { transform: translateY(-6px) rotate(0deg); box-shadow: 0 12px 28px rgba(0,0,0,0.10); }

/* Small-screen tweaks for animated pieces */
@media (max-width: 480px) {
  .hero h1 .reveal { animation-duration: 0.6s; }
  .btn-primary::after { width: 48%; left: -40%; }
}

/* Logo image (navbar) */
.logo-img { width: 42px; height: 42px; object-fit: contain; display: block; border-radius: 8px; }

/* Small badges row */
.logo-badges { display:flex; gap:0.8rem; align-items:center; margin-top:0.9rem; }
.logo-badges .badge { width:56px; height:32px; object-fit:contain; opacity:0.95; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.06)); border-radius:6px; transition: transform 0.22s ease, opacity 0.22s; }
.logo-badges .badge:hover { transform: translateY(-6px) scale(1.03); opacity:1; }

/* Hero WhatsApp button subtle pulse to draw attention */
@keyframes pulseBtn { 0% { transform: scale(1); box-shadow: 0 6px 18px rgba(37,211,102,0.18);} 50% { transform: scale(1.03); box-shadow: 0 14px 30px rgba(37,211,102,0.22);} 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(37,211,102,0.18);} }
.hero .btn-wa { animation: pulseBtn 2.8s ease-in-out infinite; }

/* Laptop frame */
.mockup-laptop {
  width: 360px; height: 230px; border-radius: 12px; background: transparent; display:flex; align-items:flex-end; justify-content:center;
  transform: rotate(-6deg);
}
.laptop-frame { width:100%; display:flex; flex-direction:column; align-items:center; }
.laptop-frame .device-screen {
  width: 94%; height: 70%; background: linear-gradient(180deg,#ffffff,#fbfdff); border-radius:10px; padding:12px; box-sizing:border-box; border:1px solid #e6eef0; box-shadow: var(--shadow-lg);
}
.laptop-hinge { width: 86%; height: 10px; background: linear-gradient(180deg,#e6eef0,#dbe9ea); border-radius:4px; margin-top:6px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.laptop-base { width: 96%; height: 28px; margin-top:6px; display:flex; align-items:center; justify-content:center; }
.laptop-base-surface { width: 90%; height: 12px; background: linear-gradient(180deg,#f1f5f6,#e9eef0); border-radius:6px; }

/* Phone frame */
.mockup-phone {
  width: 120px; height: 220px; border-radius: 22px; display:flex; align-items:center; justify-content:center; transform: translateY(18px) rotate(6deg);
}
.phone-frame { width:92%; height:92%; border-radius:18px; background: linear-gradient(180deg,#ffffff,#fbfdff); border:1px solid #eceff0; box-shadow: 0 10px 30px rgba(0,0,0,0.06); padding:8px; box-sizing:border-box; }
.phone-frame .device-screen { width:100%; height:100%; position:relative; overflow:hidden; border-radius:14px; }
.phone-notch { position:absolute; left:50%; transform:translateX(-50%); top:6px; width:40px; height:6px; background:#e9eef0; border-radius:4px; }
.phone-top { font-size:0.78rem; font-weight:700; color:var(--primary-dark); margin-top:18px; margin-bottom:8px; text-align:center; }
.phone-messages { display:flex; flex-direction:column; gap:6px; padding:0 6px; }
.phone-messages .msg { background:#f7fdfb; padding:8px 10px; border-radius:10px; font-size:0.73rem; color:var(--muted); }

.device-screen .screen-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.screen-title { font-size:0.85rem; font-weight:700; color:var(--primary-dark); }
.screen-dots span { display:inline-block; width:8px; height:8px; background: #e6eef0; border-radius:50%; margin-left:4px; }
.screen-kpis { display:flex; gap:8px; margin-bottom:8px; }
.mini-kpi { background: #f1f7f6; border-radius:6px; padding:6px 8px; font-size:0.75rem; color:var(--muted); text-align:center; }
.screen-kpis .mini-kpi strong { display:block; font-size:1rem; color:var(--fg); }
.screen-list { list-style:none; padding:0; margin:0; font-size:0.78rem; color:var(--muted); }
.screen-list li { display:flex; justify-content:space-between; padding:4px 0; border-bottom:1px dashed #eef5f6; }
.screen-list li strong { color:var(--fg); font-weight:600; }

/* Device showcase layout */
.device-showcase .device-grid { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 1.25rem; align-items: center; }
.device-showcase .dashboard-preview { background: var(--card); padding: 1rem; border-radius: var(--radius); border:1px solid var(--border); box-shadow: var(--shadow-sm); min-width: 0; }
.device-showcase .dashboard-preview .kpi-row.small { display:flex; gap:0.5rem; }
.device-showcase .dashboard-preview .tenant-list.small { margin-top:0.75rem; }

/* Ensure mockups are visible on all screen sizes and adapt */
@media (max-width: 980px) {
  .device-showcase .device-grid { grid-template-columns: 1fr; }
  .device-mockups { justify-content: center; gap: 0.9rem; margin-top: 1rem; flex-wrap: wrap; }
  .mockup-laptop { transform: rotate(0deg); width: min(420px, 88%); height: auto; }
  .mockup-phone { transform: none; width: min(140px, 40%); height: auto; }
  .mockup-phone-teacher { transform: translateY(6px) rotate(0deg); }
  .mockup-phone-parent { transform: translateY(6px) rotate(0deg); }
  .laptop-frame .device-screen { height: auto; }
  .device-showcase .dashboard-preview { order: 0; }
}

@media (max-width: 480px) {
  .device-mockups { gap: 0.6rem; }
  .mockup-laptop { width: 94%; transform: none; margin-bottom: 0.5rem; }
  .mockup-phone { width: 48%; height: auto; transform: none; }
  .mockup-phone + .mockup-phone { margin-left: 0; }
  .phone-top { font-size: 0.75rem; }
  .phone-messages .msg { font-size: 0.68rem; padding: 6px 8px; }
  .device-showcase .dashboard-preview { margin-bottom: 0.75rem; }
}
@keyframes notifPop { from { opacity:0; transform:translateY(10px) scale(0.95); } to { opacity:1; transform:translateY(0) scale(1); } }
.notif-icon { width: 32px; height: 32px; border-radius: 50%; background: #25D366; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.notif-icon svg { width: 16px; height: 16px; fill: #fff; }
.notif-text strong { display: block; color: var(--fg); font-size: 0.8rem; }
.notif-text span { color: var(--muted); font-size: 0.72rem; }

/* =====================================================
   SECTION HEADERS
===================================================== */
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header .tag { margin-bottom: 0.85rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 560px; }
.section-header.center p { margin: 0 auto; }

/* =====================================================
   FAQs — cards & accordion
===================================================== */
.faq-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.faq-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-card .faq-q {
  display: block; width: 100%; text-align: left; background: transparent; border: none;
  font-size: 1rem; font-weight: 700; padding: 0; margin: 0; color: var(--fg); cursor: pointer;
}
.faq-card .faq-q[aria-expanded="true"] { color: var(--primary); }
.faq-card .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.32s ease, padding 0.24s ease; padding-top: 0; }
.faq-card.open .faq-a { max-height: 600px; padding-top: 0.75rem; }
.faq-card .faq-a p { color: var(--muted); margin: 0; line-height: 1.6; }

@media (max-width: 820px) {
  .faq-cards { grid-template-columns: 1fr; }
}

/* =====================================================
   WHAT WE DO
===================================================== */
.what-we-do { background: var(--card); }
.service-blocks { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.service-block {
  padding: 1.75rem; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-block:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.service-block h4 { margin-bottom: 0.4rem; color: var(--fg); }
.service-block p { font-size: 0.9rem; }

/* =====================================================
   PRODUCTS SECTION
===================================================== */
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.product-card h3 { margin-bottom: 0.5rem; color: var(--fg); }
.product-card .desc { font-size: 0.9rem; margin-bottom: 1.25rem; }
.product-features { margin-bottom: 1.5rem; flex: 1; }
.product-features li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem;
}
.product-features li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 0.45rem;
}
.product-note {
  font-size: 0.78rem; padding: 0.5rem 0.75rem;
  background: hsl(213,94%,96%); border-radius: var(--radius-sm);
  color: hsl(213,94%,35%); margin-bottom: 1rem; line-height: 1.5;
}

/* =====================================================
   INDUSTRIES
===================================================== */
.industry-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.industry-tile {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  text-align: center; transition: all 0.2s; cursor: pointer;
}
.industry-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.industry-tile svg { width: 32px; height: 32px; stroke: var(--primary); fill: none; stroke-width: 1.6; margin: 0 auto 0.75rem; display: block; }
.industry-tile h4 { font-size: 0.95rem; color: var(--fg); margin-bottom: 0.3rem; }
.industry-tile p { font-size: 0.82rem; }

/* =====================================================
   HOW WE WORK (TIMELINE)
===================================================== */
.timeline {
  position: relative; display: flex; flex-direction: column; gap: 0;
}
.timeline::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-step {
  display: flex; gap: 1.5rem; padding-bottom: 2.5rem; position: relative;
}
.timeline-step:last-child { padding-bottom: 0; }
.step-dot {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; z-index: 1;
  font-family: var(--font-heading);
  box-shadow: 0 0 0 4px var(--bg);
}
.step-content { padding-top: 0.75rem; }
.step-content h4 { color: var(--fg); font-size: 1rem; margin-bottom: 0.35rem; }
.step-content p { font-size: 0.88rem; }

/* =====================================================
   WHY CHOOSE US
===================================================== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why-item {
  display: flex; gap: 0.85rem; padding: 1.25rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.why-check {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.why-check svg { width: 14px; height: 14px; stroke: var(--primary); fill: none; stroke-width: 2.5; }
.why-item p { font-size: 0.88rem; color: var(--fg); }

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonials { background: linear-gradient(160deg, hsl(173,30%,94%) 0%, var(--bg) 100%); }
.testimonial-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.testimonial-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow);
  border: 1px solid var(--border); position: relative;
}
.testimonial-card::before {
  content: '\201C'; font-family: var(--font-heading);
  font-size: 5rem; color: var(--primary-light); position: absolute;
  top: 0.5rem; left: 1.25rem; line-height: 1;
}
.testimonial-text {
  font-size: 1rem; color: var(--fg); line-height: 1.65;
  margin-bottom: 1.25rem; margin-top: 1.5rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.9rem;
}
.author-info strong { display: block; font-size: 0.88rem; color: var(--fg); }
.author-info span { font-size: 0.78rem; color: var(--muted); }
.star-row { display: flex; gap: 2px; margin-bottom: 0.5rem; }
.star { color: var(--accent); font-size: 0.9rem; }

/* =====================================================
   CTA BAND
===================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(173,58%,30%) 100%);
  color: #fff; padding: 4rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; position: relative; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; position: relative; font-size: 1rem; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; position: relative; margin-bottom: 1.25rem; }
.cta-band .sub { font-size: 0.85rem; color: rgba(255,255,255,0.65); position: relative; }

/* =====================================================
   FOOTER
===================================================== */
.footer {
  background: var(--fg); color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-tag { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 0.85rem; margin-top: 0.85rem; line-height: 1.65; }
.footer h5 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; font-weight: 600; font-family: var(--font-body); }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a, .footer-links span {
  font-size: 0.87rem; color: rgba(255,255,255,0.65);
  cursor: pointer; transition: color 0.15s;
}
.footer-links a:hover, .footer-links span:hover { color: var(--primary); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.85rem; margin-bottom: 0.65rem;
}
.footer-contact-item svg { width: 15px; height: 15px; stroke: var(--primary); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.footer-divider { border-color: rgba(255,255,255,0.1); margin-bottom: 1.25rem; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}

/* =====================================================
   PAGE HERO (non-home pages)
===================================================== */
.page-hero {
  background: linear-gradient(160deg, hsl(210,25%,96%) 0%, hsl(173,25%,93%) 100%);
  padding: calc(var(--nav-h) + 3rem) 0 3.5rem;
}
.page-hero .tag { margin-bottom: 0.85rem; }
.page-hero h1 { margin-bottom: 0.85rem; font-size: clamp(1.8rem, 4vw, 3rem); }
.page-hero p { max-width: 600px; font-size: 1.05rem; }

/* =====================================================
   PRODUCTS PAGE
===================================================== */
.product-detail {
  padding: 4rem 0; border-bottom: 1px solid var(--border);
}
.product-detail:last-child { border-bottom: none; }
.product-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-detail-inner.reverse { direction: rtl; }
.product-detail-inner.reverse > * { direction: ltr; }
.product-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.85rem; margin-bottom: 1rem;
}
.how-it-works { margin-top: 1.5rem; }
.how-it-works h4 { margin-bottom: 1rem; }
.how-steps { display: flex; flex-direction: column; gap: 0.75rem; }
.how-step { display: flex; gap: 0.75rem; align-items: flex-start; }
.how-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.how-step p { font-size: 0.88rem; margin-top: 4px; }

.product-visual {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow);
}
.visual-header { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1.25rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border); }
.visual-header h5 { font-size: 0.9rem; color: var(--fg); }
.visual-header p { font-size: 0.75rem; color: var(--muted); margin: 0; }
.visual-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.65rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.feature-list li span { color: var(--fg); }
.compliance-note {
  margin-top: 1.25rem; padding: 0.85rem 1rem;
  background: hsl(213,94%,96%); border-left: 3px solid var(--pending);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem; color: hsl(213,50%,30%);
}

/* =====================================================
   FAQ ACCORDION
===================================================== */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 1.1rem 1.5rem;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--fg); gap: 1rem;
}
.faq-q svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
  font-size: 0.9rem; color: var(--muted); line-height: 1.7;
  padding: 0 1.5rem;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 1.1rem; }

/* =====================================================
   SERVICES PAGE
===================================================== */
.service-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: all 0.2s;
}
.service-card:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-2px); }
.service-card-icon {
  width: 50px; height: 50px; border-radius: var(--radius-sm);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-card-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.88rem; margin-bottom: 1rem; }
.deliverable-tag {
  display: inline-block; font-size: 0.73rem; padding: 0.2rem 0.6rem;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 999px; margin: 0.15rem;
}

.deliverables-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.deliverables-box h3 { margin-bottom: 1.25rem; }
.deliverables-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.del-item {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.83rem; color: var(--fg);
}
.del-item svg { width: 14px; height: 14px; stroke: var(--primary); fill: none; stroke-width: 2; }

/* =====================================================
   INDUSTRIES PAGE
===================================================== */
.industry-detail {
  padding: 3.5rem 0; border-bottom: 1px solid var(--border);
}
.industry-detail:last-child { border-bottom: none; }
.industry-detail-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; align-items: start; }
.industry-icon-big {
  background: var(--primary-light); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
}
.industry-icon-big svg { width: 36px; height: 36px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.workflow-items { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.workflow-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.85rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.87rem; color: var(--fg);
}
.workflow-item::before {
  content: '→'; color: var(--primary); font-weight: 700; flex-shrink: 0;
}

/* =====================================================
   ABOUT PAGE
===================================================== */
.value-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform 0.2s;
}
.value-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.value-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.85rem;
}
.value-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.value-card h4 { margin-bottom: 0.3rem; font-size: 0.95rem; }
.value-card p { font-size: 0.84rem; }

.team-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
}
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(173,58%,28%) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; color: #fff; font-family: var(--font-heading);
}
.team-card h4 { color: var(--fg); margin-bottom: 0.25rem; }
.team-card .role { font-size: 0.82rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.team-card p { font-size: 0.85rem; }

/* =====================================================
   CONTACT PAGE
===================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.25rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--fg); margin-bottom: 0.4rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.92rem; color: var(--fg);
  background: var(--bg); transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px hsl(173,58%,92%);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.contact-card h4 { margin-bottom: 0.75rem; color: var(--fg); }
.contact-detail {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; color: var(--fg); margin-bottom: 0.5rem;
}
.contact-detail svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2; flex-shrink: 0; }
.next-steps {
  background: var(--primary-light); border-radius: var(--radius);
  padding: 1.5rem;
}
.next-steps h4 { color: var(--primary-dark); margin-bottom: 0.85rem; }
.next-step {
  display: flex; gap: 0.65rem; margin-bottom: 0.65rem; align-items: flex-start;
}
.next-step-num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; margin-top: 1px;
}
.next-step p { font-size: 0.85rem; color: var(--primary-dark); margin: 0; }

/* =====================================================
   SCROLL ANIMATIONS
===================================================== */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-ctas { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .service-blocks { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-cards { grid-template-columns: 1fr; }
  .product-detail-inner { grid-template-columns: 1fr; direction: ltr !important; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .industry-detail-inner { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .industry-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .cta-band .btns { flex-direction: column; align-items: center; }
}

/* Utility: sr-only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }