/* ============ FONT ============ */
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  --content: 1024px;          /* fixed content width — never wider than design */
  --nav-w: 1180px;            /* floating bar inner width */
  --gutter: 24px;

  --text: #242424;
  --muted: #a3a3a3;
  --accent: #3b9eff;
  --star: #f2a700;

  --bg: #fafafa;
  --card: #ececef;
  --card-line: #ececef;
  --card-text: #878787;
  --white: #ffffff;

  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;

  --sp-section: 128px;

  --shadow-card: 0 1px 2px rgba(20,20,20,.04), 0 12px 32px rgba(20,20,20,.06);
  --shadow-pop: 0 8px 24px rgba(20,20,20,.12);
}

/* ============ BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* faint fade at the very top so content softly dissolves under the bars */
body::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0; height: 128px;
  pointer-events: none; z-index: 90;
  background: linear-gradient(to bottom,
    rgba(250,250,250,.55),
    rgba(250,250,250,.26) 42%,
    rgba(250,250,250,0));
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Centered, fixed-width content column */
.wrap {
  width: var(--content);
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

.section { padding: var(--sp-section) 0; }

.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  border-radius: 999px;
  padding: 16px 26px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn img { flex: none; }
.nav__cta img { width: 18px; height: 18px; flex: none; }
.footer__icon img { width: 22px; height: 22px; display: block; }
.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { box-shadow: 0 10px 24px rgba(20,20,20,.22); }
.btn--outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px #dcdce0; }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--lg { font-size: 19px; padding: 22px 34px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 92px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 30px;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.nav.is-scrolled { background: transparent; }

.nav__brand { display: flex; align-items: center; gap: 16px; }
.nav__logo { display: inline-flex; }
.nav__name { font-weight: 800; font-size: 28px; letter-spacing: -.5px; color: #15171c; }
.nav__logo-img { height: 40px; width: auto; display: block; }

/* centered links pill — frosted glass that always reads ~6% darker than
   whatever scrolls under it, so it never merges (incl. with #ececef blocks)
   while content stays visible through the blur */
.nav__links {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%);
  height: 60px; display: flex; align-items: center; gap: 48px;
  padding: 0 32px; border-radius: 20px;
  background: rgba(0,0,0,.06);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: opacity .42s ease, transform .42s cubic-bezier(.22,1,.36,1);
}
.nav__links a {
  font-weight: 700; font-size: 18px; color: var(--text);
  transition: opacity .15s ease;
}
.nav__links a:hover { opacity: .55; }

/* collapsed ⋯ micro-pill (shown while scrolling down) */
.nav__dots {
  position: absolute; left: 50%; top: 22px;
  transform: translateX(-50%) scale(.9);
  height: 48px; width: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 0; cursor: pointer;
  background: rgba(0,0,0,.06);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  opacity: 0; pointer-events: none;
  transition: opacity .42s ease, transform .42s cubic-bezier(.22,1,.36,1), background .15s ease;
}
.nav__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text); }
.nav__dots:hover { background: rgba(0,0,0,.1); }

.nav.is-condensed .nav__links {
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) scaleX(.12);
}
.nav.is-condensed .nav__dots {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) scale(1);
}
/* clicking the ⋯ opens the links in place */
.nav.is-condensed.is-menu-open .nav__links {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) scale(1);
}
.nav.is-condensed.is-menu-open .nav__dots {
  opacity: 0; pointer-events: none;
}

.nav__right { position: relative; display: flex; align-items: center; gap: 8px; }

