/* =========================================================
   HomeNet Ventures — Super App Landing
   Mobile-first, responsive, app-like
   ========================================================= */

:root {
  --ink: #0e1b33;
  --ink-2: #3a4a66;
  --muted: #6b7a93;
  --line: #e7ebf3;
  --bg: #f6f8fc;
  --card: #ffffff;
  --brand: #0891b2;
  --brand-2: #06b6d4;
  --brand-ink: #0e7490;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 51, .06), 0 4px 14px rgba(14, 27, 51, .06);
  --shadow-md: 0 8px 30px rgba(14, 27, 51, .10);
  --shadow-lg: 0 24px 60px rgba(14, 27, 51, .16);

  --topbar-h: 62px;
  --tabbar-h: 64px;
  --maxw: 1180px;

  --safe-b: env(safe-area-inset-bottom, 0px);

  --topbar-bg: rgba(246, 248, 252, .82);
  --tabbar-bg: rgba(255, 255, 255, .9);
  --ghost-bg: rgba(255, 255, 255, .7);
  --ghost-bg-hover: #ffffff;
  --chip-bg: rgba(255, 255, 255, .7);
  --hover-tint: rgba(14, 27, 51, .06);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --ink: #e8eef9;
  --ink-2: #b3c0d8;
  --muted: #8595af;
  --line: #243049;
  --bg: #0b1428;
  --card: #131f38;
  --brand: #22d3ee;
  --brand-2: #22d3ee;
  --brand-ink: #0891b2;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .28);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, .4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);

  --topbar-bg: rgba(11, 20, 40, .82);
  --tabbar-bg: rgba(19, 31, 56, .92);
  --ghost-bg: rgba(255, 255, 255, .06);
  --ghost-bg-hover: rgba(255, 255, 255, .12);
  --chip-bg: rgba(255, 255, 255, .05);
  --hover-tint: rgba(255, 255, 255, .08);
}
[data-theme="dark"] .brand__logo { background-image: url("../img/logo-light.svg"); }
[data-theme="dark"] .about__card { background: linear-gradient(135deg, #0c1730, #0a1326); border: 1px solid var(--line); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: "Sora", "Plus Jakarta Sans", sans-serif; letter-spacing: -.02em; }

/* ---------- Brand logo ---------- */
.brand { display: inline-flex; align-items: center; }
.brand__logo {
  display: block;
  width: 138px; height: 32px;
  background: url("../img/logo.svg") left center / contain no-repeat;
}
.brand__logo--light { background-image: url("../img/logo-light.svg"); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font: inherit; font-weight: 700;
  padding: .72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn--sm { padding: .5rem .9rem; font-size: .9rem; }
.btn--compact {
  padding: .38rem .62rem;
  font-size: .76rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(8, 145, 178, .28);
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-ink));
  color: #fff;
  box-shadow: 0 8px 20px rgba(8, 145, 178, .35);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(8, 145, 178, .45); }
.btn--ghost {
  background: var(--ghost-bg);
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ghost-bg-hover); transform: translateY(-1px); }

/* ---------- Icon button ---------- */
.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--hover-tint); }
.icon-btn:active { transform: scale(.94); }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--topbar-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

/* Theme toggle */
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: .5rem;
  padding: 0 14px;
}
.topbar__menu { margin-right: .15rem; }
.topbar__nav { display: none; }
.topbar__cta { margin-left: auto; display: flex; gap: .35rem; align-items: center; flex-shrink: 0; }
.topbar__cta .btn--ghost { display: none; }
.topbar__cta .icon-btn { width: 38px; height: 38px; flex-shrink: 0; }
.topbar__wa { white-space: nowrap; }

/* Utility: hide sections without removing markup */
.is-hidden { display: none !important; }

/* =========================================================
   DRAWER (mobile)
   ========================================================= */
.scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(8, 14, 28, .5);
  backdrop-filter: blur(2px);
  opacity: 0; animation: fade .25s ease forwards;
}
.scrim[hidden] { display: none; }
@keyframes fade { to { opacity: 1; } }

