/* ===========================================================================
   Kibu — 1:1 reproduction of Figma design (file gDEQbWHbACFwy3QTxzt30p)
   Global system: 1710px page, 1056px centered content container, Inter type.
   Per-section styles live in sections/section-*.css
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800&family=Asap:wght@500;600;700&display=swap');

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

html, body { margin: 0; padding: 0; }

/* Smooth in-page navigation for anchor links */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Scroll-reveal: sections fade + rise as they enter the viewport. The hidden
   state only applies once JS marks the body (.reveal-ready), so with no JS or
   reduced-motion everything is fully visible. */
@media (prefers-reduced-motion: no-preference) {
  body.reveal-ready .reveal-section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
  }
  body.reveal-ready .reveal-section.is-visible {
    opacity: 1;
    transform: none;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: none; }

a { text-decoration: none; color: inherit; }

p { margin: 0; }

/* The whole design is authored at 1710px wide. Center it; clip horizontal overflow. */
.page {
  width: 1710px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Reusable full-bleed section + centered 1056px content column
   (1710 - 1056 = 654 → 327px gutters either side). */
.section { position: relative; width: 1710px; }
.container { width: 1056px; margin: 0 auto; position: relative; }

/* =========================================================================
   Top navigation (node 1:3065) — floats over the hero
   ========================================================================= */
.nav-wrap {
  position: fixed;                 /* sticky floating nav */
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 1056px;
  z-index: 100;
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 16px;
  padding: 12px 20px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
              backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
/* Once scrolled off the hero, give the pill a frosted backdrop for legibility
   over the page content. Toggled by script.js. */
.nav-wrap.is-stuck .nav {
  background-color: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* Anchor targets clear the fixed nav when scrolled to */
.section[id] { scroll-margin-top: 96px; }

/* --- Nav dropdown menus (Resources / Fun) --- */
.nav__dropdown { position: relative; display: inline-flex; align-items: center; }
.nav__dropbtn {
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.35px;
  color: rgba(8, 9, 10, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__dropbtn .nav__chev { transition: transform 0.2s ease; }
.nav__dropdown.is-open .nav__dropbtn .nav__chev,
.nav__dropdown:hover .nav__dropbtn .nav__chev { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 200px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}
.nav__menu::before {        /* invisible bridge so hover survives the gap */
  content: '';
  position: absolute;
  top: -16px; left: 0; right: 0; height: 16px;
}
.nav__dropdown:hover .nav__menu,
.nav__dropdown.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: rgba(8, 9, 10, 0.82);
  white-space: nowrap;
}
.nav__menu a:hover { background: rgba(0, 0, 0, 0.05); color: #000; }
.nav__logo {
  font-family: 'Asap', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 33px;
  color: #000;
  margin-right: 32px;
  display: inline-flex;
  align-items: center;
}
.nav__logo img { height: 28px; width: auto; display: block; }
.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.35px;
  color: rgba(8, 9, 10, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav__chev { width: 14px; height: 14px; }
.nav__right { display: flex; align-items: center; justify-content: center; gap: 16px; margin-left: auto; }
.nav__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.35px;
  color: #fff;
  cursor: pointer;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 7px 13px;
  cursor: pointer;
}
.nav__cta span { font-size: 14px; font-weight: 500; line-height: 20px; color: #fff; }
.nav__cta img { width: 23px; height: 23px; border-radius: 50%; object-fit: cover; }

/* =========================================================================
   Hero (node 1:6)
   ========================================================================= */
.hero { height: 1192.28px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgb(199, 231, 255) 0%,
    rgb(150, 203, 255) 28.29%,
    rgba(5, 122, 255, 0.5) 60.36%,
    rgb(255, 255, 255) 90.23%);
}
.hero__inner { left: 327px; width: 1056px; margin: 0; position: absolute; top: 0; padding-top: 140px; }
.hero__title {
  font-size: 60px;
  font-weight: 600;
  line-height: 66px;
  letter-spacing: -1.216px;
  color: #000;
  margin: 0;
}
.hero__sub {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.8);
  width: 600px;
  margin-top: 16px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  border: 1px solid #000;
  border-radius: 12px;
  padding: 10.2px 17px;
  cursor: pointer;
}
.hero__cta span { font-size: 16px; font-weight: 500; line-height: 24px; color: #fff; }
.hero__cta img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; }
.hero__cta--secondary {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.hero__cta--secondary span { color: #000; }

.hero__showcase {
  position: absolute;
  left: 327px;
  width: 1056px;
  top: 503.39px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero__tabs {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  justify-content: center;
  height: 38px;
}
.hero__tab { display: flex; flex-direction: column; align-items: stretch; cursor: pointer; }
.hero__tab-btn { display: flex; gap: 8px; align-items: center; padding-bottom: 6px; opacity: 0.6; }
.hero__tab.is-active .hero__tab-btn { opacity: 1; }
.hero__tab-btn img { width: 16px; height: 16px; object-fit: contain; }
.hero__tab-btn span { font-size: 16px; font-weight: 500; line-height: 24px; color: #000; white-space: nowrap; }
.hero__tab-underline { height: 4px; border-radius: 8px; background: #000; width: 0; margin-top: 4px; }
.hero__tab.is-active .hero__tab-underline { width: 100%; }

.hero__frame {
  width: 1056px;
  height: 634.89px;
  border-radius: 8px;
  overflow: hidden;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }

/* ===========================================================================
   RESPONSIVE — global framing, nav, hero.
   Desktop (>=1710px) renders the original 1:1 design untouched. Below that the
   page becomes fluid and the content column tracks the viewport. Per-section
   reflow lives in each sections/section-*.css @media block.
   =========================================================================== */
img, svg { max-width: 100%; }

@media (max-width: 1709px) {
  .page { width: 100%; }
  .section { width: 100%; }
  .container { width: min(1056px, 92vw); }

  /* Nav: the overlay spans the full hero width (no over-constraint), and the
     nav pill centers inside it via max-width + auto margins — which can never
     push the CTA past the viewport edge. */
  .nav-wrap {
    left: 0;
    right: 0;
    width: auto;
    transform: none;
    margin: 0;
    padding: 0 16px;
  }
  .nav { max-width: 1056px; margin: 0 auto; gap: 12px; }
  .nav__right { flex-shrink: 0; }

  /* Hero: drop the absolute layout into normal flow. Keep the content
     RELATIVELY positioned (not static) so it still paints above the
     absolutely-positioned background gradient. */
  .hero { height: auto; padding-bottom: 90px; overflow: visible; }
  .hero__bg { overflow: hidden; z-index: 0; }
  .hero__inner { position: relative; z-index: 2; left: auto; width: min(1056px, 92vw);
                 margin: 0 auto; padding-top: 132px; padding-left: 0; }
  .hero__sub { width: min(600px, 100%); }
  .hero__showcase { position: relative; z-index: 2; left: auto; top: auto;
                    width: 100%; max-width: 1056px; margin: 48px auto 0; }
  .hero__tabs { flex-wrap: wrap; gap: 20px 36px; height: auto; }
  .hero__frame { width: 100%; height: auto; aspect-ratio: 1056 / 634.89; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }            /* secondary links collapse */
  .nav__logo { margin-right: auto; }
}

@media (max-width: 600px) {
  .hero__title { font-size: 34px; line-height: 39px; letter-spacing: -0.5px; }
  .hero__sub { font-size: 17px; line-height: 26px; }
  .hero__ctas { gap: 8px; margin-top: 24px; }
  .hero__cta { padding: 9px 14px; }
  .hero__cta span { font-size: 15px; line-height: 22px; }
  .hero__inner { padding-top: 112px; }
  .hero__showcase { margin-top: 36px; }
  .nav { padding: 7px 12px; }
  .nav__logo { font-size: 20px; }
  .nav__login { display: inline-flex; }   /* keep login accessible on small screens */
  .nav__cta { padding: 7px 12px; }
}