/* language box — same frosted glass as the links pill */
.lang { position: static; overflow: clip; }
.lang__btn {
  height: 60px; width: 72px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 700; font-size: 18px; color: var(--text);
  background: rgba(0,0,0,.06);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 0; cursor: pointer;
  border-radius: 20px;
  transition: background .15s ease, opacity .42s ease, transform .42s cubic-bezier(.22,1,.36,1);
}
.lang__btn:hover { background: rgba(0,0,0,.1); }
.nav.is-condensed .lang__btn { opacity: 0; pointer-events: none; transform: translateX(40px) scale(.94); }
/* soft mask so the right edge dissolves (no sharp cut) as it tucks away */
.nav.is-condensed .lang {
  -webkit-mask-image: linear-gradient(to right, #000 58%, transparent 94%);
          mask-image: linear-gradient(to right, #000 58%, transparent 94%);
}

/* download CTA */
.nav__cta {
  height: 60px; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 24px; border-radius: 16px;
  background: var(--text); color: #fff;
  font-weight: 700; font-size: 18px; white-space: nowrap;
  box-shadow:
    inset 0 4px 4px rgba(255,255,255,.25),
    inset 0 -4px 4px rgba(0,0,0,.25),
    inset -2px 0 2px rgba(255,255,255,.1);
  transition: background .15s ease;
}
.nav__cta svg { width: 15px; height: 20px; flex: none; }
.nav__cta:hover { background: #1a1a1a; }

.lang__menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: rgba(0,0,0,.06);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-radius: 16px;
  padding: 8px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px 6px;
}
.lang.is-open .lang__menu { display: grid; }
.lang__menu button {
  text-align: left; font-family: inherit; font-weight: 600; font-size: 16px;
  color: var(--text); background: transparent; border: 0; cursor: pointer;
  padding: 11px 14px; border-radius: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .12s ease, color .12s ease;
}
.lang__menu button:hover { background: rgba(20,20,20,.05); }
.lang__menu button.is-active { color: var(--accent); background: rgba(59,158,255,.08); }

/* ============ HERO ============ */
.hero { padding-top: 168px; }
.hero .wrap { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.hero__head { text-align: center; display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  font-weight: 800;
  font-size: 100px;
  line-height: 100px;
  letter-spacing: -2px;
  color: var(--text);
}
.hero__sub {
  font-weight: 600;
  font-size: 44px;
  line-height: 52px;
  letter-spacing: -1px;
  color: var(--muted);
}

.hero__shot {
  width: var(--content);
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero__shot-media {
  aspect-ratio: 1024 / 600;
  width: 100%;
  /* placeholder wallpaper — replace with real dock+folder video */
  background:
    radial-gradient(120% 90% at 50% 18%, #cfe0ee 0%, #d9e6f0 26%, #cfae7f 55%, #3f7fd0 78%, #2f6dc4 100%);
}

/* trust row */
.trust {
  width: var(--content); max-width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; white-space: nowrap;
}
.trust li { font-weight: 800; font-size: 20px; color: var(--text); }
.trust__stars { color: var(--star); font-weight: 500; letter-spacing: 2px; }
.trust__dot { color: var(--muted); font-weight: 500; }

/* ============ BLOCK HEAD ============ */
.block-head { margin-bottom: 52px; }

/* Two-line title: dark big line + grey smaller line (design pattern) */
.dual-title { display: flex; flex-direction: column; gap: 14px; }
.dual-title__a { font-weight: 800; font-size: 68px; line-height: 64px; letter-spacing: -2px; color: var(--text); }
.dual-title__b { font-weight: 600; font-size: 44px; line-height: 52px; letter-spacing: -1px; color: var(--muted); }

/* ============ CAROUSEL ============ */
.carousel__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 48px;
}
.carousel__nav { display: flex; gap: 18px; align-items: center; }
.carousel__arrow {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .15s ease, transform .15s ease;
}
.carousel__arrow:hover:not(:disabled) { transform: scale(1.06); }
.carousel__arrow:disabled { opacity: .36; cursor: default; }

/* viewport extends to the right edge of the screen (full-bleed right) */
.carousel__viewport {
  width: var(--content);
  max-width: calc(100% - 48px);
  margin: 0 auto;
  overflow: visible;
}
@media (min-width: 1120px) {
  .carousel__viewport { margin-right: calc((100vw - var(--content)) / -2); margin-left: auto; width: auto; max-width: none; padding-left: max(24px, calc((100vw - var(--content)) / 2)); overflow: hidden; }
}
.carousel__track {
  display: flex; gap: 4px;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.carousel__track img, .carousel__track video {
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
/* idle = normal cursor; while grabbing = closed/holding hand */
.carousel.is-grabbing,
.carousel.is-grabbing * { cursor: grabbing !important; user-select: none; }
.carousel.is-grabbing .carousel__track { transition: none; }

/* exact design card */
.ccard {
  flex: none;
  width: var(--content);
  max-width: 100%;
  height: 600px;
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.ccard__media { flex: 1; min-height: 0; overflow: hidden; }
.ccard__media img, .ccard__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccard__body { padding: 32px; display: flex; flex-direction: column; gap: 4px; }
.ccard__title { font-weight: 800; font-size: 24px; line-height: 28px; letter-spacing: -.6px; color: var(--text); }
.ccard__text { font-weight: 500; font-size: 24px; line-height: 28px; letter-spacing: -.6px; color: var(--card-text); max-width: 780px; }
.ccard--tall { height: 752px; }

.h2 { font-weight: 800; font-size: 52px; line-height: 1.05; letter-spacing: -1.5px; }
.block-head__sub { margin-top: 16px; font-size: 26px; line-height: 1.3; font-weight: 600; }
.h3 { font-weight: 800; font-size: 22px; letter-spacing: -.4px; }

/* ============ GRIDS / CARDS ============ */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--tight { gap: 4px; }

/* square-ish grid card (Crafted / Tiny Folder) */
.gcard {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.gcard__media { aspect-ratio: 510 / 358; background: var(--card); overflow: hidden; }
.gcard__media img, .gcard__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard__body { padding: 32px; display: flex; flex-direction: column; gap: 4px; }
.gcard__title { font-weight: 800; font-size: 24px; line-height: 28px; letter-spacing: -.6px; color: var(--text); }
.gcard__text { font-weight: 500; font-size: 24px; line-height: 28px; letter-spacing: -.6px; color: var(--card-text); }

/* feature row — 5 columns × 2 rows, exact */
.features-row {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  row-gap: 68px;
}
.features-row li {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  font-weight: 800; font-size: 20px; line-height: 28px; text-align: center; color: var(--text);
}
.features-row__glyph {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--card);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
}
.features-row__glyph svg { width: 32px; height: 32px; }

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 4px; }
.faq__item {
  background: var(--card);
  border-radius: 24px;
  padding: 24px 24px 24px 32px;
}
.faq__head {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 60px;
}
.faq__head::-webkit-details-marker { display: none; }
.faq__q {
  font-weight: 800; font-size: 24px; line-height: 28px;
  letter-spacing: -.6px; color: var(--text); max-width: 672px;
}
.faq__a {
  margin: 0 0 16px; max-width: 842px;
  font-weight: 500; font-size: 24px; line-height: 28px;
  letter-spacing: -.6px; color: var(--card-text);
}
/* ± glyph in a 60×60 box; vertical stroke disappears when open */
.faq__sign { position: relative; width: 60px; height: 60px; flex: none; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; background: var(--text);
  border-radius: 2px; transition: opacity .2s ease;
}
.faq__sign::before { left: 20px; top: 29px; width: 20px; height: 2px; }  /* horizontal — always */
.faq__sign::after  { left: 29px; top: 20px; width: 2px; height: 20px; }  /* vertical — plus only */
.faq__item[open] .faq__sign::after { opacity: 0; }

.faq__more { margin-top: 48px; display: flex; justify-content: center; }
.faq__more-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 20px; border-radius: 16px;
  background: rgba(0,0,0,.06);
  font-weight: 400; font-size: 22px; line-height: 33px;
  letter-spacing: -.88px; color: var(--text);
  transition: background .15s ease;
}
.faq__more-pill:hover { background: rgba(0,0,0,.09); }
.faq__more-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.faq__more-arrow { flex: none; }

/* ============ PRICING ============ */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan {
  position: relative;
  height: 712px;
  border-radius: 24px;
  padding: 48px;
  display: flex; flex-direction: column; gap: 48px;
}
.plan--free { background: var(--card); }
.plan--pro  { background: var(--text); }

.plan__top { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 32px; }
.plan__head { display: flex; flex-direction: column; gap: 28px; }
.plan__name { font-weight: 600; font-size: 28px; line-height: 32px; color: var(--muted); }
.plan__price {
  display: flex; align-items: flex-end; gap: 12px;
  font-weight: 700; font-size: 54px; line-height: 64px; letter-spacing: -3.2px;
  color: var(--text);
}
.plan--pro .plan__price { color: #fff; }
.plan__price-note {
  font-weight: 500; font-size: 24px; line-height: 28px; letter-spacing: -.6px;
  padding-bottom: 8px;
}

.plan__list { display: flex; flex-direction: column; gap: 15px; }
.plan__list li {
  position: relative; padding-left: 23px;
  font-weight: 500; font-size: 18px; line-height: 24px; letter-spacing: -.45px;
  color: var(--text);
}
.plan__list li::before {
  content: "~"; position: absolute; left: 0; top: 0;
  font-size: 24px; line-height: 24px; color: var(--muted);
}
/* Pro: light text + check markers on dark card */
.plan--pro .plan__list li { padding-left: 26px; color: #e6e6e6; }
.plan--pro .plan__list--check li::before {
  content: ""; left: 1px; top: 8px; width: 12px; height: 8px;
  border-left: 2px solid rgba(255,255,255,.6);
  border-bottom: 2px solid rgba(255,255,255,.6);
  transform: rotate(-45deg);
}

.plan__cta {
  height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
  background: rgba(0,0,0,.06); color: rgba(36,36,36,.7);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.plan__cta:hover { background: rgba(0,0,0,.1); }
.plan__cta--pro {
  background: linear-gradient(180deg, #fdfeff, rgba(238,246,255,.8));
  color: var(--text);
}
.plan__cta--pro:hover { box-shadow: 0 10px 28px rgba(0,0,0,.25); }

.plan__guarantee {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center;
  font-weight: 500; font-size: 14px; line-height: 24px;
  color: rgba(255,255,255,.5);
}

/* ============ USE CASES ============ */
.usecase {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.usecase__media {
  height: 335px;
  /* placeholder — real folder renders / video drop in here later */
  background: var(--card);
}
.usecase__media img, .usecase__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.usecase__media--design  { background: linear-gradient(150deg, #8fd4a8, #6fb7e0 55%, #5b8fd6); }
.usecase__media--dev     { background: linear-gradient(150deg, #5aa0e8, #3f6fd0 55%, #2b3a6b); }
.usecase__media--routine { background: linear-gradient(150deg, #f3a9c4, #c89be0 55%, #9b8fe0); }
.usecase__media--games   { background: linear-gradient(150deg, #f6b27a, #ef7e6a 55%, #d85a6e); }
.usecase__name {
  font-weight: 800; font-size: 24px; line-height: 28px; letter-spacing: -1.2px;
  color: var(--text); padding: 0 32px 32px;
}
.usecase__note {
  margin-top: 48px; text-align: center;
  font-weight: 500; font-size: 18px; line-height: 24px; letter-spacing: -.45px;
  color: var(--muted);
}

/* ============ CTA ============ */
.cta__inner {
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.cta__title { font-weight: 800; font-size: 68px; letter-spacing: -2px; line-height: 64px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta__logo { width: 96px; height: 96px; flex: none; }
.cta__sub { font-size: 26px; font-weight: 600; }
.cta__inner .btn { margin-top: 18px; }

/* ============ FOOTER ============ */
.footer { padding: 64px 0 32px; }
.footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.footer__card {
  width: 100%; box-sizing: border-box;
  background: var(--card); border-radius: 20px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 40px;
}
.footer__social { display: flex; align-items: center; gap: 0; }
.footer__icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; transition: background .15s ease;
}
.footer__icon:hover { background: #e2e2e6; }
.footer__icon img { width: 60px; height: 60px; display: block; }
.footer__legal { display: flex; gap: 28px; }
.footer__legal a { font-weight: 500; font-size: 18px; letter-spacing: -.45px; color: #171717; }
.footer__legal a:hover { opacity: .6; }
.footer__copy { margin: 0; text-align: center; font-size: 18px; font-weight: 500; letter-spacing: -.45px; color: var(--muted); }

/* ============ MOTION & INTERACTIONS (progressive enhancement) ============ */
/* Without JS, or with prefers-reduced-motion, the page looks exactly as at rest. */

/* Anchor offset so the floating nav never covers a section's top */
#features, #studio, #pricing, #faq, #download { scroll-margin-top: 112px; }

/* Hero entrance — staggered fade on load (runs pre-paint via .has-js) */
.has-js .hero__head > *,
.has-js .hero__shot,
.has-js .trust { opacity: 0; animation: rise .75s cubic-bezier(.16,1,.3,1) forwards; }
.has-js .hero__head > *:nth-child(1) { animation-delay: .05s; }
.has-js .hero__head > *:nth-child(2) { animation-delay: .14s; }
.has-js .hero__shot { animation-delay: .24s; }
.has-js .trust     { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }

/* Scroll reveal — JS adds .reveal to below-the-fold blocks, then .is-in on enter */
.reveal { opacity: 0; will-change: opacity; }
.reveal.is-in {
  opacity: 1;
  transition: opacity .7s cubic-bezier(.16,1,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  .has-js .hero__head > *, .has-js .hero__shot, .has-js .trust { opacity: 1; animation: none; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .nav__links, .nav__dots, .lang__btn { transition: none; }
}