.drawer {
  position: fixed; top: 0; left: 0; z-index: 80;
  width: min(86vw, 340px); height: 100%;
  background: linear-gradient(180deg, #0e1b33, #0b1428);
  color: #eaf0fb;
  transform: translateX(-105%);
  transition: transform .32s cubic-bezier(.4, 0, .15, 1);
  display: flex; flex-direction: column;
  padding: 14px 14px calc(14px + var(--safe-b));
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 14px; }
.drawer__head .icon-btn { color: #cfdaf0; }
.drawer__head .icon-btn:hover { background: rgba(255, 255, 255, .08); }

.drawer__nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.drawer__label {
  margin: 6px 8px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: #7f93b8;
}
.drawer__link {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem .9rem; border-radius: 14px;
  font-weight: 600; color: #dbe5f7;
  transition: background .2s, transform .12s;
}
.drawer__link:hover { background: rgba(255, 255, 255, .07); }
.drawer__link:active { transform: scale(.98); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.drawer__foot { display: flex; gap: .6rem; padding-top: 12px; }
.drawer__foot .btn { flex: 1; }
.drawer__foot .btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .14); }

/* =========================================================
   HERO BANNER SLIDER
   ========================================================= */
.hero { padding: 14px 14px 0; }
.slider {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0e1b33;
  touch-action: pan-y;
}
.slides { display: flex; transition: transform .55s cubic-bezier(.4, 0, .15, 1); will-change: transform; }
.slide {
  position: relative; min-width: 100%;
  height: clamp(380px, 64vh, 460px);
  display: flex; align-items: flex-end;
  background: linear-gradient(135deg, var(--g1, #0e1b33), var(--g2, #112647));
  overflow: hidden;
}
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.slide__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(8, 14, 28, .85) 0%, rgba(8, 14, 28, .35) 45%, rgba(8, 14, 28, .1) 100%),
    linear-gradient(to right, rgba(8, 14, 28, .55), rgba(8, 14, 28, 0) 70%);
}
.slide__content {
  position: relative; z-index: 2;
  padding: 22px 20px 30px; max-width: 620px; color: #fff;
}
.slide__eyebrow {
  display: inline-block; font-weight: 700; font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: .35rem .7rem; border-radius: 999px; margin-bottom: 12px;
  backdrop-filter: blur(6px);
}
.slide__title {
  font-size: clamp(1.7rem, 7vw, 2.9rem); line-height: 1.08;
  font-weight: 800; margin: 0 0 10px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.slide__text {
  font-size: 1rem; color: #e6edf9; margin: 0 0 18px;
  max-width: 480px; text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}

/* Arrows */
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  display: none; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: var(--ink);
  border: 0; box-shadow: var(--shadow-sm);
  transition: background .2s, transform .15s;
}
.slider__arrow:hover { background: #fff; }
.slider__arrow:active { transform: translateY(-50%) scale(.92); }
.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }

[data-theme="dark"] .slider__arrow {
  background: rgba(0, 0, 0, .45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
[data-theme="dark"] .slider__arrow:hover {
  background: rgba(0, 0, 0, .62);
  border-color: rgba(255, 255, 255, .35);
}

/* Dots */
.slider__dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4;
  display: flex; justify-content: center; gap: 8px;
}
.slider__dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .5); transition: width .25s, background .25s;
}
.slider__dots button.is-active { width: 26px; background: #fff; }

/* =========================================================
   SEARCH BAR
   ========================================================= */
.searchbar { max-width: var(--maxw); margin: 0 auto; padding: 18px 14px 0; }
.searchbar__inner { display: flex; flex-direction: column; gap: 12px; }

.search {
  position: relative; display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 4px 4px 4px 14px;
  box-shadow: var(--shadow-md);
  width: 100%;
}
.search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(6, 182, 212, .14), var(--shadow-md); }
.search__icon { color: var(--muted); flex: none; }
.search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .6rem; min-width: 0;
}
.search__clear { border: 0; background: rgba(14, 27, 51, .06); color: var(--ink-2); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; flex: none; }

.hero__chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  font: inherit; font-weight: 600; font-size: .88rem;
  border: 1px solid var(--line); background: var(--chip-bg);
  color: var(--ink-2); padding: .5rem .9rem; border-radius: 999px; cursor: pointer;
  transition: all .18s; -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand-ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { max-width: var(--maxw); margin: 0 auto; padding: 26px 14px; }
.section__head { margin-bottom: 16px; }
.section__title { font-size: clamp(1.3rem, 5vw, 1.7rem); font-weight: 800; }
.section__hint { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Featured ---------- */
.featured { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feature {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .25s ease;
  isolation: isolate;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature:active { transform: scale(.99); }
.feature__glow {
  position: absolute; z-index: -1; inset: auto -40px -60px auto;
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--c); opacity: .14; filter: blur(20px);
}
.feature__icon {
  flex: none; width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c), var(--c2));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 40%, transparent);
}
.feature__text h3 { font-size: 1.12rem; font-weight: 800; }
.feature__text p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.feature__go { margin-left: auto; font-size: 1.4rem; color: var(--c); transition: transform .2s; }
.feature:hover .feature__go { transform: translateX(4px); }

/* ---------- App grid ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.app {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 18px 12px 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .25s ease, border-color .2s;
  overflow: hidden; -webkit-tap-highlight-color: transparent;
}
.app::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -20%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.app:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.app:hover::before { opacity: 1; }
.app:active { transform: scale(.97); }
.app__icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 90%, white), var(--c));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 38%, transparent);
}
.app__name { font-weight: 700; font-size: 1rem; }
.app__tag { font-size: .78rem; color: var(--muted); }
.app.is-hidden { display: none; }

.apps__empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* Staggered entrance */
.app, .feature {
  opacity: 0; transform: translateY(14px);
  animation: rise .5s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.apps .app:nth-child(1) { animation-delay: .03s; }
.apps .app:nth-child(2) { animation-delay: .06s; }
.apps .app:nth-child(3) { animation-delay: .09s; }
.apps .app:nth-child(4) { animation-delay: .12s; }
.apps .app:nth-child(5) { animation-delay: .15s; }
.apps .app:nth-child(6) { animation-delay: .18s; }
.apps .app:nth-child(7) { animation-delay: .21s; }
.apps .app:nth-child(8) { animation-delay: .24s; }

/* ---------- About ---------- */
.about__card {
  background: linear-gradient(135deg, #0e1b33, #112647);
  color: #eaf0fb; border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.about__card::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .5), transparent 70%);
}
.about__card .section__title { color: #fff; }
.about__card p { color: #b9c6e0; max-width: 620px; }
.about__stats { display: flex; gap: 26px; list-style: none; padding: 0; margin: 18px 0 0; }
.about__stats li { display: flex; flex-direction: column; }
.about__stats strong { font-family: "Sora", sans-serif; font-size: 1.7rem; color: #22d3ee; }
.about__stats span { font-size: .82rem; color: #9fb0cf; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #0b1428; color: #c4d0e6; margin-top: 18px; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 34px 16px 22px;
  display: grid; gap: 24px;
}
.footer__brand .brand__logo { width: 150px; height: 34px; margin-bottom: 10px; }
.footer__brand p { margin: 4px 0; color: #9fb0cf; font-size: .92rem; }
.footer__hours { font-size: .85rem; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.footer__col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #6f82a6; margin-bottom: 10px; }
.footer__col a { display: block; padding: 5px 0; color: #c4d0e6; font-size: .92rem; transition: color .2s; }
.footer__col a:hover { color: #22d3ee; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; padding: 16px; font-size: .82rem; color: #7f93b8; }

/* =========================================================
   BOTTOM TAB BAR (mobile app feel)
   ========================================================= */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 65;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--tabbar-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: .68rem; font-weight: 600; color: var(--muted);
  transition: color .2s; -webkit-tap-highlight-color: transparent;
}
.tabbar__item.is-active { color: var(--brand); }
.tabbar__item:active { transform: scale(.92); }

/* keep content clear of tabbar on mobile */
main { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px); }

/* =========================================================
   DESKTOP / TABLET
   ========================================================= */
@media (min-width: 720px) {
  .featured { grid-template-columns: repeat(3, 1fr); }
  .apps { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .app { padding: 24px 14px; }
  .app__icon { width: 62px; height: 62px; }
  .footer__inner { grid-template-columns: 1.2fr 2fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }

  .slider__arrow { display: grid; }
  .slide { height: clamp(420px, 56vh, 540px); }
  .slide__content { padding: 30px 44px 46px; }
  .searchbar__inner { flex-direction: row; align-items: center; }
  .searchbar .search { max-width: 520px; }
  .hero__chips { margin-left: auto; }
}

@media (min-width: 960px) {
  .topbar__menu { display: none; }
  .topbar__nav {
    display: flex; gap: 6px; margin-left: 18px;
  }
  .topbar__nav a {
    padding: .55rem .9rem; border-radius: 12px; font-weight: 600;
    color: var(--ink-2); transition: background .2s, color .2s;
  }
  .topbar__nav a:hover { background: rgba(14, 27, 51, .06); color: var(--ink); }
  .topbar__cta .btn--ghost { display: inline-flex; }
  .topbar__cta { gap: .5rem; }
  .topbar__cta .icon-btn { width: 44px; height: 44px; }
  .topbar__cta .btn--compact {
    padding: .5rem .9rem;
    font-size: .88rem;
  }

  .tabbar { display: none; }
  main { padding-bottom: 0; }

  .hero { padding: 22px 20px 0; }
  .searchbar { padding: 22px 20px 0; }
  .section { padding: 40px 20px; }
}

@media (min-width: 1100px) {
  .apps { gap: 18px; }
}

@media (max-width: 400px) {
  .brand__logo { width: 112px; height: 26px; }
  .topbar__inner { padding: 0 10px; gap: .25rem; }
  .topbar__cta .btn--compact { padding: .32rem .48rem; font-size: .72rem; }
}

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

:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-2) 70%, white); outline-offset: 2px; border-radius: 6px; }

body.no-scroll { overflow: hidden; }
